/* ==========================================================================
   SOU Works Original Theme - Stylesheet
   Reproduced from the approved CodePen mockup, split out of the theme's
   style.css (which only carries the required WordPress header comment)
   and extended with additional responsive breakpoints for small screens.
   ========================================================================== */

:root {
  --navy-deep: #0b1d3a; --navy: #15315e; --navy-soft: #21457f; --gold: #b99443; --gold-soft: #dbc58c;
  --ivory: #faf8f2; --paper: #fffdf9; --line: #e6e1d7; --stone: #857f74; --text: #22211e; --muted: #58564f;
  --shadow: 0 18px 40px rgba(11, 29, 58, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Noto Sans JP", sans-serif; background: var(--ivory); color: var(--text); line-height: 1.9; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); background: rgba(250, 248, 242, 0.96); border-bottom: 1px solid rgba(185, 148, 67, 0.15); transition: box-shadow .25s ease; }
header.is-scrolled { box-shadow: 0 8px 24px rgba(11, 29, 58, 0.08); }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.logo { position: relative; padding-left: 18px; font-family: "Noto Serif JP", serif; font-size: 20px; font-weight: 600; color: var(--navy-deep); letter-spacing: 0.08em; line-height: 1.4; display: inline-block; }
.logo::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 70%; background: var(--gold); }
.logo span { display: block; font-family: "Cormorant Garamond", serif; font-size: 11px; color: var(--gold); letter-spacing: 0.32em; text-transform: uppercase; }
nav ul { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
nav a { position: relative; display: block; padding: 10px 18px; font-size: 13px; letter-spacing: 0.16em; color: var(--muted); transition: color .25s ease; }
nav a::after { content: ""; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); width: 0; height: 1px; background: var(--gold); transition: width .25s ease; }
nav a.active, nav a:hover { color: var(--navy-deep); }
nav a.active::after, nav a:hover::after { width: 60%; }
main { min-height: 70vh; }
.page { display: none; }
.page.active { display: block; animation: fadeIn .45s ease; }
@keyframes fadeIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 58%, var(--navy-soft) 100%); color: var(--paper); padding: 130px 40px 120px; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 25%, rgba(219,197,140,.09), transparent 38%), radial-gradient(circle at 82% 70%, rgba(219,197,140,.07), transparent 35%); }
.hero-inner { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; }
.hero-tag { display: inline-block; font-family: "Cormorant Garamond", serif; font-size: 13px; color: var(--gold-soft); letter-spacing: 0.42em; text-transform: uppercase; margin-bottom: 30px; }
.hero-tag::before, .hero-tag::after { content: "—"; margin: 0 12px; color: var(--gold); }
.hero h1 { font-family: "Noto Serif JP", serif; font-size: 40px; font-weight: 500; letter-spacing: 0.1em; line-height: 1.7; }
.hero h1 .accent { color: var(--gold-soft); }
.hero-line { width: 68px; height: 1px; margin: 32px auto; background: var(--gold); }
.hero p { font-size: 15px; line-height: 2.2; letter-spacing: .08em; opacity: .9; max-width: 860px; margin: 0 auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 96px 40px; }
.section-head { text-align: center; margin-bottom: 58px; }
.section-en { display: block; font-family: "Cormorant Garamond", serif; font-size: 13px; color: var(--gold); letter-spacing: .42em; text-transform: uppercase; margin-bottom: 18px; }
.section-en::before, .section-en::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--gold); vertical-align: middle; margin: 0 14px; }
.section-title { font-family: "Noto Serif JP", serif; color: var(--navy-deep); font-size: 32px; font-weight: 600; letter-spacing: .12em; line-height: 1.55; }
.lead { margin: 24px auto 0; max-width: 880px; color: var(--muted); font-size: 15px; line-height: 2.15; letter-spacing: .04em; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--paper); padding: 48px 36px; transition: transform .25s ease, box-shadow .25s ease; position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card::before { content: ""; position: absolute; top: 0; left: 36px; width: 44px; height: 2px; background: var(--gold); }
.card-num { font-family: "Cormorant Garamond", serif; color: var(--gold); letter-spacing: .35em; font-size: 14px; margin-bottom: 18px; }
.card h3 { font-family: "Noto Serif JP", serif; font-size: 20px; color: var(--navy-deep); margin-bottom: 18px; letter-spacing: .08em; line-height: 1.6; }
.card p { font-size: 14px; color: var(--muted); line-height: 2; }
.image-frame { background: linear-gradient(135deg, #f2eee4 0%, #ebe7dd 100%); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.image-frame::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.55); pointer-events: none; z-index: 1; }
.image-frame img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.image-frame.placeholder { min-height: 320px; display: flex; align-items: center; justify-content: center; padding: 30px; color: var(--stone); text-align: center; }
.placeholder-inner { max-width: 360px; }
.placeholder-eyebrow { font-family: "Cormorant Garamond", serif; color: var(--gold); letter-spacing: .25em; font-size: 12px; text-transform: uppercase; margin-bottom: 12px; }
.placeholder-title { font-family: "Noto Serif JP", serif; color: var(--navy-deep); font-size: 18px; margin-bottom: 10px; letter-spacing: .08em; }
.placeholder-text { font-size: 13px; line-height: 2; }
.process-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.process-text h3, .block h3 { font-family: "Noto Serif JP", serif; color: var(--navy-deep); font-size: 24px; font-weight: 600; letter-spacing: .08em; }
.process-temp { display: block; font-family: "Cormorant Garamond", serif; color: var(--gold); letter-spacing: .24em; margin: 10px 0 20px; font-size: 16px; }
.process-intro { color: var(--muted); font-size: 14px; line-height: 2; margin-bottom: 18px; }
.bullet-list { list-style: none; margin-top: 10px; }
.bullet-list li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px dotted var(--line); font-size: 14px; color: var(--muted); line-height: 1.95; }
.bullet-list li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 14px; height: 1px; background: var(--gold); }
.page-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block { background: var(--paper); border: 1px solid var(--line); padding: 56px 48px; margin-bottom: 28px; position: relative; }
.block::before { content: ""; position: absolute; top: 0; left: 48px; width: 42px; height: 2px; background: var(--gold); }
.block h3 { margin-bottom: 12px; padding-top: 10px; }
.block-label { display: block; font-family: "Cormorant Garamond", serif; color: var(--gold); font-size: 12px; letter-spacing: .4em; text-transform: uppercase; margin-bottom: 10px; }
.block-intro { color: var(--muted); font-size: 14px; line-height: 2.05; margin-bottom: 24px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 26px; }
.spec-table th, .spec-table td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; vertical-align: top; }
.spec-table th { width: 28%; background: #f7f3ea; color: var(--navy-deep); font-weight: 700; letter-spacing: .08em; border-left: 2px solid var(--gold); }
.spec-table td { color: var(--muted); line-height: 2; }
.component-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.component-item { background: #fbfaf6; border: 1px solid var(--line); padding: 18px 18px 18px 22px; position: relative; color: var(--navy-deep); font-size: 14px; line-height: 1.9; }
.component-item::before { content: ""; position: absolute; left: 10px; top: 24px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.graph-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.graph-card { background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 10px 24px rgba(11,29,58,.05); }
.graph-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: #fff; }
.graph-caption { padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.graph-caption strong { display: block; color: var(--navy-deep); font-size: 14px; margin-bottom: 6px; letter-spacing: .05em; }
.graph-caption span { color: var(--muted); font-size: 12px; line-height: 1.8; white-space: pre-line; }
.application-grid { display: grid; grid-template-columns: 1fr .95fr; gap: 40px; align-items: start; }
.application-card { padding: 22px 0 18px; border-top: 1px solid var(--gold); margin-bottom: 10px; }
.application-card h4 { font-family: "Noto Serif JP", serif; font-size: 20px; color: var(--navy-deep); margin-bottom: 10px; letter-spacing: .06em; }
.application-card p { font-size: 14px; color: var(--muted); line-height: 2.05; }
.company-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.company-table th, .company-table td { padding: 24px 28px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; line-height: 2; }
.company-table th { width: 28%; background: var(--navy-deep); color: var(--paper); font-weight: 600; letter-spacing: .12em; position: relative; }
.company-table th::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 24px; background: var(--gold); }
.company-table td { background: #fff; color: var(--muted); }
.company-note { margin-top: 26px; color: var(--muted); font-size: 14px; line-height: 2; }
footer { background: var(--navy-deep); color: var(--paper); text-align: center; padding: 66px 40px 30px; margin-top: 56px; position: relative; }
footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); }
.footer-logo { font-family: "Noto Serif JP", serif; font-size: 22px; letter-spacing: .14em; margin-bottom: 8px; }
.footer-en { display: block; font-family: "Cormorant Garamond", serif; color: var(--gold-soft); letter-spacing: .4em; font-size: 12px; text-transform: uppercase; margin-bottom: 24px; }
footer p { font-size: 13px; opacity: .86; letter-spacing: .06em; line-height: 2; }
.footer-line { width: 42px; height: 1px; background: var(--gold); margin: 26px auto; }
.copy { font-family: "Cormorant Garamond", serif; font-size: 11px; letter-spacing: .3em; opacity: .55; }

/* ==========================================================================
   Responsive: tablet (unchanged from the original CodePen mockup)
   ========================================================================== */
@media (max-width: 900px) {
  .cards-3, .process-grid, .two-col, .graph-grid, .application-grid, .component-grid { grid-template-columns: 1fr; }
  .container { padding: 72px 24px; }
  .hero { padding: 88px 24px 80px; }
  .hero h1 { font-size: 25px; line-height: 1.8; }
  .header-inner { padding: 16px 20px; }
  .block { padding: 38px 22px; }
  .block::before { left: 22px; }
  .card { padding: 38px 24px; }
  .company-table th, .company-table td, .spec-table th, .spec-table td { display: block; width: 100%; padding: 14px 16px; }
  .company-table th { border-bottom: none; }
  .section-title { font-size: 24px; }
}

/* ==========================================================================
   Responsive additions (not covered by the original CodePen mockup):
   the source only had a single 900px breakpoint, which left the header,
   hero and tables oversized on small phones. These extra breakpoints
   tighten spacing/type scale down to narrow viewports.
   ========================================================================== */
@media (max-width: 600px) {
  .header-inner { justify-content: center; text-align: center; padding: 14px 16px; }
  nav ul { justify-content: center; width: 100%; gap: 2px; }
  nav a { padding: 8px 12px; font-size: 12px; }
  .logo { font-size: 17px; padding-left: 14px; }
  .logo span { font-size: 10px; letter-spacing: 0.26em; }
  .hero { padding: 70px 20px 64px; }
  .hero-tag { font-size: 11px; letter-spacing: 0.3em; margin-bottom: 22px; }
  .hero-tag::before, .hero-tag::after { margin: 0 8px; }
  .hero h1 { font-size: 21px; line-height: 1.75; }
  .hero-line { margin: 26px auto; }
  .hero p { font-size: 13px; line-height: 2; }
  .container { padding: 56px 18px; }
  .section-en { font-size: 11px; letter-spacing: .3em; }
  .section-en::before, .section-en::after { width: 18px; margin: 0 8px; }
  .section-title { font-size: 21px; }
  .lead { font-size: 13px; line-height: 2; }
  .block { padding: 30px 18px; }
  .block::before { left: 18px; }
  .process-text h3, .block h3 { font-size: 19px; }
  .card { padding: 30px 20px; }
  .card h3 { font-size: 18px; }
  .component-grid { gap: 10px; }
  .graph-grid { gap: 18px; }
  .application-card h4 { font-size: 18px; }
  .company-table th, .company-table td, .spec-table th, .spec-table td { padding: 12px 14px; font-size: 13px; }
  footer { padding: 48px 20px 24px; margin-top: 40px; }
  .footer-logo { font-size: 19px; }
}
