/* ==========================================================
   株式会社Daddy and Kids  ―  パターン5「余白」
   白・墨色・山吹色。大きな文字と大きな余白。
   ========================================================== */

:root {
  --ink: #1f1d1a;        /* 墨色（わずかに温かい黒） */
  --ink-soft: #5c5852;   /* 補足の文字 */
  --line: #e3dfd8;       /* 罫線 */
  --paper: #ffffff;
  --mist: #f8f6f2;       /* ごく薄い生成り。写真の読み込み前の下地など */
  --yamabuki: #f5a800;   /* 差し色はこの1色だけ */

  --gutter: clamp(20px, 6vw, 96px);
  --space-section: clamp(96px, 15vw, 208px);
  --space-block: clamp(48px, 7vw, 96px);
  --header-h: 72px;

  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", Meiryo, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 0;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 960px) {
  body { font-size: 1.0625rem; }
  :root { --header-h: 88px; }
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.03em;
  word-break: auto-phrase;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* 文節のまとまり。見出しが中途半端な位置で折り返さないようにする */
.ph { display: inline-block; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 20px; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap {
  width: min(100% - var(--gutter) * 2, 1240px);
  margin-inline: auto;
}

/* ---------- ヘッダー ---------- */

.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 44px;
  text-decoration: none; line-height: 1.2;
}
.logo__small { font-size: 0.625rem; letter-spacing: 0.24em; color: var(--ink-soft); }
.logo__name { font-size: 1.125rem; font-weight: 500; letter-spacing: 0.06em; white-space: nowrap; }
.logo__name i { font-style: normal; color: var(--yamabuki); }
@media (min-width: 960px) {
  .logo__small { font-size: 0.6875rem; }
  .logo__name { font-size: 1.3125rem; }
}

.header__actions { display: flex; align-items: center; gap: 8px; }

.nav__list { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-size: 0.9375rem; text-decoration: none; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
  background: var(--yamabuki);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 60px; padding: 0 36px;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 1rem; font-weight: 500; letter-spacing: 0.08em; line-height: 1.4;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn::after {
  content: ""; width: 22px; height: 1px; background: currentColor;
  box-shadow: none;
  transition: width 0.3s ease;
}
.btn:hover { background: var(--yamabuki); color: var(--ink); }
.btn:hover::after { width: 34px; }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 0.875rem; gap: 0; }
.btn--small::after { display: none; }
.btn--accent { background: var(--yamabuki); color: var(--ink); }
.btn--accent:hover { background: #fff; color: var(--ink); }

.menu-btn {
  display: none;
  width: 48px; height: 48px; padding: 0; margin-right: -10px;
  border: 0; background: none; color: var(--ink); cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor;
  transition: transform 0.3s ease, top 0.3s ease;
}
.menu-btn span:nth-child(1) { top: 19px; }
.menu-btn span:nth-child(2) { top: 28px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 23.5px; transform: rotate(24deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 23.5px; transform: rotate(-24deg); }

/* スマホ・タブレット: ナビをメニューに畳む */
@media (max-width: 959.98px) {
  .header__inner { flex-wrap: wrap; }
  .nav { width: 100%; order: 3; padding-bottom: 12px; }
  .nav__list { flex-wrap: wrap; gap: 0 24px; }

  .js .menu-btn { display: block; }
  .js .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    width: auto; padding: 8px var(--gutter) 48px;
    background: var(--paper);
    overflow-y: auto;
    visibility: hidden; opacity: 0;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }
  .js .nav.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
  .js .nav__list { display: block; }
  .js .nav__link {
    display: flex; justify-content: space-between;
    min-height: 72px; font-size: 1.25rem; letter-spacing: 0.06em;
    border-bottom: 1px solid var(--line);
  }
  .js .nav__link::after { display: none; }
  .js .nav__link[aria-current="page"]::before {
    content: ""; order: 2; width: 8px; height: 8px; border-radius: 50%; background: var(--yamabuki);
  }
  .js .nav__sub .nav__link { padding-left: 1.25em; font-size: 1.0625rem; min-height: 60px; }
  .js body.menu-open { overflow: hidden; }
}
@media (min-width: 960px) {
  .nav__top { display: none; }
}
.js body.menu-open { overflow: hidden; }
.nav__sub { display: contents; }

/* ---------- 共通の部品 ---------- */

.label {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.875rem; letter-spacing: 0.16em; line-height: 1.6; color: var(--ink-soft);
}
.label::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--yamabuki);
}

.section { padding-block: var(--space-section); }
.section--tight-top { padding-top: 0; }

.h2 {
  font-size: clamp(1.625rem, 4.4vw, 3.25rem);
  line-height: 1.5;
}
.h2--xl { font-size: clamp(1.75rem, 5.2vw, 4rem); }

.split { display: grid; gap: var(--space-block); }
.split__head > .label + .h2 { margin-top: clamp(20px, 3vw, 36px); }
@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 7fr; gap: clamp(48px, 8vw, 128px); align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
}

.prose > p + p { margin-top: 1.6em; }
.prose { max-width: 38em; }

.bleed { width: 100%; background: var(--mist); overflow: hidden; }
.bleed img { width: 100%; height: clamp(300px, 52vw, 700px); object-fit: cover; }

/* 画面の右端まで写真を逃がす（左は余白） */
.bleed-right { margin-left: var(--gutter); background: var(--mist); overflow: hidden; }
.bleed-right img { width: 100%; height: clamp(260px, 46vw, 640px); object-fit: cover; }
@media (min-width: 960px) {
  .bleed-right { margin-left: calc(var(--gutter) + 16%); }
}

.dot { font-style: normal; color: var(--yamabuki); }

/* 罫線だけで区切るリスト */
.lines { border-top: 1px solid var(--ink); }
.lines > li {
  padding: clamp(18px, 2.4vw, 26px) 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1rem, 1.5vw, 1.1875rem); line-height: 1.8;
}
.lines--soft { border-top-color: var(--line); }

.sub-title {
  font-size: 1rem; font-weight: 500; letter-spacing: 0.12em; line-height: 1.6;
  margin-bottom: 20px;
}
.stack > * + * { margin-top: var(--space-block); }

/* 番号つきの項目（サポート内容など） */
.items { border-top: 1px solid var(--ink); }
.item {
  display: grid; gap: 8px 32px;
  padding: clamp(32px, 5vw, 64px) 0;
  border-bottom: 1px solid var(--line);
}
.item__num {
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.16em; color: var(--ink-soft); line-height: 2.4;
}
.item__title { font-size: clamp(1.3125rem, 2.6vw, 2rem); line-height: 1.5; }
.item__text { max-width: 34em; }
@media (min-width: 960px) {
  .item { grid-template-columns: 88px 5fr 6fr; align-items: baseline; }
}

/* 大きく置く一文 */
.statement {
  font-size: clamp(1.375rem, 3.5vw, 2.75rem);
  font-weight: 500; line-height: 1.75; letter-spacing: 0.04em;
  word-break: auto-phrase; text-wrap: balance;
  max-width: 24em;
}
.statement::before {
  content: ""; display: block; width: 56px; height: 3px; background: var(--yamabuki);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.statement + .statement__note { margin-top: clamp(24px, 3vw, 40px); max-width: 36em; color: var(--ink-soft); }

/* ご相談の流れ */
.flow { display: grid; gap: 0; margin-top: var(--space-block); }
.flow__step { position: relative; padding: 0 0 40px 36px; border-left: 1px solid var(--line); }
.flow__step:last-child { padding-bottom: 0; border-left-color: transparent; }
.flow__step::before {
  content: ""; position: absolute; left: -5px; top: 10px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--yamabuki);
}
.flow__num { font-size: 0.875rem; letter-spacing: 0.16em; color: var(--ink-soft); line-height: 1.9; }
.flow__title { font-size: 1.25rem; line-height: 1.6; margin: 4px 0 8px; }
.flow__text { font-size: 1rem; line-height: 1.9; }
@media (min-width: 960px) {
  .flow { grid-template-columns: repeat(4, 1fr); }
  .flow__step { padding: 44px 32px 0 0; border-left: 0; border-top: 1px solid var(--ink); }
  .flow__step:last-child { border-top-color: var(--ink); }
  .flow__step::before { left: 0; top: -5px; }
  .flow__title { font-size: 1.375rem; margin: 8px 0 12px; }
}

/* 矢印つきの大きなリンク行 */
.rows { border-top: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 24px;
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.row__label { grid-column: 1 / -1; font-size: 0.875rem; letter-spacing: 0.16em; color: var(--ink-soft); line-height: 1.6; }
.row__title { font-size: clamp(1.25rem, 3.2vw, 2.25rem); font-weight: 500; line-height: 1.5; word-break: auto-phrase; }
.arrow {
  position: relative; flex: none; display: block;
  width: clamp(44px, 5vw, 64px); height: clamp(44px, 5vw, 64px);
  border: 1px solid var(--ink); border-radius: 50%;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.arrow::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 30%; height: 1px; background: var(--ink);
  transform: translate(-50%, -50%);
}
.arrow::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
  border-top: 1px solid var(--ink); border-right: 1px solid var(--ink);
  transform: translate(10%, -50%) rotate(45deg);
}
a:hover > .arrow, a:hover .arrow { background: var(--yamabuki); border-color: var(--yamabuki); }

/* ---------- トップ ---------- */

.hero__text { padding-block: clamp(56px, 10vw, 144px) clamp(48px, 8vw, 112px); }
.hero__title {
  font-size: clamp(1.375rem, 6.9vw, 5.75rem);
  line-height: 1.5; letter-spacing: 0.02em;
}
.hero__title .ph { display: block; white-space: nowrap; }
.hero__lead { display: grid; padding-block: clamp(48px, 8vw, 112px) 0; }
.hero__lead .prose { justify-self: end; }
@media (min-width: 960px) {
  .hero__lead .prose { width: 50%; max-width: 34em; }
}

.philosophy__lead {
  font-size: clamp(1.5rem, 4.4vw, 3.25rem); font-weight: 500; line-height: 1.6; letter-spacing: 0.03em;
  word-break: auto-phrase; text-wrap: balance;
  margin-top: clamp(20px, 3vw, 36px);
}
.philosophy__photo { margin-top: var(--space-block); }
.philosophy__body { margin-top: var(--space-block); display: grid; }
.philosophy__body .prose { justify-self: end; }
@media (min-width: 960px) {
  .philosophy__body .prose { width: 50%; max-width: 34em; }
}

.services__head { margin-bottom: var(--space-block); }
.service {
  display: grid; gap: 24px;
  padding: clamp(32px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.services__list { border-top: 1px solid var(--ink); }
.service__photo { overflow: hidden; background: var(--mist); }
.service__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.9s ease; }
.service:hover .service__photo img { transform: scale(1.03); }
.service__num { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.16em; color: var(--ink-soft); line-height: 1.6; }
.service__title { font-size: clamp(1.5rem, 3.6vw, 2.75rem); line-height: 1.45; margin: 8px 0 14px; }
.service__text { max-width: 30em; }
.service__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
@media (min-width: 760px) {
  .service { grid-template-columns: 7fr 4fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
  .service__photo { order: 2; }
  .service__photo img { aspect-ratio: 4 / 3; }
}

.years { display: grid; gap: 8px; margin-top: clamp(24px, 4vw, 48px); }
.years__num { display: flex; align-items: baseline; gap: clamp(8px, 1.4vw, 20px); line-height: 1; }
.years__fig {
  font-size: clamp(7.5rem, 30vw, 21rem); font-weight: 300; letter-spacing: -0.04em; line-height: 0.95;
  margin-left: -0.05em;
}
.years__unit { font-size: clamp(1.375rem, 3.6vw, 3rem); font-weight: 500; letter-spacing: 0.06em; }
.years__unit::after { content: ""; display: inline-block; width: 0.32em; height: 0.32em; border-radius: 50%; background: var(--yamabuki); margin-left: 0.3em; }
.years__note { max-width: 30em; }
@media (min-width: 960px) {
  .years { grid-template-columns: auto 1fr; align-items: end; gap: clamp(48px, 7vw, 112px); }
  .years__note { padding-bottom: 2.2em; }
}

.strengths { display: grid; gap: 0; margin-top: var(--space-block); border-top: 1px solid var(--ink); }
.strength { padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line); }
.strength__num { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.16em; color: var(--ink-soft); line-height: 1.6; }
.strength__title { font-size: clamp(1.1875rem, 1.9vw, 1.4375rem); line-height: 1.65; margin: 12px 0 14px; }
@media (min-width: 960px) {
  .strengths { grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 64px); border-top: 0; }
  .strength { border-top: 1px solid var(--ink); border-bottom: 0; padding-bottom: 0; }
}

/* ---------- 下層ページの冒頭 ---------- */

.page-head { padding-block: clamp(56px, 9vw, 128px) clamp(48px, 7vw, 96px); }
.page-head__title {
  font-size: clamp(1.75rem, 7vw, 5.25rem); line-height: 1.4; letter-spacing: 0.02em;
  margin-top: clamp(20px, 3vw, 36px);
}
.page-lead { display: grid; padding-top: clamp(48px, 8vw, 112px); }
.page-lead p { justify-self: end; font-size: clamp(1.0625rem, 1.7vw, 1.3125rem); line-height: 2; max-width: 30em; }
@media (min-width: 960px) {
  .page-lead p { width: 54%; }
}

/* ---------- 会社概要 ---------- */

.greeting__note {
  display: inline-block; margin-top: 20px; padding: 4px 12px;
  border: 1px solid var(--line); font-size: 0.8125rem; line-height: 1.8; color: var(--ink-soft);
}
.greeting__sign { margin-top: 2.4em; text-align: right; letter-spacing: 0.12em; }

.profile { border-top: 1px solid var(--ink); }
.profile__row { display: grid; gap: 2px 32px; padding: clamp(20px, 2.6vw, 30px) 0; border-bottom: 1px solid var(--line); }
.profile__row dt { font-size: 0.875rem; letter-spacing: 0.14em; color: var(--ink-soft); }
.profile__row dd { line-height: 1.9; }
.profile__row dd span { display: block; }
.profile__kana { font-size: 0.875rem; color: var(--ink-soft); }
@media (min-width: 640px) {
  .profile__row { grid-template-columns: 10em 1fr; align-items: baseline; }
}

/* ---------- お問い合わせ ---------- */

.mail {
  margin-top: var(--space-block); padding-top: clamp(40px, 6vw, 72px);
  border-top: 3px solid var(--yamabuki);
  display: grid; gap: clamp(40px, 6vw, 72px);
}
.mail__address { margin: 20px 0 0; line-height: 1.3; }
.mail__address a {
  font-size: clamp(1.5rem, 6.4vw, 3.5rem); font-weight: 300; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--yamabuki);
  text-decoration-thickness: 2px; text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
}
.mail__address a:hover { text-decoration-color: var(--ink); }
.mail__action { margin: clamp(28px, 4vw, 44px) 0 0; }
@media (min-width: 900px) {
  .mail { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
}

/* ---------- 問い合わせへの誘導 ---------- */

.cta { background: var(--ink); color: #fff; padding-block: clamp(88px, 13vw, 176px); }
.cta__inner { display: grid; gap: clamp(36px, 5vw, 56px); }
.cta .label { color: rgba(255, 255, 255, 0.72); }
.cta__title { font-size: clamp(1.625rem, 5vw, 3.75rem); line-height: 1.5; margin-top: clamp(20px, 3vw, 36px); }
.cta__text { max-width: 30em; color: rgba(255, 255, 255, 0.86); }
.cta .btn { justify-self: start; }
.cta :focus-visible { outline-color: #fff; }
@media (min-width: 960px) {
  .cta__inner { grid-template-columns: 7fr 5fr; align-items: end; gap: clamp(48px, 8vw, 128px); }
  .cta__side { display: grid; gap: 36px; }
}
@media (max-width: 959.98px) {
  .cta__side .btn { margin-top: 36px; }
}
@media (max-width: 420px) {
  .cta .btn { width: 100%; padding: 0 20px; }
}

/* ---------- フッター ---------- */

.footer { padding-block: clamp(56px, 8vw, 96px) 32px; }
.footer__inner { display: grid; gap: 40px; }
.footer__name { font-size: 1.0625rem; font-weight: 500; letter-spacing: 0.06em; }
.footer__nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.footer__nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.9375rem; text-decoration: none;
}
.footer__nav a:hover { text-decoration: underline; text-decoration-color: var(--yamabuki); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.footer__copy { margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--ink-soft); }
@media (min-width: 760px) {
  .footer__inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer__nav ul { grid-template-columns: repeat(3, auto); gap: 0 clamp(32px, 5vw, 72px); }
}

/* ---------- 動き（控えめに） ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.hero__photo img { object-position: 88% 50%; }

/* ---------- スマホ幅の調整 ---------- */
@media (max-width: 959.98px) {
  .js .header__inner { flex-wrap: nowrap; }
}
@media (max-width: 480px) {
  .logo__name { font-size: 1.0625rem; letter-spacing: 0.04em; }
  .btn--small { padding: 0 16px; font-size: 0.8125rem; letter-spacing: 0.06em; }
  .header__actions { gap: 4px; }
}
@media (max-width: 759.98px) {
  .footer__nav ul { grid-template-columns: 1fr; }
}

/* ---------- 折り返しの調整 ---------- */
.split__head .h2 { font-size: clamp(1.625rem, 3.4vw, 2.75rem); }
.statement { font-size: clamp(1.25rem, 3.5vw, 2.75rem); }
.item__text, .flow__text, .service__text, .cta__text, .years__note, .strength p, .lines > li {
  word-break: auto-phrase; text-wrap: pretty;
}
.footer__name { white-space: nowrap; }
@media (min-width: 760px) and (max-width: 1099.98px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav ul { justify-content: start; }
}
@media (min-width: 960px) {
  .item { grid-template-columns: 88px 4fr 7fr; }
  .item__text { max-width: none; }
}

@media (max-width: 359.98px) {
  .logo__name { font-size: 1rem; letter-spacing: 0.02em; }
  .btn--small { padding: 0 12px; }
  .menu-btn { margin-right: -8px; width: 44px; }
  .menu-btn span { left: 10px; right: 10px; }
}
