/*
Theme Name: 刺繍先輩 Learning
Theme URI: https://learn.kinarie.jp
Author: 刺繍先輩
Description: 刺しゅうPROとミシン刺繍のテキスト販売案内に特化した軽量テーマです。
Version: 0.3.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: shishusenpai
*/

:root {
  --ss-ink: #211b2d;
  --ss-muted: #625b69;
  --ss-paper: #fffaf2;
  --ss-surface: #f7f1ff;
  --ss-line: #211b2d;
  --ss-brand: #8f72e8;
  --ss-brand-dark: #6d50c9;
  --ss-purple: #a98cf2;
  --ss-purple-soft: #e5d9ff;
  --ss-yellow: #ffe56b;
  --ss-orange: #ff855f;
  --ss-green: #9adf7b;
  --ss-blue: #82d4ed;
  --ss-accent: #ff855f;
  --ss-white: #fff;
  --ss-radius: 24px;
  --ss-shadow: 8px 8px 0 var(--ss-ink);
  --ss-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ss-ink);
  background: var(--ss-paper);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--ss-brand-dark); text-underline-offset: .18em; }
a:hover { color: var(--ss-brand); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--ss-accent); outline-offset: 3px; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 12px;
  padding: 10px 14px;
  background: var(--ss-white);
  z-index: 10000;
}
.ss-wrap { width: min(calc(100% - 40px), var(--ss-width)); margin-inline: auto; }
.ss-narrow { width: min(calc(100% - 40px), 760px); margin-inline: auto; }
.ss-section { padding: clamp(64px, 8vw, 112px) 0; }
.ss-section--soft { background: var(--ss-purple-soft); }
.ss-section--yellow { background: var(--ss-yellow); }
.ss-section--orange { background: var(--ss-orange); }
.ss-section--green { background: var(--ss-green); }
.ss-section--purple { background: var(--ss-purple); }
.ss-eyebrow {
  margin: 0 0 12px;
  display: inline-flex;
  padding: 6px 12px;
  border: 1.5px solid var(--ss-ink);
  border-radius: 999px;
  background: var(--ss-paper);
  color: var(--ss-ink);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.ss-title {
  max-width: 780px;
  margin: 0 0 24px;
  font-size: clamp(2.4rem, 6vw, 5.3rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.ss-heading {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: -.03em;
}
.ss-lead { max-width: 720px; color: var(--ss-muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.ss-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ss-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 2px solid var(--ss-ink);
  border-radius: 16px;
  background: var(--ss-yellow);
  color: var(--ss-white);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ss-ink);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.ss-button:hover { background: var(--ss-orange); border-color: var(--ss-ink); color: var(--ss-ink); transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ss-ink); }
.ss-button--ghost { background: var(--ss-paper); color: var(--ss-ink); }
.ss-button--ghost:hover { color: var(--ss-ink); }
.ss-note { color: var(--ss-muted); font-size: .88rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--ss-ink);
  background: rgba(255, 250, 242, .95);
  backdrop-filter: blur(12px);
}
.site-header__inner { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { color: var(--ss-ink); font-size: 1.12rem; font-weight: 750; letter-spacing: .04em; text-decoration: none; }
.site-brand span { display: block; color: var(--ss-muted); font-size: .66rem; font-weight: 600; letter-spacing: .06em; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ss-ink); font-weight: 700; }
.primary-menu { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { color: var(--ss-ink); font-size: .92rem; font-weight: 700; text-decoration: none; }
.primary-menu a:hover { color: var(--ss-brand-dark); text-decoration: underline 3px var(--ss-orange); }

.ss-hero { position: relative; padding: clamp(76px, 10vw, 132px) 0; overflow: hidden; background: var(--ss-purple); border-bottom: 2px solid var(--ss-ink); }
.ss-hero::before,
.ss-hero::after {
  content: "";
  position: absolute;
  border: 2px solid var(--ss-ink);
  border-radius: 50%;
  pointer-events: none;
}
.ss-hero::before { width: 190px; height: 190px; right: -50px; top: 50px; background: var(--ss-yellow); }
.ss-hero::after { width: 110px; height: 110px; left: 42%; bottom: -62px; background: var(--ss-green); }
.ss-hero--orange { background: var(--ss-orange); }
.ss-hero--yellow { background: var(--ss-yellow); }
.ss-hero--green { background: var(--ss-green); }
.ss-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: center; gap: clamp(36px, 7vw, 96px); }
.ss-hero__visual {
  position: relative;
  min-height: 410px;
  border: 2px solid var(--ss-ink);
  border-radius: 48% 52% 44% 56% / 54% 42% 58% 46%;
  background: var(--ss-green);
  box-shadow: var(--ss-shadow);
  display: grid;
  place-items: center;
  padding: 34px;
  transform: rotate(2deg);
}
.ss-book {
  width: min(260px, 80%);
  aspect-ratio: 3 / 4;
  padding: 34px 28px;
  border: 2px solid var(--ss-ink);
  border-radius: 8px 22px 22px 8px;
  background: var(--ss-yellow);
  box-shadow: 10px 12px 0 rgba(33, 27, 45, .9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-5deg);
}
.ss-book strong { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; }
.ss-book small { color: var(--ss-ink); font-weight: 800; }

.ss-marquee {
  overflow: hidden;
  border-bottom: 2px solid var(--ss-ink);
  background: var(--ss-yellow);
  white-space: nowrap;
}
.ss-marquee__track {
  width: max-content;
  padding: 12px 0;
  color: var(--ss-ink);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: .06em;
  animation: ss-marquee 28s linear infinite;
}
@keyframes ss-marquee { to { transform: translateX(-50%); } }

.ss-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 38px; }
.ss-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ss-card {
  position: relative;
  border: 2px solid var(--ss-line);
  border-radius: var(--ss-radius);
  background: var(--ss-paper);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: 6px 6px 0 var(--ss-ink);
}
.ss-grid > .ss-card:nth-child(2n) { transform: translateY(20px) rotate(1deg); }
.ss-grid > .ss-card:nth-child(3n) { transform: rotate(-1deg); }
.ss-card h2, .ss-card h3 { margin-top: 0; line-height: 1.45; }
.ss-card p:last-child { margin-bottom: 0; }
.ss-card__label { color: var(--ss-brand-dark); font-size: .8rem; font-weight: 800; letter-spacing: .08em; }
.ss-card__price { margin: 18px 0; font-size: 1.6rem; font-weight: 850; }
.ss-list { padding-left: 1.25em; }
.ss-list li + li { margin-top: 8px; }
.ss-steps { counter-reset: step; display: grid; gap: 18px; padding: 0; list-style: none; }
.ss-steps li { position: relative; padding: 22px 22px 22px 70px; border: 2px solid var(--ss-line); border-radius: 20px; background: var(--ss-paper); }
.ss-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ss-purple);
  color: var(--ss-white);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.ss-faq { border-top: 2px solid var(--ss-line); }
.ss-faq details { border-bottom: 2px solid var(--ss-line); padding: 20px 0; }
.ss-faq summary { cursor: pointer; font-weight: 750; }
.ss-faq details p { color: var(--ss-muted); }
.ss-disclaimer { padding: 22px; border: 2px solid var(--ss-ink); border-radius: 18px; background: var(--ss-yellow); font-size: .9rem; }

.entry-header { padding: 72px 0 36px; }
.entry-content { padding-bottom: 90px; }
.entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--ss-width); }
.entry-content h2 { margin-top: 2.3em; line-height: 1.4; }

.site-footer { padding: 56px 0; border-top: 2px solid var(--ss-line); background: var(--ss-purple); }
.site-footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 16px 24px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { color: var(--ss-muted); font-size: .88rem; }
.site-footer small { color: var(--ss-muted); }

@media (max-width: 800px) {
  .ss-hero__grid, .ss-grid, .ss-grid--3, .site-footer__grid { grid-template-columns: 1fr; }
  .ss-wrap, .ss-narrow { width: min(calc(100% - 28px), var(--ss-width)); }
  .ss-section { padding: 68px 0; }
  .ss-title { font-size: clamp(2.65rem, 13vw, 4.5rem); }
  .ss-heading { font-size: clamp(2rem, 9vw, 3rem); }
  .ss-hero { padding-top: 52px; }
  .ss-hero::before { width: 96px; height: 96px; top: 34px; right: -30px; }
  .ss-hero::after { left: 12%; }
  .ss-hero__visual { min-height: 330px; margin: 12px 8px 12px 0; }
  .ss-grid { gap: 34px; }
  .ss-grid > .ss-card:nth-child(n) { transform: none; }
  .menu-toggle { display: inline-flex; min-height: 44px; align-items: center; }
  .site-nav { display: none; position: absolute; top: 82px; left: 0; right: 0; padding: 18px 20px 24px; border-bottom: 2px solid var(--ss-line); background: var(--ss-yellow); }
  .site-nav.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-menu a { display: block; padding: 11px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .ss-marquee__track { animation: none; }
}
