/* 株式会社APIソリューション */
:root {
  --white: #ffffff;
  --beige: #f0efeb;
  --ink: #333333;
  --ink-2: #5c5c5c;
  --muted: #8a8a8a;
  --line: #dddad3;
  --red: #f23a3c;
  --gold: #b8964f;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 72px;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --en: "Cormorant Garamond", "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: clip; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 2; letter-spacing: .05em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.5; letter-spacing: .06em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 8px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

/* 共通 */
.en { font-family: var(--en); font-size: clamp(17px, 1.8vw, 20px); font-weight: 600; letter-spacing: .14em; color: var(--red); }
.sec-head { display: grid; gap: 6px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head--center { text-align: center; justify-items: center; }
.sec-title { font-size: clamp(24px, 3vw, 32px); }
.sec-lead { color: var(--ink-2); margin-top: 12px; }
.section { padding-block: clamp(80px, 11vw, 136px); }
.section--beige { background: var(--beige); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.text-link { color: var(--red); font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; padding: 12px 40px; background: var(--ink); color: var(--white); border: 1px solid var(--ink); text-decoration: none; font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: .12em; cursor: pointer; transition: background .3s, color .3s; }
.btn::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .3s; }
.btn:hover { background: var(--red); border-color: var(--red); }
.btn:hover::after { width: 26px; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-weight: 700; font-size: 17px; letter-spacing: .1em; text-decoration: none; }
.gnav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.gnav a { text-decoration: none; font-size: 14.5px; font-weight: 500; position: relative; padding-block: 6px; }
.gnav a:not(.gnav__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.gnav a:not(.gnav__cta):hover::after { transform: scaleX(1); }
.gnav__cta { background: var(--ink); color: var(--white); padding: 9px 22px !important; transition: background .3s; }
.gnav__cta:hover { background: var(--red); }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; background: transparent; position: relative; cursor: pointer; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s, top .3s; }
.menu-btn span:nth-child(1) { top: 19px; }
.menu-btn span:nth-child(2) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(30deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 23px; transform: rotate(-30deg); }

/* ヒーロー */
.hero { background: var(--beige); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(24px, 4vw, 56px); min-height: min(78vh, 680px); padding-block: 48px; }
.hero-copy { display: grid; gap: 22px; justify-items: start; position: relative; z-index: 1; }
.hero-title { font-size: clamp(34px, 5vw, 60px); line-height: 1.45; letter-spacing: .1em; }
.hero-en { font-family: var(--en); font-size: clamp(18px, 2vw, 24px); font-style: italic; color: var(--gold); letter-spacing: .06em; margin-bottom: 14px; }
.hero-img { aspect-ratio: 4 / 3; margin-right: calc(-1 * var(--gutter)); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.hero-copy > * { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .15s; } .hero-copy > *:nth-child(3) { animation-delay: .3s; }
.hero-img { animation: fadein 1.6s ease .2s both; }
@keyframes rise { from { opacity: 0; translate: 0 20px; } to { opacity: 1; translate: 0 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* 私たちの仕事 */
.intro { display: grid; gap: 16px; max-width: 46em; margin-bottom: clamp(40px, 6vw, 72px); }
.intro-lead { font-size: clamp(18px, 2vw, 22px); font-weight: 700; }
.intro p:not(.intro-lead) { color: var(--ink-2); }
.biz { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.biz-item { display: grid; gap: 12px; align-content: start; padding: clamp(26px, 3vw, 36px); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--ink); transition: border-color .3s, translate .3s; }
.biz-item:hover { border-top-color: var(--red); translate: 0 -4px; }
.biz-head { display: flex; justify-content: space-between; align-items: center; }
.biz-no { font-family: var(--en); font-size: 40px; font-weight: 500; line-height: 1; color: var(--line); }
.biz-icon { width: 40px; height: 40px; }
.biz-icon * { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.biz-sub { font-size: 13px; color: var(--red); font-weight: 500; letter-spacing: .1em; }
.biz h3 { font-size: 18px; }
.biz-item > p:last-child { color: var(--ink-2); font-size: 14.5px; line-height: 1.95; }

/* 会社概要 */
.profile { margin: 0; border-top: 1px solid var(--ink); }
.profile > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 20px; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.profile dt { font-weight: 700; font-size: 14.5px; }
.profile dd { margin: 0; color: var(--ink-2); }
.img-text { display: inline-block; height: auto; vertical-align: middle; width: auto; max-height: 22px; }

/* フォーム */
.form { max-width: 800px; margin-inline: auto; display: grid; gap: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 10px; padding: 0; }
.req, .opt { font-weight: 500; font-size: 11px; padding: 1px 8px; letter-spacing: .08em; }
.req { background: var(--red); color: var(--white); }
.opt { background: var(--beige); color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--beige); border: 1px solid transparent; border-radius: 0; padding: 14px 16px; transition: border-color .2s, background .2s; }
.field textarea { min-height: 200px; resize: vertical; line-height: 1.8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.choices input { accent-color: var(--ink); margin: 0; }
.choices label:has(input:checked) { border-color: var(--ink); background: var(--beige); }
.agree { font-size: 14px; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; justify-self: center; }
.agree input { margin-top: 8px; accent-color: var(--ink); }
.agree a { color: var(--red); }
.form-foot { display: grid; gap: 16px; justify-items: center; }
.form-msg { font-size: 14px; line-height: 1.9; padding: 14px 18px; background: #fdecec; color: #b3262a; }
.form-msg.is-ok { background: var(--beige); color: var(--ink); }

/* 下層 */
.page-head { background: var(--beige); padding-block: clamp(64px, 9vw, 110px) clamp(40px, 6vw, 64px); }
.page-head .wrap { display: grid; gap: 6px; }
.page-title { font-size: clamp(28px, 4vw, 42px); }
.policy { max-width: 820px; display: grid; gap: 36px; }
.policy section { display: grid; gap: 10px; }
.policy h2 { font-size: 18px; padding-left: 14px; border-left: 3px solid var(--red); line-height: 1.5; }
.policy p, .policy li { color: var(--ink-2); }
.policy ul { padding-left: 1.4em; }
.policy a { color: var(--red); }

/* フッター */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding-block: 56px 28px; font-size: 13.5px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-name { color: var(--white); font-weight: 700; font-size: 16px; letter-spacing: .1em; margin-bottom: 8px; }
.footer-addr { line-height: 1.9; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; align-content: start; }
.footer-nav a { text-decoration: none; color: var(--white); }
.footer-nav a:hover { color: var(--red); }
.copy { display: block; border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; font-size: 12px; color: rgba(255,255,255,.5); letter-spacing: .1em; }

/* スクロール表示 */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .9s ease, translate .9s cubic-bezier(.2,.7,.2,1), border-color .3s; }
.js .reveal.is-in { opacity: 1; translate: 0 0; }
.js .biz-item.reveal.is-in:hover { translate: 0 -4px; }

/* スマホ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-block: 40px 0; }
  .hero-img { margin-inline: calc(-1 * var(--gutter)); }
  .biz { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .gnav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; opacity: 0; visibility: hidden; translate: 0 -8px; transition: opacity .25s, translate .25s, visibility .25s; }
  .gnav.is-open { opacity: 1; visibility: visible; translate: 0 0; }
  .gnav a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .gnav a::after { display: none; }
  .gnav__cta { margin-top: 16px; text-align: center; border-bottom: 0 !important; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .profile > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .brand { font-size: 15px; }
}
@media (max-width: 520px) { .btn { width: 100%; } .hero-copy .btn { width: auto; } .footer-nav { grid-template-columns: 1fr 1fr; gap: 8px 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .js .reveal { opacity: 1; translate: 0 0; } }
.hero { background: #efece5; }
.hero-title { font-size: clamp(28px, 3.9vw, 50px); }

/* トップ：文字だけの構成 */
.hero { position: relative; background: var(--beige); }
.hero-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; min-height: min(80vh, 680px); padding-block: clamp(80px, 12vw, 140px) clamp(64px, 8vw, 100px); position: relative; z-index: 1; }
.hero-since { font-family: var(--en); font-size: 15px; letter-spacing: .24em; color: var(--muted); text-transform: uppercase; display: flex; align-items: center; gap: 14px; }
.hero-since::before { content: ""; width: 40px; height: 1px; background: var(--red); }
.hero-title { font-size: clamp(34px, 5.2vw, 66px); line-height: 1.5; }
.hero-index { list-style: none; border-top: 1px solid var(--ink); animation: rise 1.1s cubic-bezier(.2,.7,.2,1) .45s both; }
.hero-index li { border-bottom: 1px solid var(--line); }
.hero-index a { display: flex; align-items: baseline; gap: 18px; padding: 18px 4px; text-decoration: none; font-size: 15px; font-weight: 500; transition: color .3s, padding .3s; }
.hero-index a:hover { color: var(--red); padding-left: 12px; }
.hero-index span { font-family: var(--en); font-size: 20px; color: var(--gold); min-width: 1.6em; }
.hero-mark { position: absolute; right: -0.04em; top: 50%; translate: 0 -58%; margin: 0; font-family: var(--en); font-weight: 600; font-size: clamp(180px, 30vw, 420px); line-height: 1; letter-spacing: -.02em; color: rgba(51, 51, 51, .045); pointer-events: none; user-select: none; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; min-height: auto; padding-block: 72px 64px; }
  .hero-mark { top: 22%; font-size: 44vw; }
}
