/* ==================================================
  Revark style.css
  Clean premium layout / mobile menu / scroll reveal
================================================== */

/* ------------------------------
  Variables
------------------------------ */
:root {
  --bg: #f7f9f6;
  --surface: #ffffff;
  --surface-soft: #eef5ee;
  --text: #132018;
  --muted: #5e6b62;
  --line: #dbe6dc;
  --green: #56d364;
  --green-dark: #1f7a37;
  --green-soft: #e5f7e7;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(19, 32, 24, 0.08);
  --shadow-strong: 0 28px 80px rgba(19, 32, 24, 0.14);
  --radius: 28px;
  --header-height: 72px;
  --section: clamp(78px, 9vw, 138px);
  --container: min(1120px, calc(100% - 32px));
  --font-base: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", system-ui, sans-serif;
  --font-heading: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", system-ui, sans-serif;
}

/* ------------------------------
  Reset / Base
------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-base);
  font-size: clamp(14px, 1.05vw, 15.5px);
  line-height: 1.85;
  letter-spacing: 0.015em;
  font-weight: 400;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.rv-menu-open,
body.menu-is-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--green-dark);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.section-soft {
  background:
    linear-gradient(180deg, transparent 0%, rgba(229, 247, 231, 0.45) 48%, transparent 100%);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20000;
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
}

.skip-link:focus {
  top: 12px;
}

/* ------------------------------
  Typography
------------------------------ */
h1,
h2,
h3 {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4.7vw, 3.75rem);
  max-width: 900px;
}

h2 {
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
}

h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

p {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 400;
}

ul,
ol {
  line-height: 1.85;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  line-height: 1.95;
}

.small,
.note,
.date,
.privacy-note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.8;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.badge,
.label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 900;
}

.badge {
  margin: 0 0 14px;
  padding: 6px 12px;
}

.label {
  padding: 4px 10px;
}

.center {
  text-align: center;
}

.mt {
  margin-top: 34px;
}

/* ------------------------------
  Header / Navigation
------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 9000;
  background: rgba(247, 249, 246, 0.9);
  border-bottom: 1px solid rgba(219, 230, 220, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  width: var(--container);
  height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-logo-slot {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff, var(--green-soft));
  box-shadow: inset 0 0 0 5px rgba(86, 211, 100, 0.12);
}

.brand-logo,
.brand-mark {
  display: block;
  width: auto;
  height: 80px;
}

.brand-text {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
}

.desktop-nav a {
  white-space: nowrap;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #fff !important;
  box-shadow: 0 10px 30px rgba(19, 32, 24, 0.12);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav-cta:hover {
  color: #fff !important;
  background: #27402f;
}

/* ------------------------------
  Hamburger Button
------------------------------ */
.menu-button {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  z-index: 11020;
  display: grid;
  place-items: center;
  padding: 0;
}

.menu-button span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 21px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transform-origin: center;
  transition:
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.75s ease;
}

.menu-button span:nth-child(1) {
  transform: translate(-50%, -50%) translateY(-7px);
}

.menu-button span:nth-child(2) {
  transform: translate(-50%, -50%);
}

.menu-button span:nth-child(3) {
  transform: translate(-50%, -50%) translateY(7px);
}

.menu-button.is-open span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0);
}

.menu-button.is-open span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ------------------------------
  Mobile Menu Overlay
------------------------------ */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 11000;
  padding: 0;
  background: rgba(7, 14, 10, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 430px);
  height: 100vh;
  height: 100dvh;
  padding: calc(var(--header-height) + 28px) 22px 32px;
  background: rgba(247, 249, 246, 0.98);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.22);
  display: grid;
  align-content: start;
  gap: 12px;
  opacity: 0;
  transform: translateX(100%);
  transition:
    opacity 0.55s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.is-open nav {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu a {
  display: block;
  padding: 15px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 12px 34px rgba(19, 32, 24, 0.08);
}

.mobile-menu a:hover {
  color: var(--green-dark);
}

.mobile-menu a.nav-cta {
  background: var(--text);
  color: #fff !important;
}

/* ------------------------------
  Main / Breadcrumb
------------------------------ */
main {
  padding-top: var(--header-height);
}

.breadcrumb {
  width: var(--container);
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #98a79c;
}

/* ------------------------------
  Hero
------------------------------ */
.hero {
  padding: clamp(72px, 9vw, 120px) 0 var(--section);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 12% -20% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(86, 211, 100, 0.22), transparent 64%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
  position: relative;
}

.hero-actions,
.cta-actions,
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-panel,
.card,
.link-card,
.plan-card,
.form-card,
.cta-box {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: clamp(22px, 4vw, 36px);
  display: grid;
  gap: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  padding: 18px;
  border-radius: 20px;
  background: var(--surface-soft);
}

.metric strong {
  display: block;
  font-size: 1.35rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ------------------------------
  Buttons / Cards / Layout
------------------------------ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.button-primary {
  background: var(--text);
  color: #fff;
}

.button-primary:hover {
  background: #27402f;
  color: #fff;
}

.button-ghost {
  background: #fff;
}

.button-green {
  background: var(--green);
  border-color: var(--green);
  color: #0d1d12;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2,
.grid-3,
.grid-4 {
  grid-template-columns: 1fr;
}

.card,
.link-card,
.plan-card {
  padding: clamp(22px, 3vw, 32px);
  font-size: 0.96rem;
}

.link-card {
  position: relative;
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(19, 32, 24, 0.1);
}

.link-card a::after,
.article-row a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.text-link {
  color: var(--green-dark);
  font-weight: 800;
}

.check-list {
  padding: 0;
  margin: 18px 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 4px var(--green-soft);
}

.split {
  display: grid;
  gap: 28px;
  align-items: start;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.price {
  font-size: clamp(2rem, 5vw, 3.05rem);
  font-weight: 900;
  line-height: 1;
}

.price span,
.price small {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.is-recommended {
  border: 2px solid var(--green);
  transform: translateY(-6px);
}

.note {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.info-list {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 14px;
  margin: 0;
}

.info-list dt {
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: var(--muted);
}

/* ------------------------------
  FAQ / Articles / Forms
------------------------------ */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.faq-item h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-row {
  position: relative;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.date {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.form-card {
  padding: clamp(22px, 4vw, 38px);
  font-size: 0.96rem;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--text);
}

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

.error-box {
  margin-bottom: 20px;
  padding: 16px;
  background: #fff0f0;
  border: 1px solid #f2c1c1;
  border-radius: 18px;
}

.success-box {
  padding: 16px;
  background: var(--green-soft);
  border: 1px solid var(--green);
  border-radius: 18px;
}

.required {
  color: var(--danger);
}

/* ------------------------------
  CTA / Footer / Fixed CTA
------------------------------ */
.cta-section {
  padding-top: 0;
}

.cta-box {
  padding: clamp(26px, 5vw, 52px);
  display: grid;
  gap: 22px;
  align-items: center;
  background: linear-gradient(135deg, #fff, var(--green-soft));
}

.site-footer {
  background: #111b14;
  color: #edf4ee;
  padding: 64px 0 96px;
}

.site-footer a {
  color: #edf4ee;
}

.footer-grid {
  display: grid;
  gap: 30px;
}

.site-footer h2 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #b8c8bc;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer .brand-logo-slot {
  background: linear-gradient(135deg, #fff, var(--green));
  border-color: rgba(255, 255, 255, 0.25);
}

.fixed-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 8500;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fixed-cta a {
  min-height: 48px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 34px rgba(19, 32, 24, 0.2);
}

.fixed-cta a:nth-child(2) {
  background: var(--green);
  color: #102116;
}

/* ------------------------------
  Tables / Article detail / Kicker
------------------------------ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-soft);
}

tr:last-child td {
  border-bottom: 0;
}

.article-body {
  max-width: 820px;
}

.article-body p {
  font-size: 1rem;
  line-height: 1.95;
}

.article-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.kicker-grid {
  display: grid;
  gap: 14px;
}

.kicker {
  padding: 16px;
  border-left: 4px solid var(--green);
  background: #fff;
  border-radius: 0 18px 18px 0;
}

/* ------------------------------
  Scroll reveal animation
------------------------------ */
html.js-reveal-ready .rv-reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--rv-delay, 0ms);
  will-change: opacity, transform;
}

html.js-reveal-ready .rv-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.rv-delay-1 {
  --rv-delay: 90ms;
}

.rv-delay-2 {
  --rv-delay: 180ms;
}

.rv-delay-3 {
  --rv-delay: 270ms;
}

/* ------------------------------
  Responsive
------------------------------ */
@media (min-width: 760px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1.35fr 0.75fr;
  }

  .split {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .cta-box {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .fixed-cta {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (min-width: 1060px) {
  .desktop-nav {
    height: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow: visible;
  }

  .menu-button {
    width: 0;
    height: 0;
    border: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
  }

  .mobile-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* 動作確認を優先するため、ここでは prefers-reduced-motion で全アニメ停止しない */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


/* koko===================================================================================================== */
/* ==================================================
  Header Logo Size - Mobile Fix
================================================== */

/* ヘッダー内のロゴ画像を共通で安定させる */
.site-header .brand img,
.site-header .brand-logo,
.site-header .brand-mark {
  display: block !important;
  width: auto !important;
  height: 80px !important;
  max-width: 180px !important;
  object-fit: contain !important;
}

/* スマホ時のロゴサイズ */
@media (max-width: 759px) {
  .site-header .brand {
    max-width: calc(100% - 64px) !important;
    gap: 8px !important;
  }

  .site-header .brand img,
  .site-header .brand-logo,
  .site-header .brand-mark {
    width: auto !important;
    height: 80px !important;
    max-width: 150px !important;
    object-fit: contain !important;
  }
}

/* 比較================================================================================================== */
/* ==================================================
  Compare table - Revark column highlight
================================================== */

.compare-table th:nth-child(5),
.compare-table td:nth-child(5) {
  background: var(--green-soft);
  border-left: 2px solid var(--green);
  border-right: 2px solid var(--green);
}

.compare-table th:nth-child(5) {
  background: var(--green);
  color: #11291a;
  font-weight: 900;
}

.compare-table tbody tr:last-child td:nth-child(5) {
  border-bottom: 2px solid var(--green);
}

.compare-table td:nth-child(5) {
  color: var(--text);
  font-weight: 700;
}

.compare-table th:nth-child(5),
.compare-table td:nth-child(5) {
  box-shadow: inset 0 0 0 999px rgba(86, 211, 100, 0.06);
}