/*
Theme Name: 小川貴之行政書士事務所
Theme URI: https://ogawa-gyosei.com/
Author: 小川貴之行政書士事務所
Description: 春日井市・小牧市を中心に、遺言・相続・ペット・墓じまい・空き家・終活支援を案内する行政書士事務所向けWordPressテーマ。
Version: 1.4.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: ogawa-gyosei
*/

:root{
  --ink:#18342f;
  --muted:#657873;
  --line:#e4e9e6;
  --paper:#fff;
  --soft:#f6f8f6;
  --accent:#2f665b;
  --accent2:#eef5f2;
  --linegreen:#06c755;
  --max:1120px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:#fff;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP","Yu Gothic",Meiryo,sans-serif;line-height:1.8}
a{color:var(--accent)}
img{max-width:100%;height:auto}
.wrap{width:min(var(--max),calc(100% - 40px));margin-inline:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(8px)}
.header-inner{min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--ink)}
.brand img{width:58px;height:58px;object-fit:contain}
.brand-title{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:1.25rem;font-weight:700;letter-spacing:.04em}
.brand-sub{font-size:.78rem;color:var(--muted);margin-top:2px}
.nav{display:flex;align-items:center;gap:18px;font-size:.93rem}
.nav a{text-decoration:none;color:var(--ink);white-space:nowrap}
.nav .cta{background:var(--accent);color:#fff;padding:9px 14px;border-radius:999px}
.hero{padding:72px 0 60px;background:linear-gradient(180deg,#fbfcfb 0%,#fff 100%)}
.hero-grid{display:grid;grid-template-columns:1.45fr .75fr;gap:56px;align-items:center}
.eyebrow{font-weight:700;color:var(--accent);letter-spacing:.08em;font-size:.88rem}
h1,h2,h3{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;line-height:1.45}
h1{font-size:clamp(2rem,4.3vw,3.5rem);margin:.35em 0 .45em;letter-spacing:.03em}
.lead{font-size:1.08rem;color:#40554f;max-width:48rem}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border-radius:8px;text-decoration:none;font-weight:700;border:1px solid var(--accent)}
.btn-primary{background:var(--accent);color:#fff}
.btn-line{background:var(--linegreen);border-color:var(--linegreen);color:#fff}
.hero-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:0 12px 34px rgba(20,45,38,.07);text-align:center}
.hero-card .qr{width:190px;margin:10px auto 12px;display:block}.contact-qr{width:210px}
.hero-card strong{font-size:1.08rem}.small{font-size:.88rem;color:var(--muted)}
.section{padding:72px 0}.section.soft{background:var(--soft)}
.section-head{margin-bottom:30px}.section-head h2{font-size:clamp(1.7rem,3vw,2.35rem);margin:0 0 8px}.section-head p{margin:0;color:var(--muted)}
.concerns{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.concern{padding:18px 20px;border:1px solid var(--line);border-radius:12px;background:#fff}
.service-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.service-card{border:1px solid var(--line);border-radius:14px;padding:24px;background:#fff}.service-card h3{margin-top:0;font-size:1.25rem}.service-card.primary{border:2px solid var(--accent);background:var(--accent2)}
.steps{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;counter-reset:step}.step{background:#fff;border:1px solid var(--line);padding:18px;border-radius:12px}.step:before{counter-increment:step;content:"0" counter(step);display:block;font-weight:800;color:var(--accent);font-size:.82rem;letter-spacing:.08em}.step h3{font-size:1rem;margin:.25em 0}
.faq{display:grid;gap:12px}.faq details{border:1px solid var(--line);border-radius:12px;background:#fff;padding:0 18px}.faq summary{cursor:pointer;font-weight:700;padding:17px 0}.faq p{margin:0 0 18px;color:#40554f}
.profile{display:grid;grid-template-columns:190px 1fr;gap:30px;align-items:start}.profile img{width:180px;border-radius:10px}.profile h3{margin-top:0;font-size:1.45rem}.profile-affiliation{margin:0 0 8px;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;line-height:1.55;letter-spacing:.02em;color:var(--accent)}.profile-affiliation strong{font-size:1.15rem;font-weight:700}.profile-affiliation span{font-size:.94rem;color:var(--muted)}
.contact-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:28px}.contact-card,.form-card{border:1px solid var(--line);background:#fff;border-radius:14px;padding:24px}.contact-card dl{margin:0}.contact-card dt{font-weight:700;margin-top:12px}.contact-card dd{margin:2px 0 0}.contact-form label{display:block;font-weight:700;margin:14px 0 5px}.contact-form input,.contact-form textarea{width:100%;border:1px solid #cfd8d4;border-radius:8px;padding:11px 12px;font:inherit}.contact-form textarea{min-height:150px;resize:vertical}.contact-form button{margin-top:16px}.consent{display:flex!important;gap:8px;align-items:flex-start;font-weight:400!important}.consent input{width:auto;margin-top:8px}.hp-field{position:absolute;left:-9999px}.notice{padding:14px 16px;border-radius:10px;margin-bottom:16px}.notice.success{background:#eaf7ee}.notice.error{background:#fff0f0}
.map-box{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#f7f8f7}.map-box iframe{display:block;width:100%;height:360px;border:0}.map-placeholder{padding:28px}.map-placeholder code{word-break:break-all}
.footer{background:#17302b;color:#eaf1ef;padding:44px 0 90px}.footer a{color:#fff}.footer-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.footer small{color:#bfd0ca}.footer-links{display:flex;flex-wrap:wrap;gap:14px}
.mobile-bar{display:none}
.note-box{display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid var(--line);padding:22px;border-radius:14px;background:#fff}
.note-head{display:flex;align-items:end;justify-content:space-between;gap:24px}
.note-head h2{margin-bottom:8px}
.note-list-link{flex:0 0 auto}
.note-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:18px}
.note-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}
.note-thumbnail{display:block;aspect-ratio:16/9;background:var(--soft);overflow:hidden}
.note-thumbnail img{width:100%;height:100%;object-fit:cover;display:block}
.note-card-body{display:flex;flex:1;flex-direction:column;padding:22px}
.note-card time{font-size:.82rem;color:var(--muted)}
.note-card h3{font-size:1.15rem;margin:6px 0 10px}
.note-card h3 a{text-decoration:none;color:var(--ink)}
.note-card p{margin:0 0 16px;color:#52635e;font-size:.92rem}
.note-read{margin-top:auto;font-weight:700}
.business-note{display:block;margin-top:6px;font-size:.86rem;line-height:1.65;color:var(--muted)}
.flyer-section{background:linear-gradient(135deg,#eef7f1 0%,#f9fbf9 100%)}
.flyer-card{display:grid;grid-template-columns:minmax(240px,340px) 1fr;gap:42px;align-items:center;border:1px solid #d7e7dc;border-radius:18px;padding:34px;background:#fff;box-shadow:0 12px 34px rgba(20,45,38,.06)}
.flyer-preview{display:block;border:1px solid var(--line);background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 8px 24px rgba(20,45,38,.12);transition:transform .2s ease,box-shadow .2s ease}
.flyer-preview:hover,.flyer-preview:focus-visible{transform:translateY(-3px);box-shadow:0 12px 30px rgba(20,45,38,.17)}
.flyer-preview img{display:block;width:100%;height:auto}
.flyer-label{display:inline-block;margin-bottom:10px;padding:5px 11px;border-radius:999px;background:var(--accent2);color:var(--accent);font-size:.82rem;font-weight:800;letter-spacing:.06em}
.flyer-content h2{margin:0 0 14px;font-size:clamp(1.7rem,3vw,2.25rem)}
.flyer-content p{margin:0 0 14px;color:#40554f}
.flyer-meta{font-size:.88rem;color:var(--muted)!important}
.flyer-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:24px}
.flyer-download:before{content:"↓";margin-right:8px;font-size:1.1em}
.flyer-open{font-weight:700}
@media(max-width:860px){.nav{display:none}.header-inner{min-height:72px}.brand img{width:46px;height:46px}.brand-title{font-size:1rem}.brand-sub{display:none}.hero{padding:48px 0}.hero-grid,.contact-grid,.profile{grid-template-columns:1fr}.hero-card{max-width:360px}.service-grid,.concerns{grid-template-columns:1fr}.steps{grid-template-columns:1fr 1fr}.profile img{width:150px}.footer-grid{grid-template-columns:1fr}.mobile-bar{display:grid;grid-template-columns:1fr 1fr 1fr;position:fixed;left:0;right:0;bottom:0;z-index:80;background:#fff;border-top:1px solid var(--line)}.mobile-bar a{padding:11px 4px;text-align:center;text-decoration:none;font-size:.82rem;font-weight:700}.mobile-bar .line{background:var(--linegreen);color:#fff}.footer{padding-bottom:110px}}
@media(max-width:860px){.note-grid{grid-template-columns:1fr}.note-head{align-items:flex-start;flex-direction:column}.note-list-link{align-self:flex-start}.flyer-card{grid-template-columns:220px 1fr;gap:28px;padding:26px}}
@media(max-width:650px){.flyer-card{grid-template-columns:1fr}.flyer-preview{max-width:310px;margin-inline:auto}.flyer-content{text-align:center}.flyer-actions{justify-content:center}}
@media(max-width:520px){.wrap{width:min(var(--max),calc(100% - 28px))}.steps{grid-template-columns:1fr}.section{padding:56px 0}.hero-card .qr{width:170px}.flyer-card{padding:20px}.flyer-actions{display:grid}.flyer-actions .btn{width:100%}}

/* 2026-08 consultation/access/profile refinements */
.consult-free{margin-top:14px;font-size:1rem;color:#33443f}.consult-free strong{font-size:1.15rem}.btn-main{font-weight:700;padding:14px 22px}.qualifications{margin-top:18px;padding-top:14px;border-top:1px solid #dfe7e3}.qualifications ul{margin:8px 0 0;padding-left:1.2em;columns:2;column-gap:30px}.qualifications li{margin:5px 0;break-inside:avoid}.map-box iframe{width:100%;min-height:390px;border:0;border-radius:14px;display:block}.map-caption{margin-top:10px;font-size:.94rem;color:#52635e}.line-contact{border:2px solid #d7eadf}.phone-secondary{margin-top:22px;padding-top:18px;border-top:1px solid #e0e7e3}.phone-link{display:inline-block;margin-top:4px;color:#42534e;text-decoration:underline;font-size:1.05rem;white-space:nowrap}@media(max-width:700px){.qualifications ul{columns:1}.map-box iframe{min-height:320px}}

.consult-channels{margin:4px 0 0;font-size:.94rem;color:#40554f;line-height:1.7;max-width:680px}
.visit-note{margin-top:10px;font-size:.92rem;color:#5d655f;line-height:1.7;max-width:680px}



/* Pricing section: table layout for readability */
#price,#price table{font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP","Yu Gothic",Meiryo,sans-serif}
#price h2,#price h3{font-family:"Yu Mincho","Hiragino Mincho ProN",serif}
#price .section-head{margin-bottom:22px}
#price .fee-highlights{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0 0 34px}
#price .fee-highlights>div{display:flex;align-items:center;justify-content:center;gap:9px;min-height:58px;padding:10px 12px;border:1px solid #d9e5e1;border-radius:10px;background:#fff;text-align:center}
#price .fee-highlights span{font-size:.78rem;color:var(--muted)}
#price .fee-highlights strong{font-size:1rem;color:var(--accent);white-space:nowrap}
#price .fee-category{margin-top:46px}
#price .fee-category-head{display:flex;align-items:baseline;gap:16px;margin-bottom:12px}
#price .fee-category-head h3{margin:0;padding-left:12px;border-left:5px solid var(--accent);font-size:1.42rem;line-height:1.35;color:var(--ink)}
#price .fee-category-head p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.6}
#price .fee-table-wrap{overflow:hidden;border:1px solid #d7e1dd;border-radius:12px;background:#fff;box-shadow:0 4px 16px rgba(24,52,47,.035)}
#price .fee-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.92rem;line-height:1.65}
#price .fee-table th{padding:12px 16px;border:1px solid #c8d6d1;background:var(--accent);color:#fff;text-align:left;font-size:.82rem;letter-spacing:.03em;font-weight:700}
#price .fee-table th:nth-child(1){width:33%}
#price .fee-table th:nth-child(2){width:22%;text-align:center}
#price .fee-table th:nth-child(3){width:45%}
#price .fee-table td{padding:16px;border:1px solid #d7e1dd;vertical-align:middle;color:#435650}
#price .fee-table tbody tr:first-child td{border-top:1px solid #d7e1dd}
#price .fee-table tbody tr:nth-child(even){background:#fbfcfb}
#price .fee-table td:first-child{color:var(--ink)}
#price .fee-table td:first-child strong{display:inline;font-size:.98rem;line-height:1.55}
#price .fee-price{text-align:center;color:var(--accent)!important;font-size:1.12rem;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
#price .fee-price-long{white-space:normal}
#price .fee-emphasis{background:#f0f7f4!important}
#price .fee-tag{display:inline-block;margin-left:8px;padding:2px 7px;border-radius:999px;background:var(--accent);color:#fff;font-size:.67rem;font-weight:700;vertical-align:2px;white-space:nowrap}
#price .price-note{margin-top:18px;padding:16px 18px;border:1px solid #ead9b6;border-radius:10px;background:#fff8ea;font-size:.88rem;line-height:1.75;color:#4d5f59}
#price .price-note strong{display:block;margin-bottom:4px;color:#394b46}
#price .price-note p{margin:0}
#price .price-note-general{border-color:#d9e2de;background:#fff}
#price .price-note-general ul{margin:7px 0 0;padding-left:1.25em}
#price .price-note-general li+li{margin-top:5px}
@media(max-width:800px){
  #price .fee-highlights{grid-template-columns:repeat(2,1fr);margin-bottom:28px}
  #price .fee-category-head{display:block}
  #price .fee-category-head p{margin-top:7px;padding-left:17px}
  #price .fee-table-wrap{overflow:visible;border:0;background:transparent;box-shadow:none}
  #price .fee-table,#price .fee-table tbody,#price .fee-table tr,#price .fee-table td{display:block;width:100%}
  #price .fee-table thead{display:none}
  #price .fee-table tbody{display:grid;gap:12px}
  #price .fee-table tr{overflow:hidden;border:1px solid #d7e1dd;border-radius:11px;background:#fff!important;box-shadow:0 3px 12px rgba(24,52,47,.03)}
  #price .fee-table td{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;padding:11px 14px;border:0;border-top:1px solid #e8eeeb;text-align:left;white-space:normal}
  #price .fee-table td:first-child{display:block;padding:15px 14px 12px;border-top:0;background:#fafcfb}
  #price .fee-table td:not(:first-child)::before{content:attr(data-label);font-size:.72rem;font-weight:700;color:var(--muted);line-height:1.5}
  #price .fee-price{font-size:1.12rem;text-align:left}
  #price .fee-emphasis{border:2px solid #8fb5aa!important}
  #price .fee-emphasis td:first-child{background:#eef6f3}
}
@media(max-width:520px){
  #price .fee-highlights{gap:8px}
  #price .fee-highlights>div{display:block;min-height:0;padding:10px 8px}
  #price .fee-highlights span,#price .fee-highlights strong{display:block}
  #price .fee-highlights strong{margin-top:2px;font-size:.94rem}
  #price .fee-category{margin-top:36px}
  #price .fee-category-head h3{font-size:1.28rem}
  #price .fee-table td{grid-template-columns:96px minmax(0,1fr);gap:9px;padding:10px 12px;font-size:.88rem}
  #price .fee-table td:first-child{padding:13px 12px 11px}
  #price .fee-tag{display:inline-block;margin-top:5px;margin-left:0}
  #price .price-note{padding:14px;font-size:.84rem}
}


/* 2026-08-19 balanced service presentation */
.equal-services{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.equal-services .service-card{height:100%;border-width:1px;background:#fff}
.equal-services .service-card h3{font-size:1.18rem}
.flyer-card + .flyer-card{margin-top:24px}
@media(max-width:900px){.equal-services{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.equal-services{grid-template-columns:1fr}}

/* 2026-08-19 fee table: clear black grid lines */
@media (min-width:801px){
  #price .fee-table-wrap{
    overflow:hidden;
    border:1px solid #222 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:#fff;
  }
  #price .fee-table{
    width:100%;
    border-collapse:collapse !important;
    border-spacing:0 !important;
    border:1px solid #222 !important;
  }
  #price .fee-table th,
  #price .fee-table td{
    border:1px solid #222 !important;
  }
  #price .fee-table tbody tr:first-child td{
    border-top:1px solid #222 !important;
  }
}
@media (max-width:800px){
  #price .fee-table tr{
    border:1px solid #222 !important;
  }
  #price .fee-table td{
    border-top:1px solid #222 !important;
  }
  #price .fee-table td:first-child{
    border-top:0 !important;
  }
}

/* v1.4.0 お役立ち情報（WordPress投稿） */
.article-head{display:flex;align-items:end;justify-content:space-between;gap:24px}
.article-list-link{flex:0 0 auto}
.article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.article-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 5px 18px rgba(20,45,38,.035)}
.article-thumbnail{display:block;aspect-ratio:16/9;background:var(--soft);overflow:hidden}
.article-thumbnail img{width:100%;height:100%;object-fit:cover;display:block}
.article-card-body{display:flex;flex:1;flex-direction:column;padding:22px}
.article-card time{font-size:.82rem;color:var(--muted)}
.article-card h3{font-size:1.15rem;margin:6px 0 10px}
.article-card h3 a{text-decoration:none;color:var(--ink)}
.article-card h3 a:hover{text-decoration:underline;text-underline-offset:3px}
.article-card p{margin:0 0 16px;color:#52635e;font-size:.92rem}
.article-read{margin-top:auto;font-weight:700}
.article-empty{border:1px solid var(--line);border-radius:14px;background:#fff;padding:24px}
.article-empty p{margin:5px 0 0;color:var(--muted)}
.note-secondary{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:28px;padding:20px 22px;border:1px solid #dfe8e4;border-radius:14px;background:var(--soft)}
.note-secondary p{margin:4px 0 0;color:var(--muted);font-size:.9rem}

.articles-page{padding-top:56px}
.page-intro{max-width:760px;margin:0 0 32px;color:#52635e}
.article-list-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.article-list-grid .article-card{height:100%}
.pagination{display:flex;justify-content:center;gap:7px;margin-top:38px;flex-wrap:wrap}
.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 11px;border:1px solid var(--line);border-radius:8px;background:#fff;text-decoration:none;color:var(--ink)}
.pagination .current{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:700}

.single-article-wrap{width:min(820px,calc(100% - 40px));margin:0 auto;padding:56px 0 76px}
.article-back{display:inline-block;margin-bottom:18px;font-size:.9rem;font-weight:700;text-decoration:none}
.single-article-header{padding-bottom:24px;border-bottom:1px solid var(--line)}
.single-article-header time{display:block;margin-bottom:8px;color:var(--muted);font-size:.88rem}
.single-article-header h1{font-size:clamp(1.9rem,4vw,2.9rem);margin:0}
.single-featured{margin:28px 0 34px;border-radius:14px;overflow:hidden}
.single-featured img{display:block;width:100%;height:auto}
.article-content{font-size:1.02rem;line-height:1.95;color:#2d4540}
.article-content h2{margin:2.2em 0 .8em;padding:0 0 .4em;border-bottom:2px solid var(--accent);font-size:1.65rem}
.article-content h3{margin:1.8em 0 .65em;font-size:1.3rem}
.article-content h4{margin:1.6em 0 .5em;font-size:1.08rem}
.article-content p{margin:0 0 1.35em}
.article-content ul,.article-content ol{margin:0 0 1.4em;padding-left:1.6em}
.article-content li+li{margin-top:.35em}
.article-content blockquote{margin:1.8em 0;padding:14px 20px;border-left:4px solid var(--accent);background:var(--soft)}
.article-content table{width:100%;border-collapse:collapse;margin:1.8em 0;font-size:.94rem}
.article-content th,.article-content td{padding:10px 12px;border:1px solid #bccac5;vertical-align:top}
.article-content th{background:var(--accent2);text-align:left}
.article-content a{font-weight:600;text-underline-offset:3px}
.article-footer-nav{margin-top:42px;padding-top:24px;border-top:1px solid var(--line)}

@media(max-width:900px){
  .article-grid,.article-list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
  .article-head{align-items:flex-start;flex-direction:column}
  .article-list-link{align-self:flex-start}
  .article-grid,.article-list-grid{grid-template-columns:1fr}
  .note-secondary{align-items:flex-start;flex-direction:column}
  .single-article-wrap{width:min(100% - 28px,820px);padding-top:38px}
  .article-content{font-size:.98rem}
  .article-content h2{font-size:1.4rem}
}
