/* ============================================
   SAIRAI - 宿泊業向けリピート支援サービス
   sairai.me TOPページ stylesheet
   Theme: 和の温もり (Japanese ryokan warmth)
   ============================================ */

/* ===== Color Variables ===== */
:root {
  --c-bg: #FAF7F2;          /* メイン背景：クリーム */
  --c-bg-alt: #F2E7D8;      /* 交互背景：暖ベージュ */
  --c-bg-deep: #182433;     /* 濃紺（ダークセクション） */
  --c-text: #182433;        /* 本文 */
  --c-heading: #1E1E73;     /* 見出し：藍 */
  --c-accent: #A68B5A;      /* アクセント：金茶 */
  --c-cta: #1E1E73;         /* CTA */
  --c-cta-hover: #FF7F55;   /* CTAホバー */
  --c-border: #E5DBC8;      /* 罫線：薄ベージュ */
  --c-muted: #6e7480;       /* 控えめテキスト */
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Mincho ProN", "Yu Mincho", "游明朝", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-heading); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--c-cta-hover); }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.4; font-weight: 700; letter-spacing: 0.04em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.5em; margin: 0 0 1em; }

/* ===== Layout ===== */
.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; position: relative; }
section.bg-alt { background: var(--c-bg-alt); }

/* ===== Buttons (CTA - rounded pill) ===== */
.btn-cta {
  display: inline-block;
  padding: 18px 44px;
  background: var(--c-cta);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 14px rgba(30, 30, 115, 0.25);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}
.btn-cta:hover {
  background: var(--c-cta-hover);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 127, 85, 0.35);
}
.btn-cta-small {
  padding: 11px 26px;
  font-size: 14px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FAF7F2;
  border-bottom: 1px solid var(--c-border);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: 1280px;
  margin: 0 auto;
}
.site-header-logo img { height: 42px; width: auto; }
.site-header-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 120;
}
.site-header-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-heading);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.site-header-nav { display: flex; align-items: center; gap: 28px; }
.site-header-nav a {
  color: var(--c-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  position: relative;
}
.site-header-nav a:not(.btn-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--c-accent);
  transition: width 0.25s;
}
.site-header-nav a:not(.btn-cta):hover::after { width: 100%; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 80px 24px 180px;
  overflow: hidden;
  background: #182433;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(24, 36, 51, 0.10), rgba(24, 36, 51, 0.32)),
              url('../images/top/hero-ryokan.webp') center/cover no-repeat;
  filter: brightness(1.18) saturate(1.15) contrast(1.04);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 130px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 130' preserveAspectRatio='none'><path d='M0,80 C360,0 1080,160 1440,40 L1440,130 L0,130 Z' fill='%23FAF7F2'/></svg>") center bottom / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 2;
}
.hero-inner { max-width: 900px; }
.hero-eyebrow {
  font-size: 17px;
  margin-bottom: 24px;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero h1 {
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 700;
  margin: 0 0 32px;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.hero-tag {
  font-size: 20px;
  margin-bottom: 44px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  letter-spacing: 0.05em;
}
.hero .btn-cta {
  background: #fff;
  color: var(--c-heading) !important;
  font-size: 18px;
  padding: 20px 50px;
}
.hero .btn-cta:hover {
  background: var(--c-cta-hover);
  color: #fff !important;
}

/* ===== Section Heading ===== */
.section-heading {
  text-align: center;
  margin-bottom: 64px;
}
.section-heading h2 {
  font-size: clamp(32px, 4.8vw, 52px);
  color: var(--c-heading);
  margin-bottom: 20px;
  display: inline-block;
}
.section-heading hr {
  width: 56px;
  border: none;
  border-top: 2px solid var(--c-accent);
  margin: 0 auto;
}

/* ===== Body text ===== */
section p { font-size: 16px; line-height: 2; }
.center-text { text-align: center; }

/* ===== Highlight box (5倍の費用) ===== */
.highlight-box {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  margin: 48px 0 0;
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  box-shadow: 0 2px 10px rgba(166,139,90,0.06);
}
.highlight-box h3 {
  font-size: 28px;
  color: var(--c-heading);
  margin-bottom: 20px;
  letter-spacing: 0.08em;
}
.highlight-box p { font-size: 16px; }
.highlight-box .source {
  font-size: 12px;
  color: var(--c-muted);
  margin-top: 20px;
  letter-spacing: 0.02em;
}

/* ===== Two-col cards ===== */
.two-col-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.two-col-cards .card {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  box-shadow: 0 2px 10px rgba(166,139,90,0.04);
}
.two-col-cards .card h3 {
  font-size: 24px;
  color: var(--c-heading);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
}

/* ===== Service items ===== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 56px;
}
.service-item {
  text-align: center;
  padding: 48px 32px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  box-shadow: 0 4px 16px rgba(166,139,90,0.06);
  transition: transform 0.3s;
}
.service-item:hover { transform: translateY(-4px); }
.service-item img {
  width: 90px;
  height: 90px;
  margin: 0 auto 24px;
  object-fit: contain;
}
.service-item-label {
  color: var(--c-accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.service-item h3 {
  font-size: 30px;
  color: var(--c-heading);
  margin-bottom: 24px;
  letter-spacing: 0.06em;
}
.service-item p {
  text-align: left;
  font-size: 15px;
  line-height: 2;
}

/* ===== Mail samples ===== */
.mail-samples-thumb {
  text-align: center;
  margin: 48px 0;
}
.mail-samples-thumb img {
  margin: 0 auto;
  max-width: 520px;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(24,36,51,0.12);
}
.mail-samples-list {
  margin: 40px auto;
  max-width: 600px;
  padding: 0;
}
.mail-samples-list li {
  margin-bottom: 24px;
  list-style: none;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--c-border);
}
.mail-samples-list li:last-child { border-bottom: none; }
.mail-samples-list a {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-heading);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--c-accent);
}
.mail-samples-list a:hover { color: var(--c-cta-hover); }
.mail-samples-list .note {
  display: block;
  font-size: 14px;
  color: var(--c-text);
  margin-top: 8px;
  font-weight: normal;
  line-height: 1.8;
}

/* ===== Feature list ===== */
.feature-list { padding: 0; }
.feature-list li {
  list-style: none;
  padding: 32px 0;
  border-bottom: 1px solid var(--c-border);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list h3 {
  font-size: 22px;
  color: var(--c-heading);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.feature-list p { margin: 0; font-size: 15px; }

/* ===== Process steps ===== */
.process-steps {
  counter-reset: step;
  padding: 0;
  max-width: 620px;
  margin: 0 auto;
}
.process-steps li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--c-border);
  font-size: 18px;
}
.process-steps li:last-child { border-bottom: none; }
.process-steps li::before {
  counter-increment: step;
  content: counter(step);
  background: var(--c-heading);
  color: #fff;
  font-weight: 700;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* ===== FAQ ===== */
.faq-list details {
  background: #fff;
  padding: 24px 28px;
  border-radius: 6px;
  margin-bottom: 16px;
  cursor: pointer;
  border: 1px solid var(--c-border);
  transition: box-shadow 0.2s;
}
.faq-list details[open] { box-shadow: 0 4px 16px rgba(166,139,90,0.08); }
.faq-list summary {
  font-weight: 700;
  color: var(--c-heading);
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  padding-right: 8px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before {
  content: "Q.";
  color: var(--c-accent);
  margin-right: 12px;
  font-weight: 700;
}
.faq-list summary::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--c-accent);
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-list details[open] summary::after { transform: rotate(180deg); }
.faq-list details[open] summary { margin-bottom: 16px; }
.faq-list .answer { font-size: 15px; color: var(--c-text); line-height: 2; }

/* ===== Philosophy section ===== */
.philosophy { background: var(--c-bg-alt); text-align: center; }
.philosophy p { font-size: 18px; line-height: 2.2; letter-spacing: 0.05em; }

/* ===== Form section ===== */
.form-section { background: var(--c-bg-alt); padding-top: 100px; padding-bottom: 100px; }
.form-section .form-intro { text-align: center; font-size: 16px; margin-bottom: 32px; }
.form-section .form-intro .note { font-size: 14px; color: var(--c-muted); }
.form-wrap {
  background: #fff;
  padding: 56px 48px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(24,36,51,0.08);
  border: 1px solid var(--c-border);
}

/* ===== AC Form overrides (今風に) ===== */
#_form_5_ {
  font-family: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  background: transparent !important;
  font-size: 15px !important;
}
#_form_5_ ._form_element { margin-bottom: 20px !important; }
#_form_5_ ._form-label {
  font-weight: 700 !important;
  font-size: 14px !important;
  color: var(--c-heading) !important;
  margin-bottom: 8px !important;
  letter-spacing: 0.03em;
}
#_form_5_ input[type="text"],
#_form_5_ select,
#_form_5_ textarea {
  padding: 0 16px !important;
  border: 1px solid var(--c-border) !important;
  border-radius: 6px !important;
  font-size: 15px !important;
  background: #fff !important;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100% !important;
  font-family: inherit !important;
  height: 52px !important;
  line-height: 50px;
  color: var(--c-text) !important;
  appearance: none;
  -webkit-appearance: none;
}
#_form_5_ select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23A68B5A' d='M6 8L0 0h12z'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 18px center !important;
  background-size: 12px 8px !important;
  padding-right: 44px !important;
  cursor: pointer;
}
#_form_5_ textarea {
  height: auto !important;
  min-height: 140px !important;
  padding: 14px 16px !important;
  line-height: 1.7;
}
#_form_5_ input[type="text"]:focus,
#_form_5_ select:focus,
#_form_5_ textarea:focus {
  outline: none;
  border-color: var(--c-heading) !important;
  box-shadow: 0 0 0 3px rgba(30,30,115,0.12);
}
#_form_5_ ._button-wrapper {
  text-align: center !important;
  margin-top: 32px !important;
}
#_form_5_ ._button-wrapper { width: 100%; }
body #_form_5_ ._submit {
  background: var(--c-cta) !important;
  color: #fff !important;
  width: 100% !important;
  padding: 24px 32px !important;
  border-radius: 999px !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  transition: all 0.25s !important;
  border: none !important;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 30, 115, 0.25);
  display: block;
  font-family: inherit !important;
}
body #_form_5_ ._submit:hover {
  background: var(--c-cta-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 127, 85, 0.35);
}
#_form_5_ ._form-branding { display: none !important; }
#_form_5_ .field-required { color: var(--c-cta-hover) !important; margin-left: 2px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--c-bg-deep);
  color: #FAF7F2;
  padding: 72px 24px 44px;
  text-align: center;
}
.site-footer-logo img {
  height: 64px;
  margin: 0 auto 28px;
  /* 深い藍の背景上で白系に変換（ロゴ全体を視認可能に） */
  filter: brightness(0) invert(1) opacity(0.92);
}
.site-footer-tag {
  font-size: 14px;
  line-height: 2;
  margin-bottom: 36px;
  color: rgba(250, 247, 242, 0.9);
  letter-spacing: 0.04em;
}
.site-footer-links { font-size: 15px; margin-bottom: 28px; }
.site-footer-links a { color: #FAF7F2; font-weight: 600; }
.site-footer-links a:hover { color: var(--c-cta-hover); }
.site-footer-links span { margin: 0 12px; color: rgba(250, 247, 242, 0.4); }
.site-footer-copy {
  font-size: 12px;
  color: rgba(250, 247, 242, 0.6);
  letter-spacing: 0.05em;
}


/* ===== Thanks Page ===== */
.thanks-body { background: var(--c-bg); }
.thanks-main {
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 120px;
}
.thanks-inner {
  text-align: center;
  background: #fff;
  padding: 72px 56px;
  border-radius: 14px;
  border: 1px solid var(--c-border);
  box-shadow: 0 12px 40px rgba(24, 36, 51, 0.08);
}
.thanks-icon {
  color: var(--c-accent);
  margin-bottom: 28px;
  display: inline-flex;
}
.thanks-main h1 {
  font-size: clamp(36px, 5vw, 56px);
  color: var(--c-heading);
  margin-bottom: 20px;
  letter-spacing: 0.08em;
}
.thanks-divider {
  width: 56px;
  border: none;
  border-top: 2px solid var(--c-accent);
  margin: 0 auto 32px;
}
.thanks-lead {
  font-size: 18px;
  margin-bottom: 16px !important;
  color: var(--c-heading);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.thanks-main p {
  font-size: 16px;
  line-height: 2;
  margin: 0 0 12px;
}
.thanks-main p strong {
  color: var(--c-heading);
  font-weight: 700;
}
.thanks-note {
  font-size: 13px !important;
  color: var(--c-muted);
  margin-top: 24px !important;
  margin-bottom: 0 !important;
}
.thanks-back {
  margin-top: 44px;
  display: inline-block;
}
@media (max-width: 768px) {
  .thanks-main { padding: 60px 16px 80px; min-height: calc(100vh - 60px); }
  .thanks-inner { padding: 48px 28px; border-radius: 10px; }
  .thanks-main h1 { letter-spacing: 0.04em; }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .site-header-inner { padding: 12px 20px; }
  .site-header-logo img { height: 32px; }
  /* ハンバーガーを表示 */
  .site-header-toggle { display: flex !important; }
  /* メニューを右からスライドイン形式に */
  .site-header-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: 82%;
    max-width: 340px;
    background: #FAF7F2 !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 88px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -16px 0 40px rgba(24, 36, 51, 0.25);
    z-index: 110;
    overflow-y: auto;
  }
  .site-header-nav a {
    display: block;
    padding: 18px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--c-border);
    text-align: left;
  }
  .site-header-nav a:not(.btn-cta)::after { display: none; }
  .site-header-nav a.btn-cta {
    margin-top: 24px;
    text-align: center;
    border-bottom: none;
  }
  /* オープン時：メニュー本体スライドイン＋背景オーバーレイ */
  body.nav-open .site-header-nav { transform: translateX(0); }
  /* メニュー開放時：headerをfixed positionに切り替え、最高z-indexで確実に前面に */
  body.nav-open .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999 !important;
  }
  body.nav-open .site-header-nav { z-index: 9998 !important; }
  body.nav-open::before { z-index: 9997 !important; }
  body.nav-open .site-header-toggle { z-index: 10000 !important; }
  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(24, 36, 51, 0.6);
    z-index: 105;
  }
  /* ハンバーガー→×アニメーション */
  body.nav-open .site-header-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  body.nav-open .site-header-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .site-header-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  /* スクロール固定 */
  body.nav-open { overflow: hidden; }
  .hero { min-height: 540px; padding: 60px 20px 130px; }
  .hero::after { height: 80px; }
  .hero h1 { letter-spacing: 0.03em; }
  .two-col-cards, .services { grid-template-columns: 1fr; gap: 20px; }
  .two-col-cards .card,
  .service-item { padding: 32px 24px; }
  .form-wrap { padding: 36px 24px; }
  .highlight-box { padding: 28px; }
}
