/* =========================================================
   阪竹行政書士事務所  共通スタイル
   テーマ色は各ページの <style> で --accent 系を上書きします
   ========================================================= */
:root{
  /* テーマ色(初期値:明るい緑 = LP・相続) */
  --accent:       #2aa566;
  --accent-deep:  #1d7a4b;
  --accent-dark:  #145736;
  --accent-tint:  #e9f6ef;
  --accent-soft:  #cdeeda;

  --ink:    #22312a;
  --muted:  #5d6f66;
  --paper:  #ffffff;
  --washi:  #fafcfb;
  --line:   #dfe9e3;

  --font-display: "Zen Maru Gothic", sans-serif;
  --font-body:    "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-latin:   "Outfit", sans-serif;

  --head-h: 72px;
  --telbar-h: 56px;
  --radius: 18px;
  --shadow: 0 12px 36px rgba(20,60,40,.10);
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  letter-spacing: .03em;
  font-size: 16px;
  padding-bottom: var(--telbar-h); /* 下部固定バーの逃げ */
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: var(--accent-deep); text-decoration:none; }
ul,ol{ list-style:none; }

/* ---------- 上部固定ヘッダー ---------- */
.site-head{
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--head-h);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-inner{
  max-width: 1120px; height:100%; margin:0 auto; padding: 0 20px;
  display:flex; align-items:center; gap: 24px;
}
.brand{ display:flex; align-items:center; }
.brand img{ height: 40px; width:auto; }
.head-nav{ margin-left:auto; display:flex; gap: 26px; }
.head-nav a{
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  padding: 6px 2px; position: relative; white-space: nowrap;
}
.head-nav a::after{
  content:""; position:absolute; left:0; right:100%; bottom:0;
  height:2px; background: var(--accent); border-radius:2px;
  transition: right .25s ease;
}
.head-nav a:hover::after{ right:0; }
.btn-head{
  flex-shrink:0;
  display:inline-flex; align-items:center; gap:8px;
  background: var(--accent-deep); color:#fff;
  font-weight: 700; font-size: 13.5px;
  padding: 11px 20px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transition: transform .2s ease, background .2s ease;
}
.btn-head:hover{ background: var(--accent-dark); transform: translateY(-1px); }
.btn-head svg{ width:15px; height:15px; }

/* ---------- 下部固定 電話バー ---------- */
.tel-bar{
  position: fixed; inset: auto 0 0 0; z-index: 100;
  height: var(--telbar-h);
  background: var(--accent-dark);
  color: #fff;
  display:flex; align-items:center; justify-content:center; gap: 14px;
  padding: 0 16px;
}
.tel-bar a{
  color:#fff; display:flex; align-items:baseline; gap:10px;
  font-family: var(--font-latin);
}
.tel-bar .tel-label{
  font-family: var(--font-body); font-size: 12px; font-weight:700;
  letter-spacing:.08em; opacity:.92;
}
.tel-bar .tel-number{ font-size: 22px; font-weight: 700; letter-spacing: .04em; line-height:1; }
.tel-bar .tel-hours{ font-family: var(--font-body); font-size: 11.5px; opacity:.85; }

/* ---------- 共通レイアウト ---------- */
.section{ padding: 96px 20px; }
.section-alt{ background: var(--washi); }
.inner{ max-width: 1040px; margin: 0 auto; }
.eyebrow{
  font-family: var(--font-latin); font-weight: 600;
  font-size: 12px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent); display:block; margin-bottom: 14px;
}
.sec-title{
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 4vw, 36px); line-height: 1.5;
  margin-bottom: 22px;
}
.sec-lead{ color: var(--muted); max-width: 640px; }
.center{ text-align:center; }
.center .sec-lead{ margin-left:auto; margin-right:auto; }

/* ---------- ヒーロー ---------- */
.hero{
  position:relative; overflow:hidden;
  padding: calc(var(--head-h) + 72px) 20px 96px;
  background:
    radial-gradient(640px 420px at 88% 0%,  var(--accent-soft) 0%, transparent 70%),
    radial-gradient(560px 460px at -6% 100%, var(--accent-tint) 0%, transparent 70%),
    var(--paper);
}
.hero-inner{
  max-width: 1040px; margin: 0 auto;
  display:flex; gap: clamp(28px, 6vw, 72px); align-items:stretch;
}
/* 縦書きの見出し = このサイトの署名 */
.hero-title{
  writing-mode: vertical-rl;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(40px, 6.2vw, 64px);
  line-height: 1.42; letter-spacing: .14em;
  color: var(--ink);
  padding-left: clamp(16px, 3vw, 32px);
  border-left: 4px solid var(--accent);
  min-height: 380px;
}
.hero-title em{ font-style:normal; color: var(--accent-deep); }
.hero-body{ flex:1; align-self:center; max-width: 560px; }
.hero-eyebrow{
  font-family: var(--font-latin); font-weight:600; font-size:12.5px;
  letter-spacing:.34em; text-transform:uppercase; color: var(--accent-deep);
  display:flex; align-items:center; gap:12px; margin-bottom: 22px;
}
.hero-eyebrow::before{ content:""; width:34px; height:2px; background: var(--accent); }
.hero-copy{ font-size: 16.5px; color: var(--ink); margin-bottom: 16px; }
.hero-note{ font-size: 13.5px; color: var(--muted); margin-bottom: 34px; }
.hero-cta{ display:flex; flex-wrap:wrap; gap: 14px; }

.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-weight:700; font-size: 15px;
  padding: 15px 30px; border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn svg{ width:16px; height:16px; }
.btn-fill{ background: var(--accent-deep); color:#fff; box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.btn-fill:hover{ background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost{ background:#fff; color: var(--accent-deep); border: 2px solid var(--accent-soft); }
.btn-ghost:hover{ border-color: var(--accent); transform: translateY(-2px); }

/* ---------- 特長・テーマ説明 ---------- */
.about-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px;
}
.about-card{
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
}
.about-card .icon{
  width: 52px; height:52px; border-radius: 14px;
  background: var(--accent-tint); color: var(--accent-deep);
  display:flex; align-items:center; justify-content:center; margin-bottom: 18px;
}
.about-card .icon svg{ width:26px; height:26px; }
.about-card h3{
  font-family: var(--font-display); font-size: 18px; font-weight:700;
  margin-bottom: 10px; line-height:1.6;
}
.about-card p{ font-size: 14px; color: var(--muted); }

/* ---------- お悩みセクション(吹き出し) ---------- */
.worry-grid{
  display:grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px;
}
.worry{
  position:relative;
  background:#fff; border:1.5px solid var(--accent-soft); border-radius: 20px;
  padding: 24px 26px 24px 70px;
}
.worry::after{ /* 吹き出しのしっぽ */
  content:""; position:absolute; left: 34px; bottom: -11px;
  width: 18px; height: 18px; background:#fff;
  border-right:1.5px solid var(--accent-soft); border-bottom:1.5px solid var(--accent-soft);
  transform: rotate(45deg) skew(8deg, 8deg);
}
.worry .q{
  position:absolute; left: 20px; top: 22px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color:#fff;
  font-family: var(--font-latin); font-weight:700; font-size: 17px;
  display:flex; align-items:center; justify-content:center;
}
.worry h3{ font-size: 15.5px; font-weight: 700; line-height: 1.7; margin-bottom: 6px; }
.worry p{ font-size: 13px; color: var(--muted); }
.worry-close{
  margin-top: 54px; text-align:center;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(18px, 2.6vw, 22px);
}
.worry-close strong{
  color: var(--accent-deep);
  background: linear-gradient(transparent 68%, var(--accent-soft) 68%);
  padding: 0 2px;
}

/* ---------- ご相談の流れ(竹の節タイムライン) ---------- */
.flow{ margin-top: 56px; max-width: 760px; margin-left:auto; margin-right:auto; }
.flow li{
  position:relative; display:flex; gap: 26px;
  padding: 0 0 46px 0;
}
.flow li::before{ /* 竹の幹 */
  content:""; position:absolute; left: 33px; top: 10px; bottom: -10px;
  width: 4px; background: var(--accent-soft); border-radius: 2px;
}
.flow li:last-child::before{ display:none; }
.flow li::after{ /* 節 */
  content:""; position:absolute; left: 24px; bottom: 16px;
  width: 22px; height: 4px; border-radius: 2px;
  background: var(--accent-soft);
}
.flow li:last-child::after{ display:none; }
.flow .num{
  flex-shrink:0; position:relative; z-index:1;
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--accent-tint); border: 3px solid var(--accent);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  font-family: var(--font-latin);
}
.flow .num small{ font-size: 9px; letter-spacing:.22em; font-weight:600; color: var(--accent-deep); line-height:1; margin-bottom:3px; }
.flow .num b{ font-size: 24px; font-weight: 700; color: var(--accent-dark); line-height:1; }
.flow .body h3{
  font-family: var(--font-display); font-size: 18.5px; font-weight: 700;
  margin: 8px 0 6px; line-height: 1.5;
}
.flow .body h3 .tag{
  display:inline-block; vertical-align: 3px; margin-left: 10px;
  font-family: var(--font-body); font-size: 11px; font-weight:700;
  color:#fff; background: var(--accent); border-radius: 999px;
  padding: 3px 12px; line-height: 1.4;
}
.flow .body p{ font-size: 14px; color: var(--muted); max-width: 520px; }

/* ---------- お問い合わせ ---------- */
.contact-wrap{ margin-top: 48px; display:grid; gap: 22px; }
.form-embed{
  background:#fff; border: 2px dashed var(--accent-soft); border-radius: var(--radius);
  min-height: 520px;
  display:flex; align-items:center; justify-content:center; text-align:center;
  padding: 40px 24px;
}
.form-embed .ph{ color: var(--muted); font-size: 14px; }
.form-embed .ph b{ display:block; font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.form-embed iframe{ width: 100%; min-height: 760px; border: 0; }
.contact-tel{
  background: var(--accent-tint); border-radius: var(--radius);
  padding: 28px 30px; text-align:center;
}
.contact-tel .t-label{ font-size: 13px; font-weight:700; color: var(--accent-dark); letter-spacing:.1em; }
.contact-tel a{
  display:block; font-family: var(--font-latin); font-weight: 700;
  font-size: clamp(28px, 5vw, 38px); color: var(--accent-dark); line-height: 1.3;
}
.contact-tel .t-hours{ font-size: 12.5px; color: var(--muted); }

/* ---------- アクセス ---------- */
.access-grid{
  margin-top: 48px;
  display:grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items:start;
}
.office-info{
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.office-info dl{ display:grid; grid-template-columns: 92px 1fr; gap: 12px 16px; font-size: 14px; }
.office-info dt{ font-weight: 700; color: var(--accent-deep); }
.office-info dd{ color: var(--muted); }
.map-embed{ border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); }
.map-embed iframe{ width:100%; height: 380px; border:0; display:block; }

/* ---------- フッター ---------- */
.site-footer{
  background: var(--ink); color: #fff;
  padding: 64px 20px 40px;
}
.footer-inner{ max-width: 1040px; margin: 0 auto; }
.footer-brand img{ height: 38px; filter: brightness(0) invert(1); opacity:.95; }
.footer-grid{
  display:flex; flex-wrap:wrap; gap: 40px; justify-content:space-between;
  margin-top: 30px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.16);
}
.footer-nav{ display:flex; flex-wrap:wrap; gap: 10px 28px; }
.footer-nav a{ color: rgba(255,255,255,.84); font-size: 13.5px; }
.footer-nav a:hover{ color:#fff; }
.footer-note{ font-size: 12.5px; color: rgba(255,255,255,.6); margin-top: 8px; }
.copyright{
  margin-top: 28px; text-align:center;
  font-family: var(--font-latin); font-size: 12px; letter-spacing: .14em;
  color: rgba(255,255,255,.55);
}

/* ---------- LP:3つの専門分野カード ---------- */
.svc-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px;
}
.svc{
  --c:       var(--accent);
  --c-deep:  var(--accent-deep);
  --c-tint:  var(--accent-tint);
  --c-soft:  var(--accent-soft);
  position:relative; display:flex; flex-direction:column;
  background:#fff; border-radius: 22px; overflow:hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.svc:hover{ transform: translateY(-6px); box-shadow: 0 20px 48px rgba(20,60,40,.16); }
.svc.purple{ --c:#7a5fc7; --c-deep:#5a41a3; --c-tint:#f1edfa; --c-soft:#ded4f3; }
.svc.orange{ --c:#ef8a1f; --c-deep:#c2690a; --c-tint:#fdf2e3; --c-soft:#f8ddb9; }
.svc-head{
  background: linear-gradient(135deg, var(--c-tint), #fff 85%);
  border-bottom: 3px solid var(--c);
  padding: 30px 26px 24px;
}
.svc-head .domain{
  font-family: var(--font-latin); font-weight:600; font-size: 11.5px;
  letter-spacing: .2em; text-transform: lowercase; color: var(--c-deep);
}
.svc-head h3{
  font-family: var(--font-display); font-weight: 900;
  font-size: 21px; line-height: 1.55; margin-top: 8px;
}
.svc-body{ padding: 24px 26px 28px; display:flex; flex-direction:column; flex:1; }
.svc-body p{ font-size: 14px; color: var(--muted); flex:1; }
.svc-body ul{ margin: 16px 0 24px; display:grid; gap: 8px; }
.svc-body li{
  font-size: 13px; font-weight: 700; color: var(--ink);
  display:flex; align-items:center; gap: 9px;
}
.svc-body li::before{
  content:""; width: 7px; height: 7px; border-radius:50%;
  background: var(--c); flex-shrink:0;
}
.svc .btn-svc{
  display:flex; align-items:center; justify-content:center; gap: 8px;
  background: var(--c-deep); color:#fff;
  font-weight: 700; font-size: 14.5px;
  padding: 14px; border-radius: 999px;
  transition: filter .2s ease;
}
.svc .btn-svc:hover{ filter: brightness(1.12); }
.svc .btn-svc svg{ width:15px; height:15px; }

/* ---------- スクロールフェード ---------- */
.reveal{ opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px){
  .about-grid, .svc-grid{ grid-template-columns: 1fr 1fr; }
  .access-grid{ grid-template-columns: 1fr; }
  .head-nav{ display:none; } /* モバイルはロゴ+お問い合わせボタンのみ */
}
@media (max-width: 720px){
  :root{ --head-h: 62px; --telbar-h: 60px; }
  .brand img{ height: 32px; }
  .section{ padding: 72px 18px; }
  .hero{ padding-top: calc(var(--head-h) + 48px); padding-bottom: 72px; }
  .hero-inner{ flex-direction: column; }
  .hero-title{ /* モバイルでは横書きに */
    writing-mode: horizontal-tb;
    min-height: 0;
    border-left: none; border-top: 4px solid var(--accent);
    padding: 18px 0 0; font-size: clamp(30px, 8.4vw, 40px); line-height: 1.5;
  }
  .worry-grid, .about-grid, .svc-grid{ grid-template-columns: 1fr; }
  .worry{ padding-left: 64px; }
  .flow li{ gap: 18px; }
  .flow .num{ width: 58px; height: 58px; }
  .flow li::before{ left: 27px; }
  .flow li::after{ left: 18px; }
  .tel-bar .tel-number{ font-size: 19px; }
  .tel-bar .tel-hours{ display:none; }
  .btn-head{ padding: 9px 15px; font-size: 12.5px; }
}

/* ---------- イラスト ---------- */
.hero-art{
  flex-shrink:0; align-self:center;
  width: clamp(220px, 25vw, 310px);
  filter: drop-shadow(0 18px 30px rgba(20,60,40,.10));
}
.scene{ margin: 56px auto 0; max-width: 880px; }
.scene img{
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.svc-art{
  height: 116px; width: auto;
  margin: 16px auto 2px;
}
@media (max-width: 960px){
  .hero-art{ width: clamp(190px, 22vw, 250px); }
}
@media (max-width: 720px){
  .hero-art{ width: min(64%, 260px); margin: 26px auto 0; }
  .svc-art{ height: 100px; }
}
