/* ========================
  共通スタイル
======================== */
: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);
}
