@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap");

:root {
  --bg: #f8f7f2;
  --green: #43a047;
  --green-dark: #2e7d32;
  --green-soft: rgba(67, 160, 71, 0.12);
  --text: #2c2c2c;
  --muted: #5c5c5c;
  --card: #ffffff;
  --radius: 20px;
  --radius-sm: 16px;
  --shadow: 0 4px 24px rgba(44, 44, 44, 0.06);
  /* 內容區最大寬度隨視窗自適應（手機窄、桌機寬） */
  --content-max: min(1080px, calc(100vw - 2 * var(--pad)));
  --pad: clamp(16px, 4vw, 40px);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

a:hover {
  text-decoration: underline;
}

.site {
  min-height: 100vh;
}

.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(32px, 4vw, 56px);
}

/* ----- Header ----- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 8px;
  gap: 12px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.header__brand:hover {
  text-decoration: none;
  opacity: 0.9;
}

.header__logo-img {
  flex-shrink: 0;
  height: clamp(44px, 5.5vw, 64px);
  width: auto;
  max-width: min(200px, 55vw);
  object-fit: contain;
  object-position: left center;
  display: block;
}

.header__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 8px;
}

.header__nav a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--green-soft);
}

.header__nav a:hover {
  background: rgba(67, 160, 71, 0.2);
  text-decoration: none;
}

.header__nav a.is-current {
  background: var(--green);
  color: #fff;
}

/* ----- Hero (home) ----- */
.hero {
  margin-top: 8px;
}

.hero__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__text {
  text-align: center;
  padding: 24px 0 8px;
}

.hero__h1 {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
}

.hero__lead {
  margin: 0 auto;
  font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
  color: var(--muted);
  line-height: 1.75;
  max-width: 52ch;
}

/* ----- Page hero (help / privacy) ----- */
.page-hero {
  text-align: center;
  padding: 12px 0 8px;
}

.page-hero__img {
  display: block;
  width: 100%;
  max-width: min(420px, 100%);
  margin: 0 auto 16px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-hero__h1 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.page-hero__sub {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.leaf-corner {
  display: flex;
  justify-content: flex-end;
  margin-bottom: -8px;
}

.leaf-corner svg {
  width: 72px;
  height: auto;
  color: var(--green);
  opacity: 0.35;
}

/* ----- Section titles ----- */
.sec-title {
  margin: 32px 0 16px;
  font-size: clamp(1.0625rem, 2vw, 1.35rem);
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

.sec-title:first-of-type {
  margin-top: 24px;
}

/* ----- Download (two QR parallel) ----- */
.download {
  margin-top: 28px;
}

.download__intro {
  margin: 0 0 18px;
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  font-weight: 600;
  text-align: center;
  line-height: 1.65;
  color: var(--text);
}

.download__row {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: stretch;
  max-width: min(560px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.download__cell {
  flex: 1 1 0;
  min-width: 0;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 12px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(67, 160, 71, 0.1);
}

.download__platform {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--green);
}

.download__qr {
  display: block;
  width: 100%;
  max-width: 168px;
  height: auto;
  margin: 0 auto 12px;
  border-radius: 10px;
}

.download__store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
}

.download__store svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* ----- Feature cards ----- */
.features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(67, 160, 71, 0.08);
}

.feature__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  color: var(--green);
}

.feature__icon svg {
  width: 22px;
  height: 22px;
}

.feature__body {
  font-size: 0.9375rem;
  font-weight: 600;
  padding-top: 2px;
}

/* ----- Flow（2×2 グリッド） ----- */
.flow {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.flow__step {
  text-align: center;
  padding: 12px 8px;
}

.flow__num {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.flow__icon {
  margin: 0 auto 6px;
  color: var(--green);
}

.flow__icon svg {
  width: 28px;
  height: 28px;
  display: block;
  margin: 0 auto;
}

.flow__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

/* ----- FAQ accordion ----- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq details {
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid rgba(67, 160, 71, 0.08);
  overflow: hidden;
}

.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.faq__icon {
  flex-shrink: 0;
  color: var(--green);
}

.faq__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.faq__a {
  padding: 0 16px 16px 50px;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ----- Contact card (help) ----- */
.contact-card {
  margin-top: 28px;
  padding: 20px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(67, 160, 71, 0.1), rgba(67, 160, 71, 0.04));
  border: 1px solid rgba(67, 160, 71, 0.15);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-card__icon {
  flex-shrink: 0;
  color: var(--green);
}

.contact-card__body {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
}

.contact-card__body a {
  font-weight: 600;
}

/* ----- Privacy sections ----- */
.policy-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.policy-card {
  display: flex;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(67, 160, 71, 0.08);
}

.policy-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-soft);
  display: grid;
  place-items: center;
  color: var(--green);
}

.policy-card__icon svg {
  width: 20px;
  height: 20px;
}

.policy-card__title {
  margin: 0 0 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.policy-card__text {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.7;
}

.trust-banner {
  margin-top: 24px;
  padding: 18px 16px;
  border-radius: var(--radius);
  border: 2px solid var(--green);
  background: rgba(67, 160, 71, 0.06);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trust-banner svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--green);
}

.trust-banner p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.65;
}

/* ----- Footer ----- */
.footer {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(67, 160, 71, 0.15);
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
}

.footer__brand:hover {
  text-decoration: none;
  opacity: 0.85;
}

.footer__logo-img {
  height: clamp(52px, 7vw, 80px);
  width: auto;
  max-width: min(220px, 70vw);
  margin: 0 auto;
  object-fit: contain;
  display: block;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-bottom: 14px;
}

.footer__nav a {
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--green);
}

.footer__nav a:hover {
  text-decoration: underline;
}

.footer__copy {
  margin: 0;
  font-size: 0.6875rem;
  color: #888;
}

/* ----- Simple legal stub pages ----- */
.prose-simple {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 18px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.8;
  box-shadow: var(--shadow);
}

.prose-simple h1 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  color: var(--text);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- 平板／桌機：版面加寬與多欄 ----- */
@media (min-width: 768px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
  }

  .hero__text {
    text-align: left;
    padding: 12px 0;
  }

  .hero__lead {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .header__nav a {
    font-size: 0.875rem;
    padding: 8px 14px;
  }

  .features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
  }

  .feature__body {
    padding-top: 0;
  }

  .flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 24px);
    max-width: min(920px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .flow__label {
    font-size: 0.8125rem;
  }

  .download__row {
    max-width: min(640px, 100%);
    gap: 24px;
  }

  .download__cell {
    padding: 22px 20px 24px;
  }

  .faq summary {
    font-size: 0.9375rem;
    padding: 18px 20px;
  }

  .faq__a {
    font-size: 0.875rem;
    padding-left: 54px;
    padding-right: 24px;
  }

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

  .policy-card:nth-child(5) {
    grid-column: 1 / -1;
  }

  .page-hero__h1 {
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  }

  .page-hero__sub {
    font-size: 1rem;
    max-width: 56ch;
    margin-left: auto;
    margin-right: auto;
  }

  .prose-simple {
    padding: 28px 32px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .prose-simple h1 {
    font-size: 1.35rem;
  }
}

@media (min-width: 1100px) {
  :root {
    --content-max: min(1120px, calc(100vw - 2 * var(--pad)));
  }

  .download__row {
    max-width: min(720px, 100%);
  }
}

