/* ==========================================================================
   LYNX. HP改修 共通スタイルシート
   カラー・タイポグラフィはDesignアートボード（A案：信頼深化型）に準拠
   ========================================================================== */

:root {
  --navy: #12172B;
  --navy-2: #171A24;
  --cream: #F7F5EF;
  --tan: #F0EBE0;
  --gold: #B08D57;
  --gold-dark: #8B6F13;
  --ink: #171A24;
  --text-muted: #5B5E6B;
  --text-faint: #9497A6;
  --border: #E4E0D6;
  --white: #FFFFFF;

  --font-serif: 'Shippori Mincho', serif;
  --font-sans: 'Noto Sans JP', sans-serif;

  --container-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* メールアドレス：クリックでメールソフトが開くリンク */
a[href^="mailto:"] {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a[href^="mailto:"]:hover { color: var(--gold); }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-serif); font-weight: 600; }

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow-line {
  width: 56px;
  height: 1px;
  background: var(--gold);
}

.section {
  padding: 88px 0;
}

.section-tight { padding: 64px 0; }

.section-cream { background: var(--cream); }
.section-tan { background: var(--tan); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-white { background: var(--white); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head.align-left {
  align-items: flex-start;
  text-align: left;
  max-width: 940px;
  margin: 0 0 40px;
}

.section-head h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.section-head p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-muted);
}

.section-navy .section-head p { color: #C9CBD6; }

.section-head.section-head-wide { max-width: 900px; }
.section-head .nw { display: inline-block; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 38px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn:hover { opacity: 0.88; }
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-small {
  padding: 11px 22px;
  font-size: 13px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 239, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 26px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.nav-links a {
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a.is-current {
  color: var(--gold);
  font-weight: 700;
  border-bottom-color: var(--gold);
}

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 24px 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}

.hero h1 {
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.55;
  max-width: 880px;
}

.hero p {
  font-size: 16px;
  line-height: 1.9;
  color: #C9CBD6;
  max-width: 620px;
}

.hero p.hero-lead { max-width: 720px; }
.hero .nw { display: inline-block; }  /* スマホで文節の途中で改行されないように */

.page-hero {
  padding: 72px 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.page-hero h1 { font-size: clamp(26px, 3.6vw, 36px); }

.page-hero p {
  font-size: 15px;
  line-height: 1.9;
  color: #C9CBD6;
  max-width: 680px;
}

.page-title-band {
  padding: 40px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-title-band h1 { font-size: clamp(26px, 3.2vw, 32px); }

/* ---------- 課題提起（吹き出し＋イラスト） ---------- */

.issue-scene {
  position: relative;
  max-width: 880px;
  height: 500px;
  margin: 0 auto;
}

.issue-illust {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 340px;
  height: auto;
  transform: translateX(-50%);
  mix-blend-mode: multiply;  /* イラストの白背景をクリーム色になじませる */
}

.issue-bubble {
  position: absolute;
  z-index: 1;
  padding: 14px 22px;
  background: var(--white);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  filter: drop-shadow(0 3px 8px rgba(18, 23, 43, 0.08));
}

/* 吹き出しのしっぽ（下向き） */
.issue-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 11px solid var(--white);
}

.issue-bubble.b1 { left: 0; top: 48px; }
.issue-bubble.b2 { left: 50%; top: 0; transform: translateX(-50%); }
.issue-bubble.b3 { right: 0; top: 48px; }
.issue-bubble.b4 { left: 5%; top: 230px; }
.issue-bubble.b5 { right: 8%; top: 230px; }

.issue-bubble.b1::after,
.issue-bubble.b4::after { right: 32px; }
.issue-bubble.b3::after,
.issue-bubble.b5::after { left: 32px; }
.issue-bubble.b2::after { left: 50%; transform: translateX(-50%); }

/* 事例集の見出し＋案内するイラスト（ビフォー→アフター） */
.case-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.case-head .section-head { margin-bottom: 0; }

.case-head-illust {
  flex-shrink: 0;
  width: 220px;
  height: auto;
  mix-blend-mode: multiply;
}

.issue-conclusion {
  margin-top: 36px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

/* ---------- 13業種カードグリッド ---------- */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.industry-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s ease;
}

.industry-tile {
  aspect-ratio: 297 / 210;
  width: 100%;
  border-top: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 12px;
  gap: 6px;
  outline: 3px solid transparent;
  outline-offset: 3px;
  box-shadow: 0 2px 6px rgba(23,26,36,0.10);
  transition: outline-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

/* ホバー・キーボードフォーカス時：浮き上がり＋影＋明るさで「押せる」ことを示す */
.industry-card:hover .industry-tile,
.industry-card:focus-visible .industry-tile {
  transform: translateY(-5px);
  box-shadow: 0 14px 26px rgba(23,26,36,0.22);
  filter: brightness(1.08);
  outline-color: rgba(176,141,87,0.55);
}

.industry-card:active .industry-tile { transform: translateY(-2px); }

/* 選択中：金色の太枠 */
.industry-card[aria-expanded="true"] .industry-tile {
  outline-color: var(--gold);
  box-shadow: 0 14px 26px rgba(23,26,36,0.22);
}

/* いずれかの業種を開いている間は、他のカードを少し薄くして選択中を際立たせる */
.industry-grid.has-open .industry-card { opacity: 0.55; }
.industry-grid.has-open .industry-card:hover,
.industry-grid.has-open .industry-card[aria-expanded="true"] { opacity: 1; }

.industry-name {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.35;
  color: var(--cream);
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}

.industry-count {
  font-size: 11px;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

/* 「事例を見る」を小さなボタン風に */
.industry-toggle-label {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--white);
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.industry-toggle-label::after {
  content: "▼";
  font-size: 9px;
}

.industry-card:hover .industry-toggle-label,
.industry-card:focus-visible .industry-toggle-label {
  background: var(--gold);
  color: var(--white);
}

.industry-card[aria-expanded="true"] .industry-toggle-label {
  background: var(--gold);
  color: var(--white);
}

.industry-card[aria-expanded="true"] .industry-toggle-label::after { content: none; }

/* ---------- 展開パネル ---------- */

.case-panel {
  margin-top: 40px;
  background: var(--white);
  border-left: 4px solid var(--gold);
  padding: 40px 40px;
  display: none;
  flex-direction: column;
  gap: 26px;
  box-shadow: 0 20px 50px rgba(23,26,36,0.08);
}

.case-panel.is-open { display: flex; }

.case-panel-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.case-panel-head h3 {
  font-size: 24px;
}

.case-panel-count {
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.case-panel-lead {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-muted);
  margin-top: -8px;
}

.case-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 40px;
}

.case-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.case-list .num {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

.case-list .label {
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- 事例チラ見せ（ビフォーアフター） ---------- */

.peek-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  /* PCでも文字が読める大きさにするため2×2 */
  gap: 32px;
}

.peek-card {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 10px 22px rgba(23,26,36,0.06);
  overflow: hidden;
}

.peek-card img {
  width: 100%;
  aspect-ratio: 1200 / 794;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--border);
}

.peek-tag {
  display: inline-block;
  color: var(--cream);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 10px;
}

.peek-body { padding: 16px 18px 18px; }

.peek-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 8px;
}

.peek-footnote {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}

/* ---------- 最終CTA ---------- */

.final-cta {
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.final-cta h2 { font-size: clamp(22px, 3vw, 30px); }

.final-cta p {
  font-size: 15px;
  line-height: 1.9;
  color: #C9CBD6;
  max-width: 560px;
}

.final-cta .fine-print {
  font-size: 12px;
  color: #8A8D9B;
}

/* ---------- フッター ---------- */

.site-footer {
  background: var(--navy-2);
  color: #C9CBD6;
  padding: 56px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  display: block;
  height: 22px;
  width: auto;
}

.footer-nav {
  display: flex;
  gap: 24px;
  font-size: 12px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-faint);
  text-align: right;
}

.footer-legal {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 4px;
}

.footer-legal a { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid #2E3140;
  padding-top: 20px;
  font-size: 11px;
  color: #6B6E7C;
}

/* ---------- サービスページ：STEPカード ---------- */

.step-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.step-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--white);
  border-left: 3px solid var(--gold);
  padding: 32px 36px;
  box-shadow: 0 16px 32px rgba(23,26,36,0.10), 0 4px 10px rgba(23,26,36,0.05);
}

.step-card.is-current {
  background: linear-gradient(180deg, #E9E1CE 0%, #F5F1E6 45%);
  border-left-color: var(--gold-dark);
  box-shadow: inset 0 5px 14px rgba(18,23,43,0.20), inset 0 -1px 0 rgba(255,255,255,0.5);
  position: relative;
}

.step-card.is-current .step-num,
.step-card.is-current .step-note { color: var(--gold-dark); }

.current-badge {
  position: absolute;
  top: 16px;
  right: 20px;
  background: var(--gold-dark);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 999px;
}

.step-num {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  width: 90px;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-title { font-size: 18px; font-weight: 700; }

.step-text { font-size: 14px; line-height: 1.9; color: var(--text-muted); }

.step-note { font-size: 12px; color: var(--gold); font-weight: 700; }

.step-fineprint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.8;
}

/* ---------- 会社概要ページ ---------- */

.info-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border-left: 3px solid var(--gold);
  padding: 8px 40px;
}

.info-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child { border-bottom: none; }

.info-label {
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.info-value { font-size: 14px; line-height: 1.8; }

.profile-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 40px 40px;
}

.profile-photo {
  float: left;
  width: 200px;
  height: 240px;
  object-fit: cover;
  object-position: top center;
  margin: 4px 32px 20px 0;
}

.profile-card p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 2.0;
  color: var(--text-muted);
}

.profile-card p.emphasis {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.9;
  color: var(--ink);
}

.profile-clear { clear: both; }

.profile-signature {
  font-size: 13px;
  color: var(--ink);
  font-weight: 700;
  margin-top: 8px;
}

.contact-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.contact-block p { max-width: 560px; font-size: 14px; line-height: 1.9; color: var(--text-muted); }
.contact-block .fine-print { font-size: 12px; color: var(--text-faint); }

/* ---------- 法定表示ページ（プライバシーポリシー／特商法） ---------- */

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 19px;
  margin-top: 44px;
  margin-bottom: 14px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content li {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-muted);
}

.legal-content ul { margin: 8px 0; }
.legal-content li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.legal-content li::before { content: "・"; position: absolute; left: 0; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.legal-table tr { border-bottom: 1px solid var(--border); }
.legal-table tr:last-child { border-bottom: none; }

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 16px 0;
  font-size: 14px;
  line-height: 1.9;
  vertical-align: top;
}

.legal-table th {
  width: 160px;
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.legal-table td { color: var(--ink); }

.legal-updated {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 32px;
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */

@media (max-width: 1024px) {
  .industry-grid { grid-template-columns: repeat(4, 1fr); }
  .case-list { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .site-header.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 24px;
    border-bottom: 1px solid var(--border);
  }
  .header-cta.desktop-only { display: none; }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .step-card { flex-direction: column; gap: 14px; }
  .step-num { width: auto; }
  .footer-top { flex-direction: column; }
  .footer-info { text-align: left; }
  .footer-legal { justify-content: flex-start; }
  .profile-photo { float: none; width: 160px; height: 192px; margin: 0 0 20px; }
  /* 課題提起：吹き出しを左右交互に積み、下にイラスト */
  .issue-scene { height: auto; max-width: 480px; }
  .issue-bubbles { display: flex; flex-direction: column; gap: 18px; }
  .issue-bubble,
  .issue-bubble.b1, .issue-bubble.b2, .issue-bubble.b3,
  .issue-bubble.b4, .issue-bubble.b5 {
    position: relative;
    inset: auto;
    transform: none;
    align-self: flex-start;
  }
  .issue-bubble:nth-child(even) { align-self: flex-end; }
  .issue-bubble:nth-child(odd)::after { left: auto; right: 32px; transform: none; }
  .issue-bubble:nth-child(even)::after { left: 32px; right: auto; transform: none; }
  .issue-illust {
    position: static;
    transform: none;
    width: min(300px, 80%);
    margin: 16px auto 0;
  }
  .case-head-illust { width: 170px; }
}

@media (max-width: 600px) {
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .peek-grid { grid-template-columns: 1fr; }
  .case-panel { padding: 28px 22px; }
  .info-row { grid-template-columns: 1fr; gap: 4px; }
  .step-card, .info-card, .profile-card { padding: 24px 22px; }
  .case-head { flex-direction: column; align-items: stretch; gap: 0; margin-bottom: 16px; }
  .case-head-illust { align-self: flex-end; width: 160px; margin-top: -8px; }
}
