/* ==========================================================================
   Crisp Theme Stylesheet
   input/index.html（トップページ）と input/template.html（下層ページ）の
   スタイルを統合。差異は body クラス（.home）でスコープしています。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */
:root {
  --white: #ffffff;
  --base: #fbfbfa;
  --surface: #f6f7f8;
  --surface-2: #f0f2f4;
  --line: #dedede;
  --line-soft: #ececec;
  --black: #070707;
  --text: #101010;
  --muted: #666a70;
  --red: #e60012;
  --red-dark: #bd0010;
  --blue: #1677ff;
  --blue-soft: #dceeff;
  --blue-glow: #7cc7ff;
  --shadow: 0 18px 60px rgba(0,0,0,.06);
  --max: 1180px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--base);
  font-family: "Inter", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6, p { margin-top: 0; }

svg { overflow: visible; }
.icon-stroke { fill: none; stroke: var(--black); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-blue { fill: var(--blue); }
.red-dot { color: var(--red); letter-spacing: 0; }

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 64px);
  background: rgba(251,251,250,.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(222,222,222,.62);
}
/* トップページはヒーローに重ねる固定ヘッダー */
.home .site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 92px;
  background: rgba(251,251,250,.72);
  border-bottom: 1px solid rgba(222,222,222,.55);
}
.logo { width: 118px; height: auto; }
.home .logo { width: 128px; }
.global-nav { display: flex; gap: clamp(22px, 3vw, 44px); align-items: center; font-size: 14px; font-weight: 700; }
.global-nav a { position: relative; padding: 6px 0; }
.global-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.global-nav a:hover::after { transform: scaleX(1); }
.menu-button { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 0; }
.menu-button span { display: block; height: 3px; background: var(--black); margin: 8px 0; }

/* --------------------------------------------------------------------------
   4. Mobile hamburger menu
   -------------------------------------------------------------------------- */
body.is-menu-open { overflow: hidden; }
.menu-button {
  position: relative;
  z-index: 80;
  cursor: pointer;
}
.menu-button span {
  transition: transform .28s var(--ease), opacity .2s var(--ease), background .25s var(--ease);
  transform-origin: center;
}
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  background:
    radial-gradient(circle at 78% 18%, rgba(230,0,18,.10), transparent 22%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(246,247,248,.96));
  backdrop-filter: blur(18px);
  padding: 96px 24px 28px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.mobile-menu.is-open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 104px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--black);
  background: rgba(255,255,255,.82);
  color: var(--black);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  backdrop-filter: blur(12px);
  cursor: pointer;
}
.mobile-menu-close::after {
  content: "×";
  display: inline-block;
  color: var(--red);
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
}
.mobile-menu-inner {
  max-width: 560px;
  margin: 0 auto;
  min-height: calc(100dvh - 124px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}
.mobile-menu-nav {
  display: grid;
  border-top: 1px solid var(--line);
}
.mobile-menu-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(20px, 6vw, 34px);
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: .04em;
}
.mobile-menu-nav a::after {
  content: "→";
  color: var(--red);
  font-size: .75em;
}
.mobile-menu-sub {
  display: grid;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  font-weight: 800;
}
.mobile-menu-social {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.mobile-menu-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 42px;
  min-width: 210px; min-height: 58px; padding: 0 24px;
  border: 1px solid var(--black); font-size: 15px; font-weight: 850; letter-spacing: .08em;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--black); color: var(--white); }
.btn-secondary { background: rgba(255,255,255,.72); color: var(--black); }
.btn-outline { background: transparent; color: var(--black); }
.btn-text { min-width: auto; border: 0; padding: 0; background: transparent; color: var(--blue); gap: 12px; }
.btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.arrow { font-size: 24px; line-height: 1; }
.btn-primary .arrow { color: var(--red); }
.btn-secondary .arrow, .btn-outline .arrow, .btn-text .arrow { color: var(--blue); }
.button-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }

/* --------------------------------------------------------------------------
   6. Shared layout parts
   -------------------------------------------------------------------------- */
.section-inner { max-width: var(--max); margin: 0 auto; }
.label { display: inline-block; margin: 0 0 34px; font-size: 13px; font-weight: 900; letter-spacing: .36em; }
.label::after { content: ""; display: block; width: 20px; height: 2px; background: var(--red); margin-top: 12px; }

/* --------------------------------------------------------------------------
   7. Front page: Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  padding: 160px clamp(24px, 6vw, 76px) 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  align-items: center;
  gap: 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 78%, rgba(124,199,255,.55) 0 1px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 44%, rgba(234,238,242,.55) 100%);
}
.hero-copy { position: relative; z-index: 2; max-width: 760px; order: 1; }
.hero-title {
  margin: 0;
  font-size: clamp(44px, 5.2vw, 78px);
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: .05em;
}
.hero-lead { margin: 36px 0 0; font-size: clamp(16px, 1.35vw, 20px); line-height: 2.1; font-weight: 700; }
.hero-actions { display: flex; gap: 22px; margin-top: 48px; }

.hero-visual {
  position: relative; min-height: 620px; isolation: isolate; order: 2;
}
.architecture {
  position: absolute; inset: 0 -8vw -5vw 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.8), rgba(255,255,255,0) 35%),
    linear-gradient(180deg, rgba(255,255,255,.25), rgba(225,230,235,.45)),
    repeating-linear-gradient(90deg, rgba(0,0,0,.035) 0 1px, transparent 1px 44px);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%, 0 22%);
  border-left: 1px solid rgba(0,0,0,.06);
}
.architecture::before {
  content: ""; position: absolute; left: 7%; top: 0; bottom: 0; width: 38%;
  background: linear-gradient(90deg, rgba(255,255,255,.92), rgba(255,255,255,.35));
  transform: skewX(-9deg); transform-origin: bottom;
  box-shadow: 24px 0 60px rgba(0,0,0,.04);
}
.architecture::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 18%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-glow), var(--blue), transparent);
  filter: drop-shadow(0 0 12px rgba(22,119,255,.8));
  transform: rotate(-6deg);
}
.floating-dot {
  position: absolute; left: 47%; top: 35%; width: 14px; height: 14px; border-radius: 999px; background: var(--red); z-index: 4;
  box-shadow: 0 0 0 10px rgba(230,0,18,.03);
}
.blue-cross {
  position: absolute; left: 8%; bottom: 18%; right: -4vw; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(22,119,255,.12), rgba(22,119,255,.85), transparent);
  transform: rotate(12deg); filter: drop-shadow(0 0 10px rgba(22,119,255,.75));
}

/* --------------------------------------------------------------------------
   8. Front page: About
   -------------------------------------------------------------------------- */
.about, .service { padding: clamp(74px, 10vw, 132px) clamp(24px, 6vw, 76px); }
.about { background: linear-gradient(180deg, var(--white), #f7f8f9); }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: center; }
.about-title { margin: 0; font-size: clamp(28px, 3vw, 44px); line-height: 1.65; font-weight: 900; letter-spacing: .03em; }
.about-text { margin: 34px 0 0; color: var(--text); font-size: 16px; line-height: 2.25; font-weight: 650; }
.about-grid .geometry { min-height: 270px; position: relative; opacity: .8; }
.about-grid .geometry::before, .about-grid .geometry::after { content: ""; position: absolute; border: 1px solid rgba(22,119,255,.25); border-radius: 50%; }
.about-grid .geometry::before { width: 150px; height: 150px; right: 14%; top: 34px; }
.about-grid .geometry::after { width: 122px; height: 122px; right: 31%; top: 88px; }
.geo-line-h, .geo-line-v { position: absolute; background: rgba(22,119,255,.22); }
.geo-line-h { height: 1px; left: 10%; right: 0; top: 126px; }
.geo-line-v { width: 1px; right: 35%; top: 18px; bottom: 20px; }
.geo-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); left: 31%; top: 123px; }
.dot-matrix {
  position: absolute; left: 31%; top: 165px; width: 80px; height: 54px; opacity: .45;
  background-image: radial-gradient(var(--blue) 1px, transparent 1px); background-size: 14px 14px;
}

/* --------------------------------------------------------------------------
   9. Front page: Service
   -------------------------------------------------------------------------- */
.service { background: var(--base); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-card {
  min-height: 220px; padding: 44px; background: rgba(255,255,255,.82); border: 1px solid var(--line-soft);
  display: grid; grid-template-columns: 88px 1fr auto; gap: 24px; align-items: center; box-shadow: 0 16px 46px rgba(0,0,0,.035);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(22,119,255,.25); }
.service-card.sub { min-height: 150px; background: rgba(244,245,246,.9); box-shadow: none; }
.service-icon { width: 62px; height: 62px; display: grid; place-items: center; }
.service-no { color: var(--blue); font-size: 16px; font-weight: 950; letter-spacing: .08em; }
.service-name { margin: 10px 0 18px; font-size: clamp(24px, 2.3vw, 34px); font-weight: 950; letter-spacing: .04em; }
.service-desc { margin: 0; color: var(--text); font-size: 15px; line-height: 2; font-weight: 650; }
.service-arrow { font-size: 32px; align-self: end; }
.legacy-label { margin: 34px 0 14px; font-size: 14px; font-weight: 900; letter-spacing: .16em; }
.legacy-label::before { content: "・"; color: var(--blue); margin-right: 6px; }

/* --------------------------------------------------------------------------
   10. Front page: CTA
   -------------------------------------------------------------------------- */
.cta {
  padding: 0;
  background: var(--white);
}
.cta-inner {
  min-height: 420px; padding: clamp(64px, 8vw, 108px) clamp(24px, 6vw, 76px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); align-items: center; gap: 56px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.70)),
    linear-gradient(135deg, #f9fafb 0%, #ffffff 35%, #e9eef4 100%);
  overflow: hidden;
}
.cta-title { margin: 0; font-size: clamp(44px, 4.5vw, 78px); line-height: 1.22; font-weight: 950; letter-spacing: .06em; }
.cta-text { margin: 28px 0 0; font-size: 17px; line-height: 2; font-weight: 700; }
.cta-actions { display: flex; gap: 22px; margin-top: 34px; }
.cta-visual { min-height: 300px; position: relative; }
.cta-visual::before {
  content: ""; position: absolute; inset: 0 -8vw 0 0; background:
    linear-gradient(90deg, rgba(255,255,255,.35), rgba(255,255,255,0)),
    repeating-linear-gradient(90deg, rgba(0,0,0,.035) 0 1px, transparent 1px 42px),
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(211,218,226,.7));
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%, 0 56%);
}
.cta-visual::after {
  content: ""; position: absolute; left: 0; right: -8vw; bottom: 22%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(22,119,255,.6), var(--blue-glow), transparent);
  filter: drop-shadow(0 0 12px rgba(22,119,255,.8));
}

/* --------------------------------------------------------------------------
   11. Subpages: Page hero
   -------------------------------------------------------------------------- */
.page-hero {
  min-height: 440px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  align-items: stretch;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, #fff 0%, #fff 48%, #eef2f6 100%);
}
.page-hero-copy { padding: clamp(56px, 7vw, 96px) clamp(24px, 6vw, 76px); display: flex; flex-direction: column; justify-content: center; }
.breadcrumb { margin: 0 0 56px; display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.breadcrumb a { color: var(--text); }
.breadcrumb .separator { color: var(--red); }
.page-title { margin: 0; font-size: clamp(38px, 6.2vw, 82px); line-height: 1.18; font-weight: 950; letter-spacing: .06em; }
.page-lead { margin: 28px 0 0; max-width: 620px; font-size: clamp(15px, 1.25vw, 18px); line-height: 2.15; font-weight: 700; }
.page-visual { position: relative; min-height: 440px; overflow: hidden; }
.page-visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.55), rgba(255,255,255,0) 36%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.035) 0 1px, transparent 1px 44px),
    linear-gradient(135deg, #fff 0%, #eef2f6 55%, #d7dde4 100%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%, 0 18%);
}
.page-visual::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 20%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-glow), var(--blue), transparent);
  filter: drop-shadow(0 0 12px rgba(22,119,255,.8)); transform: rotate(-6deg);
}
.visual-dot { position: absolute; left: 43%; top: 48%; width: 13px; height: 13px; border-radius: 50%; background: var(--red); z-index: 2; }
.page-visual .geometry { position: absolute; left: 8%; bottom: 22%; width: 260px; height: 190px; opacity: .66; }
.page-visual .geometry::before, .page-visual .geometry::after { content: ""; position: absolute; border: 1px solid rgba(22,119,255,.28); border-radius: 50%; }
.page-visual .geometry::before { width: 128px; height: 128px; right: 22px; top: 12px; }
.page-visual .geometry::after { width: 96px; height: 96px; right: 86px; top: 64px; }
.geo-h, .geo-v { position: absolute; background: rgba(22,119,255,.25); }
.geo-h { height: 1px; left: 0; right: 0; top: 74px; }
.geo-v { width: 1px; right: 92px; top: 0; bottom: 0; }

.entry-meta { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; }
.entry-category { color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .14em; }

/* --------------------------------------------------------------------------
   12. Subpages: Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(72px, 10vw, 128px) clamp(24px, 6vw, 76px); border-bottom: 1px solid var(--line-soft); }
.section.white { background: var(--white); }
.section.gray { background: linear-gradient(180deg, #fff, #f7f8f9); }
.section.dark { background: var(--black); color: var(--white); }
.section-head { margin-bottom: 42px; display: grid; grid-template-columns: 180px 1fr; gap: 42px; align-items: start; }
.section-head .label { margin: 0; letter-spacing: .3em; text-transform: uppercase; font-weight: 950; }
.section-title { margin: 0; font-size: clamp(30px, 4vw, 56px); line-height: 1.36; font-weight: 950; letter-spacing: .05em; }
.section-desc { margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 2; font-weight: 650; }
.dark .section-desc { color: rgba(255,255,255,.72); }

/* --------------------------------------------------------------------------
   13. Typography helpers
   -------------------------------------------------------------------------- */
.h1 { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.2; font-weight: 950; }
.h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.25; font-weight: 950; }
.h3 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.35; font-weight: 900; }
.h4 { font-size: 28px; line-height: 1.45; font-weight: 900; }
.h5 { font-size: 22px; line-height: 1.5; font-weight: 900; }
.h6 { font-size: 17px; line-height: 1.55; font-weight: 900; letter-spacing: .14em; }
.body-text { font-size: 16px; line-height: 2.1; font-weight: 600; color: var(--text); }
.text-link { color: var(--blue); font-weight: 850; border-bottom: 1px solid rgba(22,119,255,.35); }
.text-link:hover { color: var(--red); border-color: rgba(230,0,18,.35); }

/* --------------------------------------------------------------------------
   14. Layout grids / Cards / Banner
   -------------------------------------------------------------------------- */
.demo-section { display: grid; grid-template-columns: 1fr .9fr; gap: 44px; align-items: center; padding: 54px; background: var(--surface); }
.demo-section .image-abstract { min-height: 250px; }
.image-abstract {
  position: relative; overflow: hidden; background: linear-gradient(135deg, #fff, #e8edf3);
  min-height: 260px; border: 1px solid var(--line-soft);
}
.image-abstract::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.04) 0 1px, transparent 1px 42px);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%, 0 32%);
}
.image-abstract::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 28%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-glow), var(--blue), transparent);
  filter: drop-shadow(0 0 10px rgba(22,119,255,.65)); transform: rotate(-7deg);
}

.grid-1, .grid-2, .grid-3 { display: grid; gap: 24px; }
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.placeholder { min-height: 110px; background: var(--surface); border: 1px solid var(--line-soft); display: grid; place-items: center; color: var(--muted); font-weight: 850; }

.card {
  min-height: 230px; padding: 36px; background: rgba(255,255,255,.86); border: 1px solid var(--line-soft);
  box-shadow: 0 14px 46px rgba(0,0,0,.035); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(22,119,255,.22); }
.card-no { color: var(--blue); font-size: 14px; font-weight: 950; }
.card-title { margin: 12px 0 16px; font-size: 24px; line-height: 1.5; font-weight: 950; }
.card-text { margin: 0; color: var(--muted); font-size: 14px; line-height: 2; font-weight: 650; }

.image-card { overflow: hidden; background: var(--white); border: 1px solid var(--line-soft); box-shadow: 0 14px 46px rgba(0,0,0,.035); }
.image-card-body { padding: 28px; }
.image-card-title { margin: 0 0 12px; font-size: 22px; line-height: 1.5; font-weight: 950; }
.image-card-text { margin: 0; color: var(--muted); font-size: 14px; line-height: 2; font-weight: 650; }

.banner {
  display: grid; grid-template-columns: 1fr .8fr; gap: 36px; align-items: center; min-height: 280px; padding: 48px;
  background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.70)), linear-gradient(135deg, #fff, #e9eef4);
  border: 1px solid var(--line-soft); overflow: hidden;
}
.banner-title { margin: 0; font-size: clamp(30px, 4vw, 56px); line-height: 1.28; font-weight: 950; }
.banner-text { margin: 20px 0 0; color: var(--muted); line-height: 2; font-weight: 650; }

/* --------------------------------------------------------------------------
   15. News list / Publication
   -------------------------------------------------------------------------- */
.news-list { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 22px; align-items: center; min-height: 74px; border-bottom: 1px solid var(--line); font-weight: 800; }
.news-date { color: var(--muted); font-size: 13px; }
.news-arrow { font-size: 24px; color: var(--blue); }

.publication-card { display: grid; grid-template-columns: 96px 1fr auto; gap: 22px; align-items: center; padding: 24px; border: 1px solid var(--line-soft); background: var(--white); }
.publication-cover { aspect-ratio: 3/4; background: linear-gradient(135deg, #111, #43474d); position: relative; }
.publication-cover::after { content: "REPORT"; position: absolute; left: 12px; top: 12px; color: white; font-size: 10px; letter-spacing: .18em; }
.publication-title { margin: 0 0 10px; font-size: 19px; font-weight: 950; line-height: 1.45; }
.publication-meta { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }

/* --------------------------------------------------------------------------
   16. CTA box
   -------------------------------------------------------------------------- */
.cta-box { padding: clamp(40px, 6vw, 72px); background: var(--surface); border: 1px solid var(--line-soft); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta-box-title { margin: 0; font-size: clamp(28px, 4vw, 54px); line-height: 1.34; font-weight: 950; }
.cta-box-text { margin: 16px 0 0; color: var(--muted); font-weight: 650; line-height: 2; }
.cta-box-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   17. Table / List
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
table { width: 100%; border-collapse: collapse; }
.table-wrap table { min-width: 640px; }
th, td { padding: 20px 22px; border-bottom: 1px solid var(--line-soft); text-align: left; font-size: 14px; line-height: 1.7; }
th { background: var(--surface); font-weight: 950; }
tr:last-child td { border-bottom: 0; }

.list-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
ul.clean-list, ol.clean-list { margin: 0; padding-left: 1.4em; line-height: 2.1; font-weight: 650; }
ul.clean-list li::marker { color: var(--red); }
ol.clean-list li::marker { color: var(--blue); font-weight: 950; }

/* --------------------------------------------------------------------------
   18. Form
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 18px; max-width: 720px; }
.form-row { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: start; }
.form label { padding-top: 14px; font-weight: 900; font-size: 14px; }
.required { color: var(--red); margin-left: 4px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: var(--white); min-height: 52px; padding: 0 16px; color: var(--text); }
textarea { min-height: 140px; padding-top: 16px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(22,119,255,.22); border-color: rgba(22,119,255,.65); }
.checkbox-row { grid-column: 2; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.8; }
.checkbox-row input { width: auto; min-height: auto; margin-top: .35em; }

/* --------------------------------------------------------------------------
   19. Quote / Media
   -------------------------------------------------------------------------- */
blockquote { margin: 0; padding: clamp(36px, 5vw, 58px); background: var(--surface); border-left: 3px solid var(--red); font-size: clamp(22px, 3vw, 36px); line-height: 1.7; font-weight: 900; }
blockquote cite { display: block; margin-top: 26px; color: var(--muted); font-size: 13px; font-style: normal; font-weight: 800; letter-spacing: .12em; }

figure { margin: 0; }
figcaption { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.8; font-weight: 650; }
.youtube { position: relative; aspect-ratio: 16/9; background: #111; overflow: hidden; border: 1px solid var(--line); }
.youtube iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------------------
   20. WordPress: entry content（the_content 出力用）
   -------------------------------------------------------------------------- */
.entry-content { max-width: 860px; font-size: 16px; line-height: 2.1; font-weight: 600; }
.entry-content > * + * { margin-top: 1.6em; }
.entry-content h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.35; font-weight: 900; margin-top: 2.2em; }
.entry-content h3 { font-size: 28px; line-height: 1.45; font-weight: 900; margin-top: 2em; }
.entry-content h4 { font-size: 22px; line-height: 1.5; font-weight: 900; }
.entry-content h5 { font-size: 17px; line-height: 1.55; font-weight: 900; letter-spacing: .14em; }
.entry-content a { color: var(--blue); font-weight: 850; border-bottom: 1px solid rgba(22,119,255,.35); }
.entry-content a:hover { color: var(--red); border-color: rgba(230,0,18,.35); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul li::marker { color: var(--red); }
.entry-content ol li::marker { color: var(--blue); font-weight: 950; }
.entry-content img { border: 1px solid var(--line-soft); }
.entry-content table { border: 1px solid var(--line); background: var(--white); }
.entry-content .wp-block-embed__wrapper { position: relative; }
.entry-thumbnail { margin: 0 0 42px; }
.entry-thumbnail img { width: 100%; border: 1px solid var(--line-soft); }

/* 前後記事ナビ */
.post-navigation { display: flex; justify-content: space-between; gap: 20px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.post-navigation a:hover { color: var(--red); }
.post-nav-next { text-align: right; }

/* ページネーション */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 48px; min-height: 48px; padding: 0 12px;
  border: 1px solid var(--line); background: var(--white); font-size: 14px; font-weight: 850;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.pagination .page-numbers.current { background: var(--black); color: var(--white); border-color: var(--black); }
.pagination .page-numbers:hover:not(.current) { border-color: rgba(22,119,255,.5); color: var(--blue); }

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 54px clamp(24px, 6vw, 76px) 26px; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 180px repeat(5, 1fr); gap: 30px; }
.footer-logo { width: 118px; }
.footer-heading { margin: 0 0 18px; font-size: 13px; font-weight: 950; letter-spacing: .18em; }
.footer-links { display: grid; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 750; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 12px; font-weight: 700; }
.social-links { display: flex; gap: 18px; align-items: center; }
.social { display: inline-flex; gap: 8px; align-items: center; font-weight: 850; color: var(--text); }
.social-icon { width: 24px; height: 24px; display: grid; place-items: center; }

/* --------------------------------------------------------------------------
   22. Subpage parts（会社情報・候補者/企業向け・ブログ・お問い合わせ）
   -------------------------------------------------------------------------- */
/* 代表者・アドバイザープロフィール */
.profile { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.profile-visual .image-abstract { min-height: 320px; }
.profile-photo { width: 100%; height: auto; border: 1px solid var(--line-soft); box-shadow: 0 14px 46px rgba(0,0,0,.06); }
.profile-role { margin: 0 0 8px; color: var(--blue); font-size: 13px; font-weight: 900; letter-spacing: .16em; }
.profile-name { margin: 0 0 24px; font-size: clamp(28px, 3vw, 40px); line-height: 1.3; font-weight: 950; }
.profile-kana { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.profile-history { margin-top: 24px; }

/* ブログ: カテゴリナビ・カテゴリチップ */
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 42px; }
.cat-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  border: 1px solid var(--line); background: var(--white); font-size: 13px; font-weight: 850;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.cat-chip:hover { border-color: rgba(22,119,255,.5); color: var(--blue); }
.cat-chip.is-current { background: var(--black); color: var(--white); border-color: var(--black); }
.news-cat { margin-left: 12px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .1em; }

/* お問い合わせ: ラジオボタン */
.radio-group { display: grid; gap: 10px; padding-top: 12px; }
.radio-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.8; font-weight: 700; padding-top: 0 !important; }
.radio-row input { width: auto; min-height: auto; margin-top: .4em; }

/* 採用情報 */
.values-list { max-width: 720px; font-size: 16px; }
.recruit-note { margin: 34px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }

/* お問い合わせ: Contact Form 7 */
/* 行間はCF7のform要素側でグリッド化して確保（.formのgapは.wpcf7ラッパーまでしか届かないため） */
.cf7 form.wpcf7-form { display: grid; gap: 18px; }
/* CF7の自動整形（wpautop）で .form-row 内が <p>＋<br> に包まれても
   ラベル／入力欄がグリッドの2カラムに正しく配置されるようにする */
.cf7 .form-row > p { display: contents; }
.cf7 .form-row br { display: none; }
.cf7 .wpcf7-form-control-wrap { display: block; width: 100%; }
.cf7 .wpcf7-radio { display: grid; gap: 10px; padding-top: 12px; }
.cf7 .wpcf7-radio .wpcf7-list-item { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 14px; line-height: 1.8; font-weight: 700; }
.cf7 .wpcf7-radio .wpcf7-list-item label { display: flex; gap: 10px; align-items: flex-start; padding-top: 0; font-weight: 700; }
.cf7 .wpcf7-radio input { width: auto; min-height: auto; margin-top: .4em; }
.cf7 .wpcf7-acceptance .wpcf7-list-item { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 13px; line-height: 1.8; }
.cf7 .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; padding-top: 0; font-weight: 700; }
.cf7 .wpcf7-acceptance input { width: auto; min-height: auto; margin-top: .35em; }
.cf7 .wpcf7-submit {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 210px; min-height: 58px; padding: 0 24px; width: auto;
  border: 1px solid var(--black); background: var(--black); color: var(--white);
  font-size: 15px; font-weight: 850; letter-spacing: .08em; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cf7 .wpcf7-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cf7 .wpcf7-spinner { display: block; margin: 12px 0 0; }
.cf7 .wpcf7-not-valid-tip { display: block; margin-top: 8px; color: var(--red); font-size: 13px; font-weight: 800; }
.cf7 .wpcf7-response-output {
  margin: 28px 0 0; padding: 18px 22px; border: 1px solid var(--line);
  background: var(--surface); font-size: 14px; font-weight: 700; line-height: 1.8;
}
.cf7 form.invalid .wpcf7-response-output, .cf7 form.failed .wpcf7-response-output { border-color: rgba(230,0,18,.45); color: var(--red-dark); }
.cf7 form.sent .wpcf7-response-output { border-color: rgba(22,119,255,.45); color: var(--blue); }

/* --------------------------------------------------------------------------
   23. Media queries
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .site-header { height: 74px; }
  .home .site-header { height: 78px; padding: 0 26px; }
  .logo { width: 100px; }
  .home .logo { width: 116px; }
  .global-nav { display: none; }
  .menu-button { display: block; }

  /* Front page */
  .hero { min-height: auto; padding: 116px 26px 44px; grid-template-columns: 1fr; gap: 26px; }
  .hero-title { font-size: clamp(38px, 10vw, 58px); line-height: 1.34; }
  .hero-lead { margin-top: 24px; font-size: 15px; line-height: 2; }
  .hero-actions { flex-direction: column; gap: 14px; margin-top: 28px; }
  .btn { width: 100%; min-height: 56px; min-width: 0; }
  .hero-visual { min-height: 330px; order: 2; margin: 0 -26px -8px 0; }
  .architecture { inset: 0 -40px 0 22%; }
  .floating-dot { left: 52%; top: 38%; }
  .about, .service { padding: 64px 26px; }
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .about-title { font-size: 24px; line-height: 1.7; }
  .about-text { font-size: 14px; line-height: 2.1; }
  .about-grid .geometry { min-height: 180px; }
  .service-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card { min-height: 0; padding: 26px 22px; grid-template-columns: 74px 1fr auto; gap: 14px; }
  .service-card.sub { grid-template-columns: 62px 1fr auto; }
  .service-name { font-size: 22px; margin: 7px 0 8px; }
  .service-desc { font-size: 13px; line-height: 1.85; }
  .cta-inner { min-height: auto; grid-template-columns: 1fr; padding: 56px 26px 0; gap: 24px; }
  .cta-title { font-size: clamp(38px, 10vw, 58px); line-height: 1.34; } /* font-size はモバイルの .hero-title と同一 */
  .cta-text { font-size: 14px; }
  .cta-actions { flex-direction: row; gap: 12px; }
  .cta-actions .btn { min-width: 0; gap: 10px; padding-inline: 18px; }
  .cta-visual { min-height: 180px; margin: 0 -26px; }

  /* Subpages */
  .page-hero { grid-template-columns: 1fr; min-height: 0; }
  .page-hero-copy { padding-top: 48px; }
  .page-visual { min-height: 280px; }
  .breadcrumb { margin-bottom: 36px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .typography-demo, .demo-section, .banner, .cta-box { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr auto; gap: 8px; padding: 18px 0; }
  .news-date { grid-column: 1 / -1; }
  .publication-card { grid-template-columns: 72px 1fr auto; }
  .list-demo { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 8px; }
  .form label { padding-top: 0; }
  .checkbox-row { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* Subpage parts */
  .profile { grid-template-columns: 1fr; gap: 24px; }
  .profile-visual .image-abstract { min-height: 220px; }
  .cat-nav { margin-bottom: 28px; }
}

@media (max-width: 560px) {
  .section { padding: 58px 20px; }
  .page-hero-copy { padding: 42px 20px; }
  .page-title { font-size: 38px; }
  .btn { width: 100%; min-width: 0; }
  .button-row, .cta-box-actions { flex-direction: column; align-items: stretch; }
  .demo-section, .banner { padding: 28px; }
  .card { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}
