/* Design tokens */
:root {
  --blue: #8f6b46;
  --blue-strong: #735537;
  --ink: #33281d;
  --muted: #66584b;
  --card: #ffffff;
  --white-92: rgba(255, 255, 255, 0.94);
  --line-soft: #e9e1d6;
  --line-card: #e3d7c8;
  --line-hover: #d6c5af;
  --line-nav: #e9dfd2;
  --line-nav-hover: #d8c7b2;
  --blue-tint: #fbf7f1;
  --blue-accent-soft: #c8b299;
  --header-shadow: 0 4px 12px rgba(91, 69, 41, 0.05);
  --nav-shadow: 0 2px 6px rgba(91, 69, 41, 0.03);
  --nav-shadow-hover: 0 4px 10px rgba(91, 69, 41, 0.06);
  --hero-shadow: 0 10px 24px rgba(91, 69, 41, 0.05);
  --card-shadow: 0 4px 12px rgba(91, 69, 41, 0.05);
  --card-shadow-hover: 0 8px 18px rgba(91, 69, 41, 0.08);
  --media-inset-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: #fcfaf7;
}

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

.page {
  overflow: hidden;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: var(--white-92);
  border-bottom: 1px solid rgba(227, 215, 200, 0.95);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.site-brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 4px;
  background: #fffdfa;
  border: 1px solid var(--line-card);
  box-shadow: var(--header-shadow);
}

.site-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.site-brand__name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav__link {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--blue-strong);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--line-nav);
  background: #fffdfa;
  box-shadow: var(--nav-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.site-nav__link:hover {
  transform: translateY(-1px);
  border-color: var(--line-nav-hover);
  box-shadow: var(--nav-shadow-hover);
}

/* Hero */
.hero {
  padding: 28px 20px 12px;
  background: transparent;
}

.hero-gallery {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 28px;
  box-shadow: var(--hero-shadow);
  border: 1px solid var(--line-soft);
}

/* Shared sections */
.section-shell {
  position: relative;
  background: #fffdf8;
  border-top-left-radius: 50% 52px;
  border-top-right-radius: 50% 52px;
  margin-top: 12px;
  padding: 40px 0 34px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin: 0 0 24px;
  color: var(--blue);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.04em;
}

.section-title::before,
.section-title::after {
  content: "・・・・";
  color: var(--blue-accent-soft);
  font-size: 26px;
  letter-spacing: 0.18em;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
}

.feature-card {
  padding: 22px 20px 18px;
  text-align: center;
}

.feature-media {
  width: 100%;
  aspect-ratio: 1.12;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-card);
  background: linear-gradient(180deg, var(--blue-tint), #fffdf8);
  margin: 0 auto 18px;
  box-shadow: var(--media-inset-shadow);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-card h3 {
  margin: 0;
  color: var(--blue-strong);
  font-weight: 900;
}

.feature-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.future-area {
  padding-top: 28px;
}

/* Link cards */
.link-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line-soft);
  background: #fffdf9;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--line-hover);
}

.link-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 8px;
  background: linear-gradient(180deg, var(--blue-tint), #fffdf8);
  border: 1px solid var(--line-card);
}

.link-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.link-card__text {
  min-width: 0;
}

.link-card__title {
  margin: 0 0 4px;
  color: var(--blue-strong);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

.link-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* CTA */
.cta {
  margin-top: 28px;
  background: linear-gradient(180deg, #d6b07f, #b7844d);
  color: #fff;
  padding: 28px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta-copy p {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.cta-copy h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.2;
}

.badge-placeholder {
  width: min(260px, 42vw);
  display: block;
}

.badge-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive */
@media (max-width: 1080px) {
  .site-header__inner {
    min-height: 68px;
  }

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

  .link-strip {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }

  .site-brand__name {
    font-size: 22px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav__link {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding: 14px 12px 8px;
  }

  .hero-gallery {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .container {
    width: min(100% - 24px, 1180px);
  }

  .section-shell {
    border-top-left-radius: 50% 28px;
    border-top-right-radius: 50% 28px;
    padding-top: 26px;
  }

  .section-title {
    gap: 12px;
  }

  .section-title::before,
  .section-title::after {
    font-size: 18px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    scroll-snap-align: start;
  }

  .link-card {
    align-items: flex-start;
  }

  .badge-placeholder {
    width: 100%;
  }
}

/* Support pages */
.support-main {
  padding: 32px 0 64px;
}

.policy-page {
  background: #f8f6f2;
}

.policy-main {
  max-width: 780px;
}

.policy-page .site-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
}

.policy-page .site-brand__name {
  font-size: 22px;
  font-weight: 800;
}

.support-card {
  margin-bottom: 16px;
  padding: 30px 32px 28px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(91, 69, 41, 0.04);
}

.policy-page .support-card {
  margin-bottom: 12px;
  padding: 26px 30px;
  border-radius: 8px;
  border-color: #ded6ca;
  box-shadow: none;
}

.support-card--accent {
  background: #fffdf9;
}

.policy-page .support-card--accent {
  background: #fffdfa;
}

.policy-list {
  margin: 0 0 14px;
  padding-left: 1.2em;
  color: var(--muted);
}

.policy-list li {
  line-height: 1.9;
}

.support-main .section-title {
  margin: 0 0 16px;
  justify-content: flex-start;
  gap: 0;
  text-align: left;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.3;
  color: var(--ink);
}

.policy-page .section-title {
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.policy-page h1.section-title {
  padding-bottom: 14px;
  border-bottom: 1px solid #e3dace;
  font-size: clamp(28px, 3vw, 32px);
}

.policy-page h2.section-title {
  font-size: clamp(21px, 2.4vw, 24px);
}

.support-main .section-title::before,
.support-main .section-title::after {
  content: none;
}

.support-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.95;
}

.policy-page .support-card p {
  font-size: 15px;
}

.section-copy {
  margin-bottom: 16px;
}

.note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.policy-page .note {
  font-size: 13px;
}

.policy-date {
  text-align: right;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-item {
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid var(--line-card);
  background: linear-gradient(180deg, var(--blue-tint), #fffdf8);
  box-shadow: var(--card-shadow);
  text-align: center;
}

.feature-list .feature-media {
  width: 100%;
  aspect-ratio: 1.12;
  margin: 0 auto 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-card);
  background: #ffffff;
  box-shadow: none;
}

.feature-list .feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.feature-item p {
  font-size: 15px;
}

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

.howto-item {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line-card);
  background: linear-gradient(180deg, #fffdf8, #f9f0e2);
}

.howto-image {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line-card);
  background: #ffffff;
  box-shadow: var(--hero-shadow);
}

.howto-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.howto-image-button img {
  width: 100%;
  height: auto;
}

.howto-text h3 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--ink);
}

.action-block {
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  background: #faf5ee;
  border: 1px solid var(--line-card);
  color: var(--blue-strong);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(91, 69, 41, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(91, 69, 41, 0.08);
}

.site-footer {
  padding: 28px 0 8px;
  text-align: center;
  color: var(--muted);
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.image-modal.is-open {
  display: block;
}

.image-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.72);
}

.image-modal__dialog {
  position: relative;
  width: min(92vw, 980px);
  margin: 5vh auto 0;
  padding: 20px 20px 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.image-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.image-modal__header h2 {
  margin: 0;
  font-size: 26px;
  color: var(--ink);
}

.image-modal__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue-strong);
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
}

.image-modal__preview {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
}

.image-modal__link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--blue-strong);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 960px) {
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .howto-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .support-main {
    padding-top: 18px;
  }

  .support-card {
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 16px;
  }

  .policy-page .support-card {
    padding: 20px 18px;
    border-radius: 6px;
  }

  .support-main .section-title {
    font-size: 28px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .site-nav__link,
  .btn {
    width: 100%;
    text-align: center;
  }

  .howto-text h3 {
    font-size: 22px;
  }

  .image-modal__dialog {
    width: min(94vw, 980px);
    margin-top: 4vh;
    padding: 16px;
  }
}

/* Blog page */
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue-tint);
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.quick-links a {
  padding: 11px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffdf9, #f8eedc);
  border: 1px solid var(--line-nav);
  color: var(--blue-strong);
  text-decoration: none;
  font-weight: 800;
  box-shadow: var(--nav-shadow);
}

.blog-main {
  padding-bottom: 56px;
}

.blog-hero-v2 {
  background: linear-gradient(180deg, #fffdf8, #fbf0df);
}

.blog-page-title {
  margin: 16px 0 12px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.16;
}

.blog-lead {
  margin: 0;
  color: var(--blue-strong);
  font-size: 20px;
  line-height: 1.8;
  font-weight: 700;
}

.blog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-card);
  background: #ffffff;
  color: var(--blue-strong);
  font-size: 14px;
  font-weight: 800;
}

.blog-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.blog-stat {
  padding: 18px 16px;
  border-radius: 22px;
  border: 1px solid var(--line-card);
  background: #ffffff;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.blog-stat strong {
  display: block;
  color: var(--blue);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.blog-stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

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

.blog-entry {
  padding: 22px 22px 20px;
  border-radius: 24px;
  border: 1px solid var(--line-card);
  background: linear-gradient(180deg, #ffffff, #f9fcff);
  box-shadow: var(--card-shadow);
}

.blog-entry__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.blog-entry__title {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.2;
}

.blog-entry__day {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--blue-tint);
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.blog-entry__meta {
  margin: 12px 0 8px;
  color: var(--blue-strong);
  font-size: 14px;
  font-weight: 800;
}

.blog-entry p {
  color: var(--muted);
  line-height: 1.8;
}

.blog-entry .btn {
  margin-top: 14px;
}

@media (max-width: 960px) {
  .blog-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .quick-links a {
    width: 100%;
    text-align: center;
  }

  .blog-summary {
    grid-template-columns: 1fr;
  }

  .blog-page-title {
    font-size: 38px;
  }

  .blog-entry__head {
    flex-direction: column;
  }
}
