@charset "UTF-8";
/* ==========================================================================
   株式会社ディジテック コーポレートサイト
   ========================================================================== */

:root {
  --ink: #0b1b2b;
  --ink-2: #132a40;
  --color-primary: #1a6499;
  --color-primary-dark: #0f456c;
  --color-accent: #3aa0e0;
  --color-accent-soft: #e8f3fb;
  --color-text: #1d2a36;
  --color-muted: #5f6c78;
  --color-border: #e2e8ee;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7f9;

  --font-jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Outfit", "Helvetica Neue", Arial, var(--font-jp);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 80px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 10px 40px rgba(11, 27, 43, .08);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }
h1, h2, h3, h4 { line-height: 1.5; margin: 0; font-weight: 700; }
p, ul, ol { margin: 0 0 1em; }
address { font-style: normal; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
::selection { background: var(--color-accent); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 16px; background: #fff; }
.skip-link:focus { top: 8px; }
.u-right { text-align: right; }
.u-center { text-align: center; }

/* スクロールで表示（JSが動く環境のみ隠す） */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-group > * { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal-group.is-visible > * { opacity: 1; transform: none; }
.js .reveal-group.is-visible > :nth-child(2) { transition-delay: .12s; }
.js .reveal-group.is-visible > :nth-child(3) { transition-delay: .24s; }
.js .reveal-group.is-visible > :nth-child(4) { transition-delay: .36s; }
.js .reveal-group.is-visible > :nth-child(5) { transition-delay: .48s; }

/* --- header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--color-border); box-shadow: 0 4px 24px rgba(11, 27, 43, .05); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.site-logo img { display: block; width: 150px; height: auto; }

.global-nav > ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.global-nav li { position: relative; }
.global-nav > ul > li > a {
  position: relative; display: block; padding: 10px 14px;
  color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: .08em; text-decoration: none;
}
.global-nav > ul > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.global-nav > ul > li > a:hover::after, .global-nav > ul > li.is-current > a::after { transform: scaleX(1); transform-origin: left; }
.global-nav > ul > li > a:hover, .global-nav > ul > li.is-current > a { color: var(--color-primary); }
.global-nav > ul > li:last-child > a {
  margin-left: 10px; padding: 11px 24px; border-radius: 999px;
  background: var(--ink); color: #fff;
  transition: background .25s;
}
.global-nav > ul > li:last-child > a::after { display: none; }
.global-nav > ul > li:last-child > a:hover { background: var(--color-primary); color: #fff; }

.sub-menu {
  list-style: none; margin: 0; padding: 10px;
  position: absolute; top: calc(100% + 6px); left: 50%; min-width: 280px;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow);
  visibility: hidden; opacity: 0; transform: translate(-50%, 8px); transition: .25s var(--ease);
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.sub-menu a { display: block; padding: 8px 14px; border-radius: 6px; color: var(--color-text); font-size: 14px; text-decoration: none; }
.sub-menu a:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
.sub-toggle, .nav-toggle { display: none; }

/* メニュー項目（7つ）が1行に収まらない幅からスマホ用メニューにする */
@media (max-width: 1100px) {
  :root { --header-h: 64px; }
  .site-logo img { width: 124px; }
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; margin-right: -10px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease);
  }
  .nav-toggle__bar { position: relative; }
  .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bar::before { top: -7px; }
  .nav-toggle__bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

  .global-nav {
    position: fixed; inset: var(--header-h) 0 0; overflow-y: auto;
    background: #fff; padding: 12px var(--gutter) 48px;
    display: none;
  }
  .global-nav.is-open { display: block; animation: nav-in .3s var(--ease); }
  .global-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .global-nav > ul > li { border-bottom: 1px solid var(--color-border); display: flex; flex-wrap: wrap; }
  .global-nav > ul > li > a { flex: 1; padding: 16px 2px; font-size: 16px; }
  .global-nav > ul > li > a::after { display: none; }
  .global-nav > ul > li:last-child { border-bottom: 0; margin-top: 24px; }
  .global-nav > ul > li:last-child > a { margin: 0; text-align: center; padding: 15px; }
  .sub-toggle { display: block; width: 48px; background: none; border: 0; cursor: pointer; position: relative; }
  .sub-toggle::before {
    content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; margin: -7px 0 0 -4px;
    border-right: 1.5px solid var(--color-muted); border-bottom: 1.5px solid var(--color-muted); transform: rotate(45deg); transition: .25s;
  }
  .sub-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); margin-top: -2px; }
  .sub-menu {
    position: static; flex-basis: 100%; min-width: 0; padding: 0 0 12px 8px;
    border: 0; box-shadow: none; display: none; visibility: visible; opacity: 1; transform: none;
  }
  .sub-menu.is-open { display: block; }
  .sub-menu a { padding: 8px 4px; }
  body.nav-open { overflow: hidden; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-width: 220px; padding: 10px 10px 10px 28px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: .06em; text-decoration: none; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn::after {
  content: ""; flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.5'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / 15px no-repeat;
  transition: transform .3s var(--ease);
}
.btn:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.btn:hover::after { transform: translateX(4px); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline::after { background-color: var(--ink); }
.btn--outline:hover::after { background-color: rgba(255, 255, 255, .14); }
.btn--white { background: #fff; border-color: #fff; color: var(--ink); }
.btn--white::after { background-color: var(--ink); }
.btn--white:hover { background: var(--color-accent); border-color: var(--color-accent); }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; margin: 2.5em 0 0; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-size: 15px; font-weight: 500; letter-spacing: .08em; color: var(--ink); text-decoration: none;
}
.link-arrow::after {
  content: ""; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230b1b2b' stroke-width='1.5'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / 15px no-repeat;
  transition: background-color .3s, transform .3s var(--ease);
}
.link-arrow:hover { color: var(--color-primary); }
.link-arrow:hover::after { transform: translateX(4px); }

/* --- section heading ------------------------------------------------------ */
.heading { margin-bottom: clamp(36px, 5vw, 64px); }
.heading__en {
  margin: 0; font-family: var(--font-en); font-weight: 500; line-height: 1;
  font-size: clamp(44px, 7.5vw, 104px); letter-spacing: -.02em; color: var(--ink);
}
.heading__jp { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 14px; font-weight: 500; letter-spacing: .12em; color: var(--color-primary); }
.heading__jp::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.heading--light .heading__en { color: #fff; }
.heading--light .heading__jp { color: var(--color-accent); }

/* --- page hero (下層ページの見出し) ---------------------------------------- */
.page-hero { position: relative; padding: clamp(48px, 8vw, 104px) 0 0; background: var(--color-bg-alt); overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -10vw; top: -30%; width: 55vw; height: 140%;
  background: radial-gradient(closest-side, rgba(58, 160, 224, .14), transparent); pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; padding-bottom: clamp(32px, 5vw, 56px); }
.page-hero__en {
  margin: 0 0 14px; font-family: var(--font-en); font-weight: 500; line-height: .95;
  font-size: clamp(52px, 10vw, 136px); letter-spacing: -.03em; color: var(--ink);
}
.page-hero__title { display: flex; align-items: center; gap: 14px; font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; letter-spacing: .1em; }
.page-hero__title::before { content: ""; width: 32px; height: 2px; background: var(--color-accent); }
.page-hero__image { position: relative; z-index: 1; margin-bottom: -1px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; aspect-ratio: 1200 / 340; }
.page-hero__image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .page-hero__image { aspect-ratio: 16 / 7; } }

.breadcrumb { margin-top: 28px; font-size: 12px; letter-spacing: .06em; }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; color: var(--color-muted); }
.breadcrumb li + li::before { content: ""; display: inline-block; width: 12px; height: 1px; margin: 0 10px 4px; background: #b6c0ca; }
.breadcrumb a { color: var(--color-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); }

/* --- content -------------------------------------------------------------- */
.content-area { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(72px, 10vw, 140px); }
.content-area.has-local-nav { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(40px, 6vw, 88px); align-items: start; }
@media (max-width: 960px) { .content-area.has-local-nav { grid-template-columns: minmax(0, 1fr); gap: 56px; } }

.local-nav { position: sticky; top: calc(var(--header-h) + 32px); }
.local-nav__title { margin: 0 0 6px; font-family: var(--font-en); font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--color-muted); text-transform: uppercase; }
.local-nav__title a { color: inherit; text-decoration: none; }
p.local-nav__title:not(:first-child) { margin-top: 32px; }
.local-nav ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-border); }
.local-nav li { border-bottom: 1px solid var(--color-border); }
.local-nav ul a {
  position: relative; display: block; padding: 13px 28px 13px 0;
  color: var(--color-text); font-size: 14px; text-decoration: none; transition: color .2s, padding .3s var(--ease);
}
.local-nav ul a::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-top: 1.5px solid #9aa6b2; border-right: 1.5px solid #9aa6b2; transform: rotate(45deg);
}
.local-nav ul a:hover { color: var(--color-primary); padding-left: 6px; }
.local-nav ul a[aria-current="page"] { color: var(--color-primary); font-weight: 700; padding-left: 16px; }
.local-nav ul a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--color-accent); }
@media (max-width: 960px) {
  .local-nav { position: static; padding: 28px; background: var(--color-bg-alt); border-radius: var(--radius-lg); }
  .local-nav__years { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; }
}

.entry > :first-child { margin-top: 0; }
.entry h2 { margin: 2.6em 0 1.1em; font-size: clamp(20px, 2.4vw, 24px); letter-spacing: .06em; padding-left: 20px; position: relative; }
.entry h2::before { content: ""; position: absolute; left: 0; top: .35em; bottom: .35em; width: 4px; border-radius: 2px; background: linear-gradient(var(--color-accent), var(--color-primary)); }
.entry h3 { margin: 2em 0 .8em; font-size: 18px; color: var(--ink); }
.entry h4 { margin: 1.6em 0 .6em; font-size: 16px; color: var(--color-primary); }
.entry ul, .entry ol { padding-left: 1.5em; }
.entry li + li { margin-top: .4em; }
.entry li::marker { color: var(--color-accent); }
.entry .lead { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; color: var(--ink); line-height: 1.7; margin-bottom: 1.4em; letter-spacing: .06em; }
.entry figure { margin: 1.8em 0; }
.entry figure img, .entry > img { border-radius: var(--radius); }
.entry figcaption { margin-top: 8px; font-size: 13px; color: var(--color-muted); }
.entry > img { display: block; margin: 1.8em 0; border: 1px solid var(--color-border); }

.table-wrap { overflow-x: auto; margin: 0 0 1.8em; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 20px 8px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.table tr:first-child > * { border-top: 1px solid var(--ink); }
.table th { width: 28%; min-width: 7em; padding-right: 24px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.table--history th { width: 9em; font-family: var(--font-en); font-weight: 500; color: var(--color-primary); }
.table--plain td { padding: 12px; }
@media (max-width: 600px) {
  .table:not(.table--history) th, .table:not(.table--history) td { display: block; width: auto; }
  .table:not(.table--history) th { border-bottom: 0; padding: 18px 0 2px; white-space: normal; }
  .table:not(.table--history) td { padding: 4px 0 18px; }
  .table:not(.table--history) tr:first-child > td { border-top: 0; }
  .table--history th { width: 7em; padding-right: 8px; white-space: normal; }
}

.file-link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1px solid var(--color-border); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.file-link::before { content: "W"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; background: #2b579a; color: #fff; font-size: 12px; font-weight: 700; }
.file-link:hover { border-color: var(--color-primary); }

.note { padding: 18px 22px; background: var(--color-bg-alt); border-radius: var(--radius); font-size: 15px; }

.signature { margin-top: 3em; text-align: right; line-height: 1.8; }
.signature img { display: inline-block; width: 150px; height: auto; margin-top: 8px; }

/* message */
.message { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.message__photo { position: sticky; top: calc(var(--header-h) + 32px); }
.message__photo img { border-radius: var(--radius-lg); background: var(--color-bg-alt); }
@media (max-width: 760px) {
  .message { grid-template-columns: minmax(0, 1fr); }
  .message__photo { position: static; max-width: 220px; }
}

/* philosophy */
.philosophy { display: grid; gap: 0; margin: 0; padding: 0 !important; list-style: none; border-top: 1px solid var(--ink); }
.philosophy li {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 40px; align-items: baseline;
  margin: 0 !important; padding: 36px 0; border-bottom: 1px solid var(--color-border);
}
.philosophy li::marker { content: ""; }
.philosophy__word { grid-row: 1 / 3; font-size: clamp(36px, 5vw, 52px); font-weight: 700; letter-spacing: .24em; color: var(--ink); line-height: 1.2; }
.philosophy__key { font-size: 19px; font-weight: 700; color: var(--color-primary); margin-bottom: 6px; }
.philosophy p { margin: 0; color: var(--color-muted); }
@media (max-width: 600px) {
  .philosophy li { grid-template-columns: minmax(0, 1fr); padding: 28px 0; }
  .philosophy__word { grid-row: auto; margin-bottom: 6px; }
}

/* access */
.office + .office { margin-top: 72px; }
.office__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 36px; align-items: start; }
.office dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 15px; }
.office dt { font-family: var(--font-en); font-weight: 500; color: var(--color-muted); }
.office dd { margin: 0; }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg-alt); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4); }
@media (max-width: 800px) { .office__body { grid-template-columns: minmax(0, 1fr); } }

/* certification */
.cert-list { display: grid; gap: 20px; }
.cert { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 32px; border-radius: var(--radius-lg); background: var(--color-bg-alt); }
.cert__logo { display: grid; place-items: center; align-self: start; padding: 18px; background: #fff; border-radius: var(--radius); }
.cert__logo img { max-height: 140px; width: auto; object-fit: contain; }
.cert__body h2 { margin: 0 0 .6em; padding: 0; font-size: 19px; color: var(--ink); }
.cert__body h2::before { display: none; }
.cert__body p { font-size: 15px; color: var(--color-text); }
.cert__body > :last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .cert { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 18px; }
  .cert__logo { justify-self: start; }
  .cert__logo img { max-height: 96px; }
}

/* section index cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 2em 0 0; padding: 0 !important; list-style: none; }
.card-grid li { margin: 0 !important; }
.card-grid li::marker { content: ""; }
.card-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%;
  padding: 24px 24px 24px 26px; border-radius: var(--radius); background: var(--color-bg-alt);
  color: var(--ink); font-weight: 700; text-decoration: none; transition: background .3s var(--ease), color .3s;
}
.card-grid a::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.5'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .3s var(--ease);
}
.card-grid a:hover { background: var(--ink); color: #fff; }
.card-grid a:hover::after { background-color: var(--color-accent); transform: translateX(3px); }
.card-grid small { display: block; font-weight: 400; color: var(--color-muted); font-size: 13px; margin-top: 2px; }
.card-grid a:hover small { color: #b9c6d2; }

/* contact */
.contact-tel { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 0 0 1.2em; }
.contact-tel div { padding: 28px 30px; background: var(--color-bg-alt); border-radius: var(--radius-lg); }
.contact-tel dt { font-weight: 700; font-size: 14px; color: var(--color-muted); }
.contact-tel dd { margin: 4px 0 0; font-family: var(--font-en); font-size: clamp(28px, 3.6vw, 36px); font-weight: 500; letter-spacing: .02em; }
.contact-tel dd a { color: var(--ink); text-decoration: none; }
.contact-tel dd a:hover { color: var(--color-primary); }

/* Google フォーム埋め込み。iframe の高さは自動で伸びないため、設問数に合わせて固定値で調整する */
.gform { margin-top: 1.5em; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg-alt); }
.gform iframe { display: block; width: 100%; height: 1850px; border: 0; }
/* スマホでは Google フォームが余白込みの幅に収まらないため、画面の端まで広げる */
@media (max-width: 600px) {
  .gform { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-radius: 0; }
  .gform iframe { height: 1950px; }
}

/* --- news ----------------------------------------------------------------- */
.news-list { list-style: none; margin: 0 !important; padding: 0 !important; border-top: 1px solid var(--color-border); }
.news-list li { position: relative; display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 6px 28px; align-items: baseline; margin: 0 !important; padding: 24px 56px 24px 0; border-bottom: 1px solid var(--color-border); }
.news-list li::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%;
  background: var(--color-bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230b1b2b' stroke-width='1.5'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: transform .3s var(--ease), background-color .3s; pointer-events: none;
}
.news-list li:hover::after { transform: translateX(4px); background-color: var(--color-accent-soft); }
.news-list__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--color-muted); }
.news-list__meta time { font-family: var(--font-en); font-size: 15px; font-weight: 500; letter-spacing: .06em; color: var(--ink); }
.news-list__title { color: var(--color-text); text-decoration: none; font-weight: 500; transition: color .2s; }
.news-list__title::before { content: ""; position: absolute; inset: 0; }
.news-list__title:hover { color: var(--color-primary); }
.news-list .news-cat { position: relative; z-index: 1; }
@media (max-width: 700px) { .news-list li { grid-template-columns: minmax(0, 1fr); padding-right: 44px; } }

.news-cat {
  display: inline-block; padding: 1px 12px; border-radius: 999px; border: 1px solid var(--color-border);
  color: var(--color-muted); font-size: 12px; font-weight: 500; line-height: 1.9; text-decoration: none; white-space: nowrap; background: #fff;
}
a.news-cat:hover { border-color: var(--color-primary); color: var(--color-primary); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; font-family: var(--font-en); }
.pagination a, .pagination span {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
  border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500;
}
.pagination a:hover { background: var(--color-bg-alt); }
.pagination span[aria-current] { background: var(--ink); color: #fff; }

.post-header { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--color-border); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; color: var(--color-muted); font-size: 14px; }
.post-meta time { font-family: var(--font-en); font-size: 16px; font-weight: 500; letter-spacing: .06em; color: var(--ink); }
.post-title { font-size: clamp(22px, 3.2vw, 32px); color: var(--ink); letter-spacing: .04em; line-height: 1.6; }
.post-body figure { margin: 1.8em 0; }
.post-body figure.u-center img { display: block; margin: 0 auto; }
.post-body figcaption { text-align: center; }
.post-body hr { border: 0; border-top: 1px solid var(--color-border); margin: 2.4em 0; }
.post-body h2 { font-size: 20px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 1.8em 0; }
.gallery figure { margin: 0 !important; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin: 1.8em 0; }
.columns > .column > :first-child { margin-top: 0; }
.media-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin: 1.8em 0; }
.media-text figure { margin: 0 !important; }
.media-text__content > :first-child { margin-top: 0; }
@media (max-width: 700px) { .media-text { grid-template-columns: minmax(0, 1fr); } .media-text figure { order: -1; } }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 64px; }
.post-nav a { display: block; padding: 20px 24px; border-radius: var(--radius); background: var(--color-bg-alt); color: var(--color-text); text-decoration: none; font-size: 14px; transition: background .3s, color .3s; }
.post-nav a:hover { background: var(--ink); color: #fff; }
.post-nav small { display: block; font-family: var(--font-en); color: var(--color-muted); font-size: 12px; letter-spacing: .1em; margin-bottom: 4px; }
.post-nav__next { grid-column: 2; text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: minmax(0, 1fr); } .post-nav__next { grid-column: auto; } }
.post-back { margin-top: 40px; text-align: center; }

/* --- staff blog ----------------------------------------------------------- */
.blog-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 20px; margin: 0 !important; padding: 0 !important; list-style: none; }
.blog-card { margin: 0 !important; }
.blog-card::marker { content: ""; }
.blog-card a { display: block; height: 100%; color: var(--color-text); text-decoration: none; }
.blog-card__image { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--color-bg-alt); }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.blog-card a:hover .blog-card__image img { transform: scale(1.05); }
.blog-card__noimage {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--color-accent-soft), #dbeaf5);
  font-family: var(--font-en); font-size: 18px; font-weight: 500; letter-spacing: .12em; color: var(--color-primary);
}
.blog-card__body { padding-top: 14px; }
.blog-card__body time { font-family: var(--font-en); font-size: 14px; font-weight: 500; letter-spacing: .06em; color: var(--color-muted); }
.blog-card__title { margin: 4px 0 2px; font-weight: 700; line-height: 1.6; color: var(--ink); transition: color .2s; }
.blog-card a:hover .blog-card__title { color: var(--color-primary); }
.blog-card__author { margin: 0; font-size: 13px; color: var(--color-muted); }
.home-blog .blog-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(16px, 2.4vw, 32px); }
@media (max-width: 700px) { .home-blog .blog-cards { grid-template-columns: minmax(0, 1fr); } }
.post-author { font-size: 14px; color: var(--color-muted); }
.post-author::before { content: "投稿者："; }

/* --- home: hero ----------------------------------------------------------- */
.hero { position: relative; height: calc(100svh - var(--header-h)); min-height: 560px; max-height: 920px; overflow: hidden; background: var(--ink); color: #fff; }
.hero__slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.hero__slides li { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero__slides li.is-active { opacity: 1; }
.hero__slides img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero__slides li.is-active img { animation: hero-zoom 9s linear forwards; }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8, 21, 34, .86) 0%, rgba(8, 21, 34, .55) 45%, rgba(8, 21, 34, .15) 100%); }
.hero__content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero__eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; font-family: var(--font-en); font-size: 13px; letter-spacing: .3em; color: #9fd3f3; }
.hero__eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.hero__en { margin: 0; font-family: var(--font-en); font-weight: 300; font-size: clamp(54px, 10.5vw, 156px); line-height: .92; letter-spacing: -.035em; }
.hero__en span { display: block; }
.hero__en span:last-child { padding-left: .6em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .85); }
.hero__title { margin-top: clamp(24px, 3vw, 40px); font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; letter-spacing: .12em; line-height: 1.7; }
.hero__text { max-width: 36em; margin: 14px 0 0; font-size: clamp(14px, 1.5vw, 16px); color: rgba(255, 255, 255, .82); }
.hero__dots { position: absolute; z-index: 2; right: var(--gutter); bottom: 32px; display: flex; align-items: center; gap: 14px; font-family: var(--font-en); font-size: 13px; letter-spacing: .1em; }
.hero__dots button { width: 36px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero__dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(255, 255, 255, .35); }
.hero__dots button[aria-current="true"]::before { background: #fff; }
.hero__scroll { position: absolute; z-index: 2; left: var(--gutter); bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--font-en); font-size: 11px; letter-spacing: .3em; writing-mode: vertical-rl; color: rgba(255, 255, 255, .8); }
.hero__scroll::after { content: ""; width: 1px; height: 72px; background: linear-gradient(#fff 50%, rgba(255, 255, 255, .25) 50%); background-size: 1px 200%; animation: scroll-line 2.2s var(--ease) infinite; }
@keyframes scroll-line { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
@media (max-width: 700px) { .hero { min-height: 520px; } .hero__scroll { display: none; } .hero__dots { left: var(--gutter); right: auto; } }

/* --- home: sections ------------------------------------------------------- */
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--ink); color: #c9d6e0; }

.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about__statement { font-size: clamp(24px, 3.2vw, 38px); font-weight: 700; line-height: 1.65; letter-spacing: .06em; color: var(--ink); margin-bottom: 32px; }
.about__statement em { font-style: normal; background: linear-gradient(transparent 62%, rgba(58, 160, 224, .28) 62%); }
.about__values { display: flex; gap: 10px; margin: 28px 0 40px; padding: 0; list-style: none; }
.about__values li { padding: 8px 22px; border: 1px solid var(--ink); border-radius: 999px; font-weight: 700; letter-spacing: .3em; color: var(--ink); }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.service { color: #c9d6e0; }
.service__image { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 26px; }
.service__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service:hover .service__image img { transform: scale(1.06); }
.service__num { position: absolute; left: 18px; top: 14px; font-family: var(--font-en); font-size: 15px; letter-spacing: .1em; color: #fff; }
.service__en { font-family: var(--font-en); font-size: 13px; letter-spacing: .2em; color: var(--color-accent); }
.service__title { margin: 6px 0 14px; font-size: 21px; color: #fff; letter-spacing: .06em; }
.service p { margin: 0; font-size: 15px; }
.section--dark .section__more { border-top: 1px solid rgba(255, 255, 255, .12); }
.section--dark .link-arrow { color: #fff; }
.section--dark .link-arrow::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.5'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E"); }
@media (max-width: 900px) { .services { grid-template-columns: minmax(0, 1fr); gap: 48px; } }

.section__more { display: flex; justify-content: flex-end; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--color-border); }

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split__side .heading { margin-bottom: 32px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

.badges { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.badges li { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 14px; padding: 24px 14px 18px; background: #fff; border-radius: var(--radius-lg); text-align: center; font-size: 13px; font-weight: 700; color: var(--ink); }
.badges img { height: 84px; width: auto; object-fit: contain; }
@media (max-width: 960px) { .badges { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.dx-band { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); color: #c9d6e0; }
.dx-band__image { min-height: 360px; }
.dx-band__image img { width: 100%; height: 100%; object-fit: cover; }
.dx-band__body { padding: clamp(36px, 5vw, 72px); }
.dx-band__body .heading { margin-bottom: 28px; }
.dx-band__body p { margin-bottom: 0; }
.dx-band .btn-group { margin-top: 32px; }
@media (max-width: 860px) { .dx-band { grid-template-columns: minmax(0, 1fr); } .dx-band__image { min-height: 0; aspect-ratio: 16 / 9; } }

.recruit-band { position: relative; min-height: min(80vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.recruit-band__bg { position: absolute; inset: 0; }
.recruit-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.recruit-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 21, 34, .1) 0%, rgba(8, 21, 34, .82) 72%); }
.recruit-band .container { position: relative; z-index: 2; padding-top: 160px; padding-bottom: clamp(56px, 8vw, 104px); }
.recruit-band__title { font-size: clamp(26px, 4vw, 44px); letter-spacing: .1em; margin-bottom: 16px; }
.recruit-band p { max-width: 36em; color: rgba(255, 255, 255, .85); }
.recruit-band .heading__en { color: #fff; font-size: clamp(64px, 12vw, 168px); opacity: .95; }

.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.offices > div { padding: clamp(28px, 3.4vw, 44px); background: #fff; border-radius: var(--radius-lg); }
.offices__en { font-family: var(--font-en); font-size: 13px; letter-spacing: .2em; color: var(--color-accent); margin: 0; }
.offices h3 { font-size: 20px; margin: 4px 0 16px; color: var(--ink); }
.offices p { margin: 0; font-size: 15px; color: var(--color-muted); }
@media (max-width: 800px) { .offices { grid-template-columns: minmax(0, 1fr); } }

/* --- contact CTA (全ページ下部) ------------------------------------------- */
.cta-contact { padding: clamp(32px, 5vw, 64px) 0; background: #fff; }
.cta-contact__inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center;
  padding: clamp(36px, 6vw, 80px); border-radius: var(--radius-lg); overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-accent) 100%);
}
.cta-contact__inner::after { content: "Contact"; position: absolute; right: -0.05em; bottom: -.28em; font-family: var(--font-en); font-size: clamp(100px, 18vw, 260px); font-weight: 500; line-height: 1; letter-spacing: -.04em; color: rgba(255, 255, 255, .07); pointer-events: none; }
.cta-contact__en { margin: 0; font-family: var(--font-en); font-size: 14px; letter-spacing: .3em; color: #bfe3f8; }
.cta-contact__title { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: .1em; margin: 6px 0 14px; }
.cta-contact__text { margin: 0; color: rgba(255, 255, 255, .85); font-size: 15px; }
.cta-contact__btn { position: relative; z-index: 1; margin-top: 28px; }
.cta-contact__tels { position: relative; z-index: 1; display: grid; gap: 12px; }
.cta-contact__tels a {
  display: block; min-width: 300px; padding: 16px 26px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  color: #fff; text-decoration: none; font-family: var(--font-en); font-size: 28px; font-weight: 500; letter-spacing: .04em; line-height: 1.3;
  transition: background .3s;
}
.cta-contact__tels a:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.cta-contact__tels small { display: block; font-family: var(--font-jp); font-size: 12px; letter-spacing: .1em; color: #d6eefc; }
@media (max-width: 860px) {
  .cta-contact__inner { grid-template-columns: minmax(0, 1fr); }
  .cta-contact__tels a { min-width: 0; }
}

/* --- footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #9fb0c0; font-size: 14px; }
.site-footer a { color: #fff; }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 56px; padding-top: clamp(64px, 8vw, 104px); padding-bottom: 56px; }
.site-footer__mark { margin: 0 0 28px; font-family: var(--font-en); font-weight: 300; font-size: clamp(32px, 4.4vw, 56px); line-height: 1; letter-spacing: -.02em; color: #fff; }
.site-footer__name { margin: 0 0 22px; font-size: 16px; font-weight: 700; letter-spacing: .1em; color: #fff; }
.site-footer__offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; line-height: 1.9; }
.site-footer__offices strong { display: block; color: #fff; margin-bottom: 4px; }
.site-footer__offices a { text-decoration: none; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-footer__nav a { color: #c9d6e0; text-decoration: none; transition: color .2s; }
.site-footer__nav a:hover { color: var(--color-accent); }
.copyright { margin: 0; padding: 22px var(--gutter); border-top: 1px solid rgba(255, 255, 255, .08); text-align: center; font-family: var(--font-en); font-size: 12px; letter-spacing: .08em; color: #6d8094; }
@media (max-width: 800px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .site-footer__offices { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .site-footer__nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal, .js .reveal-group > * { opacity: 1; transform: none; }
  .hero__slides img { transform: none; }
}
