:root {
  --ink: #25211f;
  --muted: #68615c;
  --paper: #faf8f4;
  --white: #ffffff;
  --line: #ddd7cf;
  --orange: #e86f2d;
  --orange-dark: #b84b17;
  --teal: #167b7a;
  --yellow: #f2bc3d;
  --rose: #c95465;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.section-inner { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section-block { padding: 96px 0; }
.narrow { max-width: 860px; }
.section-kicker { margin: 0 0 12px; color: var(--orange-dark); font-size: .78rem; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.3; }
h2 { margin-bottom: 24px; font-size: 2.65rem; }
h3 { font-size: 1.15rem; }
.section-intro { max-width: 740px; margin-bottom: 42px; color: var(--muted); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 10px max(20px, calc((100% - var(--max)) / 2));
  background: rgba(250, 248, 244, .96);
  border-bottom: 1px solid rgba(37, 33, 31, .1);
}
.brand img { width: 180px; height: auto; }
.header-actions, .cta-row { display: flex; gap: 10px; align-items: center; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-phone, .button-primary { color: var(--white); background: var(--orange); }
.button-phone:hover, .button-primary:hover { background: var(--orange-dark); }
.button-outline { color: var(--ink); border-color: var(--ink); }
.button-outline:hover { color: var(--white); background: var(--ink); }

.hero { position: relative; min-height: 78svh; overflow: hidden; color: var(--white); }
.hero-media, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { object-fit: cover; object-position: center; }
.hero-shade { background: rgba(24, 18, 15, .61); }
.hero-content { position: relative; z-index: 1; display: flex; min-height: 78svh; flex-direction: column; justify-content: center; padding-block: 72px; }
.eyebrow { margin-bottom: 14px; color: #ffe3a2; font-size: .82rem; font-weight: 800; }
.hero h1 { max-width: 780px; margin-bottom: 22px; font-size: 4.8rem; }
.hero-lead { max-width: 720px; margin-bottom: 30px; font-size: 1.08rem; font-weight: 600; }
.button-light { color: var(--ink); background: var(--white); }
.button-light:hover { background: #f2eee7; }
.cta-note { margin: 12px 0 0; font-size: .82rem; }

.problem {
  position: relative;
  overflow: hidden;
  padding-top: 86px;
  background: #fffaf3;
}
.problem::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,250,243,.96) 0%, rgba(255,250,243,.88) 48%, rgba(255,250,243,.72) 100%),
    url("../images/detail-craft.webp") right center / cover no-repeat;
  content: "";
}
.problem::after {
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(232, 111, 45, .25);
  border-radius: 50%;
  content: "";
}
.problem .section-inner { position: relative; z-index: 1; }
.problem h2 { max-width: 720px; margin-bottom: 18px; }
.problem-lead {
  max-width: 780px;
  margin-bottom: 36px;
  color: var(--muted);
  font-weight: 700;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.problem-grid p {
  position: relative;
  min-height: 150px;
  margin: 0;
  padding: 34px 28px 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(221, 215, 207, .9);
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(58, 42, 31, .08);
  font-weight: 800;
  backdrop-filter: blur(8px);
  animation: problem-card-in .72s ease both;
}
.problem-grid p:nth-child(2) { animation-delay: .06s; }
.problem-grid p:nth-child(3) { animation-delay: .12s; }
.problem-grid p:nth-child(4) { animation-delay: .18s; }
.problem-grid p:nth-child(5) { animation-delay: .24s; }
.problem-grid p:nth-child(6) { animation-delay: .30s; }
.problem-grid p::before {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 22px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(22, 123, 122, .1);
  content: "";
}
.problem-grid p::after {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: rgba(232, 111, 45, .18);
  content: "WRAPI";
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.about { background: #edf5f3; }
.split-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.section-copy p { color: #4e4a46; }
.feature-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.feature-image figcaption { margin-top: 10px; color: var(--muted); font-size: .8rem; }

.cases { background: var(--paper); }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.case-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.case-card-wide { display: grid; grid-column: 1 / -1; grid-template-columns: 1.2fr 1fr; }
.case-card-wide img { height: 100%; aspect-ratio: auto; }
.case-body { padding: 28px; }
.case-body h3 { margin-bottom: 10px; font-size: 1.3rem; }
.case-body h3 a { text-decoration-color: rgba(232, 111, 45, .45); text-underline-offset: 4px; }
.case-body h3 a:hover { color: var(--orange-dark); }
.case-body p:last-child { margin-bottom: 0; color: var(--muted); }
.case-tag { margin-bottom: 8px; color: var(--rose); font-size: .75rem; font-weight: 800; }

.reasons { background: var(--white); }
.reasons h2 { max-width: 760px; }
.reason-list { margin: 42px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.reason-list li { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.reason-list li > span { color: var(--orange); font-size: 2rem; font-weight: 800; }
.reason-list h3 { margin-bottom: 6px; font-size: 1.3rem; }
.reason-list p { margin-bottom: 0; color: var(--muted); }

.trust { color: var(--white); background: #242b2a; }
.trust .section-kicker { color: #66c7bf; }
.trust-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.trust-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.trust-list { margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.2); }
.trust-list li { display: grid; grid-template-columns: minmax(190px, .9fr) 1.4fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.trust-list strong { color: #ffd578; }
.trust-list span { color: #d6dcda; }

.flow { background: #f6eadf; }
.flow-list { display: grid; grid-template-columns: repeat(5, 1fr); margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid #cbb9aa; border-bottom: 1px solid #cbb9aa; }
.flow-list li { min-height: 210px; padding: 26px 20px; border-right: 1px solid #cbb9aa; }
.flow-list li:last-child { border-right: 0; }
.flow-list span, .flow-list strong { display: block; }
.flow-list span { margin-bottom: 26px; color: var(--orange-dark); font-size: .72rem; font-weight: 800; }
.flow-list strong { margin-bottom: 8px; font-size: 1.08rem; }
.flow-list p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }

.faq { background: var(--white); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 46px 22px 4px; cursor: pointer; font-weight: 800; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; right: 8px; content: "+"; color: var(--orange); font-size: 1.6rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 42px 24px 4px; color: var(--muted); }

.final-cta { padding: 100px 0; color: var(--ink); background: var(--yellow); }
.final-cta-inner { max-width: 920px; text-align: center; }
.final-cta .section-kicker { color: #5d4511; }
.final-cta .cta-row { justify-content: center; margin-top: 28px; }
.button-dark-outline { border-color: var(--ink); }
.button-dark-outline:hover { color: var(--white); background: var(--ink); }
.phone-number { margin: 24px 0 0; font-size: 1.35rem; font-weight: 800; }
.phone-number small { display: block; margin-top: 2px; font-size: .72rem; font-weight: 600; }

.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 32px max(20px, calc((100% - var(--max)) / 2)); background: var(--paper); }
.site-footer img { width: 160px; height: auto; }
.site-footer p { margin: 0; color: var(--muted); font-size: .82rem; }
.mobile-cta { display: none; }

@media (max-width: 900px) {
  h2 { font-size: 2.15rem; }
  .hero h1 { font-size: 3.8rem; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .split-layout, .trust-layout { grid-template-columns: 1fr; gap: 40px; }
  .flow-list { grid-template-columns: repeat(2, 1fr); }
  .flow-list li { border-bottom: 1px solid #cbb9aa; }
  .flow-list li:nth-child(2n) { border-right: 0; }
  .flow-list li:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  body { padding-bottom: 66px; }
  .section-inner { width: min(calc(100% - 28px), var(--max)); }
  .section-block { padding: 68px 0; }
  h2 { font-size: 1.8rem; }
  .desktop-only { display: none; }
  .site-header { min-height: 62px; padding: 8px 14px; }
  .brand img { width: 136px; }
  .header-actions { display: none; }
  .hero, .hero-content { min-height: 72svh; }
  .hero-media { object-position: 62% center; }
  .hero-content { justify-content: flex-end; padding-block: 72px 46px; }
  .hero h1 { margin-bottom: 18px; font-size: 2.75rem; }
  .hero-lead { font-size: .95rem; }
  .hero .cta-row { align-items: stretch; flex-direction: column; }
  .hero .button { width: 100%; }
  .problem { padding-top: 58px; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-grid p { min-height: auto; padding: 24px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card-wide { display: block; grid-column: auto; }
  .case-body { padding: 22px; }
  .reason-list li { grid-template-columns: 54px 1fr; gap: 10px; padding: 24px 0; }
  .reason-list li > span { font-size: 1.35rem; }
  .trust-list li { grid-template-columns: 1fr; gap: 3px; }
  .flow-list { grid-template-columns: 1fr; }
  .flow-list li, .flow-list li:nth-child(2n) { min-height: auto; border-right: 0; border-bottom: 1px solid #cbb9aa; }
  .final-cta { padding: 72px 0; }
  .final-cta .cta-row { align-items: stretch; flex-direction: column; }
  .final-cta .button { width: 100%; }
  .phone-number { font-size: 1.08rem; }
  .site-footer { flex-direction: column; gap: 16px; padding: 28px 20px; }
  .mobile-cta { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 1fr; min-height: 66px; box-shadow: 0 -4px 18px rgba(0,0,0,.18); }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; padding: 10px 8px; color: var(--white); background: var(--orange); font-weight: 800; text-decoration: none; }
  .mobile-cta a + a { background: var(--teal); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .problem-grid p { animation: none; }
}

@keyframes problem-card-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
