/* ══════════════════════════════════════
   PwS LP — style.css
   ══════════════════════════════════════ */

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

:root {
  --navy: #1a2744;
  --orange: #e07820;
  --white: #ffffff;
  --gray-bg: #f6f7f9;
  --gray-line: #e2e4e9;
  --text-muted: #6b7280;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
  font-weight: 300;
}

/* ─── HEADER ─── */
header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-line);
}

.logo {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  text-decoration: none;
  line-height: 1;
}
.logo-symbol   { width: 38px; height: auto; }
.logo-wordmark { width: 52px; height: auto; margin-bottom: 2px; }

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity .2s;
}
nav a:hover { opacity: .55; }
nav a.muted  { color: #aab0bd; pointer-events: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang {
  font-size: 13px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  user-select: none;
}
.lang svg { width: 10px; }

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1.5px solid var(--orange);
  color: var(--orange);
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn-header:hover { background: var(--orange); color: white; }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 72px 8vw 100px;
  overflow: hidden;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.hero-text h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--navy);
  letter-spacing: 0.03em;
  margin-bottom: 32px;
}

.hero-sub {
  font-size: 15px;
  line-height: 2.1;
  color: var(--navy);
  margin-bottom: 48px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 400;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 4px;
  transition: opacity .2s;
}
.hero-link:hover    { opacity: .6; }
.hero-link .arr     { color: var(--orange); font-style: normal; }

.hero-graphic {
  position: absolute;
  right: -2vw;
  top: 50%;
  transform: translateY(-48%);
  width: 54%;
  max-width: 700px;
  z-index: 1;
  pointer-events: none;
}

/* ─── NEWS BAR ─── */
.news-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 18px 8vw;
  border-top: 1px solid var(--gray-line);
  z-index: 2;
  gap: 20px;
}
.news-tag {
  font-size: 10px;
  letter-spacing: .18em;
  font-weight: 500;
  color: var(--navy);
  padding-right: 20px;
  border-right: 1px solid var(--gray-line);
  white-space: nowrap;
}
.news-date {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}
.news-body {
  font-size: 14px;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-body:hover { opacity: .65; }
.news-arrow { color: var(--orange); font-size: 16px; }

/* ─── SECTION BASE ─── */
section { padding: 120px 8vw; }

.inner { max-width: 1100px; margin: 0 auto; }

.sec-label {
  font-size: 10px;
  letter-spacing: .22em;
  font-weight: 500;
  color: var(--orange);
  margin-bottom: 14px;
}

.sec-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.5;
}

/* ─── PROBLEM ─── */
.problem { background: var(--white); }

.problem-wrap { max-width: 680px; }

.problem-wrap p {
  font-size: 16px;
  line-height: 2.3;
  color: var(--navy);
  margin-bottom: 28px;
}

.problem-closing {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--gray-line);
}

.problem-closing h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.8;
  color: var(--navy);
}

/* ─── PHILOSOPHY ─── */
.philosophy { background: var(--white); padding-top: 0; }

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
}

.philosophy-text h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--navy);
  margin-bottom: 28px;
}

.phil-rule {
  width: 36px;
  height: 2px;
  background: var(--orange);
  margin-bottom: 40px;
}

.philosophy-text p {
  font-size: 15px;
  line-height: 2.3;
  color: var(--navy);
  margin-bottom: 20px;
}

.philosophy-text .highlight {
  font-family: 'Noto Serif JP', serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--navy);
  margin: 28px 0;
}

/* ─── SERVICES ─── */
.services { background: var(--gray-bg); }

.services-header { margin-bottom: 56px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 48px 36px 44px;
  border-top: 2px solid var(--navy);
}

.card-num {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--orange);
  font-weight: 500;
  margin-bottom: 18px;
}

.service-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 21px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 18px;
}

.service-card p {
  font-size: 14px;
  line-height: 2.1;
  color: var(--text-muted);
}

.services-cta {
  text-align: center;
  margin-top: 56px;
}

/* ─── COMPANY ─── */
.company { background: var(--white); }

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
}
.company-table tr { border-bottom: 1px solid var(--gray-line); }
.company-table td {
  padding: 16px 0;
  font-size: 14px;
  line-height: 1.9;
  vertical-align: top;
}
.company-table td:first-child {
  color: var(--text-muted);
  font-size: 13px;
  width: 90px;
  white-space: nowrap;
}

.company-story { padding-top: 64px; }
.company-story p {
  font-size: 15px;
  line-height: 2.4;
  color: var(--navy);
  margin-bottom: 12px;
}

/* ─── CTA ─── */
.cta-section {
  background: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 160px 8vw;
}

.cta-graphic-top {
  position: absolute;
  right: -50px;
  top: -50px;
  opacity: .18;
  pointer-events: none;
}

.cta-section h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(26px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--navy);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.cta-sub {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 5px;
  transition: opacity .2s;
  position: relative;
  z-index: 1;
}
.btn-cta:hover   { opacity: .6; }
.btn-cta .arr    { color: var(--orange); }



/* ─── CONTACT PAGE ─── */
.contact-page { background: var(--white); }
.contact-hero {
  position: relative;
  padding: 144px 8vw 120px;
  overflow: hidden;
}
.contact-graphic {
  position: absolute;
  right: -90px;
  top: 76px;
  width: min(420px, 58vw);
  opacity: .32;
  pointer-events: none;
}
.contact-heading { max-width: 720px; margin-bottom: 48px; position: relative; z-index: 1; }
.contact-heading h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 22px;
}
.contact-heading p { font-size: 15px; line-height: 2.1; color: var(--text-muted); }
.contact-form, .thanks-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-top: 2px solid var(--navy);
  box-shadow: 0 16px 42px rgba(26, 39, 68, 0.07);
  padding: clamp(28px, 5vw, 56px);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.form-field { margin-bottom: 28px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label, .form-field legend {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 10px;
}
.form-field span {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 11px;
  line-height: 1.5;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  border: 1px solid var(--gray-line);
  background: #fbfcfd;
  color: var(--navy);
  font: inherit;
  font-size: 15px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-field textarea { resize: vertical; min-height: 150px; line-height: 1.9; }
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(224, 120, 32, 0.08);
}
.checkbox-group, .privacy-field { border: 0; padding: 0; }
.checkbox-group label, .privacy-field label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  margin: 0;
  line-height: 1.8;
  color: var(--navy);
}
.checkbox-group input, .privacy-field input { margin-top: .45em; accent-color: var(--orange); }
.error-message { min-height: 1.6em; color: #b42318; font-size: 13px; line-height: 1.6; margin-top: 6px; }
.form-submit-area { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
.submit-button {
  appearance: none;
  border: 0;
  border-bottom: 2px solid var(--orange);
  background: transparent;
  color: var(--navy);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 0 0 7px;
  cursor: pointer;
  transition: opacity .2s;
}
.submit-button span { color: var(--orange); }
.submit-button:hover { opacity: .62; }
.submit-button:disabled { cursor: not-allowed; opacity: .45; }
.form-status { color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.thanks-card { text-align: center; }
.thanks-card h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 18px;
}
.thanks-card p { font-size: 15px; line-height: 2.1; color: var(--text-muted); margin-bottom: 32px; }

@media (max-width: 900px) {
  .contact-hero { padding: 112px 24px 88px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-graphic { right: -160px; top: 52px; width: 420px; }
  .form-submit-area { display: block; }
  .form-status { margin-top: 16px; }
}

/* ─── FOOTER ─── */
footer {
  background: var(--white);
  border-top: 1px solid var(--gray-line);
  padding: 36px 8vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-nav { display: flex; gap: 28px; }
.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--navy); }
.copyright { font-size: 12px; color: var(--text-muted); }

/* ─── DIAGNOSIS ─── */
.diagnosis { background: var(--gray-bg); }

.diagnosis-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.diagnosis-header .sec-label { /* inherit base, just center align via parent */ }
.diagnosis-lead {
  margin-top: 20px;
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-muted);
}

.diagnosis-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-top: 2px solid var(--navy);
  padding: 16px;
  box-shadow: 0 12px 30px rgba(26, 39, 68, 0.06);
}
.diagnosis-card iframe {
  width: 100%;
  height: 760px;
  border: none;
  display: block;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .diagnosis-card iframe { height: 800px; }
  header { padding: 0 24px; }
  nav    { display: none; }
  section { padding: 80px 24px; }
  .hero   { padding: 80px 24px 100px; flex-direction: column; align-items: flex-start; min-height: auto; padding-bottom: 120px; }
  .hero-graphic { position: static; transform: none; width: 100%; max-width: 100%; margin-top: 40px; }
  .philosophy-grid  { grid-template-columns: 1fr; gap: 40px; }
  .philosophy-graphic { order: -1; }
  .services-grid    { grid-template-columns: 1fr; }
  .company-grid     { grid-template-columns: 1fr; gap: 40px; }
  .company-story    { padding-top: 0; }
  footer            { padding: 28px 24px; }
  .cta-section      { padding: 100px 24px; }
}

/* ─── FADE-IN（main.js と連動） ─── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 480px) {
  .header-actions .lang { display: none; }
  .hero-text h1 { font-size: 28px; }
}
