/* ========================
  共通スタイル
======================== */
:root {
  --accent-color: #0096d6;
  --second-accent-color: #f3fafd;
  --third-accent-color: #f4f4f6;
  --annotation-color: #fb431f;
  --placeholder-color: #888;
}

/* 背景とテキストのデフォルトスタイル */
html,
body,
input,
select,
textarea {
  background-color: white !important;
  color: black !important;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: 'System UI', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
}

/* プレースホルダースタイル */
input::placeholder,
textarea::placeholder {
  color: var(--placeholder-color) !important;
}

/* 入力要素のフォーカス時スタイル */
input:focus,
select:focus,
textarea:focus {
  box-shadow: none !important;
  border: 1px solid black !important;
}

/* Bulma columns のテキスト折り返し対応 */
.column {
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ========================
  ヘッダー
======================== */
.hero-container {
  margin-bottom: 32px;
}

.logo-img {
  width: 175px;
  height: auto;
}

.header-container {
  max-width: 768px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* ========================
  環境ラベル
======================== */
/* 環境ラベル全体 */
.env-label {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  overflow: hidden;
  z-index: 1000;
  pointer-events: none;
}

/* ラベルの内容 */
.env-label-content {
  position: absolute;
  top: 40px;
  width: 250px;
  height: 40px;
  background-color: #228b22;
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  line-height: 40px;
  transform: rotate(45deg);
}

/* ========================
  セクション・フォーム共通
======================== */
section {
  padding: 1.5rem;
  max-width: 768px;
  margin: 16px auto 0;
}

form section:nth-of-type(odd) {
  background-color: var(--second-accent-color);
}

.container {
  max-width: 768px !important;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.title {
  font-size: 24px;
  font-weight: bold;
  color: black;
  padding: 8px 12px;
  border-left: 2px solid black;
}

.section-title {
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: bolder;
  display: flex;
  align-items: center;
  gap: 8px;
}

.label-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 必須マーク */
.required {
  background-color: var(--annotation-color);
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 4px;
  border-radius: 2px;
  margin-bottom: 3px;
}

/* ========================
  カレンダー・時間入力
======================== */
#reservation_date,
#reservation_time {
  height: 40px;
  padding: 0.5rem 0.3rem;
  border: 1px solid black;
  border-radius: 4px;
}

#reservation_time:disabled {
  background-color: #f0f0f0;
  color: #888;
}

/* カレンダーマークを入力欄全体に拡張 */
input[type='date']::-webkit-calendar-picker-indicator {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
}

input[type='date']::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

input[type='date']::-webkit-clear-button {
  -webkit-appearance: none;
}

input[type='date'] {
  position: relative;
}

/* ========================
  チェックボックス
======================== */
.checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.checkbox-item input[type='checkbox'] {
  margin-top: 2px;
}

.checkbox-item span {
  line-height: 1.2;
}

/* ========================
  入力欄（容量）
======================== */
.capacity-input-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.capacity-input-container input {
  flex: 1;
}

.capacity-label {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ========================
  予約ボタン周り
======================== */

.confirm-text {
  margin-bottom: 8px;
}

.confirm-text a {
  color: var(--accent-color);
}

/* ========================
  予約確認ページ
======================== */
.device-info,
.personal-info {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
}

.device-info-label,
.personal-info-label {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  color: black;
  padding: 6px 4px;
  background-color: #f5f5f5;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 12px;
}

.device-info-value,
.personal-info-value {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  text-align: left;
  padding: 6px 0;
  font-size: 12px;
}

.is-bordered {
  border-bottom: 1px solid #303030;
}

/* ========================
  予約完了ページ
======================== */
.thank-you-section {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 60vh;
}

.thank-you-container {
  padding: 32px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 600px;
}

.thank-you-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.thank-you-message {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.annotation {
  color: var(--annotation-color);
}

/* ========================
  フッター
======================== */
.footer {
  margin-top: auto;
  background-color: var(--third-accent-color);
  text-align: center;
  padding: 32px 0;
}

.footer-link-container {
  display: flex;
  gap: 16px;
  margin: 0 auto 24px;
  width: fit-content;
}

.footer-terms a,
.footer-contact a,
.footer-company-name a,
.footer-copyright {
  font-size: 12px;
  font-weight: bold;
  margin-top: 12px;
}

.footer-terms a,
.footer-contact a,
.footer-company-name a {
  color: var(--accent-color);
}

/* ========================
  Recruitページ
======================== */

.recruit-head {
  display: block;
  width: 100%;
  padding: 0;
  position: fixed;
  left: 0;
  top: 0;
  background: #fff;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  z-index: 9999;
}

.recruit-head-inner {
  max-width: 768px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 0 1rem;
}

.recruit-button {
  height: 60px;
  width: 200px;
  background: linear-gradient(to right, rgba(234, 96, 140, 0.80) 0%, #EA608B 50%, #EA608B 100%);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  font-size: 16px;
  transition: opacity 0.3s ease;
}

.recruit-button:hover {
  opacity: 0.8;
}

.recruit_main {
  font-family: 'Noto Sans', sans-serif;
  width: 100%;
  margin-top: 60px;
}

.recruit-title {
  font-weight: bold;
  text-align: left;
  font-size: 24px;
}

.recruit-subtitle {
  margin: 14px 0;
  text-align: left;
  font-size: 20px
}

.recruit-details-list {
  max-width: 70%;
  margin-top: 16px;
  list-style-type: '■';
  list-style-position: inside;
  border: 1px solid #b8b2b2;
  padding-top: 4px;
  padding-left: 8px;
  padding-bottom: 4px;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .recruit-details-list {
    max-width: 100%;
  }
}

.recruit-info-title {
  font-weight: bold;
  margin-top: 20px;
  border-left: 7px solid black;
  padding-left: 4px;
  font-size: 20px;
}

.recruit-info-details {
  margin-top: 8px;
  padding-left: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.recruit-info-details p {
  margin-left: 16px;
}

.recruit-info-details-list {
  list-style: disc;
  margin-left: 24px;
}

.accordion {
  padding-top: 20px;
}

#cb {
  display: none;
}

.more_btn {
  display: block;
  margin: 0 auto;
  padding: 8px 16px;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  width: 140px;
  font-weight: bold;
  border: 0.5px solid #666666;
  color: #666666;
}

#cb~.more_btn::after {
  content: "▼";
  margin-left: 8px;
}

#cb:checked~.more_btn {
  display: none;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
}

#cb:checked~.accordion-content {
  max-height: 800px;
  transition: max-height 1s ease;
  font-size: 14px;
  line-height: 1.6;
}

.accordion-content>p {
  margin-left: 16px;
}

.accordion-content>b:not(:first-of-type) {
  display: block;
  margin-top: 20px;
}


.accordion-content ul {
  margin-left: 24px;
}

.button-margin {
  margin: 80px auto 40px;
}

.recruit_footer {
  position: sticky;
  top: 100vh;
  padding: 2rem 0;
  background-color: #0f172a;
  font-size: 0.875rem;
  line-height: 1.5rem;
}

.recruit_footer-container {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1rem;
}

.recruit_footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.logo-section {
  flex: 0.4;
}

.recruit_footer-section {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 2rem;
}

.recruit_footer-section.pages-links a {
  text-decoration: underline;
  color: white;
}

.company-logo {
  height: 24px;
  width: auto;
}

.recruit_footer-copy {
  margin-top: 1rem;
  padding: 1rem 0;
  text-align: center;
  color: white;
  border: none;
}

.recruit_footer-mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
}

.mobile-logo img {
  width: 270px;
  height: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .recruit_footer-content {
    display: none;
  }

  .recruit_footer-mobile {
    display: flex;
  }

  .recruit_footer-section {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 12px;
  }
}