@charset "UTF-8";


/* ========================================
   子ども食堂チューリップ
   予約フォーム CSS 完成版
======================================== */

/* 基本設定 */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #332d29;
  background: #fffdfb;
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select {
  -webkit-appearance: none;
  appearance: none;
}

/* ========================================
   共通コンテナ
======================================== */

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

/* ========================================
   ヘッダー
======================================== */

header {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: #fffaf7;
  border-bottom: 1px solid #f2e8df;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/* ロゴ */
.logo {
  flex-shrink: 0;
}

.logo h1 {
  margin: 0;
  color: #f36b21;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.logo p {
  margin: 3px 0 0;
  color: #898079;
  font-size: 12px;
  line-height: 1.5;
}

/* PCナビゲーション */
#globalNav {
  margin-left: auto;
}

#globalNav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#globalNav li {
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

#globalNav a {
  display: inline-block;
  padding: 10px 0;
  color: #332d29;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

#globalNav a:hover {
  color: #f36b21;
}

#globalNav a.btn:hover,
#globalNav a.btn-game:hover {
  color: #fff;
  background: #df5e13;
  transform: translateY(-1px);
}

/* ========================================
   MENUボタン
   PCでは非表示
======================================== */

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 12px;
  color: #332d29;
  background: #fff;
  border: 1px solid #f0d8c8;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.menu-icon {
  display: flex;
  width: 22px;
  flex-direction: column;
  gap: 5px;
}

.menu-icon span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f36b21;
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* MENUを×マークに変更 */
.menu-btn[aria-expanded="true"]
.menu-icon span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded="true"]
.menu-icon span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"]
.menu-icon span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   予約フォーム全体
======================================== */

main {
  min-height: 70vh;
  padding: 55px 20px 80px;
  background:
    linear-gradient(
      180deg,
      #fff4e3 0,
      #fffaf4 260px,
      #fffdfb 520px
    );
}

.reservation {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 42px 48px;
  background: #fff;
  border: 1px solid #f5eee8;
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(100, 65, 35, 0.07);
}

/* ========================================
   セクションタイトル
======================================== */

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  text-align: center;
}

.section-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #f47721;
  background: #fff0e3;
  border-radius: 10px;
  font-size: 19px;
}

.section-title h2 {
  margin: 0;
  color: #332d29;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* 説明文 */
.description {
  margin: 0 0 32px;
  color: #777069;
  font-size: 16px;
  line-height: 2;
  text-align: center;
}

/* ========================================
   フォーム項目
======================================== */

form {
  width: 100%;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 23px;
}

.form-row > label {
  display: block;
  color: #403832;
  font-size: 14px;
  font-weight: 700;
}

.form-row label span {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  color: #fff;
  background: #ed795d;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  vertical-align: middle;
}

/* 入力欄 */
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="number"],
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: #332d29;
  background: #fffdfa;
  border: 1px solid #e8ded5;
  border-radius: 9px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

/* プレースホルダー */
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #b5aca4;
}

/* 入力時 */
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  background: #fff;
  border-color: #f39a59;
  box-shadow: 0 0 0 3px rgba(243, 154, 89, 0.15);
}

/* セレクトボックスの矢印 */
.form-row select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f47721' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

/* 予約日 */
#date {
  display: block;
  padding: 12px 14px;
  color: #594536;
  background: #fff4e7;
  border: 1px solid #f5e5d5;
  border-radius: 9px;
  font-weight: 600;
}

/* 数字入力 */
.number-input {
  display: flex;
  align-items: center;
  gap: 12px;
}

.number-input input[type="number"] {
  width: 150px;
  max-width: 100%;
}

.number-input > span {
  color: #665c53;
  font-size: 14px;
}

/* 数値入力のスピンボタンを表示 */
.number-input input[type="number"] {
  -webkit-appearance: auto;
  appearance: auto;
}

/* 連絡事項 */
.form-row textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.8;
}

/* ========================================
   注意書き
======================================== */

.notice {
  margin: 8px 0 20px;
  padding: 13px 15px;
  color: #806b57;
  background: #fff7eb;
  border-left: 3px solid #f3a35c;
  border-radius: 5px;
  font-size: 16px;
}

/* ========================================
   予約ボタン
======================================== */

form button[type="submit"] {
  display: block;
  width: 100%;
  min-height: 54px;
  margin: 25px auto 0;
  padding: 14px 20px;
  color: #fff;
  background: linear-gradient(135deg, #f47721, #f59e0b);
  border: none;
  border-radius: 30px;
  box-shadow: 0 5px 12px rgba(244, 119, 33, 0.2);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(244, 119, 33, 0.27);
}

form button[type="submit"]:active {
  transform: translateY(0);
}

/* ========================================
   フッター
======================================== */

footer {
  padding: 28px 20px;
  color: #333333;
  background: #f4e4d7;
  text-align: center;
}

footer .host {
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.8;
}

/* ========================================
   タブレット・スマートフォン
======================================== */

@media (max-width: 768px) {
  .container {
    width: calc(100% - 32px);
  }

  /* ヘッダー */
  .header-inner {
    min-height: 70px;
    flex-wrap: wrap;
    gap: 0;
    padding: 10px 0;
  }

  .logo h1 {
    font-size: 19px;
  }

  .logo p {
    font-size: 11px;
  }

  /* MENUボタンを表示 */
  .menu-btn {
    display: inline-flex;
    margin-left: auto;
    flex-shrink: 0;
  }

  /* ナビゲーションを閉じる */
  #globalNav {
    display: none;
    width: 100%;
    margin: 12px 0 0;
    border-top: 1px solid #f0e4dc;
  }

  /* JavaScriptでopenが付いたら開く */
  #globalNav.open {
    display: block;
  }

  #globalNav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }

  #globalNav li {
    width: 100%;
    white-space: normal;
  }

  #globalNav a {
    display: block;
    padding: 13px 10px;
    border-bottom: 1px solid #f5ece6;
    font-size: 14px;
  }

  #globalNav a.btn,
  #globalNav a.btn-game {
    margin: 10px 0;
    padding: 12px 16px;
    border-bottom: none;
    text-align: center;
  }

  /* メイン */
  main {
    padding: 30px 14px 50px;
  }

  .reservation {
    padding: 30px 24px;
    border-radius: 17px;
  }

  .section-title h2 {
    font-size: 23px;
  }

  .description {
    margin-bottom: 26px;
    font-size: 12px;
    text-align: left;
  }

  .form-row {
    gap: 7px;
    margin-bottom: 20px;
  }

  .form-row > label {
    font-size: 13px;
  }

  .form-row input[type="text"],
  .form-row input[type="email"],
  .form-row input[type="tel"],
  .form-row input[type="number"],
  .form-row select,
  .form-row textarea {
    font-size: 16px;
  }

  .number-input input[type="number"] {
    width: 130px;
  }

  footer {
    padding: 23px 15px;
  }

  footer .host {
    font-size: 11px;
  }
}

/* ========================================
   小型スマートフォン
======================================== */

@media (max-width: 380px) {
  .container {
    width: calc(100% - 24px);
  }

  .logo h1 {
    font-size: 16px;
  }

  .logo p {
    font-size: 10px;
  }

  .menu-btn {
    gap: 6px;
    padding: 9px;
    font-size: 11px;
  }

  .menu-icon,
  .menu-icon span {
    width: 19px;
  }

  .reservation {
    padding: 25px 17px;
  }

  .section-title h2 {
    font-size: 20px;
  }

  main {
    padding-right: 10px;
    padding-left: 10px;
  }
}
