/* ─── common.css | 松本国際行政書士事務所 ─── */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body { font-family: 'Noto Sans JP','Hiragino Kaku Gothic Pro','Yu Gothic',sans-serif; font-weight:400; color: #1A2A3A; line-height: 1.85; font-size:15px; }
a { text-decoration: none; color: inherit; }

/* ─── VARIABLES ─── */
:root {
  --navy:      #0E2040;
  --blue-dark: #1A3A6A;
  --blue:      #1A5090;
  --blue-mid:  #1A6AAA;
  --blue-light:#3A7ABA;
  --accent:    #88BBEE;
  --orange:    #E07A3A;
  --white:     #ffffff;
  --off-white: #F4F6FA;
  --gray-100:  #EEF2F8;
  --gray-200:  #DDE4EE;
  --gray-300:  #BCC8D8;
  --text-main: #1A2A3A;
  --text-sub:  #5A6A7A;
  --text-light:#8A9AAA;
  --ease:      cubic-bezier(0.16,1,0.3,1);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.fade-in { opacity:0; transform:translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.fade-in.visible { opacity:1; transform:translateY(0); }

/* ─── TOP BAR ─── */
#topBar {
  background: var(--white);
  padding: 8px 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.top-note { font-size: 10px; color: var(--text-light); text-align: right; line-height: 1.6; }
.btn-mail {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-dark); color: var(--white);
  font-size: 11px; padding: 8px 18px; letter-spacing: .06em;
  transition: background .2s;
}
.btn-mail:hover { background: var(--blue); }

/* ─── HEADER ─── */
header {
  background: var(--white);
  border-bottom: 3px solid var(--blue-dark);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(10,20,50,.06);
}
.header-inner { display:flex; align-items:center; gap:14px; padding:14px 40px; }
.logo-mark { height:48px; width:auto; display:block; flex-shrink:0; }
.logo-en  { font-size:9px; letter-spacing:.22em; color:var(--blue-light); text-transform:uppercase; margin-bottom:2px; }
.logo-ja  { font-size:20px; color:var(--navy); font-weight:400; letter-spacing:.05em; }
.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:8px; margin-left:auto; background:none; border:none; }
.hamburger span { display:block; width:22px; height:2px; background:var(--navy); }
nav { display:flex; padding:0 40px; flex-wrap:wrap; }
nav a { display:block; padding:10px 11px; font-size:11px; color:var(--text-sub); letter-spacing:.04em; border-bottom:3px solid transparent; margin-bottom:-3px; transition:color .2s,border-color .2s; }
nav a:hover, nav a.active { color:var(--blue-dark); border-color:var(--blue-dark); }

/* ─── MOBILE NAV ─── */
.mobile-nav {
  display:none; position:fixed; inset:0;
  background:var(--navy); z-index:999;
  flex-direction:column; align-items:center; justify-content:center;
  gap:22px; opacity:0; pointer-events:none; transition:opacity .3s;
}
.mobile-nav.open { opacity:1; pointer-events:auto; }
.mobile-nav a { font-size:20px; color:var(--white); letter-spacing:.06em; }
.close-btn { position:absolute; top:20px; right:24px; font-size:30px; color:rgba(255,255,255,.5); cursor:pointer; background:none; border:none; }

/* ─── FLOATING CTA ─── */
.floating-cta {
  display:none; position:fixed; bottom:0; left:0; right:0; z-index:900;
  background:var(--orange); padding:15px 24px;
  align-items:center; justify-content:center;
  color:var(--white); font-size:14px; font-weight:bold; letter-spacing:.08em;
}

/* ─── SECTION COMMON ─── */
.section-wrap { max-width:1100px; margin:0 auto; }
.sec-head { margin-bottom:44px; }
.sec-en { display:block; font-size:9px; letter-spacing:.28em; color:var(--blue-light); text-transform:uppercase; margin-bottom:10px; font-family:Georgia,serif; }
.sec-ja { font-size:clamp(22px,3vw,34px); font-weight:300; color:var(--navy); line-height:1.4; }
.sec-ja em { font-style:normal; color:var(--blue); }
.section-header { margin-bottom:44px; }
.section-en { display:block; font-size:9px; letter-spacing:.28em; color:var(--blue-light); text-transform:uppercase; margin-bottom:10px; font-family:Georgia,serif; }
.section-title { font-size:clamp(22px,3vw,34px); font-weight:300; color:var(--navy); line-height:1.4; }
.section-title em { font-style:normal; color:var(--blue); }

/* ─── PAGE BANNER ─── */
.page-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue-dark) 100%);
  padding: 52px 40px 48px;
  position: relative; overflow: hidden;
}
.page-banner::after {
  content:''; position:absolute; right:-80px; top:-80px;
  width:320px; height:320px; border-radius:50%;
  background:rgba(255,255,255,.03); pointer-events:none;
}
.page-banner-inner { max-width:960px; margin:0 auto; position:relative; z-index:1; }
.breadcrumb { font-size:11px; color:rgba(255,255,255,.45); letter-spacing:.04em; margin-bottom:18px; }
.breadcrumb a { color:rgba(255,255,255,.55); transition:color .2s; }
.breadcrumb a:hover { color:rgba(255,255,255,.85); }
.breadcrumb span { color:rgba(255,255,255,.3); margin:0 8px; }
.page-title { font-size:clamp(22px,3.5vw,36px); font-weight:300; color:var(--white); letter-spacing:.04em; line-height:1.5; margin-bottom:14px; }
.page-lead { font-size:14px; color:rgba(255,255,255,.72); line-height:2; max-width:660px; }

/* ─── PAGE SECTIONS ─── */
.page-section { padding:72px 40px; background:var(--white); }
.page-section.alt { background:var(--off-white); }
.page-section-inner { max-width:960px; margin:0 auto; }
.page-section-inner.narrow { max-width:760px; }

/* ─── PAGE SECTION TITLE ─── */
.ps-label { display:block; font-size:9px; letter-spacing:.22em; color:var(--blue-light); text-transform:uppercase; margin-bottom:8px; font-family:Georgia,serif; }
.ps-title { font-size:clamp(18px,2.5vw,24px); font-weight:300; color:var(--navy); margin-bottom:28px; padding-bottom:14px; border-bottom:2px solid var(--gray-100); line-height:1.55; }

/* ─── WORRY LIST ─── */
.worry-list { border-top:1px solid var(--gray-200); }
.worry-item { display:flex; gap:16px; align-items:flex-start; padding:17px 0; border-bottom:1px solid var(--gray-200); }
.worry-num { font-family:Georgia,serif; font-size:12px; color:var(--blue-mid); font-style:italic; width:22px; flex-shrink:0; }
.worry-text { font-size:15px; color:var(--navy); line-height:1.75; }

/* ─── DETAIL FLOW ─── */
.detail-flow { display:flex; flex-direction:column; }
.detail-flow-item { display:flex; gap:20px; align-items:flex-start; padding:20px 0; border-bottom:1px solid var(--gray-100); }
.detail-flow-item:last-child { border-bottom:none; }
.detail-flow-num { font-family:Georgia,serif; font-size:13px; color:var(--blue-mid); font-style:italic; width:28px; flex-shrink:0; margin-top:2px; }
.detail-flow-title { font-size:15px; font-weight:500; color:var(--navy); margin-bottom:4px; }
.detail-flow-desc { font-size:13px; color:var(--text-sub); line-height:1.85; }

/* ─── PRICE TABLE ─── */
.price-table { width:100%; border-collapse:collapse; }
.price-table th { background:var(--blue-dark); color:var(--white); font-size:12px; font-weight:500; padding:11px 16px; text-align:left; letter-spacing:.04em; }
.price-table td { padding:14px 16px; font-size:13px; border-bottom:1px solid var(--gray-100); vertical-align:top; }
.price-table tr:last-child td { border-bottom:none; }
.price-name { color:var(--text-main); line-height:1.6; }
.price-amt { color:var(--navy); font-weight:500; white-space:nowrap; }
.price-note { font-size:12px; color:var(--text-sub); line-height:2.1; padding:16px 20px; background:var(--white); border-left:3px solid var(--gray-200); margin-top:16px; }

/* ─── DOCS LIST ─── */
.docs-list { border-top:1px solid var(--gray-200); }
.docs-item { display:flex; gap:12px; align-items:baseline; padding:13px 0; border-bottom:1px solid var(--gray-200); font-size:14px; color:var(--text-main); line-height:1.75; }
.docs-item::before { content:'◆'; color:var(--blue-light); font-size:8px; flex-shrink:0; }

/* ─── TAGS (できること/できないこと) ─── */
.can-list, .cannot-list { display:flex; flex-direction:column; gap:8px; }
.can-item, .cannot-item { display:flex; gap:12px; align-items:flex-start; font-size:14px; line-height:1.7; }
.can-item::before { content:'○'; color:var(--blue); flex-shrink:0; font-size:15px; }
.cannot-item::before { content:'×'; color:var(--gray-300); flex-shrink:0; font-size:15px; }

/* ─── FAQ ─── */
.faq-list { display:flex; flex-direction:column; }
.faq-item { border-bottom:1px solid var(--gray-200); }
.faq-q { display:flex; align-items:flex-start; gap:18px; padding:22px 0; cursor:pointer; }
.faq-q-mark { font-family:Georgia,serif; font-size:17px; color:var(--blue); font-style:italic; flex-shrink:0; margin-top:1px; width:20px; }
.faq-q-text { font-size:15px; color:var(--navy); font-weight:500; flex:1; line-height:1.7; }
.faq-toggle { font-size:20px; color:var(--gray-300); flex-shrink:0; transition:transform .2s; line-height:1; margin-top:2px; }
.faq-item.open .faq-toggle { transform:rotate(45deg); color:var(--blue); }
.faq-a { padding:0 0 22px 38px; font-size:14px; color:var(--text-main); line-height:2.1; display:none; }
.faq-item.open .faq-a { display:block; }

/* ─── NOTE BOX ─── */
.note-box { background:var(--off-white); border-left:3px solid var(--blue-light); padding:18px 22px; font-size:13px; color:var(--text-main); line-height:2; margin:24px 0; }
.note-box.warn { border-color:var(--orange); background:#FEF9F5; }

/* ─── CTA BOX (inline) ─── */
.cta-box { background:var(--blue-dark); padding:32px 36px; margin:40px 0; text-align:center; }
.cta-box-title { font-size:16px; color:var(--white); font-weight:400; margin-bottom:8px; letter-spacing:.04em; line-height:1.6; }
.cta-box-note { font-size:12px; color:rgba(255,255,255,.6); margin-bottom:22px; line-height:1.8; }
.btn-cta-main {
  display:inline-flex; align-items:center; gap:10px;
  background:#D9783A; color:var(--white);
  font-size:14px; font-weight:bold; padding:14px 32px; letter-spacing:.08em;
  border-radius:3px; box-shadow:0 6px 18px rgba(217,120,58,.24);
  transition:background .2s,transform .2s;
}
.btn-cta-main:hover { background:#C46A2E; transform:translateY(-2px); }
.btn-link { display:inline-flex; align-items:center; gap:6px; color:var(--blue); font-size:13px; border-bottom:1px solid var(--accent); padding-bottom:2px; transition:color .2s; }
.btn-link:hover { color:var(--blue-dark); }

/* ─── COLUMN CARDS ─── */
.column-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.column-card { background:var(--white); border-top:3px solid var(--blue); padding:24px 22px 20px; transition:box-shadow .25s; }
.column-card:hover { box-shadow:0 4px 18px rgba(10,30,70,.09); }
.col-cat { display:inline-block; font-size:10px; letter-spacing:.1em; color:var(--blue-mid); background:var(--gray-100); padding:3px 10px; margin-bottom:10px; }
.col-date { font-size:11px; color:var(--text-light); margin-bottom:10px; display:block; }
.col-title { font-size:14px; font-weight:500; color:var(--navy); line-height:1.65; margin-bottom:10px; }
.col-desc { font-size:12px; color:var(--text-sub); line-height:1.9; margin-bottom:16px; }
.col-more { font-size:12px; color:var(--blue); }

/* ─── CATEGORY FILTER ─── */
.cat-filter { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:36px; }
.cat-btn { font-size:12px; padding:7px 16px; border:1px solid var(--gray-200); color:var(--text-sub); background:var(--white); cursor:pointer; transition:all .2s; letter-spacing:.04em; }
.cat-btn:hover, .cat-btn.active { background:var(--blue-dark); color:var(--white); border-color:var(--blue-dark); }

/* ─── ARTICLE BODY ─── */
.article-body { max-width:760px; margin:0 auto; }
.article-body h2 { font-size:clamp(18px,2.5vw,24px); font-weight:400; color:var(--navy); margin:48px 0 20px; padding-bottom:12px; border-bottom:2px solid var(--gray-100); line-height:1.5; }
.article-body h3 { font-size:clamp(15px,2vw,18px); font-weight:500; color:var(--blue-dark); margin:32px 0 14px; line-height:1.55; }
.article-body p { font-size:15px; color:var(--text-main); line-height:2.1; margin-bottom:20px; }
.article-body ul, .article-body ol { padding-left:22px; margin-bottom:20px; }
.article-body li { font-size:14px; color:var(--text-main); line-height:2; margin-bottom:4px; }

/* ─── TOC ─── */
.toc-box { background:var(--off-white); border:1px solid var(--gray-200); padding:24px 28px; margin:32px 0 40px; }
.toc-title { font-size:11px; letter-spacing:.14em; color:var(--blue-dark); text-transform:uppercase; margin-bottom:14px; font-family:Georgia,serif; }
.toc-list { list-style:none; display:flex; flex-direction:column; gap:8px; }
.toc-list a { font-size:13px; color:var(--blue); line-height:1.6; }
.toc-list a:hover { color:var(--blue-dark); }
.toc-list li { padding-left:14px; border-left:1px solid var(--gray-200); }

/* ─── CONTACT ─── */
#contact { padding:80px 40px; background:var(--blue-dark); }
#contact .section-en { color:rgba(255,255,255,.35); }
#contact .section-title { color:var(--white); }
#contact .section-title em { color:var(--accent); }
.contact-box { max-width:680px; margin:0 auto; }
.contact-note { background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15); border-left:3px solid var(--accent); padding:20px 24px; margin-bottom:28px; font-size:13px; color:rgba(255,255,255,.82); line-height:2; }
.contact-note strong { color:var(--white); }
.btn-contact { display:block; text-align:center; background:#D9783A; color:#fff; font-size:15px; font-weight:bold; padding:18px; letter-spacing:.1em; margin-bottom:14px; border-radius:3px; box-shadow:0 6px 18px rgba(217,120,58,.28); transition:background .2s; }
.btn-contact:hover { background:#C46A2E; }
.contact-sub { text-align:center; font-size:11px; color:rgba(255,255,255,.45); letter-spacing:.05em; }

/* ─── FOOTER ─── */
footer { background:var(--white); border-top:3px solid var(--blue-dark); padding:48px 40px 28px; }
.footer-grid { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:1.8fr 1fr 1fr 1fr; gap:40px; margin-bottom:40px; }
.footer-name { font-size:15px; color:var(--navy); font-weight:500; letter-spacing:.05em; margin-bottom:10px; }
.footer-tag  { font-size:12px; color:var(--text-sub); line-height:1.95; }
.footer-col-title { font-size:9px; letter-spacing:.2em; color:var(--blue-dark); text-transform:uppercase; margin-bottom:14px; font-weight:500; }
.footer-links { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-links a { font-size:12px; color:var(--text-sub); transition:color .2s; }
.footer-links a:hover { color:var(--blue-dark); }
.footer-bottom { max-width:1100px; margin:0 auto; padding-top:22px; border-top:1px solid rgba(10,30,70,.1); text-align:center; }
.footer-copy { font-size:10px; color:var(--text-sub); letter-spacing:.06em; }

/* ─── OFFICE TABLE ─── */
.office-table { width:100%; border-collapse:collapse; }
.office-table th { background:var(--off-white); color:var(--navy); font-size:13px; font-weight:500; padding:14px 18px; text-align:left; border-bottom:1px solid var(--gray-200); width:160px; vertical-align:top; }
.office-table td { font-size:13px; color:var(--text-main); padding:14px 18px; border-bottom:1px solid var(--gray-200); line-height:1.85; }

/* ─── PRIVACY ─── */
.privacy-body h2 { font-size:17px; font-weight:500; color:var(--navy); margin:36px 0 12px; padding-left:12px; border-left:3px solid var(--blue); }
.privacy-body p, .privacy-body li { font-size:14px; color:var(--text-main); line-height:2.1; margin-bottom:12px; }
.privacy-body ul { padding-left:20px; margin-bottom:16px; }

/* ─── RELATED GRID ─── */
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }

/* ─── RESPONSIVE ─── */
@media (max-width:900px) {
  .footer-grid { grid-template-columns:1fr 1fr; }
  .column-grid, .related-grid { grid-template-columns:repeat(2,1fr); }
  .page-section { padding:56px 24px; }
  .page-banner { padding:44px 24px 40px; }
}
@media (max-width:768px) {
  #topBar { display:none; }
  nav { display:none; }
  .hamburger { display:flex; }
  .mobile-nav { display:flex; }
  .floating-cta { display:flex; }
  body { padding-bottom:56px; }
  .header-inner { padding:12px 20px; }
  .page-banner { padding:36px 20px 32px; }
  .page-section { padding:48px 20px; }
  .column-grid, .related-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; gap:28px; }
  footer { padding:40px 20px 24px; }
  #contact { padding:60px 20px; }
  .price-table th, .price-table td { padding:10px 12px; font-size:12px; }
  .office-table th { width:100px; font-size:12px; padding:12px 12px; }
  .office-table td { font-size:12px; padding:12px 12px; }
  .cta-box { padding:24px 20px; }
}
