/*
Theme Name: NOMIYA Reproduction
Theme URI: https://example.local/
Author: Codex
Description: Luxury WordPress landing page theme for NOMIYA-style website production.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: nomiya
*/

:root {
  --green: #006b32;
  --green-deep: #013e2d;
  --green-soft: #eaf4ee;
  --gold: #c79a42;
  --gold-deep: #a97b25;
  --ink: #20342e;
  --muted: #65746f;
  --paper: #fffdfa;
  --line: #e8ebe7;
  --shadow: 0 18px 46px rgba(21, 38, 32, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Arial, sans-serif;
  background: var(--paper);
  letter-spacing: 0;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
svg { max-width: 100%; }

.nomiya-site {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(199, 154, 66, .08), transparent 30rem),
    linear-gradient(180deg, #fff 0%, #fbfaf6 100%);
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand-mark {
  width: 104px;
  height: 44px;
  color: var(--green);
}

.brand-copy {
  font-size: 12px;
  line-height: 1.7;
  color: #31453e;
  white-space: nowrap;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 700;
  color: #40524d;
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .22s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn {
  min-width: 190px;
  padding: 0 22px;
  white-space: nowrap;
}
.header-actions .line-icon {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  color: var(--green);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(0, 107, 50, .18); }
.btn-primary { color: #fff; background: linear-gradient(180deg, #08a63a, #008a2f); }
.btn-light { color: var(--green); background: #fff; border-color: rgba(0, 107, 50, .22); }
.btn-gold { color: #fff; background: linear-gradient(180deg, #d5aa55, #bd8b32); }
.btn-outline { color: var(--green); border-color: rgba(0, 107, 50, .38); background: #fff; }
.btn-small { min-height: 36px; padding: 0 22px; font-size: 12px; }

.line-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #09a23b;
  font-size: 11px;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 430px;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(0, 27, 24, .76), rgba(0, 43, 28, .38) 48%, rgba(0, 0, 0, .02)), url("assets/images/hero-pc.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(0, 29, 24, .55), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 46px;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.hero h1,
.section-title,
.renewal-showcase-title,
.cost-copy h2,
.voice-title {
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.hero h1 {
  margin: 0 0 26px;
  max-width: 760px;
  font-size: clamp(38px, 4.6vw, 52px);
  line-height: 1.38;
  letter-spacing: .04em;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  text-shadow: 0 4px 22px rgba(0, 0, 0, .3);
}

.hero-lead {
  margin: 0 0 14px;
  font-size: clamp(17px, 2.1vw, 23px);
  font-weight: 800;
  letter-spacing: .04em;
}

.hero-text {
  max-width: 680px;
  font-size: 14px;
  line-height: 2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

.price-badge {
  width: 292px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 24px 50px rgba(0, 32, 28, .22), inset 0 0 0 1px rgba(255, 255, 255, .88);
}

.price-badge small {
  display: block;
  color: #586762;
  font-weight: 800;
}

.price-badge strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  line-height: 1;
  color: #242e2a;
}

.price-badge .tax {
  font-size: 12px;
  display: inline-block;
  margin-left: 4px;
}

.price-badge hr {
  width: 68%;
  border: 0;
  border-top: 1px solid #e2e1dc;
  margin: 16px auto;
}

.section {
  padding: 60px 0;
}

.section-title,
.voice-title {
  text-align: center;
  margin: 0 0 34px;
  font-size: 27px;
  letter-spacing: .06em;
  color: #1d332d;
}

.section-title::before,
.section-title::after,
.voice-title::after {
  content: "";
  display: block;
  width: 34px;
  height: 12px;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, transparent 38%, var(--gold) 40%, var(--gold) 55%, transparent 57%), linear-gradient(45deg, transparent 38%, var(--gold) 40%, var(--gold) 55%, transparent 57%);
  background-size: 17px 12px;
}

.section-title::after,
.voice-title::after {
  width: 24px;
  height: 2px;
  margin-top: 12px;
  background: var(--gold);
}

.section-lead {
  max-width: 720px;
  margin: -12px auto 32px;
  color: #5d6c67;
  font-size: 14px;
  line-height: 2;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.feature-card,
.service-card,
.voice-card,
.cost-table-card,
.cost-card {
  background: #fff;
  border: 1px solid #eef0ec;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 192px;
  padding: 28px 18px 24px;
  text-align: center;
}

.feature-card svg,
.service-card svg {
  width: 54px;
  height: 54px;
  color: var(--green);
  margin: 0 auto 20px;
  stroke-width: 1.7;
}

.feature-card svg {
  stroke-width: 2;
}

.feature-card h3 {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.65;
}

.feature-card p {
  margin: 0;
  color: #4d5d58;
  font-size: 12px;
  line-height: 1.75;
}

.renewal-showcase {
  padding: 44px 0 38px;
  background: linear-gradient(180deg, #fff 0%, #f8faf6 100%);
}
.renewal-showcase .container {
  max-width: 1180px;
}
.renewal-showcase-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #eef0ec;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(20, 44, 34, .12);
}
.renewal-showcase-mobile {
  display: none;
}
.renewal-showcase-mobile img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

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

#service {
  padding-bottom: 38px;
}

.service-card {
  position: relative;
  padding: 30px 18px 20px;
  min-height: 226px;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(0, 107, 50, .35); }
.service-card h3 { margin: 0 0 10px; color: var(--green); font-size: 14px; }
.service-price { margin: 0 0 12px; font-weight: 900; font-size: 32px; color: #123b2d; line-height: 1; }
.service-price small { font-size: 14px; }
.service-card p:not(.service-price) { min-height: 62px; margin: 0; font-size: 12px; line-height: 1.7; color: #5e6c67; }
.note { text-align: center; color: #73817c; font-size: 12px; margin-top: 18px; }

.cost {
  background: linear-gradient(90deg, #f4f7f5, #fff);
}
.cost-inner {
  display: grid;
  grid-template-columns: .9fr 1.7fr;
  gap: 44px;
  align-items: center;
}
.cost-copy h2 { font-size: 30px; line-height: 1.55; margin: 0 0 22px; }
.cost-copy p { color: #5d6c67; line-height: 1.9; }
.legend { display: flex; gap: 18px; align-items: center; font-size: 12px; }
.legend span::before {
  content: "";
  width: 11px;
  height: 11px;
  display: inline-block;
  margin-right: 6px;
  vertical-align: -1px;
  background: var(--green);
}
.legend span:last-child::before { background: #b9b9b9; }

.cost-content {
  display: grid;
  gap: 18px;
}
.cost-table-card {
  overflow: hidden;
  padding: 22px;
}
.cost-table-card h3 {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 16px;
  text-align: center;
}
.cost-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  line-height: 1.55;
}
.cost-table th,
.cost-table td {
  padding: 12px 10px;
  border-right: 1px solid #e6ebe7;
  border-bottom: 1px solid #e6ebe7;
  text-align: center;
  background: #fff;
}
.cost-table thead th {
  background: var(--green);
  color: #fff;
  font-weight: 800;
}
.cost-table tbody th {
  color: #243c34;
  font-weight: 800;
  text-align: left;
}
.cost-table th:first-child,
.cost-table td:first-child { border-left: 1px solid #e6ebe7; }
.cost-table thead th:first-child { border-top-left-radius: 8px; }
.cost-table thead th:last-child { border-top-right-radius: 8px; }
.cost-table tbody tr:last-child th { border-bottom-left-radius: 8px; }
.cost-table tbody tr:last-child td:last-child { border-bottom-right-radius: 8px; }
.cost-table th:last-child,
.cost-table td:last-child {
  border-right: 1px solid #d8e8dd;
  background: #edf7f1;
  color: var(--green);
  font-weight: 900;
}
.cost-table thead th:last-child {
  background: #0a7438;
  color: #fff;
}
.cost-table-mobile {
  display: none;
  gap: 12px;
}
.cost-table-mobile-card {
  overflow: hidden;
  border: 1px solid #e2eae5;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.cost-table-mobile-title {
  margin: 0;
  padding: 11px 14px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}
.cost-table-mobile-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}
.cost-table-mobile-value {
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 78px;
  padding: 12px 8px;
  border-right: 1px solid #edf2ee;
  text-align: center;
}
.cost-table-mobile-value:last-child {
  border-right: 0;
}
.cost-table-mobile-value.is-nomiya {
  background: #edf7f1;
}
.cost-table-mobile-value dt,
.cost-table-mobile-value dd {
  margin: 0;
}
.cost-table-mobile-value dt {
  color: #5d6c67;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}
.cost-table-mobile-value dd {
  color: #243c34;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}
.cost-table-mobile-value.is-nomiya dt,
.cost-table-mobile-value.is-nomiya dd {
  color: var(--green);
}

.cost-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cost-card { padding: 22px 18px 18px; text-align: center; }
.cost-card h3 { margin: 0 0 18px; color: var(--green); font-size: 14px; }
.bars { height: 122px; display: flex; justify-content: center; align-items: end; gap: 15px; }
.bar { width: 46px; display: flex; align-items: start; justify-content: center; color: #fff; font-size: 10px; padding-top: 6px; }
.bar.green { background: var(--green); }
.bar.gray { background: #b8b8b8; color: #555; }
.saving { margin: 16px 0 0; color: #d36134; font-weight: 900; }
.cost-note {
  margin: 2px 0 0;
  color: #73817c;
  font-size: 11px;
  line-height: 1.8;
}
.nomiya-cost-graphs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.nomiya-cost-card {
  padding: 22px 18px 18px;
  background: #fff;
  border: 1px solid #eef0ec;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.nomiya-cost-card h3 {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}
.nomiya-cost-bars {
  display: grid;
  gap: 12px;
}
.nomiya-cost-row-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: #485c55;
  font-size: 12px;
  font-weight: 800;
}
.nomiya-cost-row-head strong {
  color: #243c34;
  font-size: 13px;
}
.nomiya-cost-track {
  overflow: hidden;
  height: 13px;
  background: #edf2ee;
  border-radius: 999px;
}
.nomiya-cost-track span {
  display: block;
  height: 100%;
  min-width: 18px;
  border-radius: inherit;
}
.nomiya-cost-row--general .nomiya-cost-track span { background: #9ea7a2; }
.nomiya-cost-row--budget .nomiya-cost-track span { background: #d7923c; }
.nomiya-cost-row--nomiya .nomiya-cost-track span { background: var(--green); }
.nomiya-cost-diffs {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.nomiya-cost-diff {
  padding: 12px;
  border-radius: 8px;
  background: #edf7f1;
  text-align: center;
}
.nomiya-cost-diff span,
.nomiya-cost-diff em {
  display: block;
  color: #486258;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.nomiya-cost-diff strong {
  display: block;
  margin: 4px 0;
  color: var(--green);
  font-size: 22px;
  line-height: 1.1;
}
.nomiya-cost-diff--caution {
  background: #EAF6FF;
}
.nomiya-cost-diff--caution strong,
.nomiya-cost-diff--caution em {
  color: #c56f1f;
}
.nomiya-cost-card:nth-child(2) .nomiya-cost-diff:nth-child(2) { background: #F3EEFF; }
.nomiya-cost-card:nth-child(3) .nomiya-cost-diff:nth-child(2) { background: #F8E2C8; }
.nomiya-cost-note {
  margin: 2px 0 0;
  color: #73817c;
  font-size: 11px;
  line-height: 1.8;
}
.works-section {
  background: linear-gradient(180deg, #fff, #f8faf6);
}

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

.work-card,
.work-detail-grid article {
  background: #fff;
  border: 1px solid #eef0ec;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.work-card {
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 107, 50, .35);
}

.work-image {
  display: block;
  aspect-ratio: 16 / 10;
  background: #f5f7f4;
  overflow: hidden;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-body {
  padding: 22px 20px 24px;
}

.work-body h3 {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 18px;
}

.work-body p {
  min-height: 58px;
  margin: 0 0 18px;
  color: #5d6c67;
  font-size: 13px;
  line-height: 1.8;
}

.work-detail-hero {
  padding: 42px 0 0;
  background: linear-gradient(180deg, #f4f7f5, #fff);
}

.work-detail-hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #eef0ec;
}

.work-detail-inner {
  max-width: 1040px;
}

.work-detail-copy {
  text-align: center;
  margin-bottom: 34px;
}

.work-eyebrow {
  margin: 0 0 10px;
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.work-detail-copy h1 {
  margin: 0 0 18px;
  color: #1d332d;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 36px;
  line-height: 1.4;
}

.work-detail-copy p {
  margin: 0 auto;
  max-width: 720px;
  color: #5d6c67;
  line-height: 2;
}

.work-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.work-detail-grid article {
  padding: 24px 22px;
}

.work-detail-grid h2 {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 16px;
}

.work-detail-grid p {
  margin: 0;
  color: #5d6c67;
  font-size: 13px;
  line-height: 1.9;
}

.blog-page {
  background: linear-gradient(180deg, #fff, #f8faf6);
}

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

.blog-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #eef0ec;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 107, 50, .35);
}

.blog-card-image {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef5ef;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-placeholder {
  color: rgba(0, 107, 50, .18);
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .16em;
}

.blog-card-body {
  padding: 22px 20px 24px;
}

.blog-card-body time,
.blog-single-hero time {
  display: block;
  color: #73817c;
  font-size: 12px;
  font-weight: 700;
}

.blog-card-body h2 {
  margin: 8px 0 12px;
  color: var(--green);
  font-size: 18px;
  line-height: 1.6;
}

.blog-card-body p {
  min-height: 76px;
  margin: 0 0 18px;
  color: #5d6c67;
  font-size: 13px;
  line-height: 1.8;
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.blog-pagination .page-numbers {
  min-width: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(0, 107, 50, .2);
  border-radius: var(--radius);
  background: #fff;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.blog-pagination .current {
  background: var(--green);
  color: #fff;
}

.blog-empty {
  padding: 34px;
  border: 1px solid #eef0ec;
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.blog-single-hero {
  padding: 54px 0 34px;
  background: linear-gradient(180deg, #f4f7f5, #fff);
}

.blog-single-inner {
  max-width: 920px;
}

.blog-single-eyebrow {
  margin: 0 0 10px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-align: center;
}

.blog-single h1 {
  margin: 0 0 14px;
  color: #1d332d;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 34px;
  line-height: 1.55;
  text-align: center;
}

.blog-single-hero time {
  text-align: center;
}

.blog-single-image {
  margin: 0 0 30px;
}

.blog-single-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid #eef0ec;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.blog-single-content {
  padding: 34px;
  background: #fff;
  border: 1px solid #eef0ec;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #334841;
  font-size: 15px;
  line-height: 2;
}

.blog-single-content > *:first-child { margin-top: 0; }
.blog-single-content > *:last-child { margin-bottom: 0; }
.blog-single-content h2,
.blog-single-content h3 {
  margin: 2em 0 .8em;
  color: var(--green);
  line-height: 1.55;
}
.blog-single-content img {
  height: auto;
  border-radius: var(--radius);
}

.blog-single-actions {
  margin-top: 28px;
  text-align: center;
}

.voices { padding-bottom: 52px; }
.voice-image-container {
  max-width: 1200px;
}
.voice-section-image {
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.voice-section-image--sp {
  display: none;
}
.voice-mobile-scroll-wrap {
  display: none;
}
.voice-mobile-scroll {
  display: none;
}
.voice-mobile-scroll-dots {
  display: none;
}
.voice-mobile-slider {
  display: none;
}
.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.voice-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 0;
  overflow: hidden;
}
.voice-card img { width: 110px; height: 140px; object-fit: cover; }
.voice-body { padding: 22px 18px 18px 0; }
.voice-body h3 { margin: 0 0 12px; font-size: 15px; line-height: 1.55; }
.voice-body p { margin: 0 0 12px; color: #5d6b66; font-size: 12px; line-height: 1.8; }
.voice-body b { font-size: 12px; }
.center { text-align: center; margin-top: 26px; }

.cta {
  color: #fff;
  background-image: linear-gradient(90deg, #003a29, #005730);
  background-size: cover;
  background-position: center;
  padding: 34px 0;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 22px;
  align-items: center;
}
.cta h2 { margin: 0 0 10px; font-size: 21px; }
.cta p { margin: 0; font-size: 13px; line-height: 1.8; }
.cta .btn { min-width: 225px; min-height: 58px; }

.site-footer {
  position: relative;
  background: #fff;
  padding: 44px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 44px;
}
.footer-brand p,
.footer-list,
.copy {
  color: #6c7874;
  font-size: 12px;
  line-height: 1.9;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list a:hover { color: var(--green); }
.footer-title { margin: 0 0 12px; font-size: 13px; }
.copy { margin-top: 26px; text-align: right; }
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--green-deep);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: .2s ease;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); }

.fixed-line-button {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(280px, calc(100% - 32px));
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #08a63a, #008a2f);
  box-shadow: 0 12px 28px rgba(0, 107, 50, .26);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transform: translateX(-50%);
  transition: .2s ease;
}

.fixed-line-button:hover {
  color: #fff;
  transform: translate(-50%, -2px);
  box-shadow: 0 16px 34px rgba(0, 107, 50, .3);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 28, 21, .58);
}
.modal.is-open { display: grid; }
.modal-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .28);
  padding: 30px;
}
.modal-card h2 { margin: 0 0 10px; font-size: 24px; }
.modal-card p { color: #65746f; line-height: 1.8; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.modal-close {
  float: right;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.diagnosis-list { display: grid; gap: 10px; margin: 16px 0; }
.diagnosis-list label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 1050px) {
  .main-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: none;
    padding: 18px 24px 24px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .1);
    flex-wrap: wrap;
    gap: 10px 18px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
  }
  .menu-toggle { display: inline-grid; place-items: center; }
  .header-inner { gap: 14px; }
  .brand { min-width: 0; }
  .brand-copy { display: none; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .cost-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 28px;
  }
  .price-badge { width: 226px; }
  .price-badge strong { font-size: 40px; }
  .service-grid { gap: 18px; }
  .cost-cards { gap: 14px; }
  .voice-card { grid-template-columns: 96px 1fr; }
  .voice-card img { width: 96px; height: 132px; }
}

@media (max-width: 768px) {
  body { min-width: 0; }
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 44px 0; }
  .voice-image-container {
    width: calc(100% - 32px);
    max-width: none;
  }
  .voice-section-image--pc {
    display: none;
  }
  .voice-section-image--sp {
    display: none;
  }
  .voice-mobile-scroll-wrap {
    position: relative;
    display: block;
  }
  .voice-mobile-scroll-wrap::after {
    content: "›";
    position: absolute;
    top: calc(50% - 14px);
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 107, 50, .46);
    color: #fff;
    font-size: 30px;
    line-height: 31px;
    text-align: center;
    pointer-events: none;
  }
  .voice-mobile-scroll {
    position: relative;
    display: flex;
    gap: 12px;
    width: 100%;
    padding: 0 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .voice-mobile-scroll::-webkit-scrollbar {
    display: none;
  }
  .voice-mobile-scroll-dots {
    display: block;
    margin: 8px 0;
    color: var(--green);
    font-size: 12px;
    line-height: 1;
    text-align: center;
    letter-spacing: 2px;
  }
  .voice-mobile-scroll-image {
    flex: 0 0 72%;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    scroll-snap-align: start;
  }
  .site-header { overflow: visible; }
  .header-inner {
    height: 64px;
    gap: 8px;
    justify-content: space-between;
  }
  .brand {
    flex: 0 1 auto;
    min-width: 0;
  }
  .brand-mark {
    width: clamp(78px, 24vw, 96px);
    height: auto;
  }
  .header-actions {
    flex: 0 0 auto;
    gap: 7px;
  }
  .header-actions .btn {
    display: inline-flex;
    min-height: 38px;
    padding: 0 10px;
    gap: 5px;
    font-size: 11px;
    white-space: nowrap;
  }
  .header-actions .line-icon {
    width: 20px;
    height: 20px;
    font-size: 9px;
  }
  .menu-toggle {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }
  .main-nav {
    inset: 64px 0 auto;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    padding: 10px 14px 16px;
    align-content: start;
  }
  .main-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .main-nav a {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfa;
    font-size: 13px;
    line-height: 1.35;
  }
  .main-nav a::after { display: none; }

  .hero {
    min-height: auto;
    background-image: linear-gradient(90deg, rgba(0, 27, 24, .76), rgba(0, 43, 28, .38) 48%, rgba(0, 0, 0, .02)), url("assets/images/hero-mountain.png");
    background-size: cover;
    background-position: center;
  }
  .hero::after { height: 62%; }
  .hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 22px;
    padding: 46px 0 40px;
  }
  .hero-copy { min-width: 0; }
  .hero h1 {
    margin-bottom: 18px;
    max-width: 100%;
    font-size: clamp(30px, 7.8vw, 38px);
    line-height: 1.34;
    letter-spacing: .02em;
  }
  .hero-lead {
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.65;
  }
  .hero-text {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.85;
  }
  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
    max-width: 320px;
  }
  .hero-buttons .btn {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    font-size: 13px;
  }
  .price-badge {
    width: min(190px, 58vw);
    justify-self: start;
    margin-top: 0;
  }
  .price-badge strong { font-size: clamp(32px, 10vw, 40px); }
  .price-badge small { font-size: 11px; line-height: 1.55; }
  .price-badge hr { margin: 12px auto; }

  .section-title,
  .voice-title {
    margin-bottom: 24px;
    font-size: 23px;
    line-height: 1.45;
  }
  .section-lead {
    margin: -6px auto 24px;
    font-size: 13px;
    text-align: left;
  }
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .feature-card {
    min-height: 152px;
    padding: 16px 8px 14px;
  }
  .feature-card svg {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
  }
  .feature-card h3 {
    margin-bottom: 8px;
    font-size: clamp(10px, 2.7vw, 12px);
    line-height: 1.45;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  .feature-card p {
    font-size: 10px;
    line-height: 1.55;
  }

  .renewal-showcase {
    padding: 28px 0 24px;
  }
  .renewal-showcase-image {
    display: none;
  }
  .renewal-showcase-mobile {
    display: block;
  }
  .renewal-showcase .container {
    width: min(100% - 28px, 1180px);
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .service-card {
    min-height: 178px;
    padding: 20px 12px 15px;
    background: #fff;
  }
  .service-card:nth-child(2n) {
    background: #f8fbf7;
  }
  .service-card:nth-child(3n) {
    background: #fffaf2;
  }
  .service-card svg {
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
  }
  .service-card h3 { font-size: 13px; line-height: 1.45; }
  .service-price { font-size: 23px; }
  .service-price small { font-size: 11px; }
  .service-card p:not(.service-price) {
    min-height: 0;
    font-size: 11px;
    line-height: 1.55;
  }
  #service { padding-bottom: 28px; }

  .cost-inner { gap: 26px; }
  .cost-copy h2 { font-size: 24px; }
  .cost-copy p { font-size: 13px; }
  .legend {
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  .cost-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .nomiya-cost-graphs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .nomiya-cost-card {
    min-width: 0;
    padding: 14px 10px 12px;
  }
  .nomiya-cost-card h3 {
    font-size: 12px;
    white-space: nowrap;
  }
  .nomiya-cost-card:first-child {
    display: none;
  }
  .nomiya-cost-row-head {
    gap: 6px;
    font-size: 10px;
    white-space: nowrap;
  }
  .nomiya-cost-row-head strong {
    font-size: 10px;
    white-space: nowrap;
  }
  .nomiya-cost-track {
    height: 9px;
  }
  .nomiya-cost-diffs {
    gap: 8px;
    margin-top: 12px;
  }
  .nomiya-cost-diff {
    padding: 10px 6px;
  }
  .nomiya-cost-diff span,
  .nomiya-cost-diff em {
    font-size: 10px;
    white-space: nowrap;
  }
  .nomiya-cost-diff strong {
    font-size: clamp(17px, 5vw, 21px);
    white-space: nowrap;
  }
  .cost-content { gap: 14px; }
  .cost-table-card {
    padding: 16px 14px;
  }
  .cost-table-card h3 {
    margin-bottom: 12px;
    font-size: 15px;
  }
  .cost-table,
  .cost-table thead,
  .cost-table tbody,
  .cost-table tr,
  .cost-table th,
  .cost-table td {
    display: block;
  }
  .cost-table thead { display: none; }
  .cost-table tbody tr {
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #e2eae5;
    border-radius: 8px;
    background: #fff;
  }
  .cost-table tbody tr:last-child { margin-bottom: 0; }
  .cost-table tbody th {
    padding: 10px 12px;
    border: 0;
    background: var(--green);
    color: #fff;
    text-align: center;
  }
  .cost-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #edf2ee;
    text-align: right;
  }
  .cost-table tbody td::before {
    content: attr(data-label);
    color: #5d6c67;
    font-weight: 700;
    text-align: left;
  }
  .cost-table tbody td:last-child {
    border: 0;
    background: #edf7f1;
  }
  .cost-table-card.is-tabbed .cost-table {
    display: none;
  }
  .cost-table-card.is-tabbed .cost-table-mobile {
    display: grid;
  }
  .cost-card { padding: 18px 12px 16px; }
  .bars { height: 116px; }
  .bar { width: 54px; font-size: 10px; }
  .saving { font-size: 14px; }

  .works-grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: 2px 14px 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .work-card {
    flex: 0 0 min(82vw, 340px);
    scroll-snap-align: center;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .work-body { padding: 18px 16px 20px; }
  .blog-card-body { padding: 18px 16px 20px; }
  .work-body h3 { font-size: 16px; }
  .blog-card-body h2 { font-size: 16px; }
  .work-body p {
    min-height: 0;
    font-size: 12px;
  }
  .blog-card-body p {
    min-height: 0;
    font-size: 12px;
  }
  .work-detail-hero { padding-top: 28px; }
  .work-detail-copy h1 { font-size: 28px; }
  .work-detail-copy p { font-size: 13px; }
  .work-detail-grid { grid-template-columns: 1fr; }
  .blog-single-hero { padding: 38px 0 28px; }
  .blog-single h1 { font-size: 27px; }
  .blog-single-content {
    padding: 24px 18px;
    font-size: 14px;
  }
  .work-detail-grid article { padding: 20px 16px; }

  .voice-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .voice-mobile-slider {
    display: flex;
    gap: 14px;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: 2px 14px 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .voice-mobile-card {
    flex: 0 0 min(86vw, 360px);
    min-height: 270px;
    padding: 24px 22px;
    border: 1px solid #eef0ec;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    scroll-snap-align: center;
  }
  .voice-mobile-area {
    margin: 0 0 14px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
  }
  .voice-mobile-card h3 {
    margin: 0 0 16px;
    color: var(--green);
    font-size: 20px;
    line-height: 1.65;
  }
  .voice-mobile-card p:last-child {
    margin: 0;
    color: #354940;
    font-size: 13px;
    line-height: 1.9;
  }
  .voice-card {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
  }
  .voice-card img {
    width: 86px;
    height: 118px;
  }
  .voice-body { padding: 16px 12px 14px 0; }
  .voice-body h3 { font-size: 13px; }
  .voice-body p { font-size: 11px; }

  .cta { padding: 30px 0; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta h2 { font-size: 19px; line-height: 1.5; }
  .cta p { font-size: 12px; }
  .cta .btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { padding: 36px 0 28px; }
  .copy { text-align: left; }
  a.fixed-line-button {
    display: none !important;
    bottom: 12px;
    width: 80%;
    max-width: 300px;
    height: 50px;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(0, 107, 50, .18);
    font-size: 16px;
  }
  .to-top { bottom: 86px; }
  .modal { padding: 14px; }
  .modal-card { padding: 22px; }
  .modal-actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .container { width: min(100% - 24px, 1180px); }
  .header-inner { gap: 6px; }
  .brand-mark { width: 78px; }
  .header-actions .btn {
    min-height: 36px;
    padding: 0 8px;
    font-size: 10px;
  }
  .header-actions .line-icon { display: none; }
  .menu-toggle {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  .main-nav.is-open { grid-template-columns: 1fr; }
  .hero-inner { padding: 38px 0 34px; }
  .hero h1 { font-size: clamp(27px, 8vw, 32px); }
  .price-badge { width: min(176px, 56vw); }
  .feature-grid { gap: 7px; }
  .feature-card {
    min-height: 145px;
    padding: 14px 6px 12px;
  }
  .feature-card svg {
    width: 32px;
    height: 32px;
  }
  .feature-card p { font-size: 9.5px; }
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .service-card {
    min-height: 166px;
    padding: 17px 9px 13px;
  }
  .service-card svg {
    width: 40px;
    height: 40px;
  }
  .service-card h3 { font-size: 12px; }
  .service-price { font-size: 21px; }
  .service-card p:not(.service-price) { min-height: 42px; }
  .voice-card {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
  }
  .voice-card img {
    width: 78px;
    height: 112px;
  }
  .voice-body { padding: 14px 10px 12px 0; }
}

@media (max-width: 760px) {
  .hero {
    background-image: linear-gradient(90deg, rgba(0, 27, 24, .76), rgba(0, 43, 28, .38) 48%, rgba(0, 0, 0, .02)), url("assets/images/hero-mobile.jpg");
  }
}

@media (max-width: 768px) {
  .voice-card {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .voice-card img {
    width: 78px;
    height: 112px;
  }

  .to-top {
    display: none !important;
  }
}
