/* =========================================================
   Kardashev Scale Technologies — multi-page corporate system
   Design language referenced from NHK Spring (Nippatsu)
   Light, spacious, trustworthy. Navy brand identity.
   ========================================================= */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f3f6f9;
  --bg-band: #eef2f6;
  --ink: #14202c;
  --body: #2c3a47;
  --muted: #54636f;
  --line: #dde4ea;
  --line-soft: #e8edf1;
  --navy: #0e3c6e;
  --navy-deep: #0a2c52;
  --navy-soft: #eaf1f8;
  --accent: #1d6fc4;
  --wm: #c3d2e0;            /* watermark text (読みやすさ優先で濃いめ) */
  --maxw: 1200px;
  --pad-x: max(clamp(18px, 5vw, 44px), calc((100% - var(--maxw)) / 2));
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-sm: 0 1px 2px rgba(20, 32, 44, .05), 0 6px 18px rgba(20, 32, 44, .06);
  --shadow-md: 0 8px 18px rgba(20, 32, 44, .08), 0 24px 50px rgba(20, 32, 44, .10);
  --header-h: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--navy); color: #fff; }

h1, h2, h3, h4 { font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; margin: 0; color: var(--ink); letter-spacing: .01em; }
p { margin: 0; }
.en-label { font-family: "Zen Kaku Gothic New", sans-serif; }

/* =========================================================
   Header — utility bar + main nav (Nippatsu-style)
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(10px);
  transition: box-shadow .3s var(--ease);
}
.site-header[data-elevated="true"] { box-shadow: 0 6px 20px rgba(20, 32, 44, .07); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: var(--header-h); padding: 0 var(--pad-x);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 38px; width: auto; display: block; }
.header-right { display: flex; flex-direction: row; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.main-nav { order: 1; }
.utility-bar { order: 2; }

.utility-bar { display: flex; align-items: stretch; gap: 0; height: 36px; }
.utility-bar a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.util-search { background: var(--bg-band); color: var(--ink); }
.util-search:hover { background: var(--navy); color: #fff; }
.util-contact { background: var(--navy); color: #fff; }
.util-contact:hover { background: var(--navy-deep); }
.utility-bar svg { width: 14px; height: 14px; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > a {
  position: relative; padding: 8px 16px; color: var(--ink);
  font-size: 15px; font-weight: 700;
}
.main-nav > a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px;
  background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.main-nav > a:hover::after, .main-nav > a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav > a[aria-current="page"] { color: var(--navy); }

.nav-toggle { display: none; }

:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* =========================================================
   Buttons / CTA box
   ========================================================= */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 12px 28px; border: 1.5px solid var(--navy);
  border-radius: 8px; font-weight: 700; font-size: 15px; white-space: nowrap; cursor: pointer;
  transition: transform .18s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease);
}
.button.primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px -10px rgba(14, 60, 110, .6); }
.button.primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); transform: translateY(-1px); }
.button.secondary { background: #fff; color: var(--navy); }
.button.secondary:hover { background: var(--navy-soft); transform: translateY(-1px); }

/* dark CTA box with sliding arrow (Nippatsu motif) */
.cta-box {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 32px;
  min-width: 320px; padding: 22px 26px; background: var(--navy); color: #fff;
  font-weight: 700; letter-spacing: .02em; transition: background .25s var(--ease);
}
.cta-box:hover { background: var(--navy-deep); }
.cta-box .line { position: relative; width: 64px; height: 1px; background: rgba(255, 255, 255, .5); }
.cta-box .line::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid #fff; border-right: 1px solid #fff; transform: rotate(45deg); transition: transform .25s var(--ease); }
.cta-box:hover .line::after { transform: rotate(45deg) translate(2px, -2px); }

/* circular READ MORE */
.read-more { display: inline-flex; align-items: center; gap: 14px; font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; letter-spacing: .12em; color: var(--ink); }
.read-more .circle { width: 50px; height: 50px; border: 1px solid var(--navy); border-radius: 50%; display: grid; place-items: center; transition: background .25s var(--ease), color .25s var(--ease); }
.read-more .circle::after { content: "→"; color: var(--navy); transition: color .25s var(--ease); }
.read-more:hover .circle { background: var(--navy); }
.read-more:hover .circle::after { color: #fff; }

/* =========================================================
   Section heading with English watermark
   ========================================================= */
.section { padding: clamp(64px, 8vw, 110px) var(--pad-x); }
.section.band { background: var(--bg-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.section-title { position: relative; line-height: 1; }
.section-title .en { display: block; font-family: "Zen Kaku Gothic New", sans-serif; font-size: clamp(46px, 7vw, 92px); font-weight: 900; color: var(--wm); letter-spacing: .02em; }
.section-title .ja { display: inline-flex; align-items: center; gap: 12px; margin-top: -10px; font-size: 18px; font-weight: 700; color: var(--ink); padding-left: 2px; }
.section-title .ja::before { content: ""; width: 26px; height: 2px; background: var(--navy); }

/* =========================================================
   Home hero
   ========================================================= */
.hero {
  position: relative; display: grid; align-content: center; justify-items: center;
  min-height: clamp(580px, 88vh, 760px); padding: calc(var(--header-h) + 56px) var(--pad-x) 64px;
  overflow: hidden; isolation: isolate; text-align: center;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 17, 33, .58) 0%, rgba(6, 17, 33, .42) 48%, rgba(6, 17, 33, .66) 100%),
    radial-gradient(120% 80% at 50% 40%, transparent 38%, rgba(6, 17, 33, .35) 100%);
}
.hero-copy { position: relative; max-width: 780px; margin: 0 auto; }
.hero .eyebrow { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; color: rgba(255, 255, 255, .9); font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero .eyebrow::before, .hero .eyebrow::after { content: ""; width: 30px; height: 2px; background: rgba(255, 255, 255, .65); }
.hero h1 { font-weight: 900; font-size: clamp(34px, 5vw, 62px); line-height: 1.16; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero .lead { max-width: 600px; margin: 24px auto 0; color: rgba(255, 255, 255, .92); font-size: clamp(15.5px, 1.4vw, 18px); line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.hero .button.secondary { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(4px); }
.hero .button.secondary:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
.hero-specs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.hero-specs span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; color: #fff; font-size: 13px; font-weight: 700; backdrop-filter: blur(4px); }
.hero-specs span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6db1ff; }

/* =========================================================
   Page hero (inner pages)
   ========================================================= */
.page-hero { position: relative; background: var(--bg-band); overflow: hidden; }
.page-hero-inner { position: relative; z-index: 1; display: grid; align-content: center; gap: 26px; min-height: 280px; padding: calc(var(--header-h) + 44px) var(--pad-x) 48px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 50px); font-weight: 900; line-height: 1.1; }
.page-hero .en { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: var(--navy); font-family: "Zen Kaku Gothic New", sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .14em; }
.page-hero .en::before { content: ""; width: 26px; height: 2px; background: var(--navy); }
.page-hero-bg { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; object-fit: cover; z-index: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 32%); mask-image: linear-gradient(90deg, transparent, #000 32%); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { color: var(--line); }

/* =========================================================
   News (category filter + list)
   ========================================================= */
.news-layout { display: grid; grid-template-columns: 210px 1fr; gap: clamp(28px, 4vw, 56px); }
.news-filter { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; }
.news-filter button { width: 100%; text-align: left; background: none; border: 0; border-left: 3px solid transparent; padding: 11px 16px; color: var(--muted); font-weight: 700; cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease); }
.news-filter button:hover { color: var(--navy); background: var(--bg-soft); }
.news-filter button[aria-pressed="true"] { color: var(--navy); border-left-color: var(--navy); }
.news-items { border-top: 1px solid var(--ink); }
.news-row { display: grid; grid-template-columns: 130px 92px 1fr auto; gap: 22px; align-items: center; padding: 22px 4px 22px 0; border-bottom: 1px solid var(--line); transition: background .2s var(--ease), padding-left .25s var(--ease); }
.news-row:hover { background: var(--bg-soft); padding-left: 12px; }
.news-row time { color: var(--navy); font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.news-tag { justify-self: start; padding: 3px 12px; background: var(--navy-soft); color: var(--navy); border-radius: 999px; font-size: 12px; font-weight: 700; }
.news-row h3 { font-size: 16.5px; font-weight: 700; line-height: 1.6; }
.news-row .chev { color: var(--navy); transition: transform .25s var(--ease); }
.news-row:hover .chev { transform: translateX(5px); }
.news-empty { padding: 40px 0; color: var(--muted); }

/* =========================================================
   Product finder (tabs + cards)
   ========================================================= */
.finder-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.finder-tab { padding: 18px 10px; text-align: center; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; font-size: 15.5px; cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease); }
.finder-tab:hover { color: var(--navy); }
.finder-tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }
.finder-panel { display: none; }
.finder-panel.active { display: block; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.finder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.finder-card { display: flex; align-items: center; gap: 18px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.finder-card:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.finder-card .ico { flex-shrink: 0; width: 46px; height: 46px; display: grid; place-items: center; background: var(--navy-soft); border-radius: 10px; }
.finder-card .ico svg { width: 24px; height: 24px; stroke: var(--navy); fill: none; stroke-width: 1.6; }
.finder-card h3 { font-size: 16px; font-weight: 700; }
.finder-card p { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* =========================================================
   Product detail cards (reused)
   ========================================================= */
.product-grid { display: grid; grid-template-columns: 1.1fr .95fr .95fr; gap: 22px; }
.product-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-card.featured { border-color: var(--navy); border-top: 3px solid var(--navy); }
/* 準備中（coming soon）カード */
.badge-soon { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 13px; background: rgba(20, 32, 44, .82); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; backdrop-filter: blur(2px); }
.product-card.coming { cursor: default; }
.product-card.coming figure img { filter: grayscale(.35) brightness(.97); }
.product-card.coming:hover { transform: none; box-shadow: var(--shadow-sm); }
.product-card.coming:hover img { transform: none; }
.product-card .soon-note { margin-top: auto; margin-left: clamp(20px, 2.2vw, 28px); margin-right: clamp(20px, 2.2vw, 28px); margin-bottom: clamp(20px, 2.2vw, 28px); padding-top: 20px; color: var(--muted); font-size: 13.5px; font-weight: 700; }
/* リンクとして機能する製品カード */
a.product-card { color: inherit; }
a.product-card .detail-link { margin: 18px clamp(20px, 2.2vw, 28px) clamp(20px, 2.2vw, 28px); color: var(--navy); font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; }
a.product-card:hover .detail-link { gap: 12px; }
.product-card figure { margin: 0; aspect-ratio: 3 / 2; background: var(--bg-soft); overflow: hidden; border-bottom: 1px solid var(--line); }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover img { transform: scale(1.04); }
.product-card .product-code, .product-card h3, .product-card p, .product-card ul { margin-left: clamp(20px, 2.2vw, 28px); margin-right: clamp(20px, 2.2vw, 28px); }
.product-code { display: inline-block; align-self: flex-start; margin-top: clamp(20px, 2.2vw, 28px); margin-bottom: 12px; padding: 4px 12px; background: var(--navy-soft); border-radius: 6px; color: var(--navy); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.product-card h3 { font-size: 20px; }
.product-card p { margin-bottom: 0; color: var(--muted); line-height: 1.8; }
.product-card ul { display: grid; gap: 10px; margin-top: auto; margin-bottom: clamp(20px, 2.2vw, 28px); padding: 20px 0 0; list-style: none; }
.product-card li { position: relative; padding-left: 22px; color: var(--body); font-size: 14.5px; }
.product-card li::before { content: ""; position: absolute; top: .7em; left: 0; width: 12px; height: 2px; background: var(--navy); }

/* =========================================================
   Home teaser cards (products / company / blog)
   ========================================================= */
.tease-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tease { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.tease.coming figure img { filter: grayscale(.35) brightness(.97); }
.tease:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tease figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.tease img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tease:hover img { transform: scale(1.05); }
.tease .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tease .label { color: var(--navy); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; }
.tease h3 { font-size: 19px; }
.tease p { color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.tease .more { margin-top: auto; padding-top: 8px; color: var(--navy); font-weight: 700; font-size: 14px; }
.tease:hover .more { text-decoration: underline; }

/* =========================================================
   Metrics / intro
   ========================================================= */
.intro-grid { display: grid; grid-template-columns: minmax(0, .58fr) minmax(280px, .42fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.intro-grid > p { color: var(--body); font-size: clamp(16px, 1.4vw, 19px); line-height: 2; }
.metrics { display: grid; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 22px; box-shadow: var(--shadow-sm); }
.metrics span { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 14px; font-weight: 500; }
.metrics span:last-child { border-bottom: 0; }
.metrics strong { font-family: "Zen Kaku Gothic New", sans-serif; color: var(--navy); font-size: 32px; font-weight: 900; }

/* =========================================================
   Company page
   ========================================================= */
.greeting { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .38fr); gap: clamp(30px, 5vw, 60px); align-items: center; }
.greeting h2 { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.5; margin-bottom: 22px; }
.greeting p { color: var(--body); line-height: 2; margin-bottom: 16px; }
.greeting .sign { margin-top: 20px; color: var(--ink); font-weight: 700; }
.greeting figure { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); }
.greeting figure img { width: 100%; height: 100%; object-fit: cover; }

.philosophy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.philosophy .card { padding: 32px 28px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 10px; }
.philosophy .num { font-family: "Zen Kaku Gothic New", sans-serif; color: var(--navy); font-weight: 900; font-size: 22px; }
.philosophy h3 { margin: 12px 0 10px; font-size: 19px; }
.philosophy p { color: var(--muted); line-height: 1.85; }

.outline-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.outline-table th, .outline-table td { text-align: left; padding: 18px 8px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.outline-table th { width: 220px; color: var(--navy); font-weight: 700; }
.outline-table td { color: var(--body); }

/* =========================================================
   Article cards (blog / news detail)
   ========================================================= */
.article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.article-card { padding: clamp(24px, 3vw, 38px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.featured-article { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(170px, .26fr) 1fr; gap: clamp(24px, 4vw, 52px); border-top: 3px solid var(--navy); }
.featured-article .article-meta { grid-row: 1 / span 3; }
.article-meta { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; color: var(--navy); font-size: 13.5px; font-weight: 700; }
.article-meta span { padding: 4px 11px; background: var(--navy-soft); border-radius: 999px; }
.article-card h3 { font-size: clamp(20px, 2.3vw, 28px); }
.article-card p { color: var(--body); line-height: 1.95; margin-top: 14px; }
.article-card p:last-child { margin-bottom: 0; }

/* =========================================================
   Contact
   ========================================================= */
.contact-layout { display: grid; grid-template-columns: minmax(0, .4fr) minmax(320px, .6fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-copy p:not(.eyebrow) { margin-top: 18px; color: var(--body); line-height: 1.95; }
.contact-info { margin-top: 28px; display: grid; gap: 14px; }
.contact-info div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.contact-info dt, .contact-info .k { color: var(--navy); font-weight: 700; }
.contact-form { display: grid; gap: 16px; padding: clamp(26px, 4vw, 40px); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; }
.contact-form label { display: grid; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 700; }
.contact-form .req { color: #c0392b; font-size: 12px; margin-left: 6px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 13px 15px; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #93a0ab; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(14, 60, 110, .12); }
.contact-form textarea { resize: vertical; }
.form-note { margin: 0; min-height: 1.2em; color: var(--navy); font-size: 13.5px; font-weight: 700; }
/* 問い合わせ / 資料請求 タブ切り替え */
.form-tabs { display: inline-flex; gap: 4px; margin-bottom: 24px; padding: 5px; background: var(--bg-band); border-radius: 999px; }
.form-tab { padding: 10px 24px; border: 0; background: none; border-radius: 999px; color: var(--muted); font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; font-size: 14.5px; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.form-tab:hover { color: var(--navy); }
.form-tab[aria-selected="true"] { background: var(--navy); color: #fff; box-shadow: 0 6px 16px -8px rgba(14, 60, 110, .7); }
.form-panel { display: none; }
.form-panel.active { display: grid; gap: 16px; animation: fade .3s var(--ease); }
.form-intro { color: var(--muted); font-size: 14px; line-height: 1.8; margin-bottom: 4px; }

/* =========================================================
   Search page
   ========================================================= */
.search-box { display: flex; gap: 12px; max-width: 100%; }
.search-box input { flex: 1; min-width: 0; padding: 18px 22px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 17px; }
.search-box input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(14, 60, 110, .12); }
.search-box button { padding: 0 28px; }
.search-meta { margin: 26px 0 10px; color: var(--muted); font-size: 14px; }
.search-results { display: grid; gap: 2px; border-top: 1px solid var(--line); }
.search-results a { display: block; padding: 20px 6px; border-bottom: 1px solid var(--line); transition: background .2s var(--ease), padding-left .2s var(--ease); }
.search-results a:hover { background: var(--bg-soft); padding-left: 12px; }
.search-results .crumb { color: var(--navy); font-size: 12.5px; font-weight: 700; }
.search-results h3 { margin: 4px 0 4px; font-size: 18px; }
.search-results p { color: var(--muted); font-size: 14px; }
.search-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.search-tags a { padding: 7px 15px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--navy); }
.search-tags a:hover { background: var(--navy-soft); }

/* =========================================================
   Product detail page
   ========================================================= */
.pd-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: clamp(30px, 5vw, 60px); align-items: center; }
.pd-overview .lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.95; color: var(--body); margin-bottom: 22px; }
.pd-overview figure { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md); }
.pd-overview figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.pd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.pd-stats div { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 10px; padding: 20px 18px; }
.pd-stats strong { display: block; font-family: "Zen Kaku Gothic New", sans-serif; color: var(--navy); font-size: clamp(26px, 3vw, 34px); font-weight: 900; line-height: 1.1; }
.pd-stats span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.pd-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pd-gallery figure { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.pd-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.pd-gallery figcaption { padding: 12px 4px 0; color: var(--muted); font-size: 13px; }

/* =========================================================
   Blog list (thumbnail cards) + article detail
   ========================================================= */
.blog-featured { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 24px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.blog-featured:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-featured figure { margin: 0; overflow: hidden; }
.blog-featured figure img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; transition: transform .6s var(--ease); }
.blog-featured:hover figure img { transform: scale(1.04); }
.blog-featured .body { padding: clamp(28px, 3.5vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.blog-featured h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45; }
.blog-featured p { color: var(--muted); line-height: 1.95; }
.blog-meta { display: flex; align-items: center; gap: 12px; color: var(--navy); font-size: 13.5px; font-weight: 700; }
.blog-meta .cat { padding: 3px 11px; background: var(--navy-soft); border-radius: 999px; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blog-card:hover img { transform: scale(1.05); }
.blog-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card h3 { font-size: 17.5px; line-height: 1.55; }
.blog-card .more { margin-top: auto; padding-top: 8px; color: var(--navy); font-weight: 700; font-size: 14px; }
.blog-card:hover .more { text-decoration: underline; }

.article-body { max-width: 760px; margin: 0 auto; }
.article-body .lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.95; color: var(--ink); font-weight: 500; margin-bottom: 28px; }
.article-body h2 { font-size: clamp(20px, 2.1vw, 26px); line-height: 1.5; margin: 40px 0 14px; padding-left: 14px; border-left: 4px solid var(--navy); }
.article-body p { margin-bottom: 20px; line-height: 2.05; color: var(--body); }
.article-body figure { margin: 30px 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.article-body figure img { width: 100%; }
.article-body figcaption { padding: 10px 4px 0; color: var(--muted); font-size: 13px; }
.article-foot { max-width: 760px; margin: 48px auto 0; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy-deep); color: #fff; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; padding: 56px var(--pad-x) 40px; }
.footer-brand { flex: 0 0 auto; max-width: 300px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 16px; display: block; }
.footer-top .desc { color: rgba(255, 255, 255, .7); font-size: 13px; line-height: 1.85; }
.footer-nav { display: grid; grid-template-rows: repeat(4, auto); grid-auto-flow: column; grid-auto-columns: auto; gap: 10px 44px; align-content: start; }
.footer-nav a { color: rgba(255, 255, 255, .82); font-size: 14px; font-weight: 500; white-space: nowrap; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px var(--pad-x); border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom small { color: rgba(255, 255, 255, .6); font-size: 12px; }
@media (max-width: 920px) {
  .pd-overview, .pd-gallery { grid-template-columns: 1fr; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pd-stats { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  :root { --header-h: 76px; }
  .header-right { flex-direction: row; align-items: center; gap: 14px; }
  .utility-bar { height: 38px; }
  .main-nav { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; gap: 5px; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
  .nav-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; }
  .mobile-nav { position: fixed; inset: var(--header-h) 0 0; background: rgba(255,255,255,.98); backdrop-filter: blur(8px); z-index: 49; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); overflow:auto; }
  .mobile-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-nav a { display: block; padding: 18px var(--pad-x); border-bottom: 1px solid var(--line); font-weight: 700; font-size: 17px; color: var(--ink); }
  .mobile-nav a:hover { background: var(--bg-soft); color: var(--navy); }
}
@media (min-width: 1081px) { .mobile-nav { display: none; } }

@media (max-width: 920px) {
  .intro-grid, .greeting, .contact-layout, .featured-article { grid-template-columns: 1fr; }
  .product-grid, .tease-grid, .finder-grid, .philosophy, .article-list { grid-template-columns: 1fr; }
  .news-layout { grid-template-columns: 1fr; }
  .news-filter { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .news-filter button { width: auto; border-left: 0; border-bottom: 2px solid transparent; border-radius: 999px; background: var(--bg-soft); padding: 8px 14px; }
  .news-filter button[aria-pressed="true"] { border-left: 0; border-bottom-color: transparent; background: var(--navy); color: #fff; }
  .page-hero-bg { width: 100%; opacity: .18; -webkit-mask-image: none; mask-image: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-brand { max-width: 100%; }
  .featured-article .article-meta { grid-row: auto; }
  .finder-tabs { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .news-row { grid-template-columns: 1fr auto; gap: 6px 14px; }
  .news-row time { grid-column: 1; }
  .news-tag { grid-column: 2; grid-row: 1; }
  .news-row h3 { grid-column: 1 / -1; }
  .news-row .chev { display: none; }
  .outline-table th { width: 120px; }
  .search-box { flex-direction: column; }
  .footer-nav { grid-template-rows: repeat(4, auto); }
}
