body {
  font-family: "Yu Gothic", sans-serif;

  background-color: #f3faef;

  background-image:
    url("hanabusa-bg.png");

  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;

  min-height: 100vh;

  text-align: center;

  margin: 0;
  padding-top: 60px;
}

@media (max-width: 600px) {

  body {
    background-size: auto 100%;
    background-position: center top;
    background-attachment: scroll;
  }

}

h1 {
    color: #2e7d32;
    font-size: 42px;
}

h2 {
    color: #444;
    margin-bottom: 40px;
}

button {
    width: 300px;
    height: 60px;
    font-size: 22px;
    margin: 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
}

button:hover {
    background-color: #388E3C;
}
input {
    width: 320px;
    height: 45px;
    font-size: 18px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    padding-left: 10px;
}

p {
    font-weight: bold;
    margin-bottom: 8px;
}
textarea,
select {
    width: 320px;
    font-size: 18px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    padding: 10px;
}

textarea {
    height: 100px;
    resize: vertical;
}
.box{

width:400px;

margin:auto;

padding:25px;

background:white;

border-radius:15px;

box-shadow:0 0 10px rgba(0,0,0,0.15);

text-align:left;

}
/* ==============================
   時間一覧
============================== */

#timeList {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;

  width: 90%;
  max-width: 520px;

  margin: 20px auto 0;
}


/* ==============================
   時間ボタン
============================== */

.time-button {
  width: 100%;

  padding: 16px 8px;
  margin: 0;

  font-size: 18px;
  font-weight: bold;

  border-radius: 10px;
  border: 2px solid #ccc;

  background: rgba(255, 255, 255, 0.95);
  color: #333;

  cursor: pointer;
}

/* ==============================
   予約可能 ○
============================== */

.time-button.available {
  border-color: #4caf50;
  background: rgba(255, 255, 255, 0.95);
  color: #2e7d32;
}

.time-button.available .status {
  color: #2e7d32;
}


/* ==============================
   予約不可 ×
============================== */

.time-button:disabled {
  border-color: #e57373;
  background: rgba(255, 255, 255, 0.90);
  color: #c62828;

  cursor: not-allowed;
  opacity: 1;
}

.time-button:disabled .status {
  color: #c62828;
}


/* ○・× */
.time-button .status {
  display: inline-block;
  margin-right: 8px;

  font-size: 20px;
  font-weight: bold;
}


/* 時刻 */
.time-button .time {
  font-size: 18px;
  font-weight: bold;
}

/* ==============================
   日付・前日・翌日
============================== */

.date-navigation {
  width: 90%;
  max-width: 520px;

  margin: 20px auto 10px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  gap: 10px;
}


#selectedDate {
  font-size: 20px;
  font-weight: bold;
  text-align: center;

  white-space: nowrap;
}


.date-nav-button {
  width: auto;

  padding: 8px 10px;
  margin: 0;

  border: none;
  background: transparent;

  color: #2e7d32;

  font-size: 16px;
  font-weight: bold;

  cursor: pointer;
}


#prevDayButton {
  justify-self: start;
}


#nextDayButton {
  justify-self: end;
}

/* 満席 */

/* 空きあり */
.day.available {
    background: white;
    color: black;
    border: 2px solid #4CAF50;
}

/* 残りわずか */
.day.limited {
    background: white;
    color: black;
    border: 2px solid #FF9800;
}

/* 満席 */
.day.full {
    background: white;
    color: black;
    border: 2px solid #F44336;
    cursor: default;
}

/* 日付の数字は常に黒 */
.day .date {
    color: black;
}

/* ○△×だけ色を変える */
.day.available .status {
    color: #4CAF50;
}

.day.limited .status {
    color: #FF9800;
}

.day.full .status {
    color: #F44336;
}

/* 選択中 */

.selected{

    background:#FF9800;

    color:white;

}
.status{

    font-size:28px;

    margin-right:10px;

}

.time{

    font-size:22px;

    font-weight:bold;

}
.step{

text-align:center;

color:#777;

margin-bottom:20px;

font-size:15px;

}

#calendarHeader{

text-align:center;

font-size:22px;

font-weight:bold;

margin:20px;

}

#calendar{

display:grid;

grid-template-columns:repeat(7,1fr);

gap:8px;

margin:20px;

}

.day{

background:white;

border-radius:12px;

border:1px solid #ddd;

padding:12px 0;

text-align:center;

min-height:70px;

cursor:pointer;

transition:.2s;

font-size:18px;

}

.day:hover{

background:#edf8ee;

transform:scale(1.05);

}

#weekHeader{

display:grid;

grid-template-columns:repeat(7,1fr);

margin:0 20px;

text-align:center;

font-weight:bold;

font-size:17px;

margin-bottom:8px;

}

#weekHeader div:first-child{

color:#d33;

}

#weekHeader div:last-child{

color:#2b65d9;

}
.day .date{

font-size:18px;

font-weight:bold;

margin-bottom:6px;

}

.day .status{

font-size:22px;

display:block;

margin-top:6px;

}
/* 花房薬局カレンダー */

#calendarHeader {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    margin: 20px 0 10px;
}

#weekHeader {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 5px;
    text-align: center;
    font-weight: bold;
}

#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day,
.empty {
    min-height: 65px;
}

.day {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px 2px;
    text-align: center;
    cursor: pointer;
}

.day .date {
    font-size: 17px;
    margin-bottom: 5px;
}

.day .status {
    font-size: 18px;
}
/* =========================
   予約ステップ表示
========================= */

.reservation-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 25px;
    padding: 0 10px;
    box-sizing: border-box;
}

.reservation-step {
    display: flex;
    align-items: center;
    flex: 1;
    color: #aaa;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.reservation-step:last-child {
    flex: 0 auto;
}

.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eee;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
}

.step-label {
    margin-left: 6px;
}

.step-line {
    flex: 1;
    height: 1px;
    background: #ddd;
    margin: 0 8px;
}

/* 現在のステップ */
.reservation-step.active {
    color: #4F8A5B;
    font-weight: bold;
}

.reservation-step.active .step-circle {
    background: #4F8A5B;
    color: white;
}

/* 完了したステップ */
.reservation-step.completed {
    color: #4F8A5B;
}

.reservation-step.completed .step-circle {
    background: #4F8A5B;
    color: white;
}

.reservation-step.completed .step-line {
    background: #4F8A5B;
}


/* スマートフォン */
@media (max-width: 600px) {

    .reservation-steps {
        padding: 0 5px;
        margin-bottom: 20px;
    }

    .reservation-step {
        font-size: 10px;
    }

    .step-circle {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .step-label {
        margin-left: 3px;
    }

    .step-line {
        margin: 0 4px;
    }

    .calendar-navigation {
    padding: 0 5px;
    gap: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#calendarHeader {
    font-size: 22px;
    white-space: nowrap;
    flex-shrink: 1;
}

.month-prev,
.month-next {
    font-size: 14px;
    padding: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

    #calendarHeader {
        font-size: 22px;
    }

    .month-prev,
.month-next {
    font-size: 14px;
    padding: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}
}
/* =========================
   カレンダー月移動
========================= */

.calendar-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 45px;
    max-width: 720px;
    margin: 20px auto;
    padding: 0 10px;
}

#calendarHeader {
    font-size: 26px;
    font-weight: bold;
    color: #222;
    text-align: center;
}

.month-prev,
.month-next {
    color: #4F8A5B;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 8px;
    transition: 0.2s;
}

.month-prev:hover,
.month-next:hover {
    background: #E8F3EA;
    color: #367544;
}

.month-prev:active,
.month-next:active {
    background: #D4E8D8;
}
.required {
    color: #e53935;
    font-size: 14px;
    font-weight: bold;
    margin-left: 6px;
}
/* 予約キャンセルリンク */

.cancel-link {
    color: #222;
    text-decoration: none;
    font-size: 16px;
}

.cancel-link:hover {
    text-decoration: underline;
}

/* 予約キャンセルリンク */
.cancel-link {
    color: #222;
    text-decoration: none;
    font-size: 16px;
}

.cancel-link:hover {
    text-decoration: underline;
}

/* ==============================
   前日・翌日ボタン
============================== */

.date-nav-button {
  width: auto;
  min-width: 0;

  padding: 8px 12px;
  margin: 0;

  border: none;
  border-radius: 0;

  background: transparent;

  color: #2e7d32;

  font-size: 17px;
  font-weight: bold;

  cursor: pointer;
  box-shadow: none;
}


/* マウスを乗せたとき */
.date-nav-button:hover {
  background: transparent;
  color: #1b5e20;
  box-shadow: none;
  transform: none;
}


/* 押したとき */
.date-nav-button:active {
  background: transparent;
  box-shadow: none;
  transform: none;
}


/* 使用できない前日ボタン */
.date-nav-button:disabled {
  background: transparent;
  border: none;

  color: #aaa;

  opacity: 0.4;
  cursor: default;

  box-shadow: none;
}


/* 使用不可ボタンにマウスを乗せても変化させない */
.date-nav-button:disabled:hover {
  background: transparent;
  color: #aaa;
  box-shadow: none;
  transform: none;
}

.name-row {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  box-sizing: border-box;
}

.name-row input {
  width: 50%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .name-row {
    width: calc(100% - 24px);
    gap: 8px;
  }

  .name-row input {
    width: calc(50% - 4px);
    min-width: 0;
  }
}

/* ==========================================
   相談方法・再相談の選択ボタン
   白背景＋緑枠＋緑文字
========================================== */

/* トップの相談方法 */
#consultationMenus button {

  background: #ffffff !important;
  color: #2e8b3c !important;

  border: 2px solid #35a844 !important;
  border-radius: 14px !important;

  box-shadow: none !important;

  font-weight: 600 !important;

}


/* 再相談の45分・30分だけ */
.repeat-buttons button:not(:last-child) {

  background: #ffffff !important;
  color: #2e8b3c !important;

  border: 2px solid #35a844 !important;
  border-radius: 14px !important;

  box-shadow: none !important;

  font-weight: 600 !important;

}


/* マウスを乗せた時 */
#consultationMenus button:hover,
.repeat-buttons button:not(:last-child):hover {

  background: #f3faef !important;
  color: #247a32 !important;

}