/* =========================================================
   Front Page only
   1) 基本レイアウト（html/body）
   2) スクロールスナップ構成（100vh：ヘッダーも含む）
   3) ヒーローセクション
   4) セクション見出し・文章
   ※ フッターは PHP 側（A案）で非出力のため CSS 不要
========================================================= */


/* ========================================
 * 1) 基本レイアウト（html / body）
 * ====================================== */
html {
  padding: 0;
  background: none !important;  /* body の外側を透過 */
  overflow: hidden;              /* 余分なスクロール抑止 */
}

body {
  margin: 0;
  padding: 0;
}

body.page-id-9 {
  height: 100%;
  min-height: 100svh;
  overflow-x: hidden;   /* 横だけ隠す */
  overflow-y: auto;     /* 縦は戻す（フッター下パディングが切れない） */

  display: flex;
  flex-direction: column;
}

body.page-id-9 .site-header { flex: 0 0 auto; }
body.page-id-9 .site-main   { flex: 1 0 auto; }
body.page-id-9 #wrapper-footer { margin-top: auto; }


/* ========================================
 * 2) スクロールスナップ構成
 *    （画面全体＝ヘッダー含む領域をスクロール対象に）
 * ====================================== */
body.page-id-9 .scroll-container {
  position: fixed;
  inset: 0;                  /* ヘッダー分を差し引かない */
  height: 100vh;             /* ビューポート全域 */
  overflow-y: auto;

  /* スナップ挙動 */
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  padding-inline: .6rem;
}

/* WordPress ログイン時の管理バー重なり回避 */
body.page-id-9.admin-bar .scroll-container { inset: 32px 0 0 0; }

@media (max-width: 782px) {
  body.page-id-9.admin-bar .scroll-container { inset: 46px 0 0 0; }
}

/* 各セクションは画面いっぱい（ヘッダーも含む） */
body.page-id-9 .page-section {
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* 余白なし版（必要箇所のみ付与） */
.fullheight-section.page-section {
  padding-block: 0;
}


/* ========================================
 * 3) ヒーローセクション
 *    ※ トップ専用（他ページへ展開するなら sections.css へ移設検討）
 * ====================================== */
.front-page section.hero {
  padding-inline: 1rem;
  margin-bottom: 5rem;
}

.front-page .hero-inner {
  max-width: fit-content;
  margin: auto;
  text-align: center;
}

/* 共通化候補：typography.css へ移動可 */
.hero-title {
  font-size: 3.2rem;
  font-weight: 500;
  font-family: 'Zen Kurenaido', sans-serif;
  color: #338998;
  margin-bottom: 4rem;
}

.hero-lead {
  text-align: center;
  font-size: 1.2rem;
}

header.hero-header {
  margin-bottom: 2rem;
}


/* ========================================
 * 4) セクション見出し・文章
 * ====================================== */

/* 共通化候補：typography.css（見出し系） */
h2.section-title.char-animate {
  font-weight: 500;
  font-size: 2.4rem;
}

/* 共通化候補：sections.css（services 内規） */
#services h3.service-title {
  padding-bottom: 0.6rem;
  font-weight: 500;
}

/* 共通化候補：typography.css または sections.css */
p.service-lead {
  padding-left: 1.2rem;
}

/* 共通化候補：typography.css（段落リード標準） */
p.section-lead {
  margin-bottom: 1.2rem;
  line-height: 2;
}


@media (max-width: 767px) {
	.hero-title {
    font-size: 2.4rem;
}
	.hero-lead {
    font-size: 1rem;
}
	.fullheight-inner {
    margin: 0;
    padding: 0;
}
	h2.section-title.char-animate {
    font-size: 2rem;
}
	.fullheight-inner {
    max-width: 100%;
}
#services h3.service-title {
        font-size: 1.4rem;
        padding-left: .8rem;
    }
p.service-lead {
        padding-left: .8rem;
        margin-bottom: .4rem;
    }
	.btn--service {
    padding: .4rem .8rem;
}
}

section#services:focus-visible, section#contact:focus-visible {
    outline: none;
}