/* ==========================================================================
   Foundation
   ========================================================================== */
:root {
  --color-primary: #2b4a8b;
  --color-primary-light: #6aaee6;
  --color-accent: #f08a3c;
  --color-thought: #1976b1;
  --color-faq: #00296a;
  --color-panel: #ff7f36;
  --color-panel-bg: #fff2ef;
  --color-green: #abe6c5;
  --color-pink: #e49ec4;
  --color-purple: #ae9ee4;
  --color-purple-light: #e9e9f7;
  --color-text: #000000;
  --color-text-sub: #000000;
  --color-bg: #ffffff;
  --color-dark: #1c2b3a;
  --color-footer: rgba(107, 152, 235, 0.55); /* #6B98EB を透かす */
  --font-serif: "a-otf-ryumin-pr6n", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; /* フォーム入力欄など UI 用 */
  --container: 140rem;
  --section-gap: 10rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 0.5208vw; /* カンプ幅 1920px で 10px = 1rem */
  scroll-behavior: smooth;
}
@media (min-width: 1920px) {
  html { font-size: 62.5%; }
}
@media (max-width: 767px) {
  html { font-size: 62.5%; }
}

body {
  padding-bottom: 10.42vw; /* 画面下固定のオレンジ帯（1920:200）の高さ分 */
  background: var(--color-bg);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.4;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.l-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.l-container--footer {
  max-width: 170rem; /* Google マップ〜お問合わせ（青背景部）は 1700px */
}

.l-header {
  position: relative;
}

.l-footer {
  padding: 3rem 0;
  background: var(--color-footer);
  color: #fff;
  text-align: center;
}

.l-footer__copy {
  font-size: 1.6rem;
}

/* ==========================================================================
   Component
   ========================================================================== */
/* --- box（特徴・プランの角丸ボックス） --- */
.c-box {
  padding: 6rem 2rem;
  border-radius: 6rem;
  text-align: center;
}
.c-box--green { background: var(--color-green); }
.c-box--pink { background: var(--color-pink); }

.c-box__title {
  margin-bottom: 5rem;
  font-size: 8rem;
  font-weight: 700;
}

/* --- button --- */
.c-button {
  display: inline-block;
  padding: 1.15rem 4rem;
  background: #000;
  border: none;
  border-radius: 0.4rem;
  font-family: inherit; /* button はブラウザ既定でフォントを継承しない */
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 700;
  color: #cae5f6;
  cursor: pointer;
  transition: opacity 0.3s;
}
.c-button:hover { opacity: 0.8; }
.c-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.c-button--submit {
  width: 100%;
  border-radius: 0;
}

/* --- panel（電話・メールの枠） --- */
.c-panel {
  padding: 0.6rem 2rem;
  margin-top: 3.2rem;
  background: var(--color-panel-bg);
  border: 2px solid var(--color-panel);
  border-radius: 1rem;
  font-weight: 700;
  color: var(--color-panel);
  text-align: center;
}
.c-panel__lead {
  font-size: 3rem;
  line-height: 1.8;
}
.c-panel__main {
  font-size: 5rem;
  line-height: 1.3;
}
.c-panel__note {
  font-size: 3rem;
  line-height: 1.8;
}
/* --- form --- */
.c-form__row {
  margin-bottom: 7.2rem;
}
.c-form__row--last {
  margin-bottom: 3.9rem;
}
.c-form__label {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: #000;
}
.c-form__input,
.c-form__textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background: #fff;
  border: 1px solid #000;
  border-radius: 0;
  font-family: inherit;
  font-size: 2rem;
}
.c-form__input {
  height: 8rem;
}
.c-form__textarea {
  height: 21.1rem;
  resize: vertical;
}
.c-form__input:focus,
.c-form__textarea:focus {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 0;
}
.c-form__error {
  margin-top: 0.4rem;
  font-size: 1.3rem;
  color: #c0392b;
}
.c-form__hp {
  position: absolute;
  left: -9999px;
}
.c-form__done {
  padding: 2rem;
  margin-bottom: 4rem;
  background: #fff;
  border: 2px solid var(--color-panel);
  border-radius: 1rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}
.c-form--single {
  max-width: 72.8rem;
  margin: 0 auto;
}
.p-contact__title--single {
  text-align: center;
  color: #fff;
  text-shadow: 0.2rem 0.2rem 0.8rem rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Project
   ========================================================================== */
/* --- hero（PC: 空は画面に固定、帯は画面下に固定。コンテンツがその上を滑る） --- */
.p-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.p-hero__sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  transform: translateZ(0); /* 固定背景を独自レイヤーにしてスクロール時の再描画を抑える */
}
.p-hero__sky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-hero__band {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 20;
  width: 100%;
}
.p-hero__band img {
  width: 100%;
}
.p-hero__logo {
  position: absolute;
  top: 3%;
  left: -5rem;
  z-index: 2; /* 建物の屋根より手前 */
  width: 92rem;
}
.p-hero__building {
  position: absolute;
  bottom: calc(10.42vw - 6rem); /* 下端は固定帯の裏に潜る */
  left: 50%;
  width: 108rem;
  transform: translateX(-50%);
}
.p-hero__building img {
  width: 100%;
}

/* --- intro --- */
.p-intro {
  padding: 5rem 0 var(--section-gap); /* FV 直下は詰める */
  text-align: center;
}
.p-intro__title {
  font-size: 8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0.2rem 0.2rem 0.8rem rgba(0, 0, 0, 0.5);
}
.p-intro__title-line {
  display: block;
}
.p-intro__badges {
  display: block;
  width: 81.9rem;
  margin: 6rem auto 4rem;
}
.p-intro__lead {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0.2rem 0.2rem 0.8rem rgba(0, 0, 0, 0.5);
}

/* --- thought --- */
.p-thought {
  padding: 8rem 0 10rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 12%, #fff 88%, rgba(255, 255, 255, 0) 100%);
  overflow: hidden; /* 画像がコンテナ右外へはみ出す分を横スクロールさせない */
}
.p-thought__inner {
  display: flex;
  align-items: center;
  gap: 5rem;
}
.p-thought__text {
  flex: 0 0 65rem;
}
.p-thought__title {
  margin-bottom: 4rem;
  font-size: 8rem;
  font-weight: 700;
  color: var(--color-thought);
}
.p-thought__body {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  line-height: 1.8;
  color: var(--color-thought);
}
.p-thought__images {
  flex: 0 0 94rem;
  margin-right: -24rem; /* コンテンツ幅 1400px の右外まで画像を張り出す */
}

/* --- features --- */
.p-features {
  padding-bottom: 6rem;
}
.p-features__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.p-features__icon {
  width: 9.5rem;
  margin: 0 auto 3rem;
}
.p-features__name {
  margin-bottom: 2rem;
  font-size: 5rem;
  font-weight: 700;
}
.p-features__text {
  font-size: 2.1rem; /* 3カラム幅 446px に最長 21 文字を収める */
  font-weight: 700;
  line-height: 1.8;
  white-space: nowrap;
}

/* --- plan --- */
.p-plan {
  padding-bottom: var(--section-gap);
}
.p-plan__price {
  display: block;
  width: 72.4rem;
  margin: 0 auto 4rem;
}
.p-plan__notes {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.8;
}

/* --- flow --- */
.p-flow {
  padding: 8rem 0 12rem;
  background: var(--color-purple);
  text-align: center;
}
.p-flow__title {
  font-size: 8rem;
  font-weight: 700;
}
.p-flow__lead {
  margin: 1rem 0 6rem;
  font-size: 2.5rem;
  font-weight: 700;
}
.p-flow__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.p-flow__step {
  padding: 0 1.5rem;
  border-right: 1px solid #000;
}
.p-flow__step:last-child {
  border-right: none;
}
.p-flow__num {
  display: block;
  padding: 0.6rem 0;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10rem;
  font-size: 2.6rem;
  line-height: 1.4;
}
.p-flow__name {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 7.6rem; /* 2行分。1行のステップも同じ高さにして説明文の位置を揃える */
  margin-bottom: 1.6rem;
  font-size: 2.9rem;
  font-weight: 700;
  line-height: 1.3;
}
.p-flow__text {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap; /* 列幅 250px に 15 文字を収める。rem が vw 連動なので幅比は不変 */
}

/* --- faq --- */
.p-faq {
  padding: var(--section-gap) 0;
  background: rgba(255, 255, 255, 0.7); /* アクセス図（0.85）より透ける */
}
.p-faq__title {
  margin-bottom: 4rem;
  font-size: 7rem;
  font-weight: 700;
  color: var(--color-faq);
}
.p-faq__item {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--color-faq);
}
.p-faq__body {
  flex: 1;
  padding-bottom: 4rem; /* イラストは罫線に接地させ、テキストだけ罫線から離す */
}
.p-faq__q {
  margin-bottom: 2rem;
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--color-faq);
}
.p-faq__a {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 2;
  color: var(--color-faq);
}
.p-faq__illust {
  order: 2; /* DOM では先頭（SP の回り込み用）。PC は右端に表示 */
  flex: 0 0 auto;
  width: 15.8rem; /* 2x 書き出しの半分 */
}
.p-faq__illust--03 {
  width: 13.8rem;
}

/* --- access --- */
.p-access {
  padding: 6rem 0;
  background: rgba(255, 255, 255, 0.85); /* 空が少し透ける白 */
}
.p-access__figure {
  display: block;
  width: 100%;
}

/* --- map --- */
.p-map {
  padding-top: 6rem;
  background: var(--color-footer); /* Google マップからフッターまで同じ青背景 */
}
.p-map__frame {
  display: block;
  width: 100%;
  height: 45rem;
  border: 0;
  background: #e5e5e5;
}

/* --- contact --- */
.p-contact {
  padding: 6.7rem 0 6rem;
  background: var(--color-footer);
}
.p-contact__inner {
  display: flex;
  justify-content: space-between;
}
.p-contact__info {
  flex: 0 0 58.4rem;
  color: #fff;
  text-shadow: 0.2rem 0.2rem 0.8rem rgba(0, 0, 0, 0.5); /* 導入見出しと同じ影 */
}
.p-contact__info .c-panel {
  text-shadow: none;
}
.c-form-wrap {
  flex: 0 0 72.8rem;
  padding-top: 2.6rem;
}
.c-form__title {
  margin-bottom: 4rem;
  color: #fff;
  text-shadow: 0.2rem 0.2rem 0.8rem rgba(0, 0, 0, 0.5);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.p-contact__title {
  margin-bottom: 6rem;
  font-size: 8rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap; /* 左カラム幅より長いので折り返さず右へ伸ばす */
}
.p-contact__label {
  margin-bottom: 2.4rem;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.2;
}
.p-contact__address {
  margin-bottom: 3rem;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.55;
  white-space: nowrap;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.u-sp-only {
  display: none !important;
}
.u-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

/* ==========================================================================
   SP（767px 以下・10px = 1rem 固定・コンテンツ幅 = 画面幅 − 左右 20px）
   ========================================================================== */
@media (max-width: 767px) {
  :root {
    --section-gap: 6rem;
  }
  .l-container,
  .l-container--footer {
    padding: 0 2rem;
  }
  .u-sp-only { display: block !important; }
  .u-pc-only { display: none !important; }

  /* --- component --- */
  .c-box {
    padding: 4rem 2rem;
    border-radius: 3rem;
  }
  .c-box__title {
    margin-bottom: 3rem;
    font-size: 3.2rem;
  }
  .c-button {
    padding: 1.2rem 2rem;
    font-size: 1.8rem;
  }
  .c-panel {
    padding: 1rem 1.5rem;
    margin-top: 2rem;
  }
  .c-panel__lead,
  .c-panel__note { font-size: 1.4rem; }
  .c-panel__main { font-size: 2.6rem; }
  .c-form__row { margin-bottom: 3rem; }
  .c-form__row--last { margin-bottom: 2rem; }
  .c-form__label {
    margin-bottom: 0.6rem;
    font-size: 1.5rem;
  }
  .c-form__input,
  .c-form__textarea { font-size: 1.6rem; }
  .c-form__input { height: 5rem; }
  .c-form__textarea { height: 15rem; }

  /* --- hero（空は PC と同じく固定背景。帯・ロゴ・建物は元の SP MV と同じ配置で hero 内に置く） --- */
  body { padding-bottom: 0; }
  .p-hero {
    height: 148vw; /* 元 MV 860:1276 */
  }
  .p-hero__logo {
    top: 12%;
    left: -3%; /* PNG の透明マージン分を外へ */
    width: 95%;
  }
  .p-hero__building {
    bottom: 25.1vw; /* 帯の上に接地（帯 860:216） */
    width: 95%;
  }
  .p-hero__band {
    position: absolute;
    z-index: 1;
  }
  .p-intro { padding-top: 6rem; }
  .p-thought { padding: 5rem 0 6rem; }

  /* --- intro --- */
  .p-intro__title {
    font-size: 3rem;
    letter-spacing: 0.02em;
  }
  .p-intro__badges {
    width: 100%;
    margin: 3rem auto 2rem;
  }
  .p-intro__lead {
    font-size: 2rem;
    letter-spacing: 0.02em;
  }

  /* --- thought --- */
  .p-thought__inner {
    flex-direction: column;
    gap: 3rem;
  }
  .p-thought__text { flex: none; }
  .p-thought__title {
    margin-bottom: 2rem;
    font-size: 3.2rem;
  }
  .p-thought__body { font-size: 1.8rem; }
  .p-thought__images {
    flex: none;
    width: 100%;
    margin-right: 0;
  }

  /* --- features --- */
  .p-features { padding-bottom: 4rem; }
  .p-features__list {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .p-features__icon {
    width: 6rem;
    margin-bottom: 1.5rem;
  }
  .p-features__name {
    margin-bottom: 1rem;
    font-size: 2.4rem;
  }
  .p-features__text {
    font-size: 1.5rem;
    line-height: 1.9;
    text-align: left;
    white-space: normal;
  }
  .p-features__text br { display: none; }

  /* --- plan --- */
  .p-plan__price {
    width: 100%;
    margin-bottom: 2rem;
  }
  .p-plan__notes {
    font-size: 1.5rem;
    text-align: left;
  }

  /* --- flow --- */
  .p-flow { padding: 5rem 0 6rem; }
  .p-flow__title { font-size: 3.2rem; }
  .p-flow__lead {
    margin: 0.5rem 0 3rem;
    font-size: 1.5rem;
  }
  .p-flow__list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .p-flow__step {
    padding: 3rem 0;
    border-right: none;
    border-bottom: 1px solid #000;
  }
  .p-flow__step:first-child { padding-top: 0; }
  .p-flow__step:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }
  .p-flow__num {
    width: 20rem;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
  }
  .p-flow__name {
    height: auto;
    margin-bottom: 1rem;
    font-size: 2.2rem;
  }
  .p-flow__text {
    font-size: 1.4rem;
    white-space: normal;
  }

  /* --- faq --- */
  .p-faq__title {
    margin-bottom: 3rem;
    font-size: 3rem;
  }
  .p-faq__item {
    display: flow-root; /* flex をやめ、イラストにテキストを回り込ませる */
    margin-bottom: 3rem;
  }
  .p-faq__body { padding-bottom: 2rem; }
  .p-faq__q {
    margin-bottom: 1rem;
    font-size: 2rem;
  }
  .p-faq__a {
    font-size: 1.5rem;
    line-height: 1.8;
  }
  .p-faq__a br { display: none; }
  .p-faq__illust,
  .p-faq__illust--03 {
    float: right;
    width: 9rem;
    margin: 3.8rem 0 0 1rem; /* 質問1行分だけ下げ、回答の横から回り込ませる */
  }

  /* --- access / map --- */
  .p-access { padding-bottom: 4rem; }
  .p-map { padding-top: 4rem; }
  .p-map__frame { height: 30rem; }

  /* --- contact --- */
  .p-contact { padding: 5rem 0 4rem; }
  .p-contact__inner {
    flex-direction: column;
    gap: 4rem;
  }
  .p-contact__info { flex: none; }
  .p-contact__title {
    margin-bottom: 2.5rem;
    font-size: 3.2rem;
    white-space: normal;
  }
  .p-contact__label {
    margin-bottom: 1rem;
    font-size: 2.4rem;
  }
  .p-contact__address {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    white-space: normal;
  }
  .c-form-wrap {
    flex: none;
    padding-top: 0;
  }
  .c-form__title {
    margin-bottom: 2rem;
    font-size: 2.8rem;
  }

  /* --- footer --- */
  .l-footer { padding: 2rem 0; }
  .l-footer__copy { font-size: 1.3rem; }
}
