/* ==========================================================================
   ライフサポート株式会社 デモLP / base
   参考画像の配色・余白・角丸を読み取ったトークンと共通コンポーネント
   ========================================================================== */

:root {
  /* color */
  --g-950: #0b3528;
  --g-900: #0f4a38;
  --g-800: #155a44;
  --g-700: #1d6a4f;
  --g-300: #a9c7b4;
  --g-200: #cfe0d3;
  --g-100: #e4eee6;
  --g-50: #eff5ee;
  --cream: #f9f7f1;
  --paper: #fdfcf8;
  --orange: #c4551f;
  --orange-deep: #ab4717;
  --ink: #24332c;
  --ink-soft: #46574e;
  --line: rgba(15, 74, 56, 0.55);
  --line-soft: rgba(15, 74, 56, 0.18);

  /* type */
  --font-head: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-hand: "Zen Kurenaido", "Yomogi", "Hiragino Maru Gothic ProN", "Yu Gothic", cursive;

  /* shape : 角丸は 8px に統一（入力欄は 6px） */
  --r: 8px;
  --r-s: 6px;

  /* layout */
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 72px;
  --section-y: clamp(72px, 9vw, 128px);

  /* motion : 緩やかに減速する曲線に統一 */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);

  /* shadow : 背景色相に寄せた淡い影 */
  --shadow-lift: 0 30px 46px -26px rgba(15, 74, 56, 0.5), 0 10px 18px -12px rgba(15, 74, 56, 0.28);
  --shadow-soft: 0 14px 30px -20px rgba(15, 74, 56, 0.35);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--g-900);
  color: #fff;
  border-radius: var(--r);
  transition: top 0.3s var(--ease);
}
.skip:focus {
  top: 12px;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

/* ---------- 日本語の改行制御 ----------
   .k = 文節のまとまり。文節の途中では折り返さず、文節の切れ目でだけ折り返す。
   句読点・助詞は必ず直前の文節に含めて書く（行頭に孤立させない）。 */
.k {
  display: inline-block;
  max-width: 100%;
}

.nb {
  white-space: nowrap;
}

.hd {
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--g-950);
  line-height: 1.32;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.lead {
  text-wrap: pretty;
}

/* ---------- section heading : 中央見出し＋両脇の罫線 ---------- */
.sec-head {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  justify-content: center;
}
.sec-head__title {
  flex: 0 1 auto;
  text-align: center;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem);
}
.sec-head__rule {
  flex: 1 1 0;
  height: 1px;
  min-width: 24px;
  background: var(--line);
  transform-origin: center;
}
.sec-head__rule:first-child {
  transform-origin: right center;
}
.sec-head__rule:last-child {
  transform-origin: left center;
}

.sec-intro__sub {
  margin-top: clamp(16px, 2vw, 24px);
  text-align: center;
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.25rem);
  letter-spacing: 0.04em;
  color: var(--ink);
}
.sec-head--note {
  margin-top: clamp(40px, 5vw, 64px);
}
.sec-head--note .sec-head__title {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 0.85rem + 0.35vw, 1.125rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--g-950);
  line-height: 1.7;
}
@media (max-width: 639px) {
  .sec-head__rule {
    display: none;
  }
}

/* ---------- icon ---------- */
.ic {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 0;
}
.ic use {
  fill: currentColor;
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
  padding: 0 26px 0 30px;
  border: 1.5px solid transparent;
  border-radius: var(--r);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    transform 0.5s var(--ease),
    background-color 0.35s var(--ease),
    box-shadow 0.5s var(--ease),
    color 0.35s var(--ease);
}
.btn .ic {
  transition: transform 0.5s var(--ease);
}
.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(196, 85, 31, 0.75);
}
.btn--white {
  background: #fff;
  color: var(--g-950);
  border-color: rgba(15, 74, 56, 0.28);
  justify-content: flex-start;
  gap: 14px;
}
.btn:active {
  transform: translateY(1px) scale(0.985);
}

@media (hover: hover) {
  .btn--primary:hover {
    background: var(--orange-deep);
    transform: translateY(-3px);
    box-shadow: 0 18px 28px -14px rgba(171, 71, 23, 0.8);
  }
  .btn--primary:hover .ic {
    transform: translateX(5px);
  }
  .btn--white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
  }
  .btn--white:hover .ic {
    transform: rotate(-12deg);
  }
}

/* ---------- 写真プレースホルダー ----------
   実写に差し替えるまでの淡いトーン面。ラベルで「何の写真が入るか」を示す。
   差し替え時は .ph 内に <img class="ph__img"> を置けばよい。 */
.ph {
  --ph-a: #dbe8dd;
  --ph-b: #b7cfbd;
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(140deg, var(--ph-a), var(--ph-b));
  color: var(--g-900);
  isolation: isolate;
}
.ph--sand {
  --ph-a: #ece7d6;
  --ph-b: #cfc7a9;
}
.ph--sky {
  --ph-a: #dde9ee;
  --ph-b: #b8ccd4;
}
.ph--moss {
  --ph-a: #c6dbc9;
  --ph-b: #8fb19a;
}
.ph--deep {
  --ph-a: #2d6a51;
  --ph-b: #123f30;
  color: #dcebe1;
}
.ph__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform 1.1s var(--ease);
}
.ph__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 22px);
  transition: transform 1.1s var(--ease);
}
.ph__body {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
}
.ph__body .ic {
  width: clamp(34px, 5vw, 52px);
  height: clamp(34px, 5vw, 52px);
  opacity: 0.85;
}
.ph__label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.85;
  line-height: 1.5;
}
.ph__cap {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--g-900);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.ph--deep .ph__cap {
  background: rgba(11, 53, 40, 0.55);
  color: #e6f1e9;
}

/* ---------- ライズ（グループ単位でせり上がる） ----------
   要素ではなく「まとまり」に data-rise を付ける。子要素は個別に動かさない。 */
.js [data-rise] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity 1s var(--ease),
    transform 1.1s var(--ease);
  transition-delay: var(--rise-d, 0ms);
  will-change: opacity, transform;
}
.js [data-rise].is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ライズ完了後は、ホバー用の遷移に切り替える */
.js [data-rise].is-in.lift {
  transition:
    transform 0.7s var(--ease),
    box-shadow 0.7s var(--ease);
  transition-delay: 0s;
}

/* 見出しの罫線は、見出しがせり上がる動きに合わせて中央から左右へ伸びる */
.js .sec-head .sec-head__rule {
  transform: scaleX(0);
  transition: transform 1.3s var(--ease) 0.15s;
}
.js .is-in .sec-head__rule,
.js .sec-head.is-in .sec-head__rule {
  transform: scaleX(1);
}

/* ---------- 写真のホバー ----------
   カーソルを乗せるとふわっと浮き上がり、写真の中身がわずかに拡大する。 */
.lift {
  transition:
    transform 0.7s var(--ease),
    box-shadow 0.7s var(--ease);
}
@media (hover: hover) {
  .lift:hover {
    transform: translateY(-9px);
    box-shadow: var(--shadow-lift);
  }
  .lift:hover .ph__bg,
  .lift:hover .ph__img {
    transform: scale(1.06);
  }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js [data-rise],
  .js .sec-head .sec-head__rule {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .lift,
  .btn,
  .btn .ic,
  .ph__bg,
  .ph__img {
    transition: none;
  }
  .lift:hover,
  .btn:hover {
    transform: none;
  }
}
