/* GENKI共通パレット。正式SVGの色と用途は docs/color-palette-2026-10-22.md。 */
:root {
  color-scheme: light;
  --paper: #fffaf5;
  --ink: #1a1a1a;
  --sub: #666666;
  --line: #e5e5e5;
  --accent: #eb6100;
  --accent-soft: #fdefe6;
  --brand-red: #e60012;
  --brand-yellow: #fabe00;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "clother", "Noto Sans JP", sans-serif; font-size: 16px; line-height: 2; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
::selection { color: var(--ink); background: var(--accent-soft); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 20px; color: var(--paper); background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ヘッダーの配置・挙動は維持。文字とCTAはページ全体の共通表現に揃える。 */
.site-header { position: fixed; z-index: 20; inset: 0 0 auto; padding: 25px 40px 0; transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.site-header.is-hidden { transform: translateY(-110%); }
.header-inner { height: 80px; padding: 0 30px; display: flex; align-items: center; gap: 32px; border-radius: 16px; transition: background-color .25s; }
.site-header.is-compact .header-inner, .site-header:has(details[open]) .header-inner { background: #fff; }
.wordmark { display: block; flex-shrink: 0; line-height: 1; }
.wordmark img { display: block; width: 180px; height: auto; }
.site-header .wordmark img { width: 135px; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; white-space: nowrap; }
.desktop-nav > a, .desktop-nav summary, .nav-text-button { font-size: 14px; font-weight: 500; letter-spacing: 0; line-height: 1.6; }
.desktop-nav > a, .desktop-nav summary { padding: 12px 0; transition: opacity .2s; }
.desktop-nav > a:hover, .desktop-nav summary:hover, .nav-text-button:hover { opacity: .65; }
.desktop-nav a[aria-current], .menu-nav a[aria-current], .footer-nav a[aria-current] { color: var(--accent); text-decoration: none; }
.nav-text-button { padding: 0; border: 0; background: none; text-align: left; }
.nav-disclosure { position: relative; }
.nav-disclosure summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.nav-disclosure summary::-webkit-details-marker { display: none; }
.nav-disclosure summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.nav-chevron { width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 4px solid var(--accent); transition: transform .2s; }
.nav-disclosure[open] .nav-chevron { transform: rotate(180deg); }
.nav-dropdown { position: absolute; top: calc(100% + 19px); left: -28px; width: 330px; padding: 24px 28px; border-radius: 10px; background: #fff; box-shadow: 0 12px 40px rgb(0 0 0 / 5%); }
.nav-dropdown a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; font-size: 13px; }
.nav-dropdown a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-dropdown .dropdown-heading { margin-bottom: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 12px; }
/* ピル型を共有し、Intersect参照の色の切替と矢印の入れ替わりを自前で実装。 */
.ui-button { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex-shrink: 0; width: fit-content; max-width: 100%; min-height: 48px; padding: 12px 28px; overflow: hidden; border: 0; border-radius: 999px; color: #fff; background: var(--ink); font: 500 14px/1.5 "clother", "Noto Sans JP", sans-serif; letter-spacing: 0; white-space: nowrap; vertical-align: middle; transition: color .25s; }
.ui-button::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: var(--accent); opacity: 0; transition: opacity .3s; }
/* 外部サイトへ進むボタンは、白丸の中に新しいウィンドウのアイコンを置く。 */
.ui-button-external { justify-content: space-between; gap: 24px; min-width: min(220px, 100%); min-height: 60px; padding: 8px 10px 8px 24px; }
.button-external-icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); background: #fff; }
.button-external-icon svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; }
.ui-button-accent { color: #fff; background: var(--accent); }
.ui-button-accent::before { background: var(--ink); }
.ui-button-light { color: var(--ink); background: #fff; }
.ui-button-light::before { background: var(--ink); }
.ui-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.button-external { width: 14px; height: 14px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.5; }
.button-arrow { position: relative; display: inline-block; flex: 0 0 auto; width: 16px; height: 16px; overflow: hidden; vertical-align: middle; }
.button-arrow > svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.5; transition: transform .45s cubic-bezier(.22, .75, .25, 1); }
.button-arrow > svg + svg { transform: translateX(-160%); }
.button-arrow-external > svg + svg { transform: translate(-160%, 160%); }
.button-arrow-left > svg + svg { transform: translateX(160%); }
.button-external-icon .button-arrow { width: 16px; height: 16px; }
.contact-arrow .button-arrow { width: 27px; height: 27px; }
.page-next-arrow .button-arrow { width: 28px; height: 28px; }
.news-row-arrow .button-arrow { width: 20px; height: 20px; }
.header-pill { min-height: 44px; padding: 10px 22px; font-size: 13px; }
@media (hover: hover) {
  .ui-button:not(:disabled):hover::before, .service-card:hover .ui-button::before { opacity: 1; }
  .ui-button-light:hover { color: #fff; }
  :is(.ui-button:not(:disabled), .service-card, .contact-panel, .page-next, .news-row, .footer-channel, .footer-service-link):hover .button-arrow > svg:first-child { transform: translateX(160%); }
  :is(.ui-button:not(:disabled), .service-card, .contact-panel, .page-next, .news-row, .footer-channel, .footer-service-link):hover .button-arrow-external > svg:first-child { transform: translate(160%, -160%); }
  :is(.ui-button:not(:disabled), .service-card, .contact-panel, .page-next, .news-row, .footer-channel, .footer-service-link):hover .button-arrow-left > svg:first-child { transform: translateX(-160%); }
  :is(.ui-button:not(:disabled), .service-card, .contact-panel, .page-next, .news-row, .footer-channel, .footer-service-link):hover .button-arrow > svg + svg { transform: none; }
}
.ui-button:focus-visible::before, .service-card:focus-visible .ui-button::before { opacity: 1; }
.ui-button-light:focus-visible { color: #fff; }
:is(.ui-button, .service-card, .contact-panel, .page-next, .news-row, .footer-channel, .footer-service-link):focus-visible .button-arrow > svg:first-child { transform: translateX(160%); }
:is(.ui-button, .service-card, .contact-panel, .page-next, .news-row, .footer-channel, .footer-service-link):focus-visible .button-arrow-external > svg:first-child { transform: translate(160%, -160%); }
:is(.ui-button, .service-card, .contact-panel, .page-next, .news-row, .footer-channel, .footer-service-link):focus-visible .button-arrow-left > svg:first-child { transform: translateX(-160%); }
:is(.ui-button, .service-card, .contact-panel, .page-next, .news-row, .footer-channel, .footer-service-link):focus-visible .button-arrow > svg + svg { transform: none; }
.menu-toggle, .menu-close { position: relative; flex: 0 0 48px; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); }
.menu-toggle { display: none; }
.menu-toggle span, .menu-close span { position: absolute; left: 16px; width: 16px; height: 1px; background: #fff; }
.menu-toggle span:first-child { top: 21px; }
.menu-toggle span:last-child { top: 27px; }

/* FVを奥に置き、白い理念の面を手前に重ねる。スクロールはブラウザの標準動作に任せる。 */
.intro-stage { position: relative; }
.hero { position: sticky; top: 0; z-index: 0; isolation: isolate; min-height: 760px; height: 100svh; max-height: 1160px; display: flex; flex-direction: column; overflow: clip; }
.hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.orbit-top { stroke: var(--accent); stroke-width: 34; transform-origin: 10% 0; animation: top-arrive 1.8s cubic-bezier(.2,.7,.3,1) both; }
.orbit-main { transform-origin: 100% 90%; animation: orbit-arrive 2.2s cubic-bezier(.2,.7,.3,1) both; }
.orbit-bold { stroke: var(--accent); stroke-width: 142; }
.orbit-soft { stroke: var(--accent-soft); stroke-width: 34; }
.orbit-bottom { stroke: var(--accent-soft); stroke-width: 70; transform-origin: 0 100%; animation: bottom-arrive 2s cubic-bezier(.2,.7,.3,1) both; }
.hero-content { width: 100%; margin: auto 0; padding: 144px 7.5% 232px; }
h1 { margin: 0; }
.headline-row { position: relative; display: block; width: min(60vw, 800px); max-width: 100%; aspect-ratio: 590.27 / 88.64; }
.headline-row::after { content: ""; position: absolute; inset: -2px; background: var(--accent); transform-origin: right; transform: scaleX(0); animation: wipe .95s .2s cubic-bezier(.76,0,.24,1) both; }
.hero-copy { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left top; animation: type-in .01s .66s both; }
.hero-description { margin: 32px 0 0 2px; font-size: 16px; font-weight: 400; line-height: 1.75; letter-spacing: 0; animation: header-in .8s .75s both; }
.mobile-break { display: none; }

/* 一つの白い面として始まり、理念の読み終わりで閉じる。 */
.intro-panel { position: relative; z-index: 2; margin-top: -140px; border-radius: 64px 64px 0 0; background: #fff; }
.hero-bottom { position: relative; min-height: 140px; padding: 28px 7.5% 32px; display: flex; justify-content: flex-end; align-items: center; }
.scroll-link { display: flex; align-items: center; gap: 24px; font-size: 13px; line-height: 1.5; }
.scroll-circle { width: 108px; height: 108px; margin-top: -66px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / 12%); transition: background .25s, color .25s; }
.scroll-circle svg { width: 29px; height: 29px; stroke: currentColor; stroke-width: 1.5; transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.scroll-link:hover .scroll-circle { background: var(--ink); color: #fff; }
.scroll-link:hover svg { transform: translateY(5px); }

/* 和文はNoto Sans JP、欧文は支給のAdobe Fonts（Clother）を使用。 */
.section-title { margin: 0; font-size: clamp(56px, 6.25vw, 96px); font-weight: 400; line-height: 1.1; letter-spacing: 0; }
/* 中央揃えの文章構成を維持し、書体と行間を全体に合わせる。 */
.about-intro { position: relative; padding: 128px 32px 64px; text-align: center; }
.statement-copy { max-width: 1040px; margin: 0 auto; font-size: 24px; line-height: 1.5; font-weight: 600; letter-spacing: 0; font-feature-settings: "palt"; }
.statement-copy p { margin: 0; }
.statement-copy p + p { margin-top: 1.5em; }
.statement-copy p > span { display: block; text-wrap: balance; }
.statement-mobile-break { display: none; }
.text-link { margin-top: 48px; }
/* 大きな社名もClotherの実テキストで表示し、文字素材へ戻さない。 */
.about-signature { container-type: inline-size; width: 97%; margin: 144px auto 0; }
.about-signature-text { display: block; font-family: "clother", sans-serif; font-size: 17vw; font-size: 20.5cqi; font-weight: 700; line-height: .9; letter-spacing: 0; white-space: nowrap; }

/* 3事業の構成を維持し、余白・角丸・CTAを他のコンテンツに揃える。 */
.services { position: relative; z-index: 3; isolation: isolate; margin-top: -64px; padding: 192px 7.5%; border-radius: 64px 64px 0 0; overflow: clip; background: var(--paper); }
/* 白い地に、輪郭をぼかした大きな曲線がにじむ背景。本文とは独立した装飾面。 */
.services-backdrop { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.services-backdrop::before, .services-backdrop::after { content: ""; position: absolute; width: clamp(900px, 96vw, 1680px); aspect-ratio: 1.3; border: clamp(80px, 8vw, 140px) solid var(--accent-soft); border-radius: 50%; filter: blur(40px); }
.services-backdrop::before { left: -70%; top: 28%; opacity: .85; transform: rotate(-28deg); }
.services-backdrop::after { right: -50%; top: -48%; aspect-ratio: 1.1; border-color: color-mix(in srgb, var(--accent) 32%, var(--accent-soft)); opacity: .52; transform: rotate(20deg); }
.services-inner { max-width: 1280px; margin: 0 auto; }
.services-intro { margin: 0 0 64px; font-size: clamp(28px, 2.5vw, 40px); font-weight: 700; line-height: 1.75; letter-spacing: 0; font-feature-settings: "palt"; }
.services-intro-line { display: block; }
.services-brand { display: inline-block; margin-right: 12px; color: var(--accent); font-size: 1em; font-weight: 500; line-height: 1.3; letter-spacing: 0; }
.keep-word { display: inline-block; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.service-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 32px; background: #fff; box-shadow: 0 8px 40px color-mix(in srgb, var(--ink) 5%, transparent); }
.service-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; min-width: 0; padding: 28px 32px 32px; }
.service-card h3 { margin: 0 0 24px; font-size: clamp(20px, 1.65vw, 26px); font-weight: 700; line-height: 1.5; letter-spacing: 0; font-feature-settings: "palt"; white-space: nowrap; }
.service-label-name { display: block; margin-top: 8px; color: var(--sub); font-size: 13px; font-weight: 500; line-height: 1.5; }
.service-description { margin: 0; font-size: 15px; font-weight: 400; line-height: 2; }
.service-tags { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; margin: 24px 0 32px; padding: 0; list-style: none; }
.service-tags li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; color: var(--sub); background: var(--paper); font-size: 11px; font-weight: 400; line-height: 1.5; white-space: nowrap; }
.service-tags li::before { content: ""; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.service-link { align-self: flex-start; margin-top: auto; }
.service-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }

/* ニュースとnoteは一続きの白い面にまとめ、活動を読む章にする。 */
.journal-surface { position: relative; z-index: 2; margin-top: -64px; border-radius: 64px; background: #fff; }
/* IDEE参照：日付・記事名・カテゴリを、細い罫線で区切る。 */
.news-section { padding: 128px 7.5% 64px; }
.news-inner { max-width: 1280px; margin: 0 auto; }
.news-heading { margin-bottom: 64px; }
.news-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.news-list > li { border-bottom: 1px solid var(--line); }
.news-row { display: grid; grid-template-columns: 15% minmax(0, 1fr); align-items: baseline; column-gap: 32px; padding: 24px 0; font-size: 16px; line-height: 1.75; font-weight: 400; }
.news-date { font-variant-numeric: tabular-nums; white-space: nowrap; }
.news-article-title { min-width: 0; overflow-wrap: anywhere; font-feature-settings: "palt"; }
.news-row:hover .news-article-title, .news-row:focus-visible .news-article-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.news-more { margin-top: 48px; }

/* CARTA参照：大きな主記事と、画像＋見出しの小記事3件。 */
.note-section { padding: 64px 7.5% 128px; }
.note-inner { max-width: 1280px; margin: 0 auto; }
.note-heading { margin-bottom: 64px; text-align: center; }
.news-heading > p, .note-heading > p { margin: 16px 0 0; color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.note-grid { display: grid; grid-template-columns: minmax(0, 480fr) minmax(0, 560fr); gap: 64px; align-items: start; }
.note-card { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; text-align: left; }
.note-visual { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 1.91; border-radius: 24px; background: var(--accent-soft); }
.note-visual-main { background: var(--paper); }
.note-visual img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.note-view-more { position: absolute; z-index: 1; left: 50%; top: 50%; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 14px 24px; border-radius: 999px; color: #fff; background: var(--accent); font-size: 13px; font-weight: 500; line-height: 1.5; white-space: nowrap; opacity: 0; transform: translate(-50%, calc(-50% + 8px)); pointer-events: none; transition: opacity .3s, transform .4s cubic-bezier(.22, .75, .25, 1); }
.note-view-more svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.5; }
.note-card:focus-visible .note-view-more { opacity: 1; transform: translate(-50%, -50%); }
@media (hover: hover) {
  .note-card:hover .note-view-more { opacity: 1; transform: translate(-50%, -50%); }
}
.note-card.has-cursor-follow .note-view-more { left: 0; top: 0; opacity: 0; transition: opacity .2s; }
.note-card.has-cursor-follow .is-cursor-active .note-view-more,
.note-card.has-cursor-follow:focus-visible .note-view-more { opacity: 1; }
.note-meta { display: block; margin: 24px 0 16px; font-size: 12px; font-weight: 400; line-height: 1.75; }
.note-meta time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.note-article-title { display: block; font-size: 24px; font-weight: 700; line-height: 1.75; letter-spacing: 0; font-feature-settings: "palt"; }
.note-excerpt { display: block; margin-top: 16px; color: var(--sub); font-size: 15px; line-height: 2; }

/* 採用・問い合わせは、統一前のワイドなレイアウトを使用する。書体は共通。 */
.closing-sections { position: relative; z-index: 1; margin-top: -64px; overflow: clip; background: var(--paper); padding: 104px 20px 40px; }
.closing-sections:has(.recruit-section) { margin-top: 0; }
.recruit-section { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(60px, 9vw, 160px); max-width: 1800px; margin: 0 auto; padding-bottom: 120px; }
.recruit-section::after { content: ""; position: absolute; z-index: -1; top: 9%; right: -180px; width: min(38vw, 600px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 35%, color-mix(in srgb, var(--accent-soft) 42%, white), var(--accent-soft)); opacity: .6; }
.recruit-photo { position: relative; margin: 0; align-self: stretch; min-height: 680px; overflow: hidden; border-radius: 10px; background: #e7e8e9; }
.recruit-photo img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 50% 50%; }
.recruit-content { max-width: 620px; padding: 36px 48px 36px 0; }
.recruit-heading { margin: 0; font-size: clamp(48px, 4.5vw, 84px); font-weight: 400; line-height: 1.1; letter-spacing: 0; }
.recruit-label { margin: 20px 0 0; font-size: 18px; font-weight: 500; }
.recruit-content h3 { margin: 52px 0 28px; font-size: clamp(28px, 2.5vw, 42px); font-weight: 700; line-height: 1.55; letter-spacing: 0; font-feature-settings: "palt"; }
.recruit-description { margin: 0; font-size: 16px; line-height: 1.9; }
.recruit-button { justify-content: space-between; width: 280px; min-height: 68px; margin-top: 48px; padding: 10px 12px 10px 28px; font-size: 15px; }
.recruit-button-icon { width: 44px; height: 44px; }
.contact-section { max-width: 1800px; margin: 0 auto; }
.contact-panel { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) auto; align-items: center; gap: 44px; min-height: 410px; padding: 90px 7.5%; overflow: hidden; border-radius: 10px; color: #fff; background: var(--accent); }
.contact-art { position: absolute; z-index: -1; inset: 0; overflow: visible; pointer-events: none; }
.contact-art span { position: absolute; width: 780px; aspect-ratio: 1; border-radius: 50%; background: var(--accent-soft); opacity: .12; transition: transform .85s cubic-bezier(.22, .75, .25, 1); }
.contact-art span:first-child { left: -90px; top: 50px; }
.contact-art span:last-child { right: -100px; bottom: 52%; width: 600px; opacity: .16; }
.contact-panel:focus-visible .contact-art span:first-child { transform: translate(100px, -48px); }
.contact-panel:focus-visible .contact-art span:last-child { transform: translate(-90px, 64px); }
@media (hover: hover) {
  .contact-panel:hover .contact-art span:first-child { transform: translate(100px, -48px); }
  .contact-panel:hover .contact-art span:last-child { transform: translate(-90px, 64px); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-art span { transform: none !important; }
}
.contact-grain { position: absolute; inset: 0; z-index: -1; opacity: .14; mix-blend-mode: soft-light; pointer-events: none; }
.contact-heading h2 { margin: 0; font-size: clamp(40px, 4.6vw, 88px); font-weight: 400; line-height: 1.15; letter-spacing: 0; white-space: nowrap; }
.contact-heading p { margin: 24px 0 0; font-size: 18px; font-weight: 500; }
.contact-copy { margin: 0; font-size: 15px; line-height: 1.85; font-feature-settings: "palt"; }
.contact-mobile-break { display: none; }
.contact-arrow { display: grid; place-items: center; width: 82px; height: 82px; border-radius: 50%; color: var(--ink); background: #fff; transition: background-color .3s, color .3s; }
.contact-arrow svg { width: 27px; height: 27px; stroke: currentColor; stroke-width: 1.8; }
.contact-panel:focus-visible .contact-arrow { background: var(--ink); color: #fff; }
@media (hover: hover) {
  .contact-panel:hover .contact-arrow { background: var(--ink); color: #fff; }
}

/* 左のコピーと右の2列ナビ。フッターは無彩色の黒を直接指定する。 */
.site-footer { padding: 112px 7.5vw 32px; color: var(--paper); background: #1a1a1a; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-main { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "copy nav" "company channels"; row-gap: 64px; }
.footer-copy { grid-area: copy; margin: 0; padding-right: 40px; font-size: clamp(20px, 1.8vw, 28px); font-weight: 700; line-height: 1.75; letter-spacing: 0; font-feature-settings: "palt"; }
.footer-nav { grid-area: nav; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.footer-nav ul { margin: 0; padding: 0; list-style: none; }
.footer-nav li > a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 0; font-size: 16px; font-weight: 400; line-height: 1.5; }
.footer-nav .footer-service-group { padding-bottom: 16px; }
.footer-nav .footer-service-links { margin: 0; padding: 0 0 0 16px; border-left: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }
.footer-nav .footer-service-link { display: flex; gap: 10px; width: fit-content; min-height: 32px; padding: 6px 0; color: color-mix(in srgb, var(--paper) 76%, transparent); font-size: 12px; line-height: 1.6; }
.footer-service-link .button-arrow { width: 14px; height: 14px; }
.footer-nav .footer-privacy { margin-top: 22px; }
.footer-privacy::before { content: ""; display: block; width: 10px; height: 1px; margin-bottom: 10px; background: currentColor; }
.footer-nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.footer-channels { grid-area: channels; border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }
.footer-channel { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(0, 2fr) 14px; align-items: center; gap: 16px; width: 100%; min-height: 68px; padding: 20px 0; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); color: inherit; background: transparent; text-align: left; }
.footer-channel-name { font: 600 14px/1.5 "clother", "Noto Sans JP", sans-serif; }
.footer-channel-detail { color: color-mix(in srgb, var(--paper) 76%, transparent); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.footer-channel svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; }
.footer-channel .button-arrow { width: 14px; height: 14px; }
.footer-company { grid-area: company; padding-top: 4px; font-size: 13px; line-height: 1.8; }
.footer-company p { margin: 0; font-weight: 600; }
.footer-company address { margin-top: 24px; font-size: 12px; font-style: normal; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 64px; }
.footer-bottom small { font: 500 12px/1.5 "clother", "Noto Sans JP", sans-serif; }
.footer-top { display: inline-flex; align-items: center; gap: 16px; font: 400 11px/1.5 "clother", "Noto Sans JP", sans-serif; }
.footer-top-circle { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 10%); transition: color .2s, background-color .2s; }
.footer-top-circle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.3; }
.footer-top:hover .footer-top-circle { color: var(--ink); background: var(--paper); }
.site-footer a:focus-visible, .site-footer button:focus-visible { outline-color: var(--paper); }

/* モバイルは上から開くメニュー。ネイティブdialogでフォーカスを管理。 */
dialog { max-width: none; max-height: 100svh; width: 100%; height: auto; margin: 0; padding: 0 20px 54px; overflow: auto; overscroll-behavior: contain; border: 0; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgb(0 0 0 / 73%); }
.menu-header { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.menu-close span { top: 23px; transform: rotate(45deg); }
.menu-close span:last-child { transform: rotate(-45deg); }
.menu-nav { max-width: 640px; margin: 24px auto 0; }
.menu-nav > a, .menu-nav > button, .menu-group { display: block; width: 100%; padding: 23px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.menu-group > a { font-size: 15px; font-weight: 500; }
.menu-sublinks { display: grid; gap: 12px; margin-top: 22px; font-size: 12px; font-weight: 400; }
.menu-sublinks a::before { content: "−"; margin-right: 7px; }
.menu-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 32px auto 0; }
body.menu-open { overflow: hidden; }

@keyframes wipe { 0% { transform: scaleX(0); transform-origin: left; } 44% { transform: scaleX(1); transform-origin: left; } 45% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
@keyframes type-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes header-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes orbit-arrive { from { transform: translate(60px,80px) rotate(9deg); } to { transform: none; } }
@keyframes top-arrive { from { transform: translate(-50px,-70px) rotate(-8deg); } to { transform: none; } }
@keyframes bottom-arrive { from { transform: translate(-70px,60px); } to { transform: none; } }

/* 本文の左右の基準線を、ページを通して揃える。 */
.hero-content, .hero-bottom, .services, .news-section, .note-section { padding-left: max(7.5vw, calc((100vw - 1280px) / 2)); padding-right: max(7.5vw, calc((100vw - 1280px) / 2)); }
@media (max-width: 1100px) {
  .hero { min-height: 720px; }
  .orbit-main { left: 6%; }
  .services-inner, .news-inner, .note-inner { max-width: none; }
  .services-intro { font-size: 32px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .service-card-body { padding: 28px; }
  .service-card h3 { font-size: clamp(20px, 2.4vw, 26px); white-space: normal; }
  .service-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card:last-child .service-card-visual { aspect-ratio: auto; min-height: 100%; }

  .news-row { grid-template-columns: 100px minmax(0, 1fr); column-gap: 24px; font-size: 16px; }

  .note-grid { grid-template-columns: 1fr; gap: 48px; }
  .note-featured .note-visual { max-height: 460px; }
  .recruit-section { gap: 48px; }
  .recruit-content { padding-right: 12px; }
  .recruit-photo { min-height: 640px; }
  .recruit-description { font-size: 14px; }

  .contact-panel { grid-template-columns: 1fr auto; gap: 32px; padding: 64px 6%; }
  .contact-heading h2 { font-size: 58px; }
  .contact-copy { grid-column: 1; }
  .contact-arrow { grid-column: 2; grid-row: 1 / 3; }

  .footer-copy { font-size: 22px; padding-right: 24px; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 1199px) {
  .site-header { padding: 15px 20px 0; }
  .header-inner { height: 65px; padding: 0 16px; }
  .desktop-nav, .header-actions { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .wordmark img { width: 150px; }
  .site-header .wordmark img { width: 112.5px; }
}
@media (max-width: 760px) {
  .hero-content, .hero-bottom, .services, .news-section, .note-section { padding-left: 24px; padding-right: 24px; }
  .hero-content { padding-top: 110px; padding-bottom: 186px; margin: auto 0; }
  .hero-bottom { min-height: 112px; padding-top: 28px; padding-bottom: 28px; }
  .section-title { font-size: 48px; }
  .services { margin-top: -32px; padding-top: 112px; padding-bottom: 112px; border-radius: 32px 32px 0 0; }
  .services-backdrop::before, .services-backdrop::after { width: 680px; border-width: 72px; filter: blur(32px); }
  .services-backdrop::before { left: -530px; top: 38%; }
  .services-backdrop::after { left: 260px; right: auto; top: -120px; }
  .news-section { padding-top: 80px; padding-bottom: 40px; }
  .news-heading { margin-bottom: 40px; }
  .note-section { padding-top: 40px; padding-bottom: 96px; }
  .site-footer { padding: 72px 24px 28px; }

  .note-visual { border-radius: 16px; }
  .note-meta { margin: 24px 0 16px; }

  html { scroll-padding-top: 88px; }
  .site-header { padding: 10px 10px 0; }
  .header-inner { height: 60px; padding: 0 10px 0 0; }
  .wordmark img { width: 128px; }
  .site-header .wordmark img { width: 96px; }
  .hero { height: 100svh; min-height: 740px; max-height: 1000px; }
  .headline-row { width: min(100%, 560px); }
  .hero-description { margin-top: 24px; font-size: 13px; line-height: 1.75; }
  .mobile-break { display: block; }
  .hero-art { inset: 0; }
  .orbit { width: 1440px; height: 900px; max-width: none; }
  .orbit-top { left: -160px; top: -4px; width: 980px; height: 700px; stroke-width: 31px; }
  .orbit-main { left: calc(100% - 920px); top: calc(100% - 730px); width: 1150px; height: 770px; opacity: 1; }
  .orbit-bold { stroke-width: 118px; }
  .orbit-soft { stroke-width: 26px; }
  .orbit-bottom { left: -76px; top: calc(100% - 620px); width: 760px; height: 600px; stroke-width: 62px; }
  .intro-panel { margin-top: -112px; border-radius: 32px 32px 0 0; }
  .scroll-link { gap: 10px; font-size: 10px; }
  .scroll-link > span:first-child { display: none; }
  .scroll-circle { width: 64px; height: 64px; margin-top: -74px; }
  .scroll-circle svg { width: 22px; height: 22px; }
  .about-intro { padding: 80px 24px 40px; }
  .statement-copy { max-width: 560px; font-size: 18px; }
  .statement-mobile-break { display: block; }
  .text-link { margin-top: 40px; }
  .about-signature { margin-top: 80px; }
  .services-intro { margin-bottom: 40px; font-size: 24px; line-height: 1.75; }
  .services-brand { margin-right: 8px; }
  .service-grid { grid-template-columns: 1fr; gap: 24px; }
  .service-card { border-radius: 24px; }
  .service-card-body { padding: 24px; }
  .service-card:last-child { display: flex; grid-column: auto; }
  .service-card:last-child .service-card-visual { aspect-ratio: 16 / 10; min-height: 0; }
  .service-card h3 { margin-bottom: 16px; font-size: clamp(20px, 5.65vw, 28px); }
  .service-tags { gap: 8px; margin: 24px 0; }
  .journal-surface { margin-top: -32px; border-radius: 32px; }
  .news-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "date" "title"; gap: 8px; padding: 24px 0; font-size: 14px; line-height: 1.75; }
  .news-date { grid-area: date; }
  .news-article-title { grid-area: title; }
  .note-heading { margin-bottom: 40px; }
  .note-grid { gap: 40px; }
  .note-article-title { font-size: 20px; line-height: 1.75; }
  .note-excerpt, .service-description { font-size: 14px; line-height: 2; }
  .closing-sections { margin-top: -32px; padding: 56px 16px 24px; }
  .recruit-section { grid-template-columns: 1fr; gap: 0; padding-bottom: 64px; }
  .recruit-section::after { top: auto; bottom: 24%; right: -120px; width: 330px; }
  .recruit-photo { min-height: 0; aspect-ratio: 1 / 1.06; }
  .recruit-content { padding: 44px 8px 0; }
  .recruit-heading { font-size: 50px; }
  .recruit-label { margin-top: 14px; font-size: 14px; }
  .recruit-content h3 { margin: 36px 0 22px; font-size: 31px; }
  .recruit-button { width: 260px; min-height: 64px; margin-top: 32px; font-size: 14px; padding-top: 9px; padding-bottom: 9px; }
  .contact-panel { grid-template-columns: minmax(0, 1fr) auto; gap: 32px 12px; min-height: 360px; padding: 44px 24px; }
  .contact-heading { grid-column: 1 / -1; }
  .contact-heading h2 { font-size: clamp(34px, 10.5vw, 56px); }
  .contact-heading p { margin-top: 16px; font-size: 14px; }
  .contact-copy { grid-column: 1 / -1; font-size: 13px; line-height: 1.9; }
  .contact-mobile-break { display: block; }
  .contact-arrow { grid-column: 2; grid-row: 3; width: 56px; height: 56px; }
  .contact-arrow svg { width: 23px; height: 23px; }

  .contact-art span:first-child { width: 450px; left: -230px; top: 100px; }
  .contact-art span:last-child { width: 330px; right: -180px; bottom: 60%; }
  .footer-main { grid-template-columns: 1fr; grid-template-areas: "copy" "nav" "channels" "company"; row-gap: 42px; }
  .footer-copy { padding: 0; font-size: 20px; line-height: 1.75; }
  .footer-nav { gap: 24px; }
  .footer-channel { grid-template-columns: 64px minmax(0, 1fr) 14px; gap: 12px; min-height: 60px; padding: 18px 0; }
  .footer-channel-name { font-size: 13px; }
  .footer-company { padding-top: 0; }
  .footer-company address { margin-top: 18px; }
  .footer-bottom { margin-top: 48px; }
  .menu-header .wordmark { margin-left: -10px; }
}
@media (max-width: 360px) {
  .hero-description { font-size: 12px; }
  .services-intro { font-size: 22px; }
  .service-card-body { padding-inline: 20px; }
}
@media (max-height: 650px) {
  .hero { position: relative; top: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero { position: relative; top: auto; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 事業画像。HTMLでも現行素材を表示し、media.jsで差し替えを管理する。 */
.service-card-visual { flex-shrink: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.service-card-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.service-illustration[data-media-slot] img { display: block; width: 100%; height: 100%; object-fit: cover; }
.service-card-visual[data-media-slot="label"], .service-illustration[data-media-slot="label"] { padding: 32px; background: color-mix(in srgb, var(--line) 50%, #fff); }
.service-card-visual[data-media-slot="label"] img, .service-illustration[data-media-slot="label"] img { transform: scale(.7); }
.note-intro-title { margin: 0; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.7; }
.note-introduction .text-link { margin-top: 32px; }
.note-articles article + article { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.note-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; border-radius: 24px; }
.note-article-title { margin: 0; }
.hero-still, .hero-video { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.hero-still { object-position: 50% 50%; }
.hero.has-hero-still { background: var(--ink); }
.hero:is(.has-hero-video, .has-hero-still)::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 45%, transparent), color-mix(in srgb, var(--ink) 25%, transparent) 35%, color-mix(in srgb, var(--ink) 30%, transparent) 70%, color-mix(in srgb, var(--ink) 55%, transparent)); pointer-events: none; }
.hero.has-hero-still:not(.has-hero-video)::after { background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 20%, transparent), transparent 30%, transparent 70%, color-mix(in srgb, var(--ink) 25%, transparent)); }
.hero:is(.has-hero-video, .has-hero-still) .hero-art { visibility: hidden; }
.service-image-placeholder { display: grid; place-content: center; gap: 8px; width: 100%; height: 100%; padding: 20px; color: var(--sub); background: color-mix(in srgb, var(--line) 25%, var(--paper)); text-align: center; }
.service-image-placeholder > span { font-family: "clother", sans-serif; font-size: 24px; font-weight: 500; letter-spacing: .12em; }
.service-image-placeholder small { font-size: 12px; line-height: 1.7; }

/* MTG: SNSはアイコンで表示し、支給の公式X・代表noteへ直接接続する。 */
.footer-channels { display: flex; align-items: center; gap: 16px; align-self: start; border: 0; }
.footer-social { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; color: var(--paper); background: rgb(255 255 255 / 8%); }
.footer-social svg { width: 22px; height: 22px; }
.footer-social-placeholder { opacity: .4; }
@media (hover: hover) { a.footer-social:hover { background: rgb(255 255 255 / 18%); } }
