/* 藤本国際特許事務所 リニューアル版 共通スタイル */

:root {
  --ink: #18222F;
  --ink-sub: #3B4552;
  --muted: #4A5563;
  --line: #D9DDE1;
  --ground: #FFFFFF;
  --ground-alt: #F3F4F2;
  --accent: #A2552B;
  --dark: #18222F;
  --dark-line: #3C4A5C;
  --dark-sub: #C9D0D8;
  --footer: #111821;
  --serif: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  --wrap: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
}

img { max-width: 100%; height: auto; }

a { color: var(--ink); }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, p, dl, dd, ul { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.skip-link {
  position: absolute; left: 8px; top: -48px;
  background: var(--ink); color: #fff; padding: 8px 16px; z-index: 100;
}
.skip-link:focus { top: 8px; color: #fff; }

[id] { scroll-margin-top: 96px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 40px; padding-top: 18px; padding-bottom: 18px;
}
.brand { text-decoration: none; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink); }
.brand-sub { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.en .brand-name { letter-spacing: 0.03em; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 4px; background: var(--ground);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--ink); }

.site-nav { margin-left: auto; order: 2; }
.site-nav ul {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px;
}
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { font-weight: 700; border-bottom: 2px solid var(--accent); }

/* 言語切り替え：ヘッダー右上（スマートフォンではハンバーガーメニューの左） */
.header-lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 14px;
  font-size: 13px; letter-spacing: 0.08em; text-decoration: none;
  border: 1px solid var(--line); border-radius: 4px; white-space: nowrap;
  order: 3; margin-left: -12px;
}
.nav-toggle { order: 4; }
.header-lang:hover { border-color: var(--ink); color: var(--ink); background: var(--ground-alt); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 10px 20px; border-radius: 4px; font-weight: 500;
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav-cta:hover { background: #8A4722; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 28px; border-radius: 4px;
  font-weight: 500; text-decoration: none;
}
.btn-solid { background: var(--dark); color: #fff; }
.btn-solid:hover { background: #2A3747; color: #fff; }
.btn-line { border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* ---------- Sections ---------- */
.section { padding-top: 104px; padding-bottom: 104px; }
.section-alt { background: var(--ground-alt); }
.section-head { display: flex; flex-wrap: wrap; gap: 8px 40px; align-items: baseline; margin-bottom: 56px; }
.section-head.split { justify-content: space-between; }
.section-head .label-group { display: flex; flex-wrap: wrap; gap: 8px 40px; align-items: baseline; }
.section-title { font-family: var(--serif); font-size: 36px; font-weight: 600; letter-spacing: 0.06em; line-height: 1.4; }
.en .section-title { letter-spacing: 0.01em; }
.section-label { color: var(--muted); font-size: 13px; letter-spacing: 0.2em; }
.eyebrow { font-size: 13px; letter-spacing: 0.24em; color: var(--accent); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { background: var(--ground-alt); }
.hero .wrap {
  display: flex; flex-wrap: wrap; gap: 56px 80px; align-items: flex-end;
  padding-top: 112px; padding-bottom: 104px;
}
.hero-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: 56px; line-height: 1.4; letter-spacing: 0.04em; }
.en .hero h1 { line-height: 1.2; letter-spacing: 0; }
.hero-lead { font-size: 17px; color: var(--ink-sub); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.facts { flex: 1 1 300px; border-top: 1px solid var(--ink); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; white-space: nowrap; }
.facts dd.facts-addr { font-size: 16px; line-height: 1.7; }
.facts dd { font-family: var(--serif); font-size: 20px; font-weight: 600; text-align: right; }

/* ---------- Commitment ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; }
.point { display: flex; flex-direction: column; gap: 16px; border-top: 2px solid var(--ink); padding-top: 24px; }
.point-no { font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--accent); line-height: 1; }
.point h3 { font-size: 20px; font-weight: 700; line-height: 1.5; }
.point p { color: var(--ink-sub); }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card { background: var(--ground); border-radius: 6px; padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 19px; font-weight: 700; }
.card p { color: var(--ink-sub); font-size: 15px; }

.fields { margin-top: 64px; display: flex; flex-direction: column; gap: 20px; }
.fields h3 { font-size: 17px; font-weight: 700; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--ground); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 14px; }

/* ---------- Members (summary) ---------- */
.member-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.member-item { display: flex; flex-direction: column; gap: 10px; padding: 28px 0; border-top: 1px solid var(--line); }
.member-role { font-size: 13px; color: var(--muted); }
.member-name { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: 0.08em; line-height: 1.4; }
.en .member-name { letter-spacing: 0.01em; font-size: 24px; }
.member-field { font-size: 15px; color: var(--ink-sub); }
.member-card { background: var(--ground); border-radius: 6px; padding: 32px 28px; gap: 8px; border-top: 0; }

/* ---------- Members (detail page) ---------- */
.page-head { background: var(--ground-alt); }
.page-head .wrap { padding-top: 80px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 12px; }
.page-head h1 { font-family: var(--serif); font-weight: 600; font-size: 44px; letter-spacing: 0.06em; line-height: 1.4; }
.page-head p:last-child { color: var(--ink-sub); max-width: 640px; }

.profiles { padding-top: 72px; padding-bottom: 112px; }
.profile { display: flex; flex-wrap: wrap; gap: 32px 64px; padding: 48px 0; border-top: 1px solid var(--line); }
.profile:last-child { border-bottom: 1px solid var(--line); }
.profile-photo { flex: 0 0 200px; }
.profile-photo img { display: block; width: 200px; height: 240px; object-fit: cover; border-radius: 6px; }
.profile-body { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.profile-name { display: flex; flex-direction: column; gap: 4px; }
.profile-name h2 { font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: 0.1em; line-height: 1.4; }
.profile-name .roman { font-size: 13px; letter-spacing: 0.12em; color: var(--muted); }
.profile dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px 24px; }
.profile dt { font-size: 14px; color: var(--muted); padding-top: 2px; }
.profile dd { margin: 0; }
.profile dd.strong { font-weight: 500; }

/* ---------- Access ---------- */
.access .wrap { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.access-info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.access-info .section-head { margin-bottom: 0; }
.address { font-size: 17px; }
.routes { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--ink-sub); }
.routes strong { color: var(--ink); margin-right: 0.8em; }
.map { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.map iframe { width: 100%; height: 400px; border: 0; border-radius: 6px; background: #E3E6E8; }
.map a { font-size: 14px; align-self: flex-end; }

.contact-list { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px 16px; }
.contact-list dt { color: var(--muted); font-size: 14px; padding-top: 2px; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Contact band ---------- */
.contact { background: var(--dark); color: #fff; }
.contact .wrap {
  display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: center; justify-content: space-between;
  padding-top: 96px; padding-bottom: 96px;
}
.contact-lead { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.contact-lead p { color: var(--dark-sub); }
.contact-rows { flex: 1 1 380px; border-top: 1px solid var(--dark-line); }
.contact-rows div {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--dark-line);
}
.contact-rows dt { color: var(--dark-sub); font-size: 14px; }
.contact-rows dd { font-size: 22px; font-weight: 500; }
.contact-rows dd.mail { font-size: 18px; overflow-wrap: anywhere; }
.contact-rows a { color: #fff; text-decoration: none; }
.mail-text { display: block; white-space: nowrap; }
.mail-note { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; line-height: 1.6; color: var(--muted); }
.contact-rows .mail-note { color: var(--dark-sub); }
.contact-rows dd.mail { text-align: right; }
.contact-rows a:hover { color: #fff; text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--dark-sub); font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-top: 32px; padding-bottom: 32px; }
.site-footer a { color: var(--dark-sub); }
.site-footer a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .site-header .wrap { flex-wrap: wrap; gap: 12px; }
  .brand { flex: 1 1 0; }
  .header-lang { order: 2; margin-left: 0; min-height: 44px; }
  .nav-toggle { order: 3; flex: 0 0 auto; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; flex-basis: 100%; order: 10; margin-left: 0; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 4px; }
  .site-nav li a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); }
  .nav-cta { justify-content: center; margin-top: 12px; border-bottom: 0 !important; }
  .site-nav a[aria-current="page"] { border-bottom: 1px solid var(--line); color: var(--accent); }
}

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .brand-name { font-size: 18px; letter-spacing: 0.06em; }
  .brand-sub { font-size: 10px; }
  .en .brand-name { font-size: 17px; letter-spacing: 0; }
  .en .brand-sub { letter-spacing: 0.12em; }
  .header-lang { padding: 0 10px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-head { margin-bottom: 32px; }
  .section-title { font-size: 26px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .hero h1 { font-size: 32px; }
  .hero-lead { font-size: 15px; }
  .eyebrow { font-size: 12px; letter-spacing: 0.14em; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .grid-3 { gap: 32px; }
  .point-no { font-size: 24px; }
  .point h3 { font-size: 17px; }
  .fields { margin-top: 40px; }
  .member-name { font-size: 20px; }
  .page-head .wrap { padding-top: 48px; padding-bottom: 40px; }
  .page-head h1 { font-size: 30px; }
  .profiles { padding-top: 24px; padding-bottom: 64px; }
  .profile { padding: 32px 0; }
  .profile-name h2 { font-size: 24px; }
  .profile dl { grid-template-columns: 1fr; gap: 2px; }
  .profile dd { margin-bottom: 12px; }
  .map iframe { height: 280px; }
  .contact-list { grid-template-columns: 1fr; gap: 0; }
  .contact-list dt { margin-top: 12px; }
  .contact-list dt:first-child { margin-top: 0; }
  .contact .wrap { padding-top: 64px; padding-bottom: 64px; }
  .contact-rows dd { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header { position: static; }
  .nav-toggle, .site-nav, .map iframe { display: none; }
}
