/* ===== 変数（色を変えるときはここだけ） ===== */
:root {
  --navy: #1b2d45;
  --accent: #2c6fad;
  --accent-light: #e8f0f8;
  --text: #1e1e1e;
  --text-sub: #48525e;
  --border: #cfd7e1;
  --bg: #ffffff;
  --bg-off: #edf2f8;
  /* カードごとの色（サービス・アライアンスの1〜3枚目） */
  --c1: #2c6fad; --c1-light: #e6eff8;
  --c2: #1d8573; --c2-light: #e3f3ef;
  --c3: #5a4fb0; --c3-light: #ecebf8;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(27, 45, 69, .09);
  --transition: .25s ease;
  --max-w: 1080px;
  --header-h: 64px;
}

/* ===== ベース ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== ヘッダー ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: "Noto Serif JP", serif; font-weight: 700; font-size: 1.15rem; color: var(--navy); text-decoration: none; }
.global-nav { display: flex; gap: 32px; }
.global-nav a { font-size: .85rem; font-weight: 500; color: var(--text-sub); text-decoration: none; transition: color var(--transition); }
.global-nav a:hover { color: var(--accent); }
.hamburger { display: none; width: 40px; height: 40px; padding: 8px; background: none; border: 0; cursor: pointer; }
.hamburger span { display: block; height: 2px; margin: 6px 0; background: var(--navy); transition: transform var(--transition), opacity var(--transition); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== ボタン ===== */
.btn {
  display: inline-block; padding: .85rem 2rem;
  font: inherit; font-size: .9rem; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ===== ヒーロー ===== */
.hero { padding-top: var(--header-h); background: linear-gradient(135deg, var(--accent-light) 0%, #fff 55%); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 96px; }
.hero-tag { display: inline-block; padding: .2rem 1rem; margin-bottom: 20px; font-size: .78rem; font-weight: 500; color: var(--accent); background: var(--accent-light); border-radius: 14px; word-break: keep-all; }
.hero-name { font-family: "Noto Serif JP", serif; font-size: clamp(2.4rem, 6vw, 3.2rem); letter-spacing: .08em; color: var(--navy); line-height: 1.3; }
.hero-roman { margin-top: 4px; font-size: .78rem; font-weight: 500; letter-spacing: .32em; color: var(--text-sub); }
.hero-catch { margin-top: 28px; font-family: "Noto Serif JP", serif; font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 700; color: var(--navy); line-height: 1.5; }
.hero-catch + .hero-lead { margin-top: 12px; }
.hero-title { margin-top: 12px; font-size: .95rem; font-weight: 700; color: var(--accent); line-height: 1.8; }
.hero-lead { margin-top: 28px; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero-photo { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.hero-photo img, .profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  width: 100%; height: 100%; min-height: 200px;
  display: grid; place-items: center; text-align: center;
  font-size: .8rem; color: var(--text-sub);
  background: repeating-linear-gradient(45deg, #eef1f5, #eef1f5 12px, #e4e8ee 12px, #e4e8ee 24px);
}

/* ===== セクション共通 ===== */
.section { padding: 96px 0; }
.section-off { background: var(--bg-off); }
.section-label { font-size: .72rem; font-weight: 700; letter-spacing: .18em; color: var(--accent); }
.section-title { position: relative; margin-top: 4px; padding-bottom: 20px; font-family: "Noto Serif JP", serif; font-size: 1.92rem; color: var(--navy); }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--accent); }
.section-intro { max-width: 760px; margin-top: 28px; color: var(--text-sub); }
.section-intro p + p { margin-top: 1em; }

/* ===== プロフィール ===== */
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 64px; margin-top: 48px; }
.profile-photo { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.profile-photo img { object-position: 68% center; }
.profile-name { margin-top: 24px; font-family: "Noto Serif JP", serif; font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.profile-name span { margin-left: 4px; font-family: "Noto Sans JP", sans-serif; font-size: .72rem; font-weight: 500; letter-spacing: .12em; color: var(--text-sub); }
.profile-facts { margin-top: 8px; font-size: .9rem; color: var(--text-sub); }
.sns-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sns-links a { display: block; padding: .15rem .8rem; font-size: .78rem; text-decoration: none; border: 1px solid var(--border); border-radius: 999px; transition: background var(--transition); }
.sns-links a:hover { background: var(--accent-light); }
.side-block { margin-top: 32px; }
.side-block h3 { padding-bottom: 8px; font-size: .85rem; color: var(--navy); border-bottom: 1px solid var(--border); }
.side-block dt { margin-top: 12px; font-size: .85rem; font-weight: 700; line-height: 1.6; }
.side-block dd { font-size: .78rem; color: var(--text-sub); line-height: 1.7; }
.skill-list { margin-top: 8px; }
.skill-list li { position: relative; padding: 4px 0 4px 1.1em; font-size: .85rem; font-weight: 700; line-height: 1.6; }
.skill-list li::before { content: ""; position: absolute; left: 0; top: .95em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.profile-main p + p { margin-top: 1.5em; }
.timeline-title { margin: 48px 0 20px; font-size: 1.1rem; color: var(--navy); }
.timeline { border-left: 2px solid var(--border); }
.timeline li { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 10px 0 10px 24px; font-size: .92rem; line-height: 1.7; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 1.15em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline .year { font-weight: 700; color: var(--navy); }
/* 会社アイコン */
.co-icon { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-right: .5em; vertical-align: -.4em; background: var(--accent-light); border: 1px solid #c9d9ec; border-radius: 6px; }
.co-icon svg { width: 62%; height: 62%; fill: var(--accent); }
.ball-icon { background: #fdf0e6; border-color: #f3cfb2; }
.ball-icon svg { width: 72%; height: 72%; fill: none; stroke: #d9661f; }
.co-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 5px; }
/* 略歴のサブ項目（└ で字下げ） */
.timeline .timeline-sub { grid-column: 2 / -1; margin: 2px 0 4px; }
.timeline .timeline-sub li { display: block; padding: 5px 0 5px 1.6em; font-size: .86rem; line-height: 1.6; color: var(--text-sub); border-top: 1px solid #eef1f5; }
.timeline .timeline-sub li::before { content: "└"; left: .2em; top: 5px; width: auto; height: auto; border-radius: 0; background: none; font-size: .8rem; color: #a9b3c0; }

/* ===== サービス ===== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
/* ===== サービス（番号付き2列カード） ===== */
:root { --svc-ink: #24357f; --svc-hover: #c8102e; }
.svc-fee { margin-top: 12px; font-size: .88rem; font-weight: 700; color: var(--svc-ink); }
.svc-grid { counter-reset: svc; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 48px; }
.svc-card {
  counter-increment: svc; position: relative;
  padding: 44px 48px 48px; background: #fff;
  border: 1px solid #dfe5ee; border-radius: 20px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.svc-card::before {
  content: counter(svc, decimal-leading-zero); display: block;
  font-size: 1.05rem; font-weight: 700; letter-spacing: .08em; color: var(--svc-ink);
}
.svc-card::after {
  content: ""; position: absolute; top: 36px; right: 36px; width: 18px; height: 18px;
  background: var(--svc-ink); transition: transform .4s ease;
}
.svc-card:hover { border-color: var(--svc-hover); box-shadow: 0 18px 40px rgba(36, 53, 127, .12); transform: translateY(-4px); }
.svc-card:hover::after { transform: rotate(30deg) scale(1.4); }
.svc-title { margin-top: 20px; font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 700; letter-spacing: .1em; line-height: 1.5; color: var(--text); }
.svc-catch { margin-top: 10px; font-size: 1rem; font-weight: 700; letter-spacing: .04em; line-height: 1.6; color: var(--svc-ink); }
.svc-desc { margin-top: 18px; font-size: .95rem; letter-spacing: .04em; color: var(--text-sub); }
.svc-label { margin-top: 32px; font-size: .82rem; font-weight: 700; letter-spacing: .14em; color: var(--text-sub); }
.svc-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.svc-tags li { padding: .45rem 1.1rem; font-size: .88rem; letter-spacing: .04em; line-height: 1.5; color: var(--text-sub); background: #eef2f8; border-radius: 999px; }
.svc-note { margin-top: 20px; font-size: .78rem; letter-spacing: .03em; color: var(--text-sub); }

.service-grid { counter-reset: card; }
.service-card {
  --ca: var(--c1); --ca-light: var(--c1-light);
  counter-increment: card;
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-top: 5px solid var(--ca); border-radius: 10px;
  box-shadow: 0 2px 10px rgba(27, 45, 69, .06);
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:nth-child(3n+2) { --ca: var(--c2); --ca-light: var(--c2-light); }
.service-card:nth-child(3n) { --ca: var(--c3); --ca-light: var(--c3-light); }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-name {
  display: flex; align-items: center; gap: 12px;
  margin: 0; padding: 20px 28px; font-size: 1.1rem; line-height: 1.4; color: var(--navy);
  background: var(--ca-light);
}
.service-name::before {
  content: counter(card, decimal-leading-zero); flex: none;
  display: grid; place-items: center; width: 36px; height: 36px;
  font-size: .8rem; font-weight: 700; color: #fff; background: var(--ca); border-radius: 50%;
}
.service-card > p:not(.service-price) { padding: 20px 28px 0; font-size: .88rem; color: var(--text-sub); }
.service-card ul { margin: 16px 28px 24px; padding: 14px 16px; font-size: .88rem; background: var(--bg-off); border-radius: 8px; }
.service-card li { position: relative; padding: 3px 0 3px 1.5em; font-weight: 500; line-height: 1.6; }
.service-card li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 5px; border-left: 2px solid var(--ca); border-bottom: 2px solid var(--ca); transform: rotate(-45deg); }
.service-card > p.service-note { margin: -8px 28px 20px; padding: 12px 14px 12px 16px; font-size: .82rem; font-weight: 700; color: var(--ca); background: var(--ca-light); border-left: 3px solid var(--ca); border-radius: 4px; }
.service-card .service-price a { display: block; color: inherit; text-decoration: none; }
.service-card .service-price a:hover { text-decoration: underline; }
.service-card .service-price { margin: auto 28px 28px; padding: 8px 16px; font-size: .92rem; font-weight: 700; text-align: center; color: var(--ca); background: var(--ca-light); border-radius: 999px; }

/* ===== 実績 ===== */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.filter-btn { padding: .35rem 1.2rem; font: inherit; font-size: .85rem; color: var(--text-sub); background: #fff; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; transition: all var(--transition); }
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.works-list { margin-top: 24px; border-top: 1px solid var(--border); }
.work-item { display: grid; grid-template-columns: 84px 1fr; gap: 4px 20px; padding: 20px 4px; border-bottom: 1px solid var(--border); }
.work-item[hidden] { display: none; }
.work-cat { grid-row: span 2; align-self: start; margin-top: 4px; padding: .1rem 0; font-size: .72rem; font-weight: 700; text-align: center; color: var(--accent); background: var(--accent-light); border-radius: 4px; }
.work-title { font-weight: 500; line-height: 1.7; color: var(--text); text-decoration: none; transition: color var(--transition); }
.work-title:hover { color: var(--accent); }
.work-meta { font-size: .8rem; color: var(--text-sub); }


/* ===== フッター ===== */
.site-footer { padding: 40px 0; background: var(--navy); color: rgba(255, 255, 255, .7); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { font-size: .82rem; color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer small { font-size: .75rem; }

.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; text-decoration: none; background: var(--navy); border-radius: 50%; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.to-top.is-visible { opacity: .85; pointer-events: auto; }

/* ===== スクロール時のフェードイン ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-shown { opacity: 1; transform: none; }
.svc-card.reveal, .service-card.reveal { transition: opacity .6s ease, transform .4s ease, border-color .25s ease, box-shadow .25s ease; }
.svc-card.reveal.is-shown:hover, .service-card.reveal.is-shown:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== レスポンシブ ===== */
@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 64px; }
  .hero-photo { max-width: 420px; }
  .profile-grid { grid-template-columns: 1fr; gap: 40px; }
  .profile-photo { max-width: 420px; }
  .service-grid, .svc-grid { grid-template-columns: 1fr; }
  .svc-grid { gap: 20px; }
  .svc-card { padding: 32px 24px 36px; border-radius: 16px; }
  .svc-card::after { top: 28px; right: 24px; width: 14px; height: 14px; }
  .svc-title { letter-spacing: .06em; }

  .hamburger { display: block; }
  .global-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 24px 16px;
    background: #fff; box-shadow: var(--shadow);
    display: none;
  }
  .global-nav.is-open { display: flex; }
  .global-nav a { padding: 14px 0; font-size: .95rem; border-bottom: 1px solid var(--border); }
}
@media (max-width: 520px) {
  .timeline li { grid-template-columns: 1fr; gap: 0; }
  .timeline .timeline-sub { grid-column: 1 / -1; margin-top: 6px; }
  .work-item { grid-template-columns: 1fr; }
  .work-cat { grid-row: auto; justify-self: start; padding: .1rem .8rem; }
}
