:root{
  --terracotta:#DD8862;
  --terracotta-deep:#C46B49;
  --cream:#FBF6EC;
  --paper:#FFFDF8;
  --maroon:#5B2118;
  --maroon-soft:#7A3A2A;
  --yellow:#F5CB00;
  --teal:#3FA79E;
  --purple:#A78BD9;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family:"Noto Sans JP", sans-serif;
  background:var(--cream);
  color:var(--maroon);
  overflow-x:hidden;
}

/* ---------- page scroll progress bar ---------- */
.page-progress{
  position:fixed;
  top:0; left:0;
  width:100%;
  height:4px;
  background:rgba(91,33,24,0.08);
  z-index:9999;
}
.page-progress-bar{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, #1FC4E0, #FF7A1A);
  box-shadow:0 0 6px rgba(31,196,224,0.45);
}

.hero{
  display:grid;
  grid-template-columns:44% 56%;
  min-height:100vh;
}

/* ---------- LEFT: illustration panel ---------- */
.hero-visual{
  position:relative;
  background:var(--terracotta);
  overflow:hidden;
  min-height:480px;
}
.hero-visual svg,
.hero-visual img{
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  object-fit:cover;
}
.hero-visual svg{ z-index:1; }
.hero-visual img{ z-index:2; }
.texture-dot{
  fill:rgba(255,255,255,0.10);
}

/* ---------- RIGHT: text panel ---------- */
.hero-text{
  background:var(--cream);
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:6vw 6vw 6vw 5vw;
  position:relative;
}

.arrow-line{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:2.2rem;
}
.arrow-line .dots{
  flex:1;
  height:2px;
  background-image:radial-gradient(circle, var(--maroon-soft) 1.4px, transparent 1.6px);
  background-size:9px 2px;
  background-repeat:repeat-x;
  opacity:0.55;
}
.arrow-line svg{ flex-shrink:0; }
.arrow-line.left-arrow{ flex-direction:row-reverse; }

.eyebrow{
  font-family:"Klee One", cursive;
  font-weight:600;
  font-size:clamp(0.95rem, 1.4vw, 1.15rem);
  color:var(--teal);
  letter-spacing:0.06em;
  margin-bottom:0.9rem;
}

.headline{
  font-family:"Zen Maru Gothic", sans-serif;
  font-weight:900;
  font-size:clamp(2.1rem, 4.6vw, 3.6rem);
  line-height:1.35;
  color:var(--maroon);
  margin-bottom:1.8rem;
  letter-spacing:0.01em;
}
.headline .accent{
  color:var(--terracotta-deep);
}

.badge-row{
  display:flex;
  align-items:flex-end;
  gap:0.9rem;
  margin-bottom:1.9rem;
  flex-wrap:wrap;
}
.badge-label{
  font-family:"Noto Sans JP", sans-serif;
  font-size:1rem;
  color:var(--maroon-soft);
  opacity:0.7;
  margin-bottom:0.35rem;
}
.badge{
  background:var(--yellow);
  border-radius:16px;
  padding:0.85rem 1.6rem;
  font-family:"Zen Maru Gothic", sans-serif;
  font-weight:900;
  font-size:clamp(1.7rem, 3vw, 2.3rem);
  color:var(--maroon);
  box-shadow:4px 5px 0 rgba(91,33,24,0.12);
  line-height:1;
  white-space:nowrap;
  display:inline-block;
  transform-origin:50% 100%;
  animation:furufuru 3.4s ease-in-out infinite;
}
@keyframes furufuru{
  0%, 55%, 100%{ transform:rotate(0deg); }
  59%{ transform:rotate(-7deg); }
  63%{ transform:rotate(7deg); }
  67%{ transform:rotate(-6deg); }
  71%{ transform:rotate(6deg); }
  75%{ transform:rotate(-4deg); }
  79%{ transform:rotate(4deg); }
  83%{ transform:rotate(-2deg); }
  87%{ transform:rotate(2deg); }
  91%, 100%{ transform:rotate(0deg); }
}
@media (prefers-reduced-motion: reduce){
  .badge{ animation:none; }
}
.badge-suffix{
  font-family:"Klee One", cursive;
  font-weight:600;
  font-size:clamp(1.2rem, 2vw, 1.55rem);
  color:var(--maroon-soft);
  transform:rotate(-3deg);
  padding-bottom:0.3rem;
}

.lede{
  font-size:clamp(0.95rem, 1.15vw, 1.05rem);
  line-height:2;
  color:var(--maroon-soft);
  max-width:34rem;
  margin-bottom:2.6rem;
}

.cta-row{
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
  margin-bottom:2.4rem;
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:0.55rem;
  font-family:"Noto Sans JP", sans-serif;
  font-weight:700;
  font-size:0.95rem;
  padding:0.85rem 1.6rem;
  border-radius:999px;
  text-decoration:none;
  transition:transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary{
  background:var(--maroon);
  color:var(--paper);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 8px 18px rgba(91,33,24,0.25); }
.btn-outline{
  background:transparent;
  color:var(--maroon);
  border:1.5px solid var(--maroon);
}
.btn-outline:hover{ transform:translateY(-2px); box-shadow:0 8px 18px rgba(91,33,24,0.12); }
.btn svg{ width:18px; height:18px; flex-shrink:0; }

@media (max-width: 860px){
  .hero{ grid-template-columns:1fr; }
  .hero-visual{ min-height:112vw; }
  .hero-text{ padding:10vw 7vw; }
  .headline{ font-size:2.1rem; }
}

/* ---------- shared section chrome ---------- */
section{ padding:6.5rem 6vw; }
.section-inner{ max-width:1080px; margin:0 auto; }
.section-eyebrow{
  font-family:"Klee One", cursive;
  font-weight:600;
  font-size:1rem;
  color:var(--teal);
  text-align:center;
  margin-bottom:0.7rem;
}
.section-heading{
  font-family:"Zen Maru Gothic", sans-serif;
  font-weight:900;
  font-size:clamp(1.6rem, 3.2vw, 2.4rem);
  color:var(--maroon);
  text-align:center;
  line-height:1.5;
  margin-bottom:3.5rem;
}
.section-heading .accent{ color:var(--terracotta-deep); }

/* ---------- 2: お悩み / できること ---------- */
.needs{ background:var(--paper); }
.needs-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1.1rem;
  margin-bottom:3.2rem;
}
.needs-card{
  background:var(--cream);
  border:1.5px dashed var(--terracotta);
  border-radius:18px;
  padding:1.5rem 1.6rem;
  font-size:0.98rem;
  line-height:1.75;
  color:var(--maroon-soft);
  position:relative;
}
.needs-card::before{
  content:"？";
  font-family:"Zen Maru Gothic", sans-serif;
  font-weight:900;
  color:var(--terracotta);
  font-size:1.4rem;
  margin-right:0.4rem;
}
.needs-divider{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1rem;
  margin:0 0 3rem;
}
.needs-divider .dots{
  width:min(220px,25vw);
  height:2px;
  background-image:radial-gradient(circle, var(--maroon-soft) 1.4px, transparent 1.6px);
  background-size:9px 2px;
  background-repeat:repeat-x;
  opacity:0.5;
}
.needs-divider span.label{
  font-family:"Klee One", cursive;
  font-weight:600;
  font-size:1.05rem;
  color:var(--maroon);
  white-space:nowrap;
}
.can-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1.2rem;
}
.can-card{
  background:var(--cream);
  border-radius:18px;
  padding:1.8rem 1.4rem;
  text-align:center;
  box-shadow:3px 4px 0 rgba(91,33,24,0.06);
}
.can-icon{
  width:52px; height:52px;
  border-radius:14px;
  margin:0 auto 1rem;
  display:flex; align-items:center; justify-content:center;
}
.can-title{
  font-family:"Zen Maru Gothic", sans-serif;
  font-weight:700;
  font-size:0.98rem;
  color:var(--maroon);
  margin-bottom:0.5rem;
  line-height:1.5;
}
.can-desc{
  font-size:0.82rem;
  line-height:1.7;
  color:var(--maroon-soft);
  opacity:0.85;
}

/* ---------- 1: 実績 / ポートフォリオ ---------- */
.career{ background:var(--cream); }
.timeline{
  position:relative;
  max-width:640px;
  margin:0 auto 4.5rem;
  padding-left:2.2rem;
}
.timeline-line-wrap{
  position:absolute;
  left:9px; top:6px; bottom:6px;
  width:2px;
}
.timeline-track{
  position:absolute;
  inset:0;
  background-image:radial-gradient(circle, var(--terracotta) 1.6px, transparent 1.8px);
  background-size:2px 10px;
  background-repeat:repeat-y;
  opacity:0.22;
}
.timeline-fill{
  position:absolute;
  left:0; top:0;
  width:100%;
  height:0%;
  overflow:hidden;
  background-image:radial-gradient(circle, var(--terracotta) 1.6px, transparent 1.8px);
  background-size:2px 10px;
  background-repeat:repeat-y;
  background-position:top;
}
.t-item{
  position:relative;
  padding-bottom:2.3rem;
}
.t-item:last-child{ padding-bottom:0; }
.t-item::before{
  content:"";
  position:absolute;
  left:-2.2rem; top:2px;
  width:20px; height:20px;
  border-radius:50%;
  background:var(--yellow);
  border:3px solid var(--cream);
  box-shadow:0 0 0 2px var(--terracotta);
}
.t-tag{
  font-family:"Zen Maru Gothic", sans-serif;
  font-weight:700;
  font-size:0.92rem;
  color:var(--terracotta-deep);
  margin-bottom:0.3rem;
}
.t-desc{
  font-size:0.92rem;
  line-height:1.75;
  color:var(--maroon-soft);
}
.portfolio-heading{
  font-family:"Zen Maru Gothic", sans-serif;
  font-weight:700;
  font-size:1.15rem;
  text-align:center;
  color:var(--maroon);
  margin-bottom:2.2rem;
}
.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.4rem;
}
.p-card{
  background:var(--paper);
  border-radius:18px;
  overflow:hidden;
  box-shadow:4px 5px 0 rgba(91,33,24,0.08);
}
.p-thumb{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  display:block;
  background:var(--terracotta);
}
.p-thumb-placeholder{
  width:100%;
  aspect-ratio:4/3;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--paper);
  font-family:"Zen Maru Gothic", sans-serif;
  font-weight:700;
  font-size:0.95rem;
  text-align:center;
  padding:1rem;
  position:relative;
  overflow:hidden;
}
.p-body{ padding:1.1rem 1.3rem 1.4rem; }
.p-cat{
  font-size:0.72rem;
  font-weight:700;
  color:var(--teal);
  margin-bottom:0.4rem;
}
.p-thumb-placeholder::after{
  content:"Coming Soon";
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(91,33,24,0.72);
  color:rgba(255,253,248,0.6);
  font-family:"Zen Maru Gothic", sans-serif;
  font-weight:900;
  font-size:1.6rem;
  letter-spacing:0.03em;
  opacity:0;
  transition:opacity 0.25s ease;
  pointer-events:none;
}
.p-thumb-placeholder:hover::after{
  opacity:1;
}
.p-title{
  font-family:"Zen Maru Gothic", sans-serif;
  font-weight:700;
  font-size:0.98rem;
  color:var(--maroon);
  line-height:1.5;
}

/* ---------- 3: Instagram ---------- */
.insta{ background:var(--terracotta); }
.insta .section-eyebrow{ color:var(--yellow); }
.insta .section-heading{ color:var(--paper); }
.insta-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1rem;
  margin-bottom:2.8rem;
}
.insta-post{
  aspect-ratio:1/1;
  border-radius:16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0.4rem;
  box-shadow:3px 4px 0 rgba(0,0,0,0.1);
  transform-origin:50% 100%;
}
.insta-post:hover{
  animation:dokun-insta 1.2s ease-in-out infinite;
}
@keyframes dokun-insta{
  0%{ transform:scale(1); }
  50%{ transform:scale(1.045); }
  100%{ transform:scale(1); }
}
@media (prefers-reduced-motion: reduce){
  .insta-post:hover{ animation:none; }
}
.insta-post .term{
  font-family:"Zen Maru Gothic", sans-serif;
  font-weight:900;
  font-size:1.5rem;
}
.insta-post .kicker{
  font-family:"Klee One", cursive;
  font-size:0.72rem;
}
.insta-cta{
  text-align:center;
}
.insta-cta p{
  font-size:0.95rem;
  color:var(--paper);
  opacity:0.9;
  margin-bottom:1.5rem;
}

/* ---------- 4: お問い合わせ ---------- */
.contact{ background:var(--paper); text-align:center; }
.contact .section-heading{ margin-bottom:1.2rem; }
.contact p{
  font-size:0.98rem;
  line-height:1.9;
  color:var(--maroon-soft);
  max-width:32rem;
  margin:0 auto 2.4rem;
}
.contact-card{
  display:inline-flex;
  align-items:center;
  gap:0.7rem;
  background:var(--cream);
  border-radius:999px;
  padding:1.1rem 2.2rem;
  font-family:"Zen Maru Gothic", sans-serif;
  font-weight:700;
  color:var(--maroon);
  text-decoration:none;
  box-shadow:4px 5px 0 rgba(91,33,24,0.1);
  transition:transform 0.18s ease;
}
.contact-card:hover{ transform:translateY(-2px); }
.contact-card svg{ width:20px; height:20px; }

footer{
  text-align:center;
  padding:5rem 6vw 5rem;
  font-size:0.78rem;
  color:var(--maroon-soft);
  opacity:0.6;
  background:var(--paper);
}

@media (max-width: 860px){
  section{ padding:4.5rem 6vw; }
  .needs-grid{ grid-template-columns:1fr; }
  .can-grid{ grid-template-columns:repeat(2,1fr); }
  .portfolio-grid{ grid-template-columns:1fr; }
  .insta-grid{ grid-template-columns:repeat(2,1fr); }
}
