/* =========================================================
   Japan Possible Co., Ltd. — site styles
   Light theme. No external dependencies.
   ========================================================= */

:root{
  --navy:        #0b2545;
  --navy-700:    #143a68;
  --navy-100:    #e5ecf5;
  --red:         #d7263d;
  --red-dark:    #b21c31;
  --ink:         #1a2433;
  --ink-soft:    #4a5666;
  --ink-faint:   #7c8798;
  --line:        #dfe5ee;
  --bg:          #ffffff;
  --bg-tint:     #f5f8fc;
  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 1px 2px rgba(11,37,69,.05), 0 8px 24px rgba(11,37,69,.06);
  --shadow-lg:   0 2px 4px rgba(11,37,69,.06), 0 18px 44px rgba(11,37,69,.10);
  --maxw:        1120px;
  --header-h:    72px;
  --font: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
          "BIZ UDPGothic", Meiryo, "Yu Gothic", sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }

html{
  scroll-behavior:smooth;
  scroll-padding-top:calc(var(--header-h) + 12px);
  -webkit-text-size-adjust:100%;
}
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  background:var(--bg);
  line-height:1.85;
  font-size:16px;
  letter-spacing:.01em;
  overflow-x:hidden;
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; }

.wrap{ width:min(100% - 40px, var(--maxw)); margin-inline:auto; }
.wrap-narrow{ width:min(100% - 40px, 820px); margin-inline:auto; }

.skip{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--navy); color:#fff; padding:10px 18px; border-radius:0 0 8px 0;
}
.skip:focus{ left:0; }

:focus-visible{ outline:3px solid var(--red); outline-offset:2px; border-radius:4px; }

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(160%) blur(10px);
  border-bottom:1px solid var(--line);
  transition:box-shadow .25s ease;
}
.site-header.is-stuck{ box-shadow:0 6px 22px rgba(11,37,69,.08); }

.header-inner{
  min-height:var(--header-h);
  display:flex; align-items:center; gap:20px;
}

.logo{ display:flex; align-items:center; gap:11px; text-decoration:none; flex-shrink:0; }
.logo-mark{
  width:32px; height:32px; border-radius:9px;
  background:var(--navy);
  position:relative; flex-shrink:0;
}
.logo-mark::after{
  content:""; position:absolute; inset:0; margin:auto;
  width:13px; height:13px; border-radius:50%; background:var(--red);
}
.logo-text{ display:flex; flex-direction:column; line-height:1.2; }
.logo-text strong{ font-size:17px; letter-spacing:.02em; color:var(--navy); font-weight:700; }
.logo-text small{ font-size:11px; color:var(--ink-faint); letter-spacing:.08em; }

.nav{ display:flex; align-items:center; gap:4px; margin-left:auto; }
.nav a{
  text-decoration:none; font-size:13.5px; font-weight:600; color:var(--ink-soft);
  padding:8px 11px; border-radius:8px; white-space:nowrap;
  transition:color .18s ease, background .18s ease;
}
.nav a:hover{ color:var(--navy); background:var(--navy-100); }
.nav .nav-cta{
  background:var(--navy); color:#fff; margin-left:6px; padding:9px 16px;
}
.nav .nav-cta:hover{ background:var(--navy-700); color:#fff; }

.header-tools{ display:flex; align-items:center; gap:10px; }

.lang{ display:flex; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.lang button{
  font:inherit; font-size:12px; font-weight:700; letter-spacing:.03em;
  border:0; background:#fff; color:var(--ink-faint);
  padding:6px 10px; cursor:pointer; transition:background .18s, color .18s;
}
.lang button+button{ border-left:1px solid var(--line); }
.lang button.is-active{ background:var(--navy); color:#fff; }

.burger{
  display:none; width:40px; height:40px; border:1px solid var(--line);
  border-radius:9px; background:#fff; cursor:pointer;
  flex-direction:column; align-items:center; justify-content:center; gap:5px; padding:0;
}
.burger span{ width:17px; height:2px; background:var(--navy); border-radius:2px; transition:transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width:1040px){
  .burger{ display:flex; }
  .nav{
    position:fixed; inset:var(--header-h) 0 auto 0;
    flex-direction:column; align-items:stretch; gap:0;
    background:#fff; border-bottom:1px solid var(--line);
    padding:10px 20px 20px;
    box-shadow:0 20px 40px rgba(11,37,69,.10);
    transform:translateY(-8px); opacity:0; pointer-events:none;
    transition:opacity .2s ease, transform .2s ease;
    max-height:calc(100dvh - var(--header-h)); overflow-y:auto;
  }
  .nav.is-open{ transform:none; opacity:1; pointer-events:auto; }
  .nav a{ font-size:15px; padding:13px 6px; border-bottom:1px solid var(--line); border-radius:0; }
  .nav .nav-cta{ margin:14px 0 0; border-radius:9px; text-align:center; border-bottom:0; }
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero{ position:relative; overflow:hidden; background:var(--navy); color:#fff; }
.hero-bg{
  position:absolute; inset:0;
  background:
    radial-gradient(900px 460px at 88% -8%, rgba(215,38,61,.34), transparent 62%),
    radial-gradient(720px 520px at 4% 106%, rgba(37,99,190,.42), transparent 64%),
    linear-gradient(158deg, #0b2545 0%, #123259 52%, #0a1f3b 100%);
}
.hero-bg::after{
  content:""; position:absolute; inset:0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 1px, transparent 1px 46px);
  mask-image:linear-gradient(to bottom, rgba(0,0,0,.9), transparent 88%);
  -webkit-mask-image:linear-gradient(to bottom, rgba(0,0,0,.9), transparent 88%);
}
.hero-inner{ position:relative; padding:clamp(76px, 12vw, 138px) 0 clamp(64px, 9vw, 104px); max-width:880px; }

.eyebrow{
  margin:0 0 20px; font-size:11.5px; font-weight:700;
  letter-spacing:.22em; color:#9dc0ee; text-transform:none;
}
.hero-title{
  margin:0 0 26px;
  font-size:clamp(30px, 5.6vw, 58px);
  line-height:1.32; font-weight:800; letter-spacing:.005em;
}
.hero-lead{
  margin:0 0 36px; max-width:640px;
  font-size:clamp(15px, 1.7vw, 17.5px);
  color:rgba(255,255,255,.84); line-height:2;
}
.hero-cta{ display:flex; flex-wrap:wrap; gap:14px; }

.hero-badges{
  list-style:none; margin:42px 0 0; padding:0;
  display:flex; flex-wrap:wrap; gap:10px 12px;
}
.hero-badges li{
  font-size:13px; font-weight:600; color:rgba(255,255,255,.9);
  border:1px solid rgba(255,255,255,.28); border-radius:999px;
  padding:6px 15px; background:rgba(255,255,255,.06);
}
.hero-badges li::before{ content:"✓"; color:#7fd2a4; font-weight:800; margin-right:7px; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-size:15px; font-weight:700; text-decoration:none; cursor:pointer;
  padding:15px 30px; border-radius:10px; border:1.5px solid transparent;
  transition:transform .16s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  font-family:inherit; line-height:1.4;
}
.btn:hover{ transform:translateY(-2px); }
.btn:active{ transform:none; }
.btn-primary{ background:var(--red); color:#fff; box-shadow:0 8px 22px rgba(215,38,61,.28); }
.btn-primary:hover{ background:var(--red-dark); box-shadow:0 12px 28px rgba(215,38,61,.34); }
.btn-ghost{ border-color:rgba(255,255,255,.42); color:#fff; background:transparent; }
.btn-ghost:hover{ background:rgba(255,255,255,.12); }
.btn-wide{ width:100%; padding:17px 30px; }

/* ---------------------------------------------------------
   Fact bar
   --------------------------------------------------------- */
.factbar{ background:var(--bg-tint); border-bottom:1px solid var(--line); }
.factbar-inner{
  display:grid; grid-template-columns:repeat(4,1fr);
  padding:30px 0;
}
.fact{ text-align:center; padding:6px 12px; }
.fact + .fact{ border-left:1px solid var(--line); }
.fact-num{
  display:block; font-size:clamp(26px, 3.6vw, 36px); font-weight:800;
  color:var(--navy); line-height:1.25; letter-spacing:-.01em;
}
.fact-num small{ font-size:.46em; font-weight:700; margin-left:3px; letter-spacing:0; }
.fact-label{ display:block; font-size:12.5px; color:var(--ink-faint); font-weight:600; margin-top:4px; }

@media (max-width:720px){
  .factbar-inner{ grid-template-columns:repeat(2,1fr); gap:22px 0; padding:26px 0; }
  .fact:nth-child(odd){ border-left:0; }
  .fact:nth-child(3){ border-left:0; }
  .fact:nth-child(-n+2){ border-bottom:1px solid var(--line); padding-bottom:20px; }
}

/* ---------------------------------------------------------
   Section shell
   --------------------------------------------------------- */
.section{ padding:clamp(64px, 8.5vw, 104px) 0; }
.section-tint{ background:var(--bg-tint); }
.section-dark{ background:var(--navy); color:#fff; }

.sec-head{ max-width:760px; margin:0 0 clamp(38px, 5vw, 56px); }
.sec-eyebrow{
  margin:0 0 10px; font-size:11.5px; font-weight:800;
  letter-spacing:.2em; color:var(--red);
}
.sec-title{
  margin:0 0 18px; font-size:clamp(24px, 3.6vw, 34px);
  font-weight:800; line-height:1.45; color:var(--navy); letter-spacing:.005em;
}
.sec-lead{ margin:0; color:var(--ink-soft); font-size:15.5px; line-height:2; }
.sec-head-light .sec-eyebrow{ color:#ff8a99; }
.sec-head-light .sec-title{ color:#fff; }
.sec-head-light .sec-lead{ color:rgba(255,255,255,.78); }

.note{
  margin:32px 0 0; font-size:13px; color:var(--ink-faint); line-height:1.9;
  padding-left:2px;
}

/* ---------------------------------------------------------
   Service cards
   --------------------------------------------------------- */
.cards{
  display:grid; gap:20px;
  grid-template-columns:repeat(auto-fit, minmax(288px, 1fr));
}
.card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:30px 28px 32px; box-shadow:var(--shadow);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lg); border-color:#c9d6e8; }
.card-icon{
  width:52px; height:52px; border-radius:12px;
  background:var(--navy-100); color:var(--navy);
  display:grid; place-items:center; margin-bottom:20px;
}
.card-icon svg{ width:28px; height:28px; }
.card h3{
  margin:0 0 12px; font-size:17.5px; font-weight:700;
  color:var(--navy); line-height:1.6;
}
.card p{ margin:0; font-size:14.5px; color:var(--ink-soft); line-height:1.95; }

/* ---------------------------------------------------------
   Items
   --------------------------------------------------------- */
.itemgrid{
  display:grid; gap:18px;
  grid-template-columns:repeat(auto-fit, minmax(238px, 1fr));
}
.itembox{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:26px 24px 28px;
}
.itembox h3{
  margin:0 0 16px; font-size:15px; font-weight:800; color:var(--navy);
  padding-bottom:12px; border-bottom:2px solid var(--red);
  display:inline-block; letter-spacing:.04em;
}
.itembox ul{ margin:0; padding:0; list-style:none; }
.itembox li{
  font-size:14px; color:var(--ink-soft); padding:7px 0 7px 20px;
  position:relative; line-height:1.7;
}
.itembox li::before{
  content:""; position:absolute; left:2px; top:15px;
  width:6px; height:6px; border-radius:50%; background:#b9c6d8;
}

/* ---------------------------------------------------------
   Reasons
   --------------------------------------------------------- */
.reasons{ display:grid; gap:20px; grid-template-columns:repeat(auto-fit, minmax(430px, 1fr)); }
.reason{
  position:relative; background:#fff; border:1px solid var(--line);
  border-radius:var(--radius); padding:34px 30px 32px;
  box-shadow:var(--shadow);
}
.reason-no{
  position:absolute; top:22px; right:26px;
  font-size:44px; font-weight:800; color:var(--navy-100); line-height:1;
  letter-spacing:-.02em;
}
.reason h3{
  margin:0 0 14px; font-size:18px; font-weight:800; color:var(--navy);
  line-height:1.6; max-width:82%; position:relative;
}
.reason p{ margin:0; font-size:14.5px; color:var(--ink-soft); line-height:2; }

/* ---------------------------------------------------------
   Flow
   --------------------------------------------------------- */
.flow{
  list-style:none; margin:0; padding:0;
  display:grid; gap:16px;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  counter-reset:flow;
}
.flow-step{
  position:relative; background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.16); border-radius:var(--radius);
  padding:26px 22px 26px;
}
.flow-no{
  display:grid; place-items:center;
  width:34px; height:34px; border-radius:50%;
  background:var(--red); color:#fff; font-weight:800; font-size:15px;
  margin-bottom:16px;
}
.flow-step h3{ margin:0 0 10px; font-size:16px; font-weight:700; color:#fff; line-height:1.6; }
.flow-step p{ margin:0; font-size:13.5px; color:rgba(255,255,255,.76); line-height:1.95; }

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */
.faq{ border-top:1px solid var(--line); }
.faq details{ border-bottom:1px solid var(--line); }
.faq summary{
  list-style:none; cursor:pointer; padding:22px 44px 22px 4px;
  font-size:16px; font-weight:700; color:var(--navy); position:relative;
  line-height:1.7; transition:color .18s ease;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary:hover{ color:var(--red); }
.faq summary::after{
  content:""; position:absolute; right:12px; top:32px;
  width:11px; height:11px; margin-top:-6px;
  border-right:2.4px solid var(--red); border-bottom:2.4px solid var(--red);
  transform:rotate(45deg); transition:transform .25s ease;
}
.faq details[open] summary::after{ transform:rotate(-135deg); margin-top:-2px; }
.faq details p{
  margin:0; padding:0 6px 26px 4px;
  font-size:14.5px; color:var(--ink-soft); line-height:2.05;
}

/* ---------------------------------------------------------
   Company profile
   --------------------------------------------------------- */
.company{
  background:#fff; border:1px solid var(--line);
  border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);
}
.proftable{ width:100%; border-collapse:collapse; }
.proftable th,.proftable td{
  text-align:left; vertical-align:top;
  padding:18px 26px; border-bottom:1px solid var(--line);
  font-size:14.5px; line-height:1.95;
}
.proftable tr:last-child th,.proftable tr:last-child td{ border-bottom:0; }
.proftable th{
  width:200px; background:var(--bg-tint); color:var(--navy);
  font-weight:700; white-space:nowrap;
}
.proftable td{ color:var(--ink-soft); }
.proftable .sub{ color:var(--ink-faint); font-size:13px; }

@media (max-width:640px){
  .proftable th,.proftable td{ display:block; width:auto; padding:14px 20px; }
  .proftable th{ border-bottom:0; padding-bottom:4px; white-space:normal; background:#fff; }
  .proftable td{ padding-top:0; }
}

/* ---------------------------------------------------------
   Contact form
   --------------------------------------------------------- */
.cform{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:clamp(26px, 4vw, 40px); box-shadow:var(--shadow);
}
.field{ margin-bottom:20px; }
.field-row{ display:grid; gap:0 20px; grid-template-columns:1fr 1fr; }
@media (max-width:600px){ .field-row{ grid-template-columns:1fr; } }

.field label{
  display:block; font-size:13px; font-weight:700;
  color:var(--navy); margin-bottom:8px; letter-spacing:.02em;
}
.field input,.field select,.field textarea{
  width:100%; font:inherit; font-size:15px; color:var(--ink);
  padding:13px 15px; border:1.5px solid var(--line); border-radius:var(--radius-sm);
  background:#fdfefe; transition:border-color .18s ease, box-shadow .18s ease;
}
.field textarea{ resize:vertical; min-height:130px; line-height:1.8; }
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none; border-color:var(--navy);
  box-shadow:0 0 0 3px rgba(11,37,69,.10);
}
.field input.is-invalid,.field textarea.is-invalid{
  border-color:var(--red); box-shadow:0 0 0 3px rgba(215,38,61,.12);
}
.field select{ appearance:none; cursor:pointer;
  background-image:linear-gradient(45deg, transparent 50%, var(--navy) 50%),
                   linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position:calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size:6px 6px, 6px 6px; background-repeat:no-repeat;
}

.form-note{ margin:4px 0 20px; font-size:12.5px; color:var(--ink-faint); line-height:1.85; }
.form-error{ margin:14px 0 0; font-size:13.5px; color:var(--red); font-weight:700; text-align:center; }
.form-pending{
  margin:16px 0 0; padding:16px 18px; border-radius:var(--radius-sm);
  background:var(--navy-100); border:1px solid #cbd9ea;
  font-size:13.5px; color:var(--navy); line-height:1.9; text-align:center; font-weight:600;
}

.contact-alt{ margin-top:34px; text-align:center; }
.contact-alt p{ margin:0 0 8px; font-size:14px; color:var(--ink-soft); }
.contact-alt .mail{
  font-size:19px; font-weight:800; color:var(--navy);
  text-decoration:none; border-bottom:2px solid var(--red); padding-bottom:2px;
  letter-spacing:.02em;
}
.contact-alt .mail:hover{ color:var(--red); }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer{ background:var(--navy); color:rgba(255,255,255,.72); padding:52px 0 24px; }
.footer-inner{
  display:flex; flex-wrap:wrap; gap:30px 40px;
  justify-content:space-between; align-items:flex-start;
  padding-bottom:30px; border-bottom:1px solid rgba(255,255,255,.14);
}
.footer-brand{ display:flex; gap:13px; align-items:flex-start; }
.footer-brand .logo-mark{ background:#fff; }
.footer-brand .logo-mark::after{ background:var(--red); }
.footer-brand strong{ display:block; color:#fff; font-size:16px; letter-spacing:.02em; }
.footer-brand p{ margin:6px 0 0; font-size:13px; line-height:1.8; max-width:340px; }

.footer-nav{ display:flex; flex-wrap:wrap; gap:8px 22px; }
.footer-nav a{ font-size:13.5px; text-decoration:none; color:rgba(255,255,255,.76); font-weight:600; }
.footer-nav a:hover{ color:#fff; text-decoration:underline; text-underline-offset:4px; }

.copy{ padding-top:22px; text-align:center; }
.copy small{ font-size:12px; color:rgba(255,255,255,.5); letter-spacing:.04em; }

/* ---------------------------------------------------------
   Reveal on scroll
   --------------------------------------------------------- */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1; transform:none; }
}
