/* ============================================
   COMMON.CSS
   LP共通設定 / Reset / Design Tokens / Base / Utility
   guide.shosha-plus.com
   ============================================ */


/* ============================================
   MINIMAL RESET
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body,
h1, h2, h3, h4, h5, h6,
p,
ul, ol,
figure,
blockquote,
dl, dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

img {
  border-style: none;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}


/* ============================================
   ACCESSIBILITY / WORDPRESS BASICS
   ============================================ */
.skip-link,
a.screen-reader-shortcut,
a[href="#main_content"],
a[href="#content"] {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wp-block-html {
  margin: 0;
  padding: 0;
  max-width: 100%;
}

body.home .entry-title,
body.home .page-title,
body.page .entry-title {
  display: none;
}


/* admin bar offset */
body.admin-bar .lp-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .lp-header {
    top: 46px;
  }
}


/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Brand / Accent */
  --color-accent: #E2041B;        /* 猩々緋 */
  --color-accent-deep: #B80016;
  --color-accent-soft: #FCEBEC;

  /* Base */
  --color-bg: #FFFFFF;
  --color-bg-soft: #F8F6F1;
  --color-bg-beige: #F2EEE6;
  --color-bg-line: #E8E1D6;

  /* Text */
  --color-text: #1F2A37;          /* 墨紺 */
  --color-text-strong: #18212B;
  --color-text-muted: #5F6B76;
  --color-text-faint: #8A949E;

  /* UI */
  --color-border: rgba(31, 42, 55, 0.12);
  --color-border-strong: rgba(31, 42, 55, 0.18);
  --color-white: #FFFFFF;

  /* CTA */
  --color-cta: #1F2A37;
  --color-cta-hover: #E2041B;

  /* Support */
  --color-deep-green: #2F5B49;
  --color-gold: #B89A6A;

  /* Typography */
  --font-sans:
    "Noto Sans JP",
    "Hiragino Sans",
    "Yu Gothic",
    "YuGothic",
    sans-serif;

  --font-serif:
    "Noto Serif JP",
    "Hiragino Mincho ProN",
    "Yu Mincho",
    serif;

  --fz-hero: clamp(2rem, 4vw, 3.75rem);
  --lh-hero: 1.28;

  --fz-h1: clamp(1.9rem, 3vw, 3rem);
  --lh-h1: 1.35;

  --fz-h2: clamp(1.6rem, 2.2vw, 2.25rem);
  --lh-h2: 1.45;

  --fz-h3: 1.25rem;
  --lh-h3: 1.55;

  --fz-body-lg: 1.0625rem;
  --lh-body-lg: 2;

  --fz-body: 0.96875rem;
  --lh-body: 1.95;

  --fz-body-sm: 0.875rem;
  --lh-body-sm: 1.8;

  --fz-caption: 0.75rem;
  --lh-caption: 1.6;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;

  --ls-tight: -0.02em;
  --ls-normal: 0.02em;
  --ls-wide: 0.08em;

  /* Layout */
  --container: 1180px;
  --container-narrow: 960px;
  --container-wide: 1280px;

  --header-height: 76px;
  --section-space: 120px;
  --section-space-md: 88px;
  --section-space-sm: 64px;

  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 8px 24px rgba(24, 33, 43, 0.06);
  --shadow-md: 0 18px 48px rgba(24, 33, 43, 0.08);

  --transition: .3s ease;
}


/* ============================================
   BASE
   ============================================ */
html,
body {
  background: var(--color-bg);
}

body {
  font-family: var(--font-sans);
  font-size: var(--fz-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  opacity: 0;
  transition: opacity .6s ease;
}

body.is-loaded {
  opacity: 1;
}

body.is-lp-page {
  letter-spacing: 0.01em;
}

main {
  display: block;
}

section {
  position: relative;
}

p {
  color: var(--color-text-muted);
}

strong {
  font-weight: var(--fw-bold);
  color: var(--color-text-strong);
}

a {
  transition:
    color var(--transition),
    opacity var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

a:hover {
  opacity: 1;
}


/* ============================================
   TYPOGRAPHY
   ============================================ */
.t-hero,
.t-display,
.t-section-title {
  font-family: var(--font-serif);
  color: var(--color-text-strong);
  letter-spacing: var(--ls-tight);
}

.t-hero {
  font-size: var(--fz-hero);
  line-height: var(--lh-hero);
  font-weight: var(--fw-bold);
}

.t-display {
  font-size: var(--fz-h1);
  line-height: var(--lh-h1);
  font-weight: var(--fw-bold);
}

.t-section-title {
  font-size: var(--fz-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-bold);
}

.t-body-lg {
  font-size: var(--fz-body-lg);
  line-height: var(--lh-body-lg);
}

.t-body-sm {
  font-size: var(--fz-body-sm);
  line-height: var(--lh-body-sm);
}

.t-caption {
  font-size: var(--fz-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-wide);
}

.t-accent {
  color: var(--color-accent);
}

.t-muted {
  color: var(--color-text-muted);
}


/* ============================================
   LAYOUT
   ============================================ */
.l-container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.l-container--narrow {
  width: min(100% - 48px, var(--container-narrow));
  margin-inline: auto;
}

.l-container--wide {
  width: min(100% - 48px, var(--container-wide));
  margin-inline: auto;
}

.l-section {
  padding: var(--section-space) 0;
}

.l-section--soft {
  background: var(--color-bg-soft);
}

.l-section--beige {
  background: var(--color-bg-beige);
}

.l-section--dark {
  background: var(--color-text);
  color: var(--color-white);
}

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

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


/* ============================================
   COMMON COMPONENTS
   ============================================ */
.c-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.12em;
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  text-transform: uppercase;
}

.c-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: .65;
}

.c-section-head {
  text-align: center;
  margin-bottom: 56px;
}

.c-section-head__title {
  font-family: var(--font-serif);
  font-size: var(--fz-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-bold);
  color: var(--color-text-strong);
  letter-spacing: var(--ls-tight);
}

.c-section-head__lead {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: var(--fz-body);
  line-height: var(--lh-body);
  color: var(--color-text-muted);
}

.c-divider {
  width: 56px;
  height: 2px;
  margin: 20px auto 0;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
}

.c-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.7);
  color: var(--color-text);
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
}

.c-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: .04em;
  text-align: center;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.c-btn:hover {
  transform: translateY(-1px);
}

.c-btn--primary {
  background: var(--color-cta);
  color: var(--color-white);
  box-shadow: 0 10px 30px rgba(31, 42, 55, 0.14);
}

.c-btn--primary:hover {
  background: var(--color-cta-hover);
  color: var(--color-white);
}

.c-btn--secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.c-btn--secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.c-btn--white {
  background: var(--color-white);
  color: var(--color-text);
}

.c-btn--white:hover {
  background: var(--color-bg-soft);
}

.c-btn--sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.84rem;
}

.c-btn--lg {
  min-height: 62px;
  padding: 0 34px;
  font-size: 1rem;
}


/* ============================================
   SHARED FAQ
   ============================================ */
.c-faq {
  border-top: 1px solid var(--color-border);
}

.c-faq__item {
  border-bottom: 1px solid var(--color-border);
}

.c-faq__button {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  text-align: left;
}

.c-faq__question {
  font-size: 1rem;
  line-height: 1.8;
  font-weight: var(--fw-medium);
  color: var(--color-text-strong);
}

.c-faq__icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.c-faq__icon::before,
.c-faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--color-accent);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: transform var(--transition), opacity var(--transition);
}

.c-faq__icon::before {
  width: 18px;
  height: 2px;
}

.c-faq__icon::after {
  width: 2px;
  height: 18px;
}

.c-faq__button[aria-expanded="true"] .c-faq__icon::after {
  opacity: 0;
}

.c-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.c-faq__answer-inner {
  padding: 0 0 28px;
}

.c-faq__answer-inner p {
  color: var(--color-text-muted);
}


/* ============================================
   UTILITY
   ============================================ */
.u-center {
  text-align: center;
}

.u-right {
  text-align: right;
}

.u-accent {
  color: var(--color-accent);
}

.u-muted {
  color: var(--color-text-muted);
}

.u-serif {
  font-family: var(--font-serif);
}

.u-hidden {
  display: none !important;
}

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


/* ============================================
   REVEAL ANIMATION
   ============================================ */
.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .8s cubic-bezier(.22, .61, .36, 1),
    transform .8s cubic-bezier(.22, .61, .36, 1);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-reveal--left {
  transform: translateX(-36px);
}

.js-reveal--left.is-visible {
  transform: translateX(0);
}

.js-reveal--right {
  transform: translateX(36px);
}

.js-reveal--right.is-visible {
  transform: translateX(0);
}

.js-reveal--scale {
  transform: scale(.96);
}

.js-reveal--scale.is-visible {
  transform: scale(1);
}

.js-reveal--fade {
  transform: none;
}

.js-reveal--fade.is-visible {
  transform: none;
}


/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  body {
    opacity: 1 !important;
  }

  .js-reveal,
  .js-reveal--left,
  .js-reveal--right,
  .js-reveal--scale,
  .js-reveal--fade {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-space: 96px;
    --section-space-md: 72px;
  }

  .l-grid-2,
  .l-grid-3 {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 64px;
    --section-space: 72px;
    --section-space-md: 64px;
    --section-space-sm: 52px;
  }

  .l-container,
  .l-container--narrow,
  .l-container--wide {
    width: min(100% - 32px, var(--container));
  }

  .c-section-head {
    margin-bottom: 40px;
  }

  .c-section-head__lead {
    margin-top: 14px;
  }

  .c-btn {
    min-height: 52px;
    width: 100%;
    padding: 0 20px;
  }

  .c-btn--sm,
  .c-btn--lg {
    width: 100%;
  }

  .c-faq__button {
    gap: 16px;
    padding: 22px 0;
  }

  .c-faq__question {
    font-size: 0.95rem;
  }
}
