
/* ========================================
   1. Color and typography variables
   ======================================== */

:root {
  --neutral-yellow: #F1DA92;
  --accent-line: #FD9804;
  --deep-charcoal: #001E2F;
  --subtle-text: #AC533C;
  --highlight-gold: #F9DF31;

  --page-background: #FFFEFA;
  --surface-background: #FFFFFF;
  --faq-background: #F7F0E2;
  --border-color: #E4D9C0;

  --font-jp-system:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    "メイリオ",
    sans-serif;

  --text-color: var(--deep-charcoal);
  --muted-color: #604B43;

  --font-size-body: 1.125rem;
  --font-size-small: 1rem;
  --font-size-heading: clamp(1.75rem, 5vw, 2.125rem);

  --line-height-body: 1.8;
  --reading-width: 40em;

  --page-padding: 1.25rem;
  --section-gap: 3rem;

  --radius-small: 0.5rem;
  --radius-medium: 0.75rem;
}


/* ========================================
   2. Reset and base styles
   ======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--page-background);
  color: var(--text-color);
  font-family: var(--font-jp-system);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  overflow-wrap: break-word;
  line-break: strict;
}

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

a {
  color: inherit;
}

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

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-line);
  outline-offset: 4px;
}

::selection {
  color: var(--deep-charcoal);
  background: var(--highlight-gold);
}


/* ========================================
   3. Main page structure
   ======================================== */

.page-shell {
  width: 100%;
  min-height: 100vh;
  margin-inline: auto;
  background: var(--page-background);
}

main {
  width: 100%;
  max-width: calc(var(--reading-width) + 2 * var(--page-padding));
  margin-inline: auto;
  padding-inline: var(--page-padding);
}

.section-block {
  margin-block: var(--section-gap);
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--deep-charcoal);
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: var(--font-size-heading);
}

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 4.5vw, 1.875rem);
}

p {
  margin-bottom: 1.25rem;
}

.eyebrow {
  margin-bottom: 0.5rem;
  color: var(--subtle-text);
  font-size: var(--font-size-small);
  font-weight: 750;
  letter-spacing: 0.06em;
}

.eyebrow::before {
  display: block;
  width: 2rem;
  height: 4px;
  margin-bottom: 0.65rem;
  background: var(--accent-line);
  content: "";
}


/* ========================================
   4. Header
   ======================================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  min-height: 4rem;
  padding: 0.75rem var(--page-padding);

  background: var(--neutral-yellow);
  border-bottom: 2px solid var(--border-color);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  text-decoration: none;
}

.brand-mark {
  color: var(--deep-charcoal);
  font-size: 1.5rem;
  line-height: 1;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.brand-logo {
  height: 1.5rem;
  width: auto;
}

.header-label {
  color: var(--deep-charcoal);
  font-size: var(--font-size-small);
  font-weight: 650;
}


/* ========================================
   5. Introduction
   ======================================== */

.intro {
  padding-top: 0.25rem;
}

.intro-text {
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.85;
}

.intro-detail {
  color: var(--muted-color);
}


/* ========================================
   6. FAQ accordion
   ======================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  overflow: clip;
  border: 1px solid transparent;
  border-radius: var(--radius-medium);
  background: var(--faq-background);
}

.faq-item[open] {
  border-color: var(--border-color);
  background: #F9E8B9;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;

  min-height: 3.5rem;
  padding: 0.875rem 1rem;

  color: var(--deep-charcoal);
  font-weight: 700;
  line-height: 1.6;

  list-style: none;
  cursor: pointer;
  touch-action: manipulation;
}

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

.faq-question {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  min-width: 0;
}

.faq-number {
  flex: 0 0 auto;
  white-space: nowrap;
}

.faq-icon {
  position: relative;
  flex: 0 0 0.75rem;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.2rem;
}

.faq-icon::before,
.faq-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 0.6rem;
  height: 2px;

  background: var(--deep-charcoal);
  border-radius: 2px;
  content: "";

  transform: translate(-50%, -50%);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  padding: 0 1rem 1rem;
}

.faq-answer p {
  margin-bottom: 0;
  line-height: 1.85;
}


/* ========================================
   7. SNS section
   This block is independent of the FAQ.
   Move the HTML section wherever you need it.
   ======================================== */

.sns-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;

  margin-block: var(--section-gap);
  padding: 1.5rem;

  border: 1px solid var(--border-color);
  border-radius: var(--radius-medium);
  background: #FAF0D3;
}

.sns-copy h2 {
  margin-bottom: 0.75rem;
}

.sns-copy p:last-child {
  margin-bottom: 0;
}

.sns-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

.sns-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  min-width: 48px;
  min-height: 48px;

  border: 2px solid transparent;
  border-radius: 50%;

  color: #FFFFFF;
  font-size: 1.125rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;

  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.sns-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgb(0 30 47 / 18%);
}

.sns-link:active {
  transform: scale(0.96);
}

/* SNS brand colors */
.sns-x {
  background: #001E2F;
  font-size: 1.5rem;
}

.sns-instagram {
  background: #B52B72;
  font-size: 0.9rem;
}

.sns-youtube {
  background: #B42323;
  font-size: 1.25rem;
}

.sns-line {
  background: #146B37;
  font-size: 0.75rem;
}

.sns-facebook {
  background: #1459A6;
  font-size: 1.75rem;
}


/* ========================================
   8. Footer
   ======================================== */

.site-footer {
  padding: 1rem var(--page-padding);
  background: var(--neutral-yellow);
  border-top: 2px solid var(--border-color);
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--deep-charcoal);
  font-size: 0.875rem;
  line-height: 1.7;
}


/* ========================================
   9. Landscape phones and tablets
   ======================================== */

@media (orientation: landscape) and (max-height: 600px) {
  :root {
    --page-padding: 1rem;
    --section-gap: 1.75rem;
  }

  .site-header {
    min-height: 3.25rem;
    padding-block: 0.25rem;
  }

  .brand {
    min-height: 2.75rem;
  }

  .section-block {
    margin-block: var(--section-gap);
  }

  .intro-text {
    font-size: 1.125rem;
  }

  .sns-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem;
  }

  .sns-copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .sns-links {
    flex: 0 1 auto;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .sns-link {
    flex-basis: 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
  }
}


/* ========================================
   10. Reduced motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}