:root {
  --bg: #f6f0e3;
  --paper: #fffdf7;
  --paper-2: #fbf6ea;
  --ink: #2f2923;
  --muted: #5e564f;
  --line: #c8baa5;
  --line-strong: #9d8767;
  --accent: #8d4d27;
  --accent-soft: #efe1c4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#about,
#philosophy,
#contents,
#terms,
#exceptions,
#faq,
#top-download {
  scroll-margin-top: 72px;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", "MS PGothic", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45)),
    repeating-linear-gradient(
      0deg,
      rgba(120, 93, 63, 0.04),
      rgba(120, 93, 63, 0.04) 1px,
      transparent 1px,
      transparent 28px
    ),
    var(--bg);
}

a {
  color: #003399;
}

a:hover {
  color: #cc3300;
}

.page-shell {
  width: min(980px, calc(100% - 20px));
  margin: 0 auto;
  padding: 12px 0 40px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 252, 244, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: block;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  background: var(--accent-soft);
  object-fit: cover;
}

.brand-text {
  font-size: 0.98rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  min-width: 0;
  font-size: 0.92rem;
}

.site-nav a {
  text-decoration: underline;
}

.nav-cta {
  font-weight: 700;
}

.hero {
  margin-bottom: 14px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.info-strip,
.feature-grid,
.contents-layout,
.terms-grid {
  display: block;
}

.hero-copy,
.hero-visual,
.info-strip > div,
.section-box,
.content-item,
.spec-card,
.feature-card,
.terms-card,
.faq-list details,
.cta-section {
  background: var(--paper);
}

.hero-copy {
  padding: 16px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1,
.section-heading h2,
.cta-section h2 {
  margin: 0 0 12px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS PMincho", "Shippori Mincho", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.35;
  font-weight: 700;
}

.hero h1 {
  text-align: center;
}

html.is-windows body {
  font-family: "Noto Sans JP", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  font-weight: 500;
  color: #2b241e;
}

html.is-windows .hero h1,
html.is-windows .section-heading h2,
html.is-windows .cta-section h2 {
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "MS PMincho", serif;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #2a231d;
  -webkit-text-stroke: 0.15px currentColor;
}

html.is-windows .hero-lead strong,
html.is-windows .hero-points,
html.is-windows .hero-note,
html.is-windows .hero-lead,
html.is-windows .brand,
html.is-windows .button,
html.is-windows .site-nav a {
  font-weight: 700;
}

html.is-windows .hero-lead strong,
html.is-windows .button,
html.is-windows .brand {
  color: #2a231d;
}

html.is-windows .download-modal-card h2 {
  font-family: "Yu Gothic UI", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  color: #2b241e;
}

html.is-windows .download-modal-countline {
  font-family: "Yu Gothic UI", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

.hero-lead,
.hero-note,
.section-heading,
.feature-card p,
.content-item p,
.terms-card p,
.terms-card li,
.faq-list p,
.cta-section p,
.spec-note {
  color: var(--muted);
}

.hero-note {
  margin: 10px 0 0;
  font-size: 0.95rem;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
  justify-content: center;
}

.button {
  display: inline-block;
  min-width: 190px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  background: #fff9ee;
  color: #003399;
  text-decoration: underline;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
}

.button.primary {
  background: #fff1d6;
}

.button.secondary {
  background: #fffdf7;
}

.hero-points,
.spec-card ul,
.terms-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.hero-visual {
  padding: 8px 12px 10px;
  border-top: 1px solid var(--line);
}

.hero-samples {
  margin-top: 0;
}

.visual-card {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.card-main {
  margin-top: 0;
}

.card-label,
.visual-card p,
.spec-title {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.visual-card strong {
  font-size: 0.96rem;
  font-weight: 700;
}

.sample-switch {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.sample-row + .sample-row {
  margin-top: 10px;
}

.sample-row-label {
  margin: 0 0 2px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.sample-toggle {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  background: #fffaf0;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.sample-toggle.is-active {
  background: #f2dfba;
}

.sample-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
  align-items: start;
  overflow: hidden;
}

.sample-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  background: transparent;
  margin-left: 0;
  cursor: zoom-in;
  object-fit: contain;
}

.info-strip {
  margin: 0 0 16px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.info-strip > div {
  display: grid;
  gap: 4px;
  padding: 10px 14px;
}

.info-strip > div + div {
  border-top: 1px solid var(--line);
}

.info-label {
  display: block;
  font-weight: 700;
  color: var(--accent);
}

.info-strip strong {
  display: block;
  line-height: 1.5;
}

.section,
.cta-section {
  margin-top: 14px;
}

.section {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 14px;
}

.warm-panel {
  background: linear-gradient(180deg, #fffdf7, #fbf4e6);
}

.section-heading {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.feature-grid,
.contents-list,
.faq-list {
  display: grid;
  gap: 10px;
}

.updates-list {
  display: grid;
  gap: 0;
}

.updates-list p {
  margin: 0;
  padding: 14px 0;
  color: var(--muted);
}

.updates-list p + p {
  border-top: 1px solid rgba(157, 135, 103, 0.35);
}

.contents-layout,
.terms-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

#contents .contents-layout {
  grid-template-columns: 1fr;
}

.feature-card,
.content-item,
.spec-card,
.terms-card,
.faq-list details {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
}

.content-item p,
.terms-card p,
.terms-card li,
.faq-list p,
.faq-list summary {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.feature-number {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.feature-card h3,
.content-item h3,
.terms-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.terms-card.alert {
  background: #fff4e9;
}

.faq-list details {
  background: #fffefb;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin: 8px 0 0;
}

.cta-section {
  padding: 14px;
  border: 2px solid var(--line-strong);
  background: #fff7e7;
  text-align: center;
}

.support-section {
  background: #fffdf7;
}

.support-lead {
  margin: 0 0 12px;
  color: var(--muted);
  text-align: center;
}

.is-hidden {
  display: none;
}

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

.image-preview {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(36, 27, 18, 0.8);
}

.image-preview.is-hidden {
  display: none;
}

.image-preview-content {
  display: block;
  max-width: min(90vw, 1100px);
  max-height: 82vh;
  width: auto;
  height: auto;
  border: 1px solid rgba(255, 248, 232, 0.6);
  background: #fbf6ea;
}

.image-preview-switch {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
}

.image-preview-close {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  background: #fff7e7;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.image-preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  background: #fff7e7;
  color: var(--ink);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.image-preview-prev {
  left: 16px;
}

.image-preview-next {
  right: 16px;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(32, 28, 24, 0.58);
  backdrop-filter: blur(8px);
}

.download-modal.is-hidden {
  display: none;
}

.download-modal-countline {
  position: absolute;
  top: 18px;
  left: 26px;
  right: 70px;
  margin: 0;
  color: var(--accent);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-align: left;
}

.download-modal-card {
  position: relative;
  width: min(460px, calc(100% - 28px));
  min-height: 0;
  padding: 68px 26px 32px;
  border-radius: 14px;
  background: #fffdfa;
  box-shadow: 0 22px 48px rgba(20, 15, 12, 0.28);
  text-align: center;
}

.download-modal-copy,
.download-modal-status {
  margin: 0;
  color: var(--muted);
}

.download-modal-card h2 {
  margin: 22px 0 0;
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", "MS PGothic", sans-serif;
  color: var(--ink);
  font-size: 1.36rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
}

.download-modal-subtitle {
  margin: 22px 0 0;
  color: #8a8378;
  font-size: 1rem;
  font-weight: 700;
}

.download-modal-copy {
  max-width: 24em;
  margin: 22px auto 0;
  font-size: 1rem;
  line-height: 1.9;
}

.download-ad {
  position: relative;
  display: inline-block;
  margin-top: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}

.download-ad:hover {
  color: var(--ink);
}

.download-ad.is-disabled {
  cursor: default;
}

.download-ad.is-disabled:hover {
  background: transparent;
}

.download-ad-image {
  display: block;
  width: min(100%, 280px);
  margin: 0 auto;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(30, 24, 20, 0.14);
}

.download-ad-title {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
}

.download-ad-copy,
.download-ad-title,
.download-ad-button {
  text-align: left;
}

.download-ad-copy {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.download-ad-button {
  position: absolute;
  right: 0;
  bottom: -34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 14px;
  border: 1px solid #cbb79f;
  border-radius: 999px;
  background: #fff7ea;
  color: #7a5f47;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(120, 89, 58, 0.12);
}

.download-ad-button::after {
  content: "›";
  margin-left: 6px;
  font-size: 1rem;
  line-height: 1;
}

.download-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #8a8378;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.download-modal-close:hover {
  color: var(--ink);
}

@media (max-width: 760px) {
  .site-header {
    display: block;
  }

  .site-nav {
    margin-top: 8px;
  }

  .contents-layout,
  .terms-grid {
    grid-template-columns: 1fr;
  }

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

  .hero h1 {
    font-size: 1.65rem;
  }

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

  .download-modal-card {
    width: min(420px, calc(100% - 24px));
    min-height: 0;
    padding: 64px 18px 28px;
  }

  .download-modal-card h2 {
    font-size: 1.24rem;
  }

  .download-modal-close {
    top: 6px;
    right: 6px;
  }

  .download-modal-countline {
    top: 16px;
    left: 18px;
    right: 56px;
  }

  .download-ad-button {
    bottom: -30px;
  }
}
