/* ===========================================================
   tonari. portfolio LP  —  base styles
   colors (no custom properties, beginner-friendly):
     text   #4B3B34 / #564841 / #6D605A
     cream  #FCFAD8  yellow #FFE299  yellow-lt #FFF2BE / #FFEFB0
     orange #EF6230  orange-lt #FC8E67  green #62D470
   fonts: "Zen Maru Gothic" (main), Inter (latin)
   =========================================================== */

/* keep anchor targets clear of the fixed header */
html { scroll-padding-top: 112px; }

body {
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  color: #4B3B34;
  background: #FCFAD8;
  font-size: 16px;
  overflow-x: hidden;
}

/* layout helper */
.inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.en-label {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* generic section heading block: big EN + small JP */
.sec-head { text-align: center; }
.sec-head .en {
  font-family: "Figtree", "Inter", sans-serif;
  font-weight: 700;
  font-size: 64px;
  color: #FFE299;
  line-height: 1;
  letter-spacing: 0.19em;
}
.sec-head .jp {
  font-size: 32px;
  font-weight: 700;
  margin-top: 8px;
}

/* primary pill button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #EF6230;
  color: #fff;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 50px;
  box-shadow: 0 6px 0 rgba(75,59,52,0.15);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 rgba(75,59,52,0.15); }

/* ===================== HEADER ===================== */
/* fixed bar: transparent over the hero, frosted background once scrolled.
   side padding ≈94px at the 1440 design width (Figma) and scales down on smaller screens. */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 50;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
/* full-bleed bar: logo/menu hug the viewport edges (94px), not centered in a 1440 cap */
.header-inner {
  margin: 0 auto;
  padding: 22px clamp(20px, 6.53vw, 94px);
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: inline-flex; line-height: 0; }
.logo img { width: 242px; height: auto; display: block; }
/* three-dot menu trigger (Figma: 5px dots, 9px on-center → 4px gap) */
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 12px; min-width: 44px; min-height: 44px; cursor: pointer;
}
.menu-toggle span {
  width: 5px; height: 5px; border-radius: 50%; background: #4B3B34; display: block;
  transition: transform .2s ease;
}
.menu-toggle:hover span  { transform: scale(1.3); }
.menu-toggle:active span { transform: scale(0.9); }
/* frosted background appears after scrolling away from the hero top */
.site-header.scrolled {
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(75,59,52,0.10);
}

/* ===================== HERO ===================== */
.hero {
  position: relative; overflow: hidden;
  background: #ffffff;
  min-height: 855px;
}
.hero .wave { position: absolute; z-index: 0; pointer-events: none; }
.wave-tl { top: 0; left: 0; width: 35%; }
.wave-tr { top: 0; right: 0; width: 32%; }
.wave-l  { top: 62%; left: 0; width: 4.5%; }
.wave-r  { top: 56%; right: 0; width: 4.5%; }

.hero-inner {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  padding: 257px 40px 64px;
}
.hero-main { position: relative; }
.hero-copy { position: relative; z-index: 2; }
.hero-title {
  font-size: 48px; font-weight: 500; line-height: 1.84;
  letter-spacing: 0.26em; color: #4B3B34; white-space: nowrap;
}
.hero-title .accent { color: #F67648; font-size: 56px; font-weight: 700; }
.hero-title .under {
  background: url(../assets/heading-underline.png) no-repeat center bottom;
  background-size: contain; padding-bottom: 32px;
}
.hero-tags { display: flex; gap: 14px; margin-top: 34px; }
.tag { padding: 9px 20px; border-radius: 10px; color: #4B3B34; font-size: 20px; font-weight: 700; background: transparent; }
.tag-green  { border: 2px solid #7DC86A; font-weight: 500; }
.tag-orange { border: 2px solid #EB9070; font-weight: 500; }
.tag-blue   { border: 2px solid #84C6DD; font-weight: 500; }
.hero-sub { margin-top: 18px; font-size: 20px; font-weight: 500; letter-spacing: 0.15em; line-height: 1.8; color: #4B3B34; }

.hero-figure { position: absolute; top: -49px; right: -28px; width: 638px; z-index: 1; }

.hero-cta { display: flex; gap: 26px; justify-content: flex-end; margin-top: 62px; }
.cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 30px; border-radius: 50px; color: #fff;
  font-weight: 700; font-size: 20px; letter-spacing: 0.17em;
  box-shadow: 0 4px 2px rgba(0,0,0,0.25);
  transition: opacity 0.2s, transform 0.2s;
}
.cta:hover { opacity: 0.85; transform: translateY(-2px); }
.cta-orange { background: #FC8E67; }
.cta-green  { background: #62D470; }
.cta-arrow {
  position: relative;
  width: 24px; height: 24px; border-radius: 50%; background: #fff; flex-shrink: 0;
  display: inline-flex; font-size: 0;
}
/* chevron as an SVG mask: matches Figma's open ">", stays centered at any circle size, inherits color via currentColor */
.cta-arrow::after {
  content: ""; position: absolute; inset: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8.2,7.6L15.8,12L8.2,16.4' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8.2,7.6L15.8,12L8.2,16.4' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
}
.cta-orange .cta-arrow { color: #FC8E67; }
.cta-green  .cta-arrow { color: #62D470; }

/* ===================== NAV OVERLAY ===================== */
.nav-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(255,226,153,0.97);
  display: none; flex-direction: column;
  padding: 0 0 48px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.nav-overlay.open { display: flex; }
/* head mirrors .header-inner exactly; sticky so the × stays reachable when the menu scrolls */
.nav-overlay-head {
  display: flex; align-items: center; justify-content: space-between;
  box-sizing: border-box; width: 100%; margin: 0 auto;
  padding: 22px clamp(20px, 6.53vw, 94px);
  position: sticky; top: 0; background: rgba(255,226,153,0.97); z-index: 1;
}
.nav-logo { width: 242px; display: block; }
.nav-close {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; min-width: 44px; min-height: 44px; padding: 12px;
  font-size: 30px; line-height: 1; color: #4B3B34; cursor: pointer;
}
.nav-close:focus-visible { outline: 2px solid #EF6230; outline-offset: 2px; }
.nav-list {
  flex: 1 0 auto; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 34px;
  padding: 24px 0;
}
.nav-list a { display: flex; flex-direction: column; align-items: center; gap: 4px; transition: opacity 0.2s; }
.nav-list a:hover { opacity: 0.6; }
.nav-list .en { font-family: "Inter", sans-serif; font-weight: 700; font-size: 30px; color: #4B3B34; letter-spacing: 0.04em; }
.nav-list .jp { font-size: 13px; color: #6D605A; }
.nav-list .nav-cta {
  margin-top: 8px; background: #EF6230; color: #fff; font-weight: 700;
  padding: 14px 56px; border-radius: 50px; font-size: 16px;
  box-shadow: 0 4px 2px rgba(0,0,0,0.25);
  transition: opacity 0.2s, transform 0.2s;
}
.nav-list .nav-cta:hover { opacity: 0.85; transform: translateY(-2px); }

/* ===================== PROBLEM ===================== */
.problem { background: #ffffff; }
.problem-top { padding: 52px 0 76px; position: relative; z-index: 1; }
.sec-head--watermark { position: relative; text-align: center; margin-bottom: 56px; display: grid; justify-items: center; }
.sec-head--watermark .wm {
  grid-area: 1 / 1;
  display: block; font-family: "Figtree", "Inter", sans-serif; font-weight: 700;
  font-size: 64px; letter-spacing: 0.19em; color: #FFEDA6; line-height: 1;
}
.sec-head--watermark .label { grid-area: 1 / 1; align-self: center; font-size: 20px; font-weight: 700; color: #4B3B34; letter-spacing: 0.39em; text-indent: 0.39em; }
.sec-head--watermark .jp { grid-area: 2 / 1; font-size: 32px; font-weight: 700; margin-top: -0.2em; letter-spacing: 0.11em; }
.worry-list { display: flex; justify-content: center; gap: 83px; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.worry { width: 349px; text-align: center; }
.worry .bubble {
  position: relative; box-sizing: border-box;
  background: #FFF2BE; border-radius: 15px; padding: 28px 16px; min-height: 187px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600; color: #6D605A; line-height: 1.48; letter-spacing: 0.06em;
  white-space: nowrap;
}
/* 吹き出し右下から頭の右上へ下りる、大→小の3点(thought bubble のしっぽ) */
.worry .dots { position: absolute; top: 100%; left: 0; right: 0; height: 50px; pointer-events: none; }
.worry .dots i { position: absolute; border-radius: 50%; background: #FFF2BE; display: block; }
.worry .dots i:nth-child(1) { width: 28px; height: 28px; right: 21px; top: 6px; }
.worry .dots i:nth-child(2) { width: 20px; height: 20px; right: 58px; top: 24px; }
.worry .dots i:nth-child(3) { width: 13px; height: 13px; right: 87px; top: 37px; }
/* イラストは吹き出し直下・上揃え中央。サイズは各お悩みで異なる(Figma: 180/150/160) */
.worry-illust { height: 180px; margin-top: -4px; display: flex; align-items: flex-start; justify-content: center; }
.worry-illust img { display: block; }
.worry-list .worry:nth-child(1) .worry-illust img { width: 180px; }
.worry-list .worry:nth-child(2) .worry-illust img { width: 150px; margin-top: 13px; }
.worry-list .worry:nth-child(3) .worry-illust img { width: 160px; }
.worry .cap { font-size: 16px; font-weight: 600; color: #6D605A; margin-top: 16px; line-height: 1.3; }

.problem-band { position: relative; background: #FFF0B0; padding: 200px 0 100px; margin-top: 0; }
/* 白いworryセクションが黄色帯へ下りる、中央の下向き白ウェッジ(▼) */
.problem-band::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  border-left: 200px solid transparent; border-right: 200px solid transparent;
  border-top: 90px solid #fff;
}
.solve-panel {
  position: relative; background: #fff; border-radius: 30px;
  max-width: 1216px; margin: 0 auto; padding: 52px 40px 80px; text-align: center;
}
.solve-pill {
  position: absolute; top: -48px; left: 50%; transform: translateX(-50%);
  background: #FC8E67; color: #fff; font-weight: 700; font-size: 32px; line-height: 1;
  padding: 16px 84px; border-radius: 140px; white-space: nowrap; letter-spacing: 0.17em;
}
.solve-pill::after { content: ""; position: absolute; bottom: -18px; left: calc(50% + 45px); transform: translateX(-50%);
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 18px solid #FC8E67; }
.solve-char { position: absolute; right: 197px; top: 18px; width: 200px; }
.solve-head { margin-bottom: 8px; }
.solve-logo { height: 52px; display: inline-block; vertical-align: middle; margin-right: 6px; }
.solve-head h3 { display: inline; font-size: 36px; font-weight: 700; line-height: 1.5; letter-spacing: 0.17em; }
.solve-ga { font-size: 32px; }
.solve-sub { font-family: "Inter", "Zen Maru Gothic", sans-serif; font-size: 20px; font-weight: 500; color: #695A4E; margin-top: 18px; letter-spacing: 0.13em; }
/* full-bleed auto-scrolling carousel: images bleed to the viewport edges, OVER the white panel
   (Figma: image frames span x=-135..1593, wider than the 1216 panel). row1 →, row2 ←. */
.work-carousel { position: relative; left: 50%; transform: translateX(-50%); width: 100vw;
  display: flex; flex-direction: column; gap: 24px; margin: 40px 0; }
.wc-row { overflow: hidden; }
/* margin (not gap) so translateX(-50%) lands on a whole item period → seamless loop.
   8 items/row (half-track ≈2328px) keeps wide screens gap-free. */
.wc-track { display: flex; width: max-content; }
.wc-track > * { margin-right: 20px; }
.wc-row1 .wc-track { animation: wcRight 60s linear infinite; }
.wc-row2 .wc-track { animation: wcLeft 54s linear infinite; }
@keyframes wcLeft  { from { transform: translateX(0); }      to { transform: translateX(-50%); } }
@keyframes wcRight { from { transform: translateX(-50%); }   to { transform: translateX(0); } }
.wc-track img, .wc-track .wc-ph { flex: 0 0 auto; height: 180px; border-radius: 20px; }
.wc-track img { width: auto; max-width: 280px; object-fit: contain; background: #fff; }
.wc-track .wc-ph {
  width: 562px; background: #D9D9D9; color: #595755;
  display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 32px; font-weight: 500; line-height: 1.6; letter-spacing: 0.13em;
}
.solve-lead { font-size: 20px; font-weight: 500; color: #4B3B34; margin-top: 22px; line-height: 1.8; letter-spacing: 0.13em; }
.cta-orange-deep { background: #EF6230; }
.cta-orange-deep .cta-arrow { color: #EF6230; }
.solve-panel .cta { margin-top: 36px; font-size: 32px; padding: 36px 56px; }
.solve-panel .cta-arrow { width: 36px; height: 36px; }
/* chevron scales with the circle automatically (SVG mask, contain) */

/* ===================== POINTS ===================== */
.points { background: #fff; padding: 100px 0 180px; }
.points-head { text-align: center; margin-bottom: 52px; }
.points-lead { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 32px; font-weight: 700; letter-spacing: 0.17em; }
.points-lead img { height: 36px; }
.points-title {
  display: inline-block; font-family: "Zen Maru Gothic", sans-serif;
  font-size: 36px; font-weight: 700; margin-top: 16px; letter-spacing: 0.17em;
  border-bottom: 3px dotted #EDA085; padding-bottom: 8px;
}
.points-title .pt-3 { font-size: 48px; color: #EF6230; }
.points-title .pt-tsu { color: #000000; }
.points-title .pt-no { color: #4B3B34; }
.points-title .pt-rest { color: #EF6230; }
.point-cards { display: flex; justify-content: center; gap: 66px; max-width: 1314px; margin: 0 auto; padding: 0 24px; }
.point-card {
  flex: 1; max-width: 394px; background: #fff; border: 1.5px solid rgba(237,160,133,0.75);
  border-radius: 23px; padding: 52px 26px; position: relative; overflow: hidden; min-height: 363px;
}
.point-card h3 { text-align: center; font-size: 32px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 40px; }
.point-card p { font-size: 16px; font-weight: 600; color: #6D605A; line-height: 1.84; letter-spacing: 0.06em; }
.point-card .big-num {
  position: absolute; right: 20px; bottom: 6px; font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 700; font-size: 152px; line-height: 1; color: rgba(237,160,133,0.35); z-index: 0;
}
.point-card h3, .point-card p { position: relative; z-index: 1; }

/* ===================== SERVICE ===================== */
.service { background: #FFFEFA; padding: 12px 0 24px; position: relative; overflow: hidden; }
.service .deco { position: absolute; z-index: 0; }
.deco-ellipse { width: 240px; height: 240px; border-radius: 50%; background: #FFE299; top: 150px; left: -90px; opacity: .22; }
.deco-poly { width: 240px; height: 240px; border-radius: 55px; background: #FAF6B7; transform: rotate(20deg); right: -80px; top: 780px; opacity: .35; }
.deco-rect { width: 200px; height: 150px; border-radius: 30px; background: #EFEEED; left: -50px; bottom: 380px; opacity: .4; }
.service .inner { position: relative; z-index: 1; max-width: 1280px; }
.service-head { position: relative; margin-bottom: 100px; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.service-head .en { grid-area: 1 / 1; color: #FFE299; }
.service-head .label { grid-area: 1 / 1; align-self: center; font-size: 20px; font-weight: 700; letter-spacing: 0.39em; text-indent: 0.39em; }
.service-head .dashline { grid-area: 3 / 1; width: 100%; border-top: 2px dotted #B5A89D; max-width: 1180px; margin: 28px auto 0; }
.service-sub { grid-area: 2 / 1; font-size: 32px; font-weight: 700; letter-spacing: 0.39em; line-height: 1.84; margin-top: -0.2em; }
.service-sub img { height: 40px; display: inline-block; vertical-align: middle; margin-right: 4px; }
.service-block { margin: 0 auto 123px; }
.sb-web { margin-bottom: 146px; }
.sb-online { margin-bottom: 0; }
.service-block-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 64px; flex-wrap: wrap; }
.service-block-head.reverse { flex-direction: row-reverse; }
.service-title { font-size: 50px; font-weight: 700; line-height: 1.84; display: flex; align-items: center; gap: 32px; white-space: nowrap; letter-spacing: 0.08em; }
.service-title .svc-icon { width: 70px; }
.sb-line .svc-icon { width: 72px; } .sb-web .svc-icon { width: 109px; } .sb-online .svc-icon { width: 90px; }
.service-lede { font-size: 20px; font-weight: 700; color: #4B3B34; line-height: 1.84; letter-spacing: 0.08em; }
.service-cards { display: flex; gap: 24px; }
.service-cards.two .svc-card { flex: 1; }
.sb-line .svc-card { height: 299px; }
.sb-web .svc-card { height: 148px; }
.sb-online .svc-card { height: 335px; }
.svc-card { background: #FFEFB0; border: 1px solid #000; border-radius: 24px; padding: 30px 34px; }
.svc-card.wide { width: 100%; }
.svc-card h4 { font-size: 28px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.08em; }
.svc-card ul li { font-size: 18px; font-weight: 700; line-height: 1.84; letter-spacing: 0.06em; padding-left: 1.1em; position: relative; }
.svc-card ul li::before { content: "・"; position: absolute; left: 0; }
.svc-cta { display: flex; width: max-content; margin: 54px auto 0; }

/* ===================== PROFILE ===================== */
/* Figma: 100px white gap between the service CTA and the profile yellow band (full-bleed r56) */
.profile { background: #ffffff; padding: 76px 0 0; }
/* yellow band stays full-bleed; CONTENT is capped at 1296px centered (was uncapped → spread
   too wide on >1440 screens). max() keeps the ≤1440 look identical (72px padding). */
.profile-inner { width: 100%; margin: 0 auto; background: #FFEFB0; border-radius: 56px; padding: 72px max(72px, calc((100% - 1296px) / 2)); position: relative; }
.profile-top { display: flex; justify-content: space-between; gap: 30px; }
.profile-role { font-size: 27px; font-weight: 700; letter-spacing: 0.39em; }
.profile-logo { height: 90px; margin: 12px 0 14px; }
.profile-name { font-size: 24px; font-weight: 700; letter-spacing: 0.39em; margin-bottom: 16px; }
.profile-bio { font-size: 16px; font-weight: 500; line-height: 1.84; max-width: 640px; }
/* same tight icon set as footer; Figma profile spaces them wider (~36px even). */
.profile-sns { display: flex; align-items: center; gap: 36px; margin-top: 20px; }
.profile-sns img { height: auto; object-fit: contain; }
.profile-sns a { transition: opacity 0.2s, transform 0.2s; }
.profile-sns a:hover { opacity: 0.7; transform: translateY(-2px); }
.profile-sns a:nth-child(1) img { width: 42px; }
.profile-sns a:nth-child(2) img { width: 43px; }
.profile-sns a:nth-child(3) img { width: 34px; }
.profile-portrait img { width: 558px; max-width: 46vw; }
.tools-btn-wrap { text-align: center; margin: 44px 0; }
.tools-btn { display: inline-flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #E8E8E8; border-radius: 140px; padding: 16px 36px; font-size: 20px; font-weight: 700; letter-spacing: 0.17em; color: #564841; box-shadow: 0 4px 4px rgba(0,0,0,0.25); cursor: pointer; transition: opacity 0.2s, transform 0.2s; }
.tools-btn:hover { opacity: 0.8; transform: translateY(-2px); }
.tools-btn .dot { width: 34px; height: 34px; border-radius: 50%; background: #FFE299; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.tools-btn .plus { width: 36px; height: 36px; border-radius: 50%; background: #FCF9CC; color: #4B3B34; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
/* collapsible drawer: closed by default, opens when the ＋ button is clicked (JS toggles .open) */
.tools-card { background: #fff; border-radius: 30px; padding: 0 52px; display: flex; gap: 50px;
  max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s ease, padding .45s ease, opacity .35s ease; }
.tools-card.open { max-height: 1600px; padding: 52px; opacity: 1; }
.tools-col { flex: 1; text-align: center; }
.tools-tag { display: inline-block; background: #E5E4D4; border-radius: 6px; padding: 6px 28px; font-size: 20px; margin-bottom: 18px; }
.tools-col ul li {
  display: flex; align-items: center; gap: 16px; text-align: left;
  background: #fff; border: 1px solid #E8E8E8; border-radius: 79px;
  padding: 11px 20px; margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: #564841;
}
.tools-col ul li i { width: 10px; height: 10px; border-radius: 50%; background: #FFE299; flex-shrink: 0; }

/* ===================== TESTIMONIAL ===================== */
.testimonial { background: #fff; padding: 64px 0 96px; overflow: hidden; }
.voice-head { position: relative; width: 423px; margin: 0 auto 30px; text-align: center; }
.voice-head img { width: 423px; }
.voice-head .voice-head-text { position: absolute; top: 46%; left: 50%; transform: translate(-50%,-50%); font-size: 32px; font-weight: 700; letter-spacing: 0.39em; text-indent: 0.39em; white-space: nowrap; }
.voice-carousel { position: relative; }
/* slick owns the track + seamless infinite loop; cards stay a fixed 300px with a 27px gap */
.voice-track { padding: 6px 0; }
.voice-card { width: 300px; margin-right: 27px; background: #FFEFB0; border-radius: 39px; padding: 32px 28px; min-height: 480px; }
.voice-track .slick-track { display: flex; }   /* equal-height cards (.voice-card IS the .slick-slide) */
.voice-track .slick-slide { height: auto; }
.voice-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.voice-card-head img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; background: #fff; }
.vc-name { font-size: 16px; font-weight: 500; letter-spacing: 0.06em; line-height: 1.4; }
.vc-role { font-size: 16px; font-weight: 500; color: #4B3B34; letter-spacing: 0.06em; }
.voice-body { font-size: 14px; font-weight: 500; line-height: 1.84; letter-spacing: 0.06em; color: #4B3B34; }
.voice-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 50px; height: 50px; border: none; cursor: pointer; font-size: 0;
  background: url(../assets/testimonial__arrow.svg) no-repeat center / contain;
  transition: opacity 0.2s, transform 0.2s; }
.voice-arrow:hover { opacity: 0.6; }
.voice-next:hover { transform: translateY(-50%) scaleX(-1) scale(1.1); }
.voice-prev:hover { transform: translateY(-50%) scale(1.1); }
.voice-prev { left: 30px; }
.voice-next { right: 30px; transform: translateY(-50%) scaleX(-1); }

/* ===================== FLOW ===================== */
/* extra bottom padding = 3× the gap above the CONTACT heading (37px → 111px) per FB ⑥ */
.flow { background: #fff; padding: 16px 0 74px; }
.flow-head { position: relative; margin-bottom: 69px; display: grid; justify-items: center; }
.flow-head .en { grid-area: 1 / 1; color: #FFE299; }
.flow-head .label { grid-area: 1 / 1; align-self: center; font-size: 20px; font-weight: 700; letter-spacing: 0.39em; text-indent: 0.39em; }
.flow-head .jp { grid-area: 2 / 1; font-size: 32px; font-weight: 700; margin-top: -0.2em; letter-spacing: 0.39em; }
.flow-steps { max-width: 1103px; margin: 0 auto; padding: 0 24px; }
.flow-step {
  position: relative; background: #fff; border: 2px solid #E8E8E8; border-radius: 20px;
  height: 190px; box-sizing: border-box; padding: 0 40px; display: flex; align-items: center; gap: 30px; margin-bottom: 34px;
}
.flow-step:last-child { margin-bottom: 0; }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; bottom: -32px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 30px; background: url(../assets/flow__arrow-down.png) no-repeat center / contain;
}
.step-no { text-align: center; border-right: 1px solid #E8E8E8; padding-right: 30px; min-width: 96px; }
.step-label { display: block; font-size: 20px; font-weight: 700; letter-spacing: 0.39em; color: #4B3B34; }
.step-num { display: block; font-size: 64px; font-weight: 300; line-height: 1.1; color: #4B3B34; letter-spacing: 0; }
.step-body { flex: 1; }
.step-body h3 { font-size: 24px; font-weight: 500; margin-bottom: 8px; letter-spacing: 0.16em; }
.step-body p { font-size: 16px; font-weight: 500; color: #4B3B34; line-height: 1.84; letter-spacing: 0.07em; }
.step-line-btn { flex-shrink: 0; align-self: center; font-size: 16px; padding: 14px 22px; }

/* ===================== CONTACT ===================== */
.contact { background: #FFE299; position: relative; padding: 0 0 80px; overflow: hidden; }
/* white dome = bottom half of a true ellipse (Figma: rx≈775, ry184). top:-184 hides the upper
   half above the section; overflow:hidden on .contact clips it. Deep 184px scoop at center. */
.contact-arc { position: absolute; top: -184px; left: 50%; transform: translateX(-50%); width: 108vw; height: 368px; background: #fff; border-radius: 50%; }
.contact-head { position: relative; text-align: center; padding-top: 44px; display: grid; justify-items: center; }
.contact-head .en { grid-area: 1 / 1; color: #FFE299; }
.contact-head .label { grid-area: 1 / 1; align-self: center; font-size: 20px; font-weight: 700; letter-spacing: 0.39em; text-indent: 0.39em; }
.contact-head .jp { grid-area: 2 / 1; font-size: 32px; font-weight: 700; margin-top: -0.2em; letter-spacing: 0.1em; }
.contact-desc { text-align: center; max-width: 800px; margin: 64px auto 40px; font-size: 16px; font-weight: 700; color: #4B3B34; line-height: 2; }
.contact-form { background: #fff; border-radius: 50px; max-width: 960px; margin: 0 auto; padding: 65px 80px 63px; }
.contact-form label { display: block; font-size: 16px; font-weight: 700; color: #4B3B34; margin: 22px 0 8px; letter-spacing: 0.11em; }
.contact-form .req { color: #FF0000; margin-left: 2px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid #4B3B34; border-radius: 10px; padding: 15px 24px; font-size: 16px; color: #4B3B34; background: #fff;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #DFD6D2; font-weight: 700; }
.contact-form textarea { height: 137px; resize: vertical; }
.contact-submit { width: 100%; background: #4B3B34; color: #fff; font-weight: 700; font-size: 18px; letter-spacing: 0.39em; text-indent: 0.39em; border-radius: 50px; padding: 20px; margin-top: 34px; transition: opacity 0.2s, transform 0.2s; }
.contact-submit:hover { opacity: 0.8; transform: translateY(-2px); }

/* ===================== FOOTER ===================== */
.site-footer { background: #fff; padding: 40px 0 36px; }
.footer-inner { max-width: 1366px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; }
.footer-left { display: flex; align-items: center; gap: 46px; }
.footer-logo { width: 244px; }
/* icons are tight-cropped (no internal padding) so a uniform gap = even visible spacing.
   sizes = Figma visible glyph sizes (LINE41/insta42/X34). */
.footer-sns { display: flex; gap: 18px; align-items: center; }
.footer-sns img { height: auto; object-fit: contain; }
.footer-sns a { transition: opacity 0.2s, transform 0.2s; }
.footer-sns a:hover { opacity: 0.7; transform: translateY(-2px); }
.footer-sns a:nth-child(1) img { width: 42px; }
.footer-sns a:nth-child(2) img { width: 43px; }
.footer-sns a:nth-child(3) img { width: 34px; }
.footer-right { text-align: right; }
.back-top { font-size: 20px; font-weight: 700; color: #4B3B34; letter-spacing: 0.08em; transition: opacity 0.2s; }
.back-top:hover { opacity: 0.6; }
.copyright { font-size: 16px; color: #000; margin-top: 20px; letter-spacing: 0.39em; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1080px) {
  .hero-title { font-size: 40px; }
  .hero-figure { width: 46%; }
  .service-title { font-size: 40px; }
}

@media (min-width: 769px) and (max-width: 1260px) {
  /* hero: shrink figure so it doesn't overlap copy */
  .hero-figure { width: 36%; right: 0; }
  .hero-title { font-size: 32px; }
  .hero-inner { padding-left: 32px; padding-right: 32px; }

  /* solve: shrink/hide char so it doesn't overlap text */
  .solve-char { width: 120px; right: 16px; top: 24px; }
  .solve-head h3 { font-size: 28px; }

  /* worry-list: shrink cards and gap to fit within tablet viewport */
  .worry-list { gap: 32px; padding: 0 16px; }
  .worry { width: 260px; }
  .worry .bubble { white-space: normal; font-size: 14px; padding: 18px 16px; }
}

@media (max-width: 768px) {
  body { font-size: 14px; }
  html { scroll-padding-top: 72px; }
  .header-inner { padding: 14px 18px; }
  .logo img { width: 116px; }
  .menu-toggle { padding: 10px; }

  /* hero */
  .hero { min-height: 0; }
  .hero-inner { padding: 110px 22px 38px; }
  .hero-main { text-align: left; position: relative; }
  .hero-title { font-size: clamp(17px, 5.33vw, 23px); white-space: normal; letter-spacing: 0.26em; line-height: 1.84; text-align: center; }
  .hero-title .accent { font-size: inherit; }
  .hero-title .under { background-size: contain; padding-bottom: 18px; }
  .hero-tags { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 54px; width: max-content; }
  .tag { font-size: 12px; padding: 3px 18px; }
  .hero-sub { font-size: 11px; margin-top: 8px; text-align: center; max-width: 250px; margin-left: auto; margin-right: auto; }
  .hero-figure { position: absolute; top: 93px; right: 14px; width: 50%; margin: 0; }
  .hero-cta { flex-direction: column; align-items: center; gap: 18px; margin-top: 60px; width: 100%; }
  .cta { width: 100%; max-width: none; justify-content: center; font-size: 12px; padding: 11px 16px; letter-spacing: 0.06em; gap: 8px; }
  .hero-cta .cta { max-width: 232px; }
  .wave-tl { width: 40%; } .wave-tr { width: 33%; }

  .wave-l, .wave-r { display: block; width: 9%; top: 56%; }

  /* nav overlay — keep head aligned with the SP header */
  .nav-overlay-head { padding: 14px 18px; }
  .nav-logo { width: 116px; }
  .nav-close { padding: 10px; }
  .nav-list .en { font-size: 26px; }

  /* problem */
  .problem-top { padding: 48px 0 36px; }
  .sec-head--watermark .wm { font-size: 32px; }
  .sec-head--watermark .label { font-size: 10px; }
  .sec-head--watermark .jp { font-size: 20px; }
  .worry-list { flex-direction: column; align-items: center; gap: 22px; }
  .worry { width: 100%; max-width: 320px; }
  .worry .bubble { min-height: 0; padding: 20px 22px; font-size: 12px; line-height: 1.48; letter-spacing: 0.06em; white-space: normal; }
  .worry .cap { font-size: 10px; }
  .worry-illust { height: auto; margin-top: 6px; }
  .worry-list .worry:nth-child(1) .worry-illust img { width: 100px; }
  .worry-list .worry:nth-child(2) .worry-illust img { width: 100px; }
  .worry-list .worry:nth-child(3) .worry-illust img { width: 100px; }
  .worry .dots i:nth-child(1) { width: 20px; height: 20px; right: 16px; top: 5px; }
  .worry .dots i:nth-child(2) { width: 14px; height: 14px; right: 42px; top: 17px; }
  .worry .dots i:nth-child(3) { width: 9px; height: 9px; right: 62px; top: 27px; }
  .problem-band { padding: 80px 0 50px; }
  .problem-band::before { border-left-width: 90px; border-right-width: 90px; border-top-width: 45px; }
  .solve-panel { padding: 44px 18px 40px; border-radius: 24px; max-width: 92%; }
  .solve-pill { font-size: 15px; padding: 8px 26px; top: -22px; }
  .solve-pill::after { bottom: -12px; border-left-width: 9px; border-right-width: 9px; border-top-width: 14px; }
  .solve-char { width: 56px; right: 2px; top: 42px; }
  .solve-logo { height: 34px; }
  .solve-head h3 { font-size: 13px; }
  .solve-ga { font-size: 11px; }
  .solve-sub { font-size: 13px; }
  .work-carousel { gap: 14px; margin: 28px 0; }
  .wc-track > * { margin-right: 12px; }
  .wc-track img, .wc-track .wc-ph { width: 230px; height: 150px; border-radius: 18px; }
  .wc-track .wc-ph { font-size: 14px; }
  .solve-lead { font-size: 13px; }
  .solve-panel .cta { font-size: 12px; padding: 14px 20px; }
  .solve-panel .cta-arrow { width: 22px; height: 22px; }

  /* points */
  .points { padding: 56px 0; }
  .points-lead { font-size: 16px; } .points-lead img { height: 22px; }
  .points-title { font-size: 20px; }
  .points-title .pt-3 { font-size: 20px; }
  .point-cards { flex-direction: column; gap: 16px; padding: 0 24px; }
  .point-card { max-width: 100%; min-height: 0; padding: 30px 24px; }
  .point-card h3 { font-size: 20px; }
  .point-card p { font-size: 12px; }
  .point-card .big-num { font-size: 96px; }

  /* service */
  .service { padding: 56px 0; }
  .deco-ellipse { width: 300px; height: 235px; top: 120px; left: -110px; opacity: .2; }
  .deco-poly { width: 220px; height: 185px; top: 700px; right: -55px; opacity: .32; }
  .deco-rect { width: 222px; height: 189px; top: 1060px; left: -60px; bottom: auto; opacity: .6; }
  .service-head .en { font-size: 32px; color: #FFEDA6; }
  .service-head .label { font-size: 10px; }
  .service-sub { font-size: 11px; letter-spacing: 0.17em; } .service-sub img { height: 16px; }
  .service-head { margin-bottom: 40px; }
  .service-block { margin-bottom: 48px; }
  .service-block-head, .service-block-head.reverse { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 18px; }
  .service-title { font-size: 15px; white-space: nowrap; flex: none; gap: 6px; }
  .service-title .svc-icon { width: 30px; }
  .service-lede { font-size: 13px; flex: none; }
  .service-cards, .service-cards.two { flex-direction: column; }
  .svc-card { padding: 22px 24px; } .svc-card h4 { font-size: 14px; } .svc-card ul li { font-size: 13px; line-height: 1.6; }
  .sb-line .svc-card, .sb-web .svc-card, .sb-online .svc-card { height: auto; }
  .sb-line .svc-icon { display: inline-block; }
  .sb-web .svc-icon { width: 30px; } .sb-online .svc-icon { width: 20px; }
  .sb-web .service-title { flex-direction: row-reverse; }
  .svc-cta { width: 100%; max-width: 231px; margin: 20px auto 0; }

  /* profile */
  .profile { padding: 24px 14px; }
  .profile-inner { padding: 32px 20px; border-radius: 32px; }
  .profile-top { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
  /* Figma SP order: 役職→ロゴ→ポートレート→名前→bio→SNS */
  .profile-info { display: contents; }
  .profile-role { order: 1; }
  .profile-logo { order: 2; }
  .profile-portrait { order: 3; }
  .profile-name { order: 4; }
  .profile-bio { order: 5; }
  .profile-sns { order: 6; }
  /* Figma SP SNS order: LINE→X→Instagram */
  .profile-sns a:nth-child(2) { order: 3; }
  .profile-sns a:nth-child(3) { order: 2; }
  .profile-portrait img { width: 49vw; max-width: 200px; margin: 0 auto; }
  .profile-role { font-size: 11px; letter-spacing: 0.09em; }
  .profile-logo { height: 21px; margin: 0; }
  .profile-name { font-size: 15px; margin: 0; }
  .profile-bio { font-size: 12px; text-align: left; }
  .profile-sns { justify-content: center; gap: 20px; margin-top: 0; }
  .tools-btn-wrap { margin: 16px 0; }
  .profile-sns a:nth-child(1) img { width: 30px; }
  .profile-sns a:nth-child(2) img { width: 31px; }
  .profile-sns a:nth-child(3) img { width: 24px; }
  .tools-btn { font-size: 11px; padding: 13px 26px; }
  .tools-tag { font-size: 10px; }
  .tools-card { flex-direction: column; gap: 22px; padding: 0 24px; }
  .tools-card.open { padding: 24px; }
  .tools-col ul li { font-size: 12px; }

  /* testimonial */
  .voice-head { width: 220px; } .voice-head img { width: 220px; }
  .voice-head .voice-head-text { font-size: 12px; }
  .voice-card { width: 78vw; min-height: 0; padding: 26px 22px; }
  .voice-arrow { width: 30px; height: 30px; font-size: 16px; }
  .voice-prev { left: 8px; } .voice-next { right: 8px; }

  /* flow */
  .flow { padding: 40px 0; }
  .flow-head { margin-bottom: 40px; }
  .flow-head .en { font-size: 32px; }
  .flow-head .label { font-size: 10px; letter-spacing: 0.39em; }
  .flow-head .jp { font-size: 20px; letter-spacing: 0.28em; }
  .flow-step { padding: 14px 16px; gap: 14px; flex-wrap: wrap; height: auto; margin-bottom: 16px; } /* FB⑭ grow to contain the LINE button */
  .flow-step:not(:last-child)::after { bottom: -15px; width: 13px; height: 16px; }
  .step-no { min-width: 56px; padding-right: 14px; }
  .step-label { font-size: 11px; letter-spacing: 0.39em; } .step-num { font-size: 32px; }
  .step-body { flex: 1; min-width: 0; }
  .step-body h3 { font-size: 15px; } .step-body p { font-size: 12px; }
  .step-line-btn { flex-basis: 100%; justify-content: center; margin-top: 10px; font-size: 13px; }

  /* contact */
  .contact-arc { width: 100vw; height: 220px; top: -110px; }
  .contact-head { padding-top: 40px; padding-bottom: 40px; }
  .contact-head .en { font-size: 32px; color: #FFEDA6; }
  .contact-head .label { font-size: 10px; font-weight: 700; }
  .contact-head .jp { font-size: 20px; margin-top: -10px; }
  .contact-desc { font-size: 12px; text-align: left; }
  .contact .inner { padding: 0 12px; }
  .contact-form { padding: 20px 36px; border-radius: 50px; max-width: none; }
  .contact-form input, .contact-form textarea { font-size: 14px; padding: 12px 18px; }
  .contact-submit { font-size: 15px; padding: 16px; }

  /* footer: 縦積み中央揃え */
  .site-footer { padding: 32px 0; }
  .footer-inner { flex-direction: column; align-items: center; gap: 16px; padding: 0 20px; }
  .footer-left { flex-direction: column; align-items: center; gap: 0; }
  .footer-logo { width: 103px; }
  .footer-sns { gap: 12px; margin-top: 12px; }
  .footer-sns a:nth-child(1) img { width: 24px; }
  .footer-sns a:nth-child(2) img { width: 24px; }
  .footer-sns a:nth-child(3) img { width: 18px; }
  .footer-sns a:nth-child(2) { order: 3; }
  .footer-sns a:nth-child(3) { order: 2; }
  .footer-right { text-align: center; display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; }
  .back-top { font-size: 13px; margin-top: 0; }
  .copyright { font-size: 10px; margin-top: 0; color: rgba(0,0,0,0.5); font-weight: 700; letter-spacing: 0.18em; }
}
