/* ====================================
   HP作成代行サービス LP - Style Sheet
   ==================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Colors */
  --color-base: #FFFFFF;
  --color-off-white: #FAFAF8;
  --color-bg-light: #F5F3F0;
  --color-bg-warm: #FDF8F4;
  --color-terracotta: #C4654A;
  --color-terracotta-dark: #A8503A;
  --color-terracotta-light: rgba(196, 101, 74, 0.1);
  --color-mustard: #D4A843;
  --color-mustard-light: rgba(212, 168, 67, 0.12);
  --color-text: #2D2A26;
  --color-text-light: #6B6560;
  --color-text-muted: #9B9590;
  --color-border: #E8E4E0;

  /* Typography */
  --font-body: 'Noto Sans JP', sans-serif;
  --font-accent: 'Zen Maru Gothic', sans-serif;

  /* Spacing */
  --section-padding: 64px 0;
  --container-padding: 0 20px;
  --container-max: 960px;

  /* Misc */
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(45, 42, 38, 0.08);
  --shadow-lg: 0 8px 40px rgba(45, 42, 38, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 72px;
  /* sticky CTA space */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-terracotta);
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

.text-accent {
  color: var(--color-terracotta);
}

.sp-only {
  display: inline;
}

/* ---------- Section Title ---------- */
.section-title {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 60px;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--color-terracotta);
  color: #fff;
  font-size: 1.05rem;
  padding: 16px 36px;
  box-shadow: 0 4px 16px rgba(196, 101, 74, 0.35);
}

.btn--primary:hover {
  background: var(--color-terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196, 101, 74, 0.45);
}

.btn--cta {
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-terracotta-dark));
  color: #fff;
  font-size: 1.15rem;
  padding: 20px 48px;
  box-shadow: 0 6px 24px rgba(196, 101, 74, 0.4);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.btn--cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(196, 101, 74, 0.5);
}

.btn--sticky {
  background: var(--color-terracotta);
  color: #fff;
  font-size: 0.95rem;
  padding: 14px 32px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 -2px 20px rgba(196, 101, 74, 0.3);
}

.btn--sticky:hover {
  background: var(--color-terracotta-dark);
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 6px 24px rgba(196, 101, 74, 0.4);
  }

  50% {
    box-shadow: 0 6px 36px rgba(196, 101, 74, 0.6);
  }
}

/* ====================================
   1. ファーストビュー (Hero)
   ==================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('images/hero-bg.png') center/cover no-repeat;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(45, 42, 38, 0.35) 0%,
      rgba(45, 42, 38, 0.55) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
  max-width: 640px;
}

.hero__title {
  font-family: var(--font-accent);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero__title--accent {
  color: var(--color-mustard);
  font-size: 1.1em;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero__price,
.hero__speed {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.2em;
  color: var(--color-mustard);
}

.hero__btn {
  margin-top: 8px;
}

/* ====================================
   2. 共感セクション (Empathy)
   ==================================== */
.empathy {
  padding: var(--section-padding);
  background: var(--color-bg-light);
}

.empathy__list {
  max-width: 600px;
  margin: 0 auto 32px;
}

.empathy__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  line-height: 1.7;
}

.empathy__item:last-child {
  border-bottom: none;
}

.empathy__icon {
  flex-shrink: 0;
  color: var(--color-terracotta);
  font-size: 1.1rem;
  margin-top: 2px;
}

.empathy__closing {
  text-align: center;
  font-family: var(--font-accent);
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ====================================
   3. 解決策 (Solution)
   ==================================== */
.solution {
  padding: var(--section-padding);
  background: var(--color-base);
}

.solution__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.solution__text {
  font-size: 0.95rem;
  line-height: 2;
}

.solution__text p {
  margin-bottom: 16px;
}

.solution__image {
  position: relative;
}

.solution__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 260px;
  margin: 0 auto;
}

/* ====================================
   3.5 制作実績ショーケース (Showcase)
   ==================================== */
.showcase {
  padding: var(--section-padding);
  background: var(--color-bg-light);
}

.showcase__grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.showcase__phone {
  text-align: center;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.showcase__phone:hover {
  transform: translateY(-6px);
}

.showcase__phone-frame {
  position: relative;
  width: 160px;
  height: 320px;
  background: #1A1A1A;
  border-radius: 28px;
  padding: 8px 7px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), inset 0 0 0 1.5px #333;
  overflow: hidden;
}

.showcase__phone-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 16px;
  background: #1A1A1A;
  border-radius: 0 0 10px 10px;
  z-index: 2;
}

.showcase__phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-base);
}

.showcase__phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  animation: showcasePan 6s ease-in-out infinite;
}

.showcase__phone:nth-child(2) .showcase__phone-screen img {
  animation-delay: 2s;
}

.showcase__phone:nth-child(3) .showcase__phone-screen img {
  animation-delay: 4s;
}

@keyframes showcasePan {

  0%,
  15% {
    object-position: top center;
  }

  45%,
  55% {
    object-position: bottom center;
  }

  85%,
  100% {
    object-position: top center;
  }
}

.showcase__phone-home {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: #555;
  border-radius: 3px;
  z-index: 2;
}

.showcase__label {
  display: block;
  margin-top: 12px;
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-light);
}

.showcase__more {
  text-align: center;
  margin-top: 28px;
}

.showcase__more a {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-terracotta);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.showcase__more a:hover {
  opacity: 0.7;
}

/* ====================================
   4. 納得の理由 (Reasons)
   ==================================== */
.reasons {
  padding: var(--section-padding);
  background: var(--color-bg-warm);
}

.reasons__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.reasons__card {
  background: var(--color-base);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.reasons__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.reasons__card-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.reasons__card-title {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.reasons__card-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ====================================
   5. プロフィール (Profile)
   ==================================== */
.profile {
  padding: var(--section-padding);
  background: var(--color-base);
}

.profile__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.profile__photo img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-terracotta-light);
  box-shadow: 0 4px 24px rgba(196, 101, 74, 0.15);
}

.profile__letter {
  width: 100%;
}

.profile__letter-inner {
  background: var(--color-bg-warm);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  font-size: 0.95rem;
  line-height: 2;
  position: relative;
}

.profile__letter-inner::before {
  content: '✉';
  position: absolute;
  top: -16px;
  left: 24px;
  font-size: 1.8rem;
  background: var(--color-bg-warm);
  padding: 0 8px;
}

.profile__greeting {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-terracotta);
  margin-bottom: 8px;
}

.profile__letter-inner p {
  margin-bottom: 16px;
}

.profile__signature {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-terracotta);
  text-align: right;
  margin-top: 8px;
  font-style: italic;
}

/* ====================================
   6. サービス内容 (Service)
   ==================================== */
.service {
  padding: var(--section-padding);
  background: var(--color-bg-light);
}

.service__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

.service__card {
  background: var(--color-base);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.service__card--main {
  border: 2px solid var(--color-terracotta);
}

.service__card--main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-mustard));
}

.service__card-badge {
  display: inline-block;
  background: var(--color-terracotta);
  color: #fff;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.service__card-badge--option {
  background: var(--color-mustard);
}

.service__card-price {
  font-family: var(--font-accent);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
}

.service__card-price-num {
  font-size: 2.4rem;
  color: var(--color-terracotta);
  letter-spacing: -0.02em;
}

.service__card-features {
  list-style: none;
}

.service__card-features li {
  padding: 8px 0;
  font-size: 0.93rem;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.6;
}

.service__card-features li:last-child {
  border-bottom: none;
}

/* Semi-order */
.service__semi-order {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 40px;
}

/* Flow */
.service__flow {
  margin-bottom: 40px;
}

.service__flow-title {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}

.service__flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.service__flow-step {
  text-align: center;
  flex-shrink: 0;
}

.service__flow-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-terracotta);
  color: #fff;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

.service__flow-label {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text);
}

.service__flow-label small {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.service__flow-arrow {
  color: var(--color-terracotta);
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: -16px;
}

/* Notes */
.service__notes {
  background: var(--color-base);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--color-border);
}

.service__notes-title {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text-light);
}

.service__notes-list li {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.service__notes-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
}

/* ====================================
   7. FAQ
   ==================================== */
.faq {
  padding: var(--section-padding);
  background: var(--color-base);
}

.faq__list {
  max-width: 700px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-accent);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  line-height: 1.6;
  transition: var(--transition);
}

.faq__question:hover {
  color: var(--color-terracotta);
}

.faq__icon {
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--color-terracotta);
  transition: var(--transition);
  font-weight: 400;
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__answer-inner {
  padding: 0 4px 20px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

/* ====================================
   8. クロージング CTA
   ==================================== */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg,
      var(--color-bg-warm) 0%,
      #FFF5EE 50%,
      var(--color-bg-warm) 100%);
  text-align: center;
}

.cta__title {
  font-family: var(--font-accent);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 20px;
}

.cta__text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 24px;
}

.cta__limit {
  font-family: var(--font-accent);
  font-size: 1rem;
  color: var(--color-terracotta);
  margin-bottom: 28px;
}

.cta__note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ====================================
   Footer
   ==================================== */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.6);
  padding: 32px 0 24px;
  text-align: center;
  font-size: 0.8rem;
}

.footer__links {
  margin-bottom: 12px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer__links a:hover {
  color: #fff;
}

.footer__sep {
  margin: 0 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* ====================================
   Sticky CTA
   ==================================== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

/* ====================================
   Scroll Animation
   ==================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====================================
   Desktop (768px+)
   ==================================== */
@media (min-width: 768px) {
  .sp-only {
    display: none;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .hero__title {
    font-size: 2.4rem;
  }

  .hero__subtitle {
    font-size: 1.15rem;
  }

  .solution__content {
    flex-direction: row;
    gap: 48px;
  }

  .solution__text {
    flex: 1;
  }

  .solution__image img {
    max-width: 300px;
  }

  .reasons__grid {
    grid-template-columns: 1fr 1fr;
  }

  .profile__content {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .profile__photo {
    flex-shrink: 0;
  }

  .service__cards {
    grid-template-columns: 1fr 1fr;
  }

  .cta__title {
    font-size: 2rem;
  }
}

/* ====================================
   Large Desktop (1024px+)
   ==================================== */
@media (min-width: 1024px) {
  :root {
    --container-max: 1040px;
  }

  .hero__title {
    font-size: 2.8rem;
  }

  .reasons__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}