/* =========================================================
   LiFE UP smile — SP 500px 固定 / PC 背景あり
   Figmaデザイン準拠
   ========================================================= */

:root {
  --color-orange: #f08337;
  --color-orange-dark: #e47225;
  --color-cream: #fff5e6;
  --color-text: #3c2a21;
  --color-green: #dbe9ae;
  --color-white: #ffffff;
  --font-mincho: "Zen Old Mincho", "游明朝", "Yu Mincho", serif;
  --font-gothic: "Zen Kaku Gothic Antique", "游ゴシック", "Yu Gothic", sans-serif;
  --sp-width: 500px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-mincho);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--color-cream);
  min-height: 100vh;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }

/* ========== レイアウト（SPはflex column / PCはサイドバー+コンテンツ） ========== */
.layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1 1 auto;
}

/* ========== サイドバー（PC専用） ========== */
.sidebar { display: none; }

/* ========== SP固定幅ステージ ========== */
.stage {
  width: var(--sp-width);
  max-width: 100%;
  background: var(--color-cream);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  /* iOS Safariでoverflow:hidden + flex子要素が描画されない問題を回避 */
  overflow-x: clip;
  flex: 0 0 auto;
  /* GPUレイヤーでフォースペイント（iOS Safariの初回描画バグ対策） */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

@media (min-width: 768px) {
  body {
    /* PC: 左右に装飾的な背景グラデーション */
    background:
      radial-gradient(ellipse at 20% 20%, rgba(247, 190, 106, 0.18) 0%, transparent 40%),
      radial-gradient(ellipse at 80% 70%, rgba(219, 233, 174, 0.35) 0%, transparent 45%),
      var(--color-cream);
    background-attachment: fixed;
  }

  /* PC: サイドバー + コンテンツの2カラム */
  .layout {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 40px 40px;
  }

  .content {
    flex: 0 0 var(--sp-width);
    width: var(--sp-width);
    align-items: stretch;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    flex: 0 0 360px;
    padding: 40px 24px 24px;
    gap: 40px;
    position: sticky;
    top: 40px;
    align-self: flex-start;
  }
  .sidebar__logo {
    display: block;
    text-decoration: none;
    line-height: 0;
  }
  .sidebar__logo-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
  }
  .sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-left: 4px;
  }
  .sidebar__link {
    font-family: var(--font-mincho);
    font-weight: 500;
    font-size: 22px;
    color: var(--color-orange);
    text-decoration: none;
    letter-spacing: 0.03em;
    line-height: 1.4;
    transition: opacity .2s ease;
  }
  .sidebar__link:hover {
    opacity: 0.7;
  }

  .stage {
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.15);
    flex: 0 0 auto;
    width: 100%;
  }

  .site-footer {
    width: 100%;
  }

  /* PCではSPヘッダー・ドロワー・メニューボタンを非表示 */
  .site-header,
  .drawer {
    display: none !important;
  }
}

/* ========== 共通ヘッダー (orange bar) ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: var(--sp-width);
  max-width: 100%;
  flex: 0 0 auto;
  background: var(--color-orange);
  color: var(--color-white);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px 0 20px;
}

.site-header__logo {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 24px;
  color: var(--color-white);
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
}

.site-header__menu-btn {
  background: none;
  border: none;
  width: 40px;
  height: 30px;
  position: relative;
  cursor: pointer;
  padding: 0;
}
.site-header__menu-btn span {
  display: block;
  position: absolute;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, top .3s ease;
}
.site-header__menu-btn span:nth-child(1) { top: 0; }
.site-header__menu-btn span:nth-child(2) { top: 14px; }
.site-header__menu-btn span:nth-child(3) { top: 28px; }

.site-header__menu-btn[aria-expanded="true"] span:nth-child(1) {
  top: 14px;
  transform: rotate(45deg);
}
.site-header__menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.site-header__menu-btn[aria-expanded="true"] span:nth-child(3) {
  top: 14px;
  transform: rotate(-45deg);
}

/* ========== ドロワーメニュー ========== */
.drawer {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--sp-width);
  max-width: 100%;
  height: 100vh;
  background: var(--color-orange);
  z-index: 99;
  padding: 100px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 31px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.drawer[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.drawer__link {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 24px;
  color: var(--color-white);
  text-decoration: none;
  padding: 8px 16px;
  line-height: 1.66;
}

/* ========== 画像スタックセクション (画像コーディング) ========== */
.img-section {
  display: block;
  width: 100%;
  margin: 0;
}
.img-section img {
  display: block;
  width: 100%;
  height: auto;
}

/* HOME: sections chained together */
.home-sections { background: var(--color-cream); }

/* CTA ボタン配置 (オーバーレイ) */
.cta-overlay {
  position: relative;
}
.cta-overlay__link {
  position: absolute;
  display: block;
  top: 0; left: 0; right: 0; bottom: 0;
  /* Transparent clickable area over a portion of image */
  text-indent: -9999px;
  overflow: hidden;
}

/* ========== フォームページ共通 ========== */
.page-title {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 32px;
  color: var(--color-text);
  text-align: center;
  margin: 50px 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.page-title::before,
.page-title::after {
  content: "";
  flex: 0 0 60px;
  height: 1px;
  border-top: 1px dashed var(--color-text);
  position: relative;
}
.page-title::before::after, .page-title::after::before {
  content: "•";
}

.page-title__wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.page-title__line {
  flex: 0 0 60px;
  height: 1px;
  background: var(--color-text);
  position: relative;
}
.page-title__line::before,
.page-title__line::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-text);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.page-title__line--left::before { left: 0; }
.page-title__line--right::after { right: 0; }

/* ========== フォームページタイトル (装飾付き) ========== */
.page-title-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 50px 0 30px;
  padding: 0 20px;
}
.page-title-block .page-title__text {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 28px;
  color: var(--color-text);
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex: 0 0 auto;
}
.page-title-block .page-title__line {
  flex: 0 0 40px;
  height: 1px;
  background: var(--color-text);
  position: relative;
}
.page-title-block .page-title__line::before,
.page-title-block .page-title__line::after {
  content: "";
  position: absolute;
  width: 4px; height: 4px;
  background: var(--color-text);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.page-title-block .page-title__line--left::before { left: -2px; }
.page-title-block .page-title__line--left::after { right: -2px; }
.page-title-block .page-title__line--right::before { left: -2px; }
.page-title-block .page-title__line--right::after { right: -2px; }

/* ========== フォームページの指示リスト ========== */
.flow-list {
  padding: 20px 30px 50px;
  list-style: none;
  margin: 0;
  counter-reset: flow;
}
.flow-list__item {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  font-family: var(--font-gothic);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
}
.flow-list__item::before {
  counter-increment: flow;
  content: counter(flow);
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-orange);
  color: var(--color-white);
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ========== フォーム (CF7) ========== */
.form-panel {
  background: var(--color-white);
  border-radius: 20px;
  padding: 40px 30px;
  margin: 0 20px 50px;
  box-shadow: 0 5px 20px rgba(173, 152, 122, 0.2);
}
.form-panel__title {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 28px;
  color: var(--color-text);
  text-align: center;
  margin: 0 0 30px;
  letter-spacing: 0.05em;
}

.cf7-field {
  margin-bottom: 20px;
}
.cf7-field__label {
  display: block;
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 8px;
}
.cf7-field__required {
  color: var(--color-orange);
  margin-left: 2px;
}
.cf7-field input[type="text"],
.cf7-field input[type="email"],
.cf7-field input[type="tel"],
.cf7-field input[type="date"],
.cf7-field input[type="url"],
.cf7-field textarea,
.cf7-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e0d3bf;
  border-radius: 6px;
  background: #fefaf4;
  font-family: var(--font-gothic);
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.4;
  transition: border-color .2s ease;
}
.cf7-field input:focus,
.cf7-field textarea:focus,
.cf7-field select:focus {
  outline: none;
  border-color: var(--color-orange);
  background: var(--color-white);
}
.cf7-field input::placeholder,
.cf7-field textarea::placeholder {
  color: #b8a48a;
}
.cf7-field textarea {
  min-height: 100px;
  resize: vertical;
}
.cf7-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'><path fill='%233c2a21' d='M6 7 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.cf7-submit {
  text-align: center;
  margin-top: 30px;
}
.cf7-submit input[type="submit"],
.cf7-submit button {
  background: var(--color-orange);
  color: var(--color-white);
  border: none;
  padding: 14px 60px;
  border-radius: 6px;
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color .2s ease;
  width: 100%;
  max-width: 280px;
}
.cf7-submit input[type="submit"]:hover,
.cf7-submit button:hover {
  background: var(--color-orange-dark);
}

.wpcf7-not-valid-tip {
  color: #d33;
  font-size: 13px;
  margin-top: 4px;
  display: block;
}
.wpcf7 form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
}

/* ========== 共通フッター ========== */
.site-footer {
  background: var(--color-orange);
  color: var(--color-white);
  padding: 20px 0 20px;
  text-align: center;
  width: var(--sp-width);
  max-width: 100%;
  flex: 0 0 auto;
}
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-gothic);
  font-size: 14px;
}
.site-footer__link {
  color: var(--color-white);
  text-decoration: underline;
  font-weight: 400;
}
.site-footer__copy {
  font-family: var(--font-gothic);
  font-size: 14px;
  color: var(--color-white);
}

/* ========== プライバシーポリシー (image) ========== */
.privacy-page .img-section { background: var(--color-cream); }

/* ========== Thanks ========== */
.thanks-page {
  padding: 80px 30px;
  text-align: center;
}
.thanks-page h1 {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 32px;
  color: var(--color-text);
  margin: 0 0 20px;
}
.thanks-page p {
  font-family: var(--font-gothic);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  margin: 0 0 30px;
}
.thanks-page__back {
  display: inline-block;
  background: var(--color-orange);
  color: var(--color-white);
  padding: 12px 40px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

/* ========== 送信前確認モーダル ========== */
.cf7-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cf7-confirm-modal[aria-hidden="true"] { display: none; }
.cf7-confirm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(60, 42, 33, 0.55);
}
.cf7-confirm-modal__panel {
  position: relative;
  background: var(--color-white);
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.cf7-confirm-modal__title {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-text);
  margin: 0 0 12px;
  text-align: center;
}
.cf7-confirm-modal__lead {
  font-family: var(--font-gothic);
  font-size: 13px;
  color: var(--color-text);
  margin: 0 0 20px;
  text-align: center;
  line-height: 1.6;
}
.cf7-confirm-modal__list {
  margin: 0 0 24px;
  padding: 0;
  font-family: var(--font-gothic);
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.6;
}
.cf7-confirm-modal__list dt {
  font-weight: 700;
  margin-top: 12px;
  color: var(--color-orange-dark);
}
.cf7-confirm-modal__list dt:first-child { margin-top: 0; }
.cf7-confirm-modal__list dd {
  margin: 4px 0 0;
  padding: 6px 10px;
  background: #fefaf4;
  border-radius: 4px;
  white-space: pre-wrap;
  word-break: break-word;
}
.cf7-confirm-modal__btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cf7-confirm-modal__back,
.cf7-confirm-modal__submit {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: none;
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.cf7-confirm-modal__submit {
  background: var(--color-orange);
  color: var(--color-white);
}
.cf7-confirm-modal__submit:hover {
  background: var(--color-orange-dark);
}
.cf7-confirm-modal__back {
  background: #efe5d7;
  color: var(--color-text);
}
.cf7-confirm-modal__back:hover {
  background: #e2d5c1;
}

/* ========== Utility ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
