/* ==========================================================
   受注サイト style.css
   DESIGN_SPEC.md 2章のデザイントークンに準拠
   ========================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f4;
  --color-text: #1a1a1a;
  --color-text-sub: #6b6b6b;
  --color-accent: #d6001c;
  --color-accent-dark: #a80016;
  --color-dark: #111111;
  --font-sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "BIZ UDPGothic", Meiryo, sans-serif;
  --max-width: 1080px;
  --section-pad: clamp(4rem, 10vw, 8rem);
}

/* ---------- リセット・基本 ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.is-scrolled {
  background: var(--color-bg);
  box-shadow: 0 1px 0 #e5e5e5;
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav__link {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--color-accent);
}

.nav__link--cta {
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav__link--cta:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--fill {
  background: var(--color-accent);
  color: #fff;
}

.btn--fill:hover {
  background: var(--color-accent-dark);
}

.btn--outline {
  border: 2px solid var(--color-text);
  color: var(--color-text);
}

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

.btn--wide {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn__arrow {
  transition: transform 0.2s ease;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 5rem;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5vw;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero__title-en {
  display: block;
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.hero__title-ja {
  display: block;
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 800;
  margin-top: 1rem;
  color: var(--color-accent);
}

.hero__lead {
  margin-top: 1.6rem;
  max-width: 34em;
  color: var(--color-text-sub);
}

.hero__actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__deco {
  position: absolute;
  right: -8%;
  bottom: -20%;
  width: clamp(280px, 40vw, 520px);
  z-index: 0;
}

/* ---------- セクション共通 ---------- */
.section {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}

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

.section--dark {
  background: var(--color-dark);
  color: #fff;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5vw;
}

.section__inner--narrow {
  max-width: 760px;
}

.section__note {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--color-text-sub);
}

.sec-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 3rem;
}

.sec-title__ja {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-top: 0.6rem;
}

.sec-title--light {
  color: #fff;
}

/* ---------- カード ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 2rem 1.6rem;
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: var(--color-accent);
}

.card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: 1.2rem;
}

.card__thumb {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1.2rem;
}

.card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  padding: 0.1rem 0.8rem;
  margin-bottom: 0.8rem;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.card__title small {
  font-size: 0.8em;
  font-weight: 700;
}

.card__text {
  font-size: 0.95rem;
  color: var(--color-text-sub);
}

.card--price {
  text-align: center;
}

.card__price {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin: 0.4rem 0;
}

.card__price span {
  font-size: 1.2rem;
}

/* ---------- Flow ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}

.flow__num {
  display: inline-block;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  border-bottom: 3px solid var(--color-accent);
  padding-bottom: 0.2rem;
  margin-bottom: 0.8rem;
}

.flow__title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.flow__text {
  font-size: 0.88rem;
  color: var(--color-text-sub);
}

.flow__notice {
  margin-top: 3rem;
  border: 2px solid var(--color-accent);
  border-radius: 12px;
  padding: 1.2rem 1.6rem;
  font-size: 1.05rem;
}

.flow__notice strong {
  color: var(--color-accent);
}

/* ---------- FAQ ---------- */
.faq {
  border-bottom: 1px solid #e5e5e5;
  padding: 1.2rem 0;
}

.faq__q {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 0;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform 0.2s ease;
}

.faq[open] .faq__q::after {
  transform: rotate(45deg);
}

.faq__a {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--color-text-sub);
}

/* ---------- Contact ---------- */
.contact__lead {
  margin-bottom: 2.5rem;
  color: #d5d5d5;
}

.form__field {
  margin-bottom: 1.6rem;
}

.form__label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form__required {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-accent);
  border-radius: 4px;
  padding: 0.05rem 0.5rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.form__input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 0.8rem 1rem;
}

.form__input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.form__input.is-invalid {
  border-color: var(--color-accent);
  outline: 2px solid var(--color-accent);
}

.form__select {
  appearance: none;
}

.form__textarea {
  resize: vertical;
}

.form__error {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ff8b98;
  margin-top: 0.4rem;
  min-height: 1.2em;
}

/* ---------- フッター ---------- */
.footer {
  background: var(--color-dark);
  color: #fff;
  border-top: 1px solid #2a2a2a;
  padding: 3rem 0;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5vw;
  text-align: center;
}

.footer__logo {
  font-weight: 800;
  font-size: 1.1rem;
}

.footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 1.4rem 0;
}

.footer__nav a {
  color: #b5b5b5;
  font-size: 0.85rem;
}

.footer__nav a:hover {
  color: #fff;
}

.footer__mail {
  font-size: 0.9rem;
  color: #b5b5b5;
}

.footer__copy {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #8a8a8a;
}

/* ---------- スクロール演出 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1024px) {
  .flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.2rem;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    display: none;
    align-items: center;
    justify-content: center;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__list {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .nav__link {
    font-size: 1.3rem;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

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

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

  .hero {
    min-height: 70vh;
  }
}

/* ---------- アニメーション抑制 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* 制作物カード（リンク）。2026-11-02 追加 */
[hidden] { display: none !important; }
a.card--work { display: block; color: var(--color-text, inherit); transition: border-color .2s, transform .2s; }
a.card--work:hover { border-color: var(--color-accent); transform: translateY(-2px); }
img.card__thumb { display: block; aspect-ratio: 1200 / 630; object-fit: cover; border: 1px solid #e5e5e5; }
.contact__x { text-align: center; }
.contact__x .btn { margin-top: 1rem; }