/* =========================================================
   Front Page only
   通常スクロール版
========================================================= */


/* ========================================
 * 1) 基本レイアウト（html / body）
 * ====================================== */
html {
  padding: 0;
  background: none !important;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  margin: 0;
  padding: 0;
}

body.page-id-9 {
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: visible;

  display: block;
}

body.page-id-9 .site-header {
  flex: none;
}

body.page-id-9 .site-main {
  flex: none;
}

body.page-id-9 #wrapper-footer {
  margin-top: 0;
}


/* ========================================
 * 2) 通常レイアウト
 * ====================================== */
body.page-id-9 .scroll-container {
  position: static;
  inset: auto;
  height: auto;
  overflow: visible;

  scroll-snap-type: none;
  scroll-behavior: auto;
  overscroll-behavior: auto;

  padding-inline: .6rem;
}

/* 管理バー対応は不要になるので解除 */
body.page-id-9.admin-bar .scroll-container {
  inset: auto;
}

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

/* 各セクションは通常の縦積み */
body.page-id-9 .page-section {
  min-height: auto;
  scroll-snap-align: unset;
  scroll-snap-stop: normal;
  display: block;
}

/* ヒーローだけ大きめにしたい場合 */
body.page-id-9 section.hero.page-section {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
	padding-top: calc(var(--header-h) / 2);
}


/* ========================================
 * 3) ヒーローセクション
 * ====================================== */
.front-page section.hero {
  padding-inline: 1rem;
  margin-bottom: 0;
}

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

.hero-title {
  font-size: 3.2rem;
  font-weight: 500;
  font-family: 'Zen Kurenaido', sans-serif;
  color: #338998;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

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

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

p.hero-eyebrow {
  text-align: left;
  color: #ffffff;
  background-color: #338998;
  width: fit-content;
  padding-left: .2rem;
  font-size: 1.2rem;
  margin-bottom: .2rem;
}


/* ========================================
 * 4) セクション見出し・文章
 * ====================================== */
h2.section-title.char-animate {
    font-weight: 500;
    font-size: 2.4rem;
    background: var(--c-service);
    color: #fff;
    width: fit-content;
    padding: 0 0 0 .4rem;
    line-height: 1.8;
}

#services h3.service-title {
  padding-bottom: 0.6rem;
  font-weight: 500;
}

p.service-lead {
  padding-left: 1.2rem;
}

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;
    max-width: 100%;
  }

  h2.section-title.char-animate {
    font-size: 2rem;
  }

  #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;
  }

  p.hero-eyebrow {
    font-size: 1rem;
  }
}

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