/* ============================================================
   DESIGN D — 寄り添い / WARM  ("かかりつけ"の会計事務所)
   すべて .D 配下にスコープ。色は theme.css の CSS 変数から取得。
   温かいクリーム地・角丸・柔らかい影・親しみやすい構成。
   ============================================================ */

.D {
  /* 温かみを出すためのローカル派生トークン（ブランド色は var() を混色） */
  --cream:     color-mix(in srgb, var(--accent-soft) 55%, #fffdf9);
  --cream-2:   color-mix(in srgb, var(--accent-soft) 88%, #ffffff);
  --card:      #fffdfa;                       /* 温かい白カード */
  --ink:       #2c2822;                       /* 温かいチャコール本文 */
  --ink-soft:  #6c655a;                       /* 補助テキスト */
  --w-line:    color-mix(in srgb, var(--brand-line) 55%, #e9e1d3);
  --w-shadow:  0 18px 42px rgba(78, 60, 24, .12);
  --w-shadow-sm: 0 8px 22px rgba(78, 60, 24, .09);

  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans-jp);
  line-height: 1.85;
}
.D a { color: inherit; }
.D h1, .D h2, .D h3 { font-family: "Shippori Mincho", var(--serif-jp); font-weight: 600; letter-spacing: .02em; }

/* shared container */
.D .D-hd-in, .D .D-hero-in, .D .D-worry-in, .D .D-serv-in,
.D .D-news-in, .D .D-contact-in, .D .D-ft-in {
  max-width: 1180px; margin: 0 auto; padding-left: 40px; padding-right: 40px;
}

/* shared eyebrow */
.D .eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--brand);
}
.D .eyebrow .line { width: 30px; height: 2px; border-radius: 2px; background: var(--accent); }
.D .eyebrow em {
  font-family: var(--display); font-style: normal; font-weight: 500;
  font-size: 14px; letter-spacing: .24em; color: var(--accent);
}
.D .eyebrow.on-brand, .D .eyebrow.on-brand em { color: var(--on-brand); }
.D .eyebrow.on-brand .line { background: var(--accent-2); }

/* shared section heading */
.D .D-head h2 { font-size: 33px; line-height: 1.4; margin-top: 16px; color: var(--ink); }
.D .D-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* shared pill button */
.D .D-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brand); color: var(--on-brand);
  font-size: 15px; font-weight: 700; letter-spacing: .04em;
  padding: 15px 30px; border-radius: 999px;
  box-shadow: var(--w-shadow-sm); transition: .22s;
}
.D .D-btn:hover { background: var(--brand-2); transform: translateY(-2px); }
.D .D-btn.ghost {
  background: var(--card); color: var(--brand);
  border: 1.5px solid var(--w-line); box-shadow: none;
}
.D .D-btn.ghost:hover { background: var(--cream-2); border-color: var(--brand-line); transform: translateY(-2px); }

/* ---------------- header ---------------- */
.D .D-hd { background: transparent; }
.D .D-hd-in {
  display: flex; align-items: center; gap: 26px;
  padding-top: 26px; padding-bottom: 20px;
}
.D .D-brand { display: flex; align-items: center; gap: 13px; }
.D .D-brand .name { font-family: "Shippori Mincho", var(--serif-jp); font-weight: 600; font-size: 21px; letter-spacing: .05em; line-height: 1.15; }
.D .D-brand .name small { display: block; font-family: var(--display); font-size: 9.5px; letter-spacing: .4em; color: var(--ink-soft); margin-top: 3px; font-weight: 500; }
.D .D-nav { display: flex; gap: 26px; margin-left: 8px; }
.D .D-nav a { font-size: 14.5px; color: var(--ink); position: relative; padding: 4px 0; transition: .2s; }
.D .D-nav a::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; background: var(--accent); transition: .25s; border-radius: 2px; }
.D .D-nav a:hover { color: var(--brand); }
.D .D-nav a:hover::after { width: 100%; }
.D .D-hd-r { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.D .D-tel { display: flex; align-items: center; gap: 10px; }
.D .D-tel .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-soft) 70%, #fff); }
.D .D-tel .txt { display: flex; flex-direction: column; line-height: 1.2; }
.D .D-tel .num { font-family: var(--display); font-size: 25px; font-weight: 600; letter-spacing: .01em; color: var(--brand); }
.D .D-tel .hrs { font-size: 11px; color: var(--ink-soft); letter-spacing: .04em; }
.D .D-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--brand); color: var(--on-brand);
  font-size: 14.5px; font-weight: 700; padding: 13px 24px; border-radius: 999px;
  box-shadow: var(--w-shadow-sm); transition: .22s;
}
.D .D-cta:hover { background: var(--brand-2); transform: translateY(-2px); }

/* ---------------- hero / greeting ---------------- */
.D .D-hero { position: relative; overflow: hidden; padding: 30px 0 78px; }
.D .D-blob { position: absolute; border-radius: 50%; filter: blur(6px); z-index: 0; pointer-events: none; }
.D .D-blob.b1 { width: 520px; height: 520px; right: -160px; top: -120px;
  background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--accent-soft) 90%, transparent), transparent 70%); }
.D .D-blob.b2 { width: 360px; height: 360px; left: -140px; bottom: -120px;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--brand-soft) 85%, transparent), transparent 70%); }
.D .D-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; }
.D .D-hero .copy .eyebrow { margin-bottom: 22px; }
.D .D-hero h1 { font-size: 47px; line-height: 1.42; color: var(--ink); }
.D .D-hero h1 .mk {
  background-image: linear-gradient(transparent 60%, color-mix(in srgb, var(--accent-2) 65%, transparent) 0);
  padding: 0 .06em;
}
.D .D-hero .lead { margin: 30px 0 30px; }
.D .D-hero .lead p { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 15px; }
.D .D-hero .sign { display: flex; flex-direction: column; gap: 4px; padding-top: 22px; border-top: 1px solid var(--w-line); }
.D .D-hero .sign .role { font-size: 12.5px; letter-spacing: .08em; color: var(--ink-soft); }
.D .D-hero .sign .nm { font-family: "Shippori Mincho", var(--serif-jp); font-weight: 600; font-size: 27px; letter-spacing: .12em; color: var(--ink); }

.D .D-hero .art { position: relative; }
.D .D-hero .portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden;
  background: var(--card); box-shadow: var(--w-shadow);
  border: 6px solid var(--card); outline: 1px solid var(--w-line);
}
.D .D-hero .portrait .ph { position: absolute; inset: 0; border-radius: 20px; }
.D .D-hero .badge {
  position: absolute; left: -14px; bottom: 26px; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--brand); color: var(--on-brand);
  font-size: 13px; font-weight: 700; letter-spacing: .03em;
  padding: 12px 20px; border-radius: 999px; box-shadow: var(--w-shadow);
}

/* ---------------- worries ---------------- */
.D .D-worry { background: var(--cream-2); border-top: 1px solid var(--w-line); border-bottom: 1px solid var(--w-line); padding: 78px 0; }
.D .D-worry .D-head { margin-bottom: 42px; }
.D .worry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.D .worry-card {
  position: relative; display: flex; align-items: flex-start; gap: 18px;
  background: var(--card); border-radius: 18px; padding: 26px 28px;
  box-shadow: var(--w-shadow-sm); border: 1px solid var(--w-line);
}
.D .worry-card::before {
  content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--accent);
}
.D .worry-card .q {
  flex-shrink: 0; font-family: var(--display); font-weight: 600; font-size: 30px;
  line-height: 1; color: var(--brand); letter-spacing: .02em;
}
.D .worry-card p { font-size: 15.5px; font-weight: 500; color: var(--ink); padding-top: 3px; }
.D .worry-foot { text-align: center; margin-top: 44px; }
.D .worry-foot p { font-size: 16px; color: var(--ink); margin-bottom: 26px; line-height: 2; }
.D .worry-foot .D-btn { padding: 16px 40px; }

/* ---------------- services ---------------- */
.D .D-serv { padding: 84px 0; }
.D .D-serv .D-head { margin-bottom: 46px; }
.D .serv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.D .serv-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border-radius: 22px; padding: 40px 32px 34px;
  box-shadow: var(--w-shadow-sm); border: 1px solid var(--w-line);
  transition: .25s; overflow: hidden;
}
.D .serv-card:hover { transform: translateY(-6px); box-shadow: var(--w-shadow); border-color: var(--brand-line); }
.D .serv-card .serv-n {
  position: absolute; top: 22px; right: 26px;
  font-family: var(--display); font-size: 52px; font-weight: 500; line-height: 1;
  color: color-mix(in srgb, var(--accent-soft) 80%, #fff);
}
.D .serv-ic {
  width: 78px; height: 78px; border-radius: 22px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent-soft) 70%, #fff);
  margin-bottom: 22px;
}
.D .serv-card h3 { font-size: 21px; color: var(--ink); }
.D .serv-card .serv-en { display: block; font-family: var(--display); font-size: 12px; letter-spacing: .22em; color: var(--brand); margin: 8px 0 16px; font-weight: 500; }
.D .serv-card p { font-size: 14.5px; color: var(--ink-soft); flex-grow: 1; }
.D .serv-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-size: 14px; font-weight: 700; color: var(--brand); transition: .2s; }
.D .serv-card:hover .serv-more { gap: 11px; }

/* ---------------- news ---------------- */
.D .D-news { background: var(--cream-2); border-top: 1px solid var(--w-line); padding: 78px 0; }
.D .D-news .D-head { margin-bottom: 30px; }
.D .news-list { border-top: 1px solid var(--w-line); }
.D .news-row {
  display: grid; grid-template-columns: 130px 108px 1fr 24px; align-items: center; gap: 8px;
  padding: 22px 8px; border-bottom: 1px solid var(--w-line); transition: .2s;
}
.D .news-row:hover { background: var(--card); padding-left: 16px; padding-right: 16px; border-radius: 12px; }
.D .news-row .date { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: .04em; color: var(--brand); }
.D .news-row .cat {
  justify-self: start; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--brand);
  background: color-mix(in srgb, var(--accent-soft) 78%, #fff);
  padding: 5px 14px; border-radius: 999px;
}
.D .news-row .ttl { font-size: 15.5px; color: var(--ink); }
.D .news-row .arw { display: grid; place-items: center; opacity: .55; transition: .2s; }
.D .news-row:hover .arw { opacity: 1; transform: translateX(3px); }
.D .D-news .D-btn.ghost { display: inline-flex; margin-top: 34px; }

/* ---------------- contact band ---------------- */
.D .D-contact { background: var(--brand); color: var(--on-brand); padding: 74px 0; }
.D .D-contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.D .c-copy .eyebrow { margin-bottom: 20px; }
.D .c-copy h2 { font-size: 31px; line-height: 1.45; color: var(--on-brand); }
.D .c-copy p { margin-top: 18px; font-size: 15px; color: color-mix(in srgb, var(--on-brand) 82%, transparent); }
.D .c-actions { display: flex; flex-direction: column; gap: 16px; }
.D .c-tel {
  display: flex; flex-direction: column; gap: 4px;
  background: color-mix(in srgb, #000 16%, var(--brand)); border: 1px solid color-mix(in srgb, var(--on-brand) 22%, transparent);
  border-radius: 18px; padding: 22px 28px;
}
.D .c-tel .lab { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: color-mix(in srgb, var(--on-brand) 85%, transparent); }
.D .c-tel .num { font-family: var(--display); font-size: 40px; font-weight: 600; letter-spacing: .02em; line-height: 1.1; }
.D .c-tel .hrs { font-size: 12.5px; color: color-mix(in srgb, var(--on-brand) 72%, transparent); }
.D .c-form {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); color: var(--brand); border-radius: 18px; padding: 22px 26px;
  box-shadow: var(--w-shadow); transition: .22s;
}
.D .c-form:hover { transform: translateY(-3px); }
.D .c-form .ft { display: flex; flex-direction: column; flex-grow: 1; }
.D .c-form .t1 { font-size: 16px; font-weight: 700; color: var(--ink); }
.D .c-form .t2 { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

/* ---------------- footer ---------------- */
.D .D-ft { background: color-mix(in srgb, var(--brand-soft) 60%, #fff); border-top: 3px solid var(--brand); color: var(--ink); }
.D .D-ft-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 44px; }
.D .D-ft-brand .D-brand { margin-bottom: 20px; }
.D .D-ft-info { font-size: 13.5px; line-height: 2.05; color: var(--ink-soft); }
.D .D-ft-info .co { display: block; font-family: "Shippori Mincho", var(--serif-jp); font-weight: 600; font-size: 16px; color: var(--ink); margin-bottom: 4px; letter-spacing: .04em; }
.D .D-ft-nav { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; align-content: start; }
.D .D-ft-nav a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); transition: .2s; }
.D .D-ft-nav a:hover { color: var(--brand); }
.D .D-ft-bar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; margin: 0 auto; padding: 20px 40px;
  border-top: 1px solid var(--w-line);
}
.D .D-ft-bar small { font-family: var(--display); font-size: 12px; letter-spacing: .14em; color: var(--ink-soft); }
.D .D-top { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 12px; letter-spacing: .2em; font-weight: 600; color: var(--brand); }
.D .D-top .up { width: 26px; height: 1px; background: var(--brand); position: relative; }
.D .D-top .up::after { content: ""; position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; border-top: 1.4px solid var(--brand); border-left: 1.4px solid var(--brand); transform: translateX(-50%) rotate(45deg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .D .D-hero-in { grid-template-columns: 1fr; gap: 40px; }
  .D .D-hero .art { max-width: 440px; }
  .D .serv-grid { grid-template-columns: 1fr; }
  .D .D-contact-in { grid-template-columns: 1fr; gap: 30px; }
  .D .D-nav { display: none; }
}

@media (max-width: 720px) {
  .D .D-hd-in, .D .D-hero-in, .D .D-worry-in, .D .D-serv-in,
  .D .D-news-in, .D .D-contact-in, .D .D-ft-in, .D .D-ft-bar {
    padding-left: 20px; padding-right: 20px;
  }
  .D .D-hd-in { flex-wrap: wrap; padding-top: 20px; padding-bottom: 16px; gap: 14px; row-gap: 12px; }
  .D .D-hd-r { width: 100%; margin-left: 0; justify-content: space-between; gap: 10px; }
  .D .D-tel .num { font-size: 21px; }
  .D .D-cta { padding: 11px 18px; font-size: 13.5px; }

  .D .D-hero { padding: 14px 0 56px; }
  .D .D-hero h1 { font-size: 33px; line-height: 1.44; }
  .D .D-hero .art { max-width: 100%; }
  .D .D-hero .badge { left: 8px; bottom: 12px; font-size: 12px; padding: 10px 15px; }
  .D .D-hero .sign .nm { font-size: 23px; }

  .D .D-head h2 { font-size: 25px; }
  .D .D-worry, .D .D-serv, .D .D-news, .D .D-contact { padding: 54px 0; }
  .D .worry-grid { grid-template-columns: 1fr; gap: 14px; }
  .D .worry-card { padding: 22px 22px 22px 24px; gap: 14px; }
  .D .worry-card .q { font-size: 26px; }
  .D .worry-foot p { font-size: 15px; }
  .D .sp-br { display: none; }

  .D .serv-card { padding: 32px 26px 28px; }
  .D .serv-card .serv-n { font-size: 44px; top: 20px; right: 22px; }

  .D .news-row { grid-template-columns: auto 1fr; grid-template-areas: "date cat" "ttl ttl"; row-gap: 8px; column-gap: 12px; padding: 18px 6px; }
  .D .news-row .date { grid-area: date; font-size: 16px; }
  .D .news-row .cat { grid-area: cat; }
  .D .news-row .ttl { grid-area: ttl; font-size: 14.5px; }
  .D .news-row .arw { display: none; }
  .D .news-row:hover { padding-left: 6px; padding-right: 6px; }

  .D .c-tel .num { font-size: 33px; }
  .D .c-copy h2 { font-size: 25px; }

  .D .D-ft-in { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; padding-bottom: 34px; }
  .D .D-ft-nav { gap: 12px 20px; }
  .D .D-ft-bar { flex-direction: column; gap: 14px; align-items: flex-start; }
}
