/* ==========================================================================
   Hermit Club合同会社 — Global Stylesheet
   Editorial / minimal design system
   ========================================================================== */

:root {
  --ink: #111111;
  --sub: #767676;
  --faint: #a8a8a8;
  --line: #e4e4e4;
  --line-strong: #cfcfcf;
  --bg: #ffffff;
  --bg-2: #f7f7f5;
  --accent: #1a56db;
  --accent-ink: #0f3aa0;
  --serif-en: "Cormorant Garamond", "Shippori Mincho", serif;
  --serif-jp: "Shippori Mincho", "Cormorant Garamond", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --container: 1120px;
  --pad: clamp(24px, 5vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.008 0.28' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 70% 45% at 15% 8%, rgba(0, 0, 0, 0.025), transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 22%, rgba(0, 0, 0, 0.02), transparent 55%),
    radial-gradient(ellipse 65% 55% at 40% 92%, rgba(0, 0, 0, 0.025), transparent 60%);
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
  background-size: 420px 420px, 180px 180px, 100% 100%, 100% 100%, 100% 100%;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--sub);
  text-transform: uppercase;
  margin: 0 0 22px;
}

.display {
  font-family: var(--serif-en);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0;
}

.section-heading {
  font-family: var(--serif-jp);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: 0.14em;
  margin: 0 0 28px;
}

.section-lead {
  color: var(--sub);
  font-size: 16px;
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto 8px;
}

.section-head {
  text-align: center;
  margin-bottom: 88px;
}

section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
  position: relative;
}

section:first-of-type,
.no-border {
  border-top: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 44px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--ink);
  color: #fff;
}

.btn-solid {
  background: var(--ink);
  color: #fff;
}

.btn-solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: opacity 0.3s ease, gap 0.3s ease;
}

.link-underline:hover {
  opacity: 0.55;
  gap: 12px;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--pad);
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: var(--serif-en);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.logo small {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--sub);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 44px;
}

.nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--ink);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 26px;
  height: 18px;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.nav-toggle span {
  top: 8px;
}

.nav-toggle span::before {
  top: -8px;
}

.nav-toggle span::after {
  top: 8px;
}

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

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px var(--pad) 100px;
  border-top: none;
}

.hero .eyebrow {
  text-align: center;
}

.hero h1 {
  text-align: center;
  font-size: clamp(40px, 8vw, 96px);
  line-height: 1.08;
}

.hero .jp-sub {
  text-align: center;
  font-family: var(--serif-jp);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 500;
  color: var(--sub);
  margin: 28px 0 0;
  letter-spacing: 0.06em;
}

.hero .desc {
  text-align: center;
  color: var(--sub);
  max-width: 560px;
  margin: 22px auto 0;
  font-size: 15px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.scroll-cue .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--faint), transparent);
}

/* ---------- Philosophy / MVV ---------- */

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.mvv-item {
  padding: 48px 40px;
  border-left: 1px solid var(--line);
}

.mvv-item:first-child {
  border-left: none;
  padding-left: 0;
}

.mvv-item .tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--faint);
  margin-bottom: 16px;
}

.mvv-item h3 {
  font-family: var(--serif-jp);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: 0.04em;
}

.mvv-item p {
  color: var(--sub);
  font-size: 14.5px;
  margin: 0;
}

.mvv-statement {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}

.mvv-statement .big {
  font-family: var(--serif-jp);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0 0 24px;
}

.mvv-statement p {
  color: var(--sub);
  font-size: 15px;
}

.mvv-value-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mvv-value-list li {
  position: relative;
  padding-left: 16px;
  color: var(--sub);
  font-size: 14.5px;
}

.mvv-value-list li + li {
  margin-top: 10px;
}

.mvv-value-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.service-card {
  padding: 56px 40px;
  border-left: 1px solid var(--line);
}

.service-card:first-child {
  border-left: none;
}

.service-card .num {
  font-family: var(--serif-en);
  font-size: 13px;
  color: var(--faint);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}

.service-card h3 {
  font-family: var(--serif-en);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
}

.service-card .sub {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 28px;
}

.service-card .desc {
  color: var(--sub);
  font-size: 14.5px;
  margin-bottom: 36px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  border-top: 1px solid var(--line);
}

.feature-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 13px;
  margin-bottom: 32px;
}

.price-tag strong {
  font-family: var(--serif-en);
  font-size: 20px;
  font-weight: 600;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.about-lead {
  font-family: var(--serif-jp);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid var(--line);
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 22px 0;
  font-weight: 400;
  font-size: 14.5px;
  vertical-align: top;
}

.info-table th {
  width: 140px;
  color: var(--sub);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 24px;
}

/* ---------- Contact ---------- */

.contact-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.field {
  margin-bottom: 28px;
}

.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 10px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 2px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  transition: border-color 0.3s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.contact-note {
  text-align: center;
  color: var(--faint);
  font-size: 12.5px;
  margin-top: 20px;
}

.contact-direct {
  text-align: center;
  margin-bottom: 56px;
  color: var(--sub);
  font-size: 14px;
}

.contact-direct a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 72px var(--pad) 40px;
  border-top: 1px solid var(--line);
}

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

.footer-logo {
  font-family: var(--serif-en);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.footer-tagline {
  color: var(--sub);
  font-size: 13px;
  margin-top: 10px;
  letter-spacing: 0.04em;
}

.footer-nav {
  display: flex;
  gap: 36px;
}

.footer-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sub);
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Detail page (RPO / EC) shared ---------- */

.detail-hero {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 180px var(--pad) 90px;
  border-top: none;
}

.detail-hero .eyebrow {
  text-align: center;
}

.detail-hero h1 {
  text-align: center;
  font-family: var(--serif-jp);
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0;
}

.detail-hero .desc {
  text-align: center;
  color: var(--sub);
  max-width: 560px;
  margin: 26px auto 0;
  font-size: 15px;
}

.detail-hero .stat-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.stat-box {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 18px 26px;
  text-align: center;
  min-width: 200px;
  background: #fff;
}

.stat-box span {
  display: block;
  font-size: 11.5px;
  color: var(--sub);
  margin-bottom: 8px;
}

.stat-box strong {
  font-family: var(--serif-en);
  font-size: 26px;
  font-weight: 600;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pain-grid div {
  background: #fff;
  padding: 30px 32px;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-cards .card {
  background: #fff;
  padding: 36px 28px;
}

.feature-cards .card .icon {
  font-size: 22px;
  margin-bottom: 18px;
}

.feature-cards .card h4 {
  font-family: var(--serif-jp);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
}

.feature-cards .card p {
  font-size: 13.5px;
  color: var(--sub);
  margin: 0;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.plan-card {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 44px;
}

.plan-card.featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.plan-card .plan-name {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--sub);
  margin-bottom: 14px;
}

.plan-card.featured .plan-name {
  color: rgba(255, 255, 255, 0.55);
}

.plan-card .plan-price {
  font-family: var(--serif-en);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 600;
  margin: 0 0 6px;
}

.plan-card.featured .plan-price {
  color: #8fb4ff;
}

.plan-card .plan-target {
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 28px;
}

.plan-card.featured .plan-target {
  color: rgba(255, 255, 255, 0.6);
}

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

.plan-card li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}

.plan-card.featured li {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--line);
  padding: 18px 22px;
  text-align: center;
}

.compare-table th {
  background: var(--bg-2);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.compare-table td:first-child,
.compare-table th:first-child {
  text-align: left;
  font-weight: 600;
  width: 22%;
}

.compare-table .featured-col {
  background: #eef3ff;
  color: var(--accent-ink);
  font-weight: 600;
}

.store-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.store-tags span {
  border: 1px solid var(--line-strong);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
}

.cta-band {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 100px var(--pad);
  border-radius: 0;
}

.cta-band .section-heading {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
}

.cta-band .btn {
  border-color: #fff;
  color: #fff;
}

.cta-band .btn:hover {
  background: #fff;
  color: var(--ink);
}

.breadcrumb {
  position: fixed;
  top: 100px;
  left: var(--pad);
  z-index: 40;
  font-size: 12px;
  color: var(--sub);
  letter-spacing: 0.08em;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 84vw);
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.06);
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: block;
    z-index: 101;
  }

  .mvv-grid,
  .services-grid,
  .about-grid,
  .pain-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .mvv-item {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 40px 0;
  }

  .mvv-item:first-child {
    border-top: none;
  }

  .service-card {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 56px var(--pad);
  }

  .service-card:first-child {
    border-top: none;
  }

  section {
    padding: 84px 0;
  }

  .about-grid {
    gap: 40px;
  }

  .breadcrumb {
    display: none;
  }
}

@media (max-width: 520px) {
  .feature-cards {
    grid-template-columns: 1fr;
  }

  .detail-hero .stat-row {
    flex-direction: column;
    align-items: center;
  }
}

/* ---------- Scroll reveal (vanilla JS, no framework) ---------- */
/* Elements with [data-reveal] start slightly lower & transparent.
   main.js adds .in-view via IntersectionObserver to animate them in.
   If JavaScript never runs, the 400ms CSS-only fallback below still
   fades everything in, so content is never permanently hidden. */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

.no-js [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
