/* 有限会社 StarLight — www.starlights.jp
   外部読み込みなし（フォント・スクリプトとも端末内のものだけを使う） */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f5ef;
  --ink: #1b2130;
  --ink-soft: #4b5466;
  --line: #e3dfd3;
  --navy: #14213d;
  --navy-ink: #ffffff;
  --gold: #f2b233;
  --gold-text: #8f5600;
  --link: #1d3f8a;
  --card: #ffffff;
  --icon-bg: #fff4d6;
  --band-bg: #14213d;
  --band-ink: #f3f5fa;
  --band-soft: #c3cbe0;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .06);

  --mincho: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", "BIZ UDPMincho", serif;
  --gothic: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1526;
    --bg-soft: #121c33;
    --ink: #e9edf5;
    --ink-soft: #aeb7c9;
    --line: #26324d;
    --navy: #f2b233;
    --navy-ink: #10182b;
    --gold-text: #f5c542;
    --link: #8fb4ff;
    --card: #131e36;
    --icon-bg: #1d2a47;
    --band-bg: #17233f;
    --band-ink: #f3f5fa;
    --band-soft: #b5bfd6;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 18px;
  line-height: 1.9;
  letter-spacing: .02em;
  word-break: auto-phrase;   /* 日本語を文節で改行（対応ブラウザのみ） */
  overflow-wrap: anywhere;
}

img, svg { max-width: 100%; height: auto; display: block; }

/* 短いページでもフッターを画面の下端に */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--mincho); font-weight: 600; line-height: 1.45; letter-spacing: .04em; margin: 0; }

p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* ---------- ヘッダー ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 14px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-kind { font-size: 13px; color: var(--ink-soft); letter-spacing: .12em; }
.brand-name { font-family: var(--mincho); font-size: 26px; font-weight: 600; letter-spacing: .03em; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 600;
}
.site-nav a:hover { background: var(--bg-soft); }
.site-nav a[aria-current="page"] { color: var(--gold-text); border-bottom: 3px solid var(--gold); border-radius: 0; padding-bottom: 5px; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; z-index: 1; padding-block: 88px 220px; }
.hero-band {
  position: absolute; z-index: 0; pointer-events: none;
  right: max(-40px, (100% - 1180px) / 2 - 40px); bottom: 10px;
  width: min(960px, 92%);
}
.hero-kicker { font-size: 17px; color: var(--gold-text); font-weight: 600; letter-spacing: .14em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); letter-spacing: .05em; }
.hero h1 small { display: block; font-size: .42em; letter-spacing: .2em; color: var(--ink-soft); margin-bottom: 6px; }
.hero-lead { margin-top: 24px; font-size: clamp(18px, 2.2vw, 21px); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 17px;
  text-decoration: none; border: 2px solid var(--navy); line-height: 1.3;
}
.btn-primary { background: var(--navy); color: var(--navy-ink); }
.btn-primary:hover { filter: brightness(1.15); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); }

/* ---------- セクション共通 ---------- */
.section { padding-block: 96px; }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: 44px; }
.section-head .en { display: block; font-family: var(--mincho); font-size: 15px; letter-spacing: .3em; color: var(--gold-text); margin-bottom: 6px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 36px); }
.section-head p { margin-top: 14px; color: var(--ink-soft); max-width: 40em; }

/* ---------- 業務カード ---------- */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 32px 30px 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--icon-bg);
  display: grid; place-items: center; color: var(--gold-text); margin-bottom: 20px;
}
.card-icon svg { width: 36px; height: 36px; }
.card h3 { font-size: 23px; margin-bottom: 12px; }
.card p { color: var(--ink-soft); }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .more::after { content: " →"; }

/* ---------- 実績・特徴 ---------- */
.facts { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.fact { padding: 30px 24px 26px; border-bottom: 1px solid var(--line); }
.fact-num { font-family: var(--mincho); font-size: 40px; font-weight: 600; line-height: 1.2; letter-spacing: .02em; }
.fact-num small { font-size: 20px; margin-left: 4px; }
.fact-num.word { font-size: 26px; padding-top: 10px; }
.fact-label { display: inline-block; margin-top: 10px; font-weight: 700; box-shadow: inset 0 -.45em 0 rgba(242, 178, 51, .35); }
.fact p { margin: 8px 0 0; color: var(--ink-soft); font-size: 17px; }

/* ---------- お知らせ ---------- */
.news { margin: 0; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 9.5em 1fr; gap: 4px 24px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.news-item dt { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.news-item dd { margin: 0; }

/* ---------- お問い合わせ帯 ---------- */
.contact-band { background: var(--band-bg); color: var(--band-ink); }
.contact-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: 64px; }
.contact-band h2 { font-size: clamp(26px, 3.2vw, 32px); }
.contact-band p { margin: 10px 0 0; color: var(--band-soft); }
.contact-tel { font-family: var(--mincho); font-size: clamp(30px, 4vw, 40px); font-weight: 600; color: var(--band-ink); text-decoration: none; letter-spacing: .04em; display: block; line-height: 1.3; }
.contact-tel small { font-family: var(--gothic); font-size: 15px; margin-right: 8px; color: #f5c542; letter-spacing: .1em; }
.contact-band .btn-primary { background: #f2b233; color: #10182b; border-color: #f2b233; }
.contact-side { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

/* ---------- フッター ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding-block: 48px 32px; font-size: 16px; color: var(--ink-soft); }
.site-footer .wrap { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.site-footer .brand-name { color: var(--ink); font-size: 22px; }
.site-footer address { font-style: normal; margin-top: 10px; line-height: 1.8; }
.nowrap { white-space: nowrap; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 6px; }
.site-footer a { color: var(--ink); }
.copyright { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: 14px; }

/* ---------- スマホ ---------- */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .site-header .wrap { padding-block: 10px; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: space-between; gap: 0; }
  .site-nav a { padding: 8px 6px; font-size: 16px; }
  .hero .wrap { padding-block: 52px 170px; }
  .hero-band { width: 135%; right: -22%; bottom: 0; }
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 32px; }
  .card { padding: 26px 22px 22px; }
  .news-item { grid-template-columns: 1fr; }
  .btn { padding: 13px 22px; }
}

/* ---------- 下層ページ共通 ---------- */
.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.page-head .wrap { position: relative; z-index: 1; padding-block: 56px 52px; }
.page-head-band { position: absolute; z-index: 0; pointer-events: none; right: max(-30px, (100% - 1180px) / 2 - 30px); bottom: -6px; width: min(460px, 62%); opacity: .9; }
.page-head .en { display: block; font-family: var(--mincho); font-size: 15px; letter-spacing: .3em; color: var(--gold-text); margin-bottom: 6px; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 42px); }
.page-head p { margin: 14px 0 0; color: var(--ink-soft); max-width: 36em; }
.crumbs { font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }
.crumbs span[aria-hidden] { margin-inline: .5em; }

.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.subnav a { display: inline-block; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.subnav a:hover { border-color: var(--gold); }

/* 業務ブロック */
.svc { display: grid; gap: 28px 56px; grid-template-columns: 1fr; scroll-margin-top: 24px; }
@media (min-width: 900px) { .svc { grid-template-columns: 5fr 4fr; align-items: start; } }
.svc + .svc { margin-top: 88px; padding-top: 88px; border-top: 1px solid var(--line); }
.svc-title { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.svc-title .card-icon { margin: 0; flex: none; }
.svc-title h2 { font-size: clamp(26px, 3.4vw, 32px); }
.svc-num { display: block; font-family: var(--mincho); font-size: 14px; letter-spacing: .25em; color: var(--gold-text); }
.svc-body p { color: var(--ink); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px 26px 22px; box-shadow: var(--shadow); }
.panel h3 { font-size: 19px; margin-bottom: 12px; }
.panel + .panel { margin-top: 18px; }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 1.6em; }
.checks li + li { margin-top: 8px; }
.checks li::before {
  content: ""; position: absolute; left: .1em; top: .55em; width: .8em; height: .8em;
  background: linear-gradient(135deg, #ffd148, #ee7f22);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.note { font-size: 16px; color: var(--ink-soft); margin-top: 14px; }

/* ご依頼の流れ */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.flow li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 18px; }
.flow li::before { content: "STEP " counter(step); display: block; font-family: var(--mincho); font-size: 14px; letter-spacing: .2em; color: var(--gold-text); margin-bottom: 4px; }
.flow strong { display: block; font-size: 19px; margin-bottom: 6px; }
.flow p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* 会社概要の表 */
.info-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 18px 12px; border-bottom: 1px solid var(--line); }
.info-table th { width: 9em; font-weight: 700; white-space: nowrap; color: var(--ink); }
.info-table td ol, .info-table td ul { margin: 0; padding-left: 1.4em; }
.info-table td li + li { margin-top: 4px; }
@media (max-width: 720px) {
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: auto; }
  .info-table th { padding: 16px 4px 2px; border-bottom: 0; color: var(--gold-text); }
  .info-table td { padding: 2px 4px 16px; }
}

.history, .info-table td .history { list-style: none; margin: 0; padding: 0; }
.history li { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; }
.history li + li { margin-top: 6px; }
.history b { font-variant-numeric: tabular-nums; }

/* お問い合わせ */
.contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px 28px 24px; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 20px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.contact-card h2 svg { width: 26px; height: 26px; color: var(--gold-text); flex: none; }
.contact-big { font-family: var(--mincho); font-size: clamp(26px, 3.2vw, 32px); font-weight: 600; letter-spacing: .03em; color: var(--ink); text-decoration: none; display: inline-block; line-height: 1.35; overflow-wrap: anywhere; }
a.contact-big:hover { color: var(--link); }
.contact-card p { margin: 10px 0 0; color: var(--ink-soft); font-size: 16px; }
.contact-card .btn { margin-top: 16px; }

.two-col { display: grid; gap: 28px 56px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }

/* ---------- 社名ロゴ：a・i を金色＋ i の点を星に（2026-10-10） ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ai-gold {
  background: linear-gradient(160deg, #ffd148 0%, #f8a533 55%, #ee7f22 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
@media (prefers-color-scheme: dark) {
  .ai-gold { filter: drop-shadow(0 0 .08em rgba(248, 165, 51, .45)); }
}
.istar { position: relative; display: inline-block; line-height: 1; }
.istar-dot {
  position: absolute; left: 50%; width: .36em; height: .36em; top: .02em; overflow: visible;
  transform: translateX(-50%) rotate(-8deg);
}
.istar-dot polygon { filter: drop-shadow(0 0 .04em rgba(248, 165, 51, .6)); }

/* トップの大見出し：最初は大文字の A・I → 小文字の a・i へ（1回だけ・JS が無い／動きを減らす設定なら最後の形） */
.sw { display: inline-grid; justify-items: center; align-items: baseline; vertical-align: baseline; }
.sw > span { grid-area: 1 / 1; }
.sw .up { opacity: 0; display: none; }
.sw .lo { opacity: 1; }
.sl-anim.pre .sw .up, .sl-anim.go .sw .up { display: block; }
.sl-anim.pre .sw .up { opacity: 1; }
.sl-anim.pre .sw .lo { opacity: 0; }
.sl-anim.pre .istar-dot { transform: translateX(-50%) rotate(-8deg) scale(0); opacity: 0; }
.sl-anim.go .sw { transition: width .9s cubic-bezier(.4, 0, .2, 1); }
.sl-anim.go .sw .up { transition: opacity .7s cubic-bezier(.4, 0, .2, 1); }
.sl-anim.go .sw .lo { transition: opacity .8s cubic-bezier(.4, 0, .2, 1) .15s; }
.sl-anim.go .istar-dot { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) .75s, opacity .3s ease .75s; }

/* 業務内容「AIの活用について」の種明かし */
.ai-hook, .section-head .ai-hook { font-family: var(--mincho); font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; line-height: 1.6; margin: 0 0 14px; color: var(--ink); }
.ai-hook .name { font-size: 1.15em; letter-spacing: .03em; }
