/* =====================================================================
   らいとコミュニケーション株式会社 自社サイト デザインシステム v2
   方針: 「きたいのエディトリアル品質 × オンラアの工学的堅牢さ」
   ブランド: インク#231F20 / アクセント ティール#039490 / 淡黄補助
   フォント: Zen Maru Gothic(見出し) / Zen Kaku Gothic New(本文) ※Google Fonts
   モチーフ: 光(スポットライト) と いと(つなぐ糸)
   ===================================================================== */

/* ─── Design tokens ──────────────────────────────────────────────── */
:root {
  --ink:        #231f20;
  --ink-soft:   #4a4446;
  --ink-mute:   #8a8385;
  --paper:      #ffffff;
  --paper-2:    #fcfbf9;
  --paper-3:    #f4f1ea;

  --teal:       #039490;
  --teal-dark:  #026e6b;
  --teal-soft:  #e6f4f3;
  --gold:       #e9b500;
  --gold-soft:  #fff3c1;

  --line:       rgba(35, 31, 32, 0.12);
  --line-soft:  rgba(35, 31, 32, 0.07);
  --shadow-sm:  0 2px 10px rgba(35, 31, 32, 0.05);
  --shadow-md:  0 10px 30px rgba(35, 31, 32, 0.08);
  --shadow-lg:  0 24px 60px rgba(35, 31, 32, 0.12);

  --maxw:       1180px;
  --maxw-text:  720px;
  --gutter:     clamp(1.25rem, 5vw, 3rem);
  --section-y:  clamp(4.5rem, 9vw, 8rem);
  --radius:     14px;
  --radius-lg:  22px;

  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --font-body:    "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

/* ─── Reset & base ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.85;
  color: var(--ink); background: var(--paper);
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--teal); }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ─── Typography ─────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.32; letter-spacing: .01em; }
.eyebrow {
  font-family: var(--font-body); font-size: .74rem; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase; color: var(--teal);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--teal); display: inline-block; }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.7rem); margin: .6rem 0 1rem; }
.lead { font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--ink-soft); max-width: var(--maxw-text); line-height: 2; }

/* ─── Layout helpers ─────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { padding-block: var(--section-y); }
.surface-2 { background: var(--paper-2); }
.surface-3 { background: var(--paper-3); }

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem;
  padding: .92em 2em; border-radius: 999px; min-height: 48px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 22px rgba(3,148,144,.28); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(3,148,144,.34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); transform: translateY(-2px); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ─── Header / nav ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header nav, header nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: .85rem var(--gutter);
}
.logo, header .logo { display: inline-flex; align-items: center; gap: .55rem; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--ink); color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1;
}
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; color: var(--ink); letter-spacing: .02em; line-height: 1.1; }
.logo-word small { display: block; font-size: .56rem; letter-spacing: .26em; color: var(--ink-mute); font-weight: 500; }
.logo img { height: 38px; width: auto; }

.nav-links { list-style: none; display: flex; align-items: center; gap: clamp(.8rem, 2.4vw, 2.1rem); }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .95rem; letter-spacing: .04em; }
.nav-links a:hover { color: var(--teal-dark); }
.nav-links .btn { padding: .55em 1.3em; min-height: 0; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ─── Hero（多層・光モチーフ） ───────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: clamp(4.5rem, 11vw, 9rem); background: var(--paper); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 70% -5%, rgba(3,148,144,.13), transparent 60%),
    radial-gradient(40% 40% at 12% 8%, rgba(233,181,0,.10), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 78px 78px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 75%);
          mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.3rem); line-height: 1.28; letter-spacing: .015em; max-width: 16em; margin-top: 1rem; }
.hero h1 .hl { color: var(--teal); }
.hero .hero-sub { margin: 1.6rem 0 2.2rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-meta { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1.4rem 2.2rem; color: var(--ink-mute); font-size: .86rem; letter-spacing: .04em; }
.hero-meta span { display: inline-flex; align-items: center; gap: .5em; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* ─── Page header（下層ページ共通） ─────────────────────────────── */
.page-header { position: relative; padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem,4vw,3rem); background: var(--paper-2); border-bottom: 1px solid var(--line-soft); }
.page-header h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.page-header > h1, .page-header > p { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.page-header > p { color: var(--ink-soft); margin-top: .7rem; }

/* ─── Service summary cards (index) ─────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; margin-top: 2.4rem; }
.feature-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.7rem 1.7rem; transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature-card::before { content: ""; position: absolute; left: 1.7rem; right: 1.7rem; top: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: 0 0 3px 3px; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card .num { font-family: var(--font-display); font-size: 2.6rem; color: var(--teal-soft); font-weight: 700; line-height: 1; }
.feature-card h3 { font-size: 1.28rem; margin: .3rem 0 .6rem; }
.feature-card p { color: var(--ink-soft); font-size: .96rem; line-height: 1.9; }
.feature-card .more { margin-top: 1rem; display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: .9rem; }

/* ─── Generic list ───────────────────────────────────────────────── */
.tracklist { list-style: none; max-width: var(--maxw-text); margin-top: 1.6rem; }
.tracklist li { padding: .9rem 0 .9rem 1.6rem; border-bottom: 1px solid var(--line-soft); position: relative; }
.tracklist li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--teal); }

/* ─── Values strip ──────────────────────────────────────────────── */
.value-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.2rem; margin-top: 2rem; }
.value-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.value-card .k { font-family: var(--font-display); font-size: 1.5rem; color: var(--teal); }
.value-card .k em { font-style: normal; color: var(--gold); }
.value-card p { color: var(--ink-soft); font-size: .92rem; margin-top: .4rem; }

/* ═══ 下層ページの既存コンポーネント（新トークンで再スタイル） ═══ */
.service-detail { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); padding-block: clamp(2.5rem,5vw,4rem); border-bottom: 1px solid var(--line-soft); }
.service-detail h2 { font-size: clamp(1.5rem,3vw,2.1rem); display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.service-detail .badge { font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--teal-dark); background: var(--teal-soft); padding: .3em .8em; border-radius: 999px; }
.service-lead { color: var(--ink-soft); font-size: 1.05rem; line-height: 2; max-width: var(--maxw-text); margin-top: .6rem; }
.service-detail h3 { font-size: 1.05rem; color: var(--teal-dark); margin: 1.8rem 0 .6rem; letter-spacing: .04em; }
.service-detail ul, .service-detail ol { padding-left: 1.3rem; color: var(--ink-soft); }
.service-detail li { margin: .4rem 0; line-height: 1.8; }
.service-detail ol { counter-reset: step; list-style: none; padding-left: 0; }
.service-detail ol li { counter-increment: step; padding-left: 2.4rem; position: relative; }
.service-detail ol li::before { content: counter(step); position: absolute; left: 0; top: .1rem; width: 1.7rem; height: 1.7rem; background: var(--teal); color: #fff; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: .85rem; font-weight: 700; }
.service-note { margin-top: 1.4rem; font-size: .9rem; color: var(--ink-mute); }

.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.3rem; max-width: var(--maxw); margin: 2.2rem auto 0; padding-inline: var(--gutter); }
.partner-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; transition: transform .25s, box-shadow .25s; }
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.partner-card h2 { font-size: 1.22rem; }
.partner-card .affiliation { color: var(--ink-mute); font-size: .85rem; margin-top: .15rem; }
.partner-catch { color: var(--teal-dark); font-weight: 700; margin: .7rem 0 .9rem; line-height: 1.7; font-size: .98rem; }
.partner-card h3 { font-size: .76rem; letter-spacing: .12em; color: var(--ink-mute); margin: 1rem 0 .4rem; }
.partner-card ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.partner-card ul li { font-size: .78rem; background: var(--paper-3); color: var(--ink-soft); padding: .25em .7em; border-radius: 999px; }
.partner-description { color: var(--ink-soft); font-size: .92rem; line-height: 1.85; margin-top: .9rem; }
.partner-collaboration { max-width: var(--maxw-text); margin: 3rem auto 0; padding-inline: var(--gutter); }
.partner-collaboration h2 { font-size: 1.4rem; margin-bottom: .6rem; }
.partner-collaboration p { color: var(--ink-soft); margin-top: .5rem; }

.ceo-message { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 2rem; max-width: var(--maxw); margin: 0 auto; padding: var(--section-y) var(--gutter); align-items: start; }
.ceo-photo { background: var(--paper-3); border-radius: var(--radius-lg); aspect-ratio: 3/4; display: grid; place-items: center; color: var(--ink-mute); font-size: .8rem; }
.ceo-photo img { border-radius: var(--radius-lg); width: 100%; height: 100%; object-fit: cover; }
.ceo-text h2 { font-size: clamp(1.4rem,3vw,2rem); }
.ceo-text p { color: var(--ink-soft); margin-top: 1rem; line-height: 2; }
.ceo-name { font-family: var(--font-display); color: var(--ink); font-weight: 700; margin-top: 1.4rem !important; }
.company-info, .history, .mission { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem,5vw,4rem) var(--gutter); border-top: 1px solid var(--line-soft); }
.company-info h2, .history h2, .mission h2 { font-size: clamp(1.4rem,3vw,1.9rem); margin-bottom: 1.2rem; }
.company-info table { width: 100%; border-collapse: collapse; max-width: 760px; }
.company-info th, .company-info td { text-align: left; padding: .95rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.company-info th { width: 11rem; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.company-info td { color: var(--ink-soft); }
.history dl { max-width: 760px; }
.history dt { font-family: var(--font-display); font-weight: 700; color: var(--teal-dark); margin-top: 1rem; }
.history dd { color: var(--ink-soft); padding-bottom: 1rem; border-bottom: 1px solid var(--line-soft); }
.mission-statement { font-family: var(--font-display); font-size: clamp(1.5rem,3.4vw,2.3rem); color: var(--ink); line-height: 1.5; border-left: 3px solid var(--teal); padding-left: 1.2rem; }
.mission p { color: var(--ink-soft); margin-top: 1.2rem; line-height: 2; max-width: var(--maxw-text); }

/* ─── Contact form ───────────────────────────────────────────────── */
.contact-info { max-width: 680px; margin: 0 auto; padding: clamp(2rem,5vw,3.5rem) var(--gutter); }
.contact-info > p { color: var(--ink-soft); line-height: 2; }
.contact-form { margin: 2rem 0; }
.contact-form .form-row { margin-bottom: 1.25rem; display: flex; flex-direction: column; }
.contact-form label { font-family: var(--font-display); font-weight: 700; margin-bottom: .45rem; font-size: .95rem; }
.contact-form .req { font-size: .68rem; font-weight: 700; color: #fff; background: var(--teal); border-radius: 4px; padding: .1rem .5rem; margin-left: .5rem; vertical-align: middle; letter-spacing: .08em; }
.contact-form input, .contact-form select, .contact-form textarea { font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: .8rem .9rem; width: 100%; transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(3,148,144,.14); }
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form .form-actions { margin-top: 1.6rem; }
.contact-form button[type="submit"] { font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: #fff; background: var(--teal); border: none; border-radius: 999px; padding: .9rem 2.6rem; min-height: 48px; cursor: pointer; transition: background .2s, transform .2s; }
.contact-form button[type="submit"]:hover { background: var(--teal-dark); transform: translateY(-2px); }
.form-status { margin-top: 1rem; font-weight: 700; min-height: 1.5em; }
.form-status.sending { color: var(--ink-mute); }
.form-status.success { color: var(--teal-dark); }
.form-status.error   { color: #c0392b; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ─── Footer ─────────────────────────────────────────────────────── */
.site-footer, footer { background: var(--ink); color: rgba(255,255,255,.72); padding: clamp(2.5rem,5vw,4rem) var(--gutter) 2rem; }
.site-footer .wrap, footer .footer-info { max-width: var(--maxw); margin: 0 auto; }
.footer-info p { margin: .2rem 0; }
.footer-info p:first-child { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.05rem; margin-bottom: .4rem; }
footer .footer-info a, .site-footer a { color: var(--teal-soft); }
footer .footer-info a:hover, .site-footer a:hover { color: #fff; }
.copyright { max-width: var(--maxw); margin: 1.6rem auto 0; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .8rem; color: rgba(255,255,255,.5); }

/* ─── Scroll reveal ──────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); flex-direction: column; align-items: flex-start; gap: 1.4rem; background: var(--paper); padding: 5rem 1.8rem; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .3s; }
  .nav-links.open { transform: none; }
  .nav-toggle { display: block; z-index: 110; }
  .ceo-message { grid-template-columns: 1fr; }
  .company-info th { width: 8rem; }
}

/* ─── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── ロゴ展開（佐藤直樹デザイン） ──────────────────────────────── */
.logo img { height: 42px; width: auto; }
.footer-logo { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .85; margin-bottom: .7rem; }
.hero-deco {
  position: absolute; right: -3%; top: 50%; transform: translateY(-50%);
  width: min(44vw, 540px); opacity: .06; z-index: 0; pointer-events: none; user-select: none;
}
@media (max-width: 760px) {
  .hero-deco { right: -22%; opacity: .045; width: 86vw; }
  .logo img { height: 36px; }
}
