/* =========================================================
   合同会社PORTO — Corporate Site
   Design system / shared stylesheet
   Palette : White #FFFFFF / Sky #3399CC / Navy #003399 / Ink #111111
   Type    : JP = Meiryo UI, EN = Georgia
   ========================================================= */

:root {
  --white: #ffffff;
  --sky: #3399cc;
  --sky-soft: #eef6fc;
  --navy: #003399;
  --ink: #111111;
  --ink-60: #4a4f57;
  --ink-40: #7c828c;
  --line: #e6e9ee;
  --gray-bg: #f5f7fa;

  --font-jp: "Meiryo UI", "Meiryo", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --wrap-narrow: 820px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-pad: clamp(72px, 11vw, 148px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--white);
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--section-pad); }
.section--gray { background: var(--gray-bg); }
.section--sky { background: var(--sky-soft); }

/* section heading (EN label + JP title) */
.sec-head { margin-bottom: clamp(40px, 6vw, 68px); }
.sec-head__en {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--sky);
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}
.sec-head__en::before {
  content: "";
  display: inline-block;
  width: 26px; height: 1px;
  background: var(--sky);
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-2px);
}
.sec-head__title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.sec-head--center { text-align: center; }
.sec-head--center .sec-head__en::before { display: none; }

.lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 2.1;
  color: var(--ink-60);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 17px 38px;
  border-radius: 999px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  border: 1.5px solid var(--sky);
}
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--primary {
  background: var(--sky);
  color: var(--white);
  box-shadow: 0 10px 26px -12px rgba(51,153,204,.7);
}
.btn--primary:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(0,51,153,.6); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--sky); color: var(--white); transform: translateY(-2px); }
.btn--lg { padding: 20px 48px; font-size: 1.05rem; }

/* text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding-inline: var(--gutter);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, height .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(17,17,17,.5); height: 68px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand__logo {
  font-family: var(--font-en);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--navy);
}
.brand__tag { font-size: 0.66rem; letter-spacing: 0.24em; color: var(--ink-40); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav__link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding-block: 6px;
}
.nav__link span { font-family: var(--font-en); font-size: .62rem; display: block; color: var(--sky); letter-spacing: .12em; line-height: 1; margin-bottom: 3px; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--sky);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__cta { margin-left: 6px; }

.nav-toggle { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #f3f9fd 0%, #ffffff 55%, #eef6fc 100%);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: .16;
}
.hero__glow {
  position: absolute; z-index: 0; border-radius: 50%;
  filter: blur(70px); opacity: .5;
}
.hero__glow--1 { width: 46vw; height: 46vw; background: #bfe1f4; top: -12vw; right: -8vw; }
.hero__glow--2 { width: 34vw; height: 34vw; background: #cdd9f7; bottom: -10vw; left: -6vw; }
.hero__inner { position: relative; z-index: 1; padding-block: 120px; }
.hero__eyebrow {
  font-family: var(--font-en);
  font-style: italic;
  letter-spacing: 0.16em;
  color: var(--sky);
  font-size: 1rem;
  margin-bottom: 26px;
}
.hero__title {
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 30px;
}
.hero__title .accent { color: var(--sky); }
.hero__sub {
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 2.1;
  color: var(--ink-60);
  max-width: 30em;
  margin-bottom: 44px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 1; font-family: var(--font-en); font-size: .64rem; letter-spacing: .22em;
  color: var(--ink-40); display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--sky), transparent); animation: scrolldot 2s var(--ease) infinite; }
@keyframes scrolldot { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.about__body p { margin-bottom: 1.7em; color: var(--ink-60); font-size: 1.03rem; }
.about__body p:last-child { margin-bottom: 0; }
.about__body strong { color: var(--ink); font-weight: 700; }
.about__pull {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.7;
  color: var(--navy);
  margin-bottom: 1.5em !important;
  letter-spacing: 0.03em;
}
.about__figure { position: relative; }
.about__portrait {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 6px; background: var(--gray-bg);
}
.about__figure figcaption {
  position: absolute; left: -14px; bottom: 26px;
  background: var(--navy); color: #fff; font-size: .82rem;
  padding: 12px 20px; letter-spacing: .06em; border-radius: 3px;
  box-shadow: 0 14px 30px -14px rgba(0,51,153,.7);
}
.about__figure figcaption b { font-size: 1rem; letter-spacing: .08em; }
.ph {
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-40); font-size: .8rem; letter-spacing: .1em; text-align: center;
  background: repeating-linear-gradient(135deg, #eef2f7 0 14px, #f5f8fb 14px 28px);
}

/* =========================================================
   SERVICE
   ========================================================= */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 30px);
}
.svc-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(30px, 3.2vw, 44px) clamp(26px, 2.6vw, 36px);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  overflow: hidden;
}
.svc-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--navy));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.svc-card:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -30px rgba(0,51,153,.35); border-color: transparent; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card__num {
  font-family: var(--font-en); font-size: 3rem; font-weight: 700;
  color: var(--sky-soft); line-height: 1; margin-bottom: 14px;
  transition: color .4s var(--ease);
}
.svc-card:hover .svc-card__num { color: var(--sky); }
.svc-card__title {
  font-size: 1.32rem; font-weight: 700; letter-spacing: .04em;
  margin-bottom: 18px; color: var(--ink);
}
.svc-card__title small { display: block; font-family: var(--font-en); font-size: .72rem; color: var(--sky); letter-spacing: .14em; margin-top: 5px; font-weight: 400; }
.svc-card__text { font-size: .96rem; color: var(--ink-60); line-height: 2; flex-grow: 1; margin-bottom: 26px; }
.svc-card__link { margin-top: auto; }

/* =========================================================
   RESULTS
   ========================================================= */
.results { color: var(--white); position: relative; overflow: hidden; }
.results { background: linear-gradient(135deg, var(--navy) 0%, #0a2f8a 45%, var(--sky) 130%); }
.results::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 40%);
  pointer-events: none;
}
.results .sec-head__title { color: #fff; }
.results .sec-head__en { color: #bfe1f4; }
.results .sec-head__en::before { display: none; }
.res-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 44px); position: relative; z-index: 1;
}
.res-item { border-top: 1px solid rgba(255,255,255,.22); padding-top: 26px; }
.res-item__num {
  font-family: var(--font-en); font-weight: 700; line-height: 1;
  font-size: clamp(3rem, 6vw, 4.6rem); letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 2px;
}
.res-item__unit { font-size: .42em; font-weight: 700; }
.res-item__label { margin-top: 16px; font-size: .95rem; line-height: 1.7; color: rgba(255,255,255,.88); }
.res-note {
  margin-top: clamp(40px, 5vw, 60px); font-size: .82rem;
  color: rgba(255,255,255,.72); position: relative; z-index: 1; letter-spacing: .03em;
}

/* =========================================================
   INTERVIEW
   ========================================================= */
.intv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 28px); }
.intv-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(28px, 3vw, 38px); display: flex; flex-direction: column;
  box-shadow: 0 20px 40px -34px rgba(17,17,17,.4);
}
.intv-card__quote { font-family: var(--font-en); font-size: 3rem; line-height: .8; color: var(--sky); height: 26px; }
.intv-card__stars { color: var(--sky); letter-spacing: .1em; margin: 14px 0 18px; font-size: .95rem; }
.intv-card__text { font-size: .97rem; color: var(--ink-60); line-height: 2.05; flex-grow: 1; }
.intv-card__meta { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.intv-card__company { font-weight: 700; color: var(--ink); letter-spacing: .03em; }
.intv-card__industry { font-size: .82rem; color: var(--ink-40); margin-top: 4px; }
.intv-card--tba { background: var(--gray-bg); border-style: dashed; justify-content: center; text-align: center; color: var(--ink-40); }
.intv-note { margin-top: 32px; font-size: .82rem; color: var(--ink-40); text-align: center; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact__intro { text-align: center; max-width: 40em; margin-inline: auto; }
.form {
  margin-top: clamp(40px, 5vw, 56px);
  max-width: 720px; margin-inline: auto;
  display: grid; gap: 22px;
}
.form__row { display: grid; gap: 8px; }
.form__row--two { grid-template-columns: 1fr 1fr; gap: 22px; }
.form__label { font-size: .9rem; font-weight: 700; letter-spacing: .04em; }
.form__req { color: #d5453b; font-size: .74rem; margin-left: 8px; font-weight: 700; }
.form__opt { color: var(--ink-40); font-size: .74rem; margin-left: 8px; font-weight: 400; }
.form input, .form select, .form textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 6px;
  padding: 14px 16px; width: 100%; transition: border-color .25s, box-shadow .25s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-soft);
}
.form textarea { min-height: 160px; resize: vertical; }
.form__consent { display: flex; align-items: flex-start; gap: 12px; font-size: .92rem; color: var(--ink-60); background: var(--gray-bg); padding: 18px 20px; border-radius: 6px; }
.form__consent input { width: 18px; height: 18px; margin-top: 4px; flex-shrink: 0; }
.form__consent a { color: var(--navy); text-decoration: underline; }
.form__submit { justify-self: center; margin-top: 10px; }
.form__note { text-align: center; font-size: .82rem; color: var(--ink-40); margin-top: 6px; }
.form__alt { text-align: center; margin-top: 30px; font-size: .95rem; color: var(--ink-60); }
.form__alt a { color: var(--navy); font-weight: 700; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding-block: clamp(56px, 7vw, 84px) 34px; }
.footer__top { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.footer__brand-logo { font-family: var(--font-en); font-size: 1.8rem; font-weight: 700; letter-spacing: .14em; color: #fff; margin-bottom: 18px; }
.footer__addr { font-size: .9rem; line-height: 2; color: rgba(255,255,255,.7); }
.footer__addr a { color: #8ecbea; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-bottom: 26px; }
.footer__nav a { font-size: .88rem; color: rgba(255,255,255,.82); letter-spacing: .04em; transition: color .25s; }
.footer__nav a:hover { color: #8ecbea; }
.footer__sns { display: flex; gap: 14px; }
.footer__sns a {
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: background .25s, border-color .25s, transform .25s;
}
.footer__sns a:hover { background: var(--sky); border-color: var(--sky); transform: translateY(-3px); }
.footer__sns svg { width: 17px; height: 17px; fill: #fff; }
.footer__bottom { margin-top: clamp(40px, 5vw, 60px); padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .78rem; color: rgba(255,255,255,.55); }
.footer__copy { font-family: var(--font-en); letter-spacing: .06em; }

/* =========================================================
   SUB PAGE (page header / prose)
   ========================================================= */
.page-hero {
  padding-top: 150px; padding-bottom: clamp(50px, 7vw, 84px);
  background: linear-gradient(160deg, #f3f9fd, #ffffff 70%);
  border-bottom: 1px solid var(--line);
}
.page-hero__crumb { font-size: .8rem; color: var(--ink-40); margin-bottom: 18px; letter-spacing: .04em; }
.page-hero__crumb a:hover { color: var(--sky); }
.page-hero__en { font-family: var(--font-en); font-style: italic; color: var(--sky); letter-spacing: .16em; font-size: 1rem; display: block; margin-bottom: 12px; }
.page-hero__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: .04em; line-height: 1.3; }
.page-hero__desc { margin-top: 20px; color: var(--ink-60); font-size: 1.05rem; max-width: 40em; }

.prose { max-width: var(--wrap-narrow); }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: .03em; margin: 2.2em 0 .9em; padding-left: 18px; border-left: 4px solid var(--sky); line-height: 1.4; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.18rem; font-weight: 700; color: var(--navy); margin: 1.8em 0 .6em; }
.prose p { color: var(--ink-60); margin-bottom: 1.5em; line-height: 2.05; }
.prose ul.ticks { margin: 0 0 1.6em; display: grid; gap: 12px; }
.prose ul.ticks li { position: relative; padding-left: 32px; color: var(--ink-60); line-height: 1.8; }
.prose ul.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 18px; height: 10px; border-left: 2px solid var(--sky); border-bottom: 2px solid var(--sky); transform: rotate(-45deg); }

/* company info table */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 20px 4px; border-bottom: 1px solid var(--line); font-size: .98rem; }
.info-table th { width: 210px; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.info-table td { color: var(--ink-60); }

/* process steps */
.steps { display: grid; gap: 4px; counter-reset: step; margin: 8px 0 0; }
.step { position: relative; padding: 24px 24px 24px 78px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 24px; top: 22px; font-family: var(--font-en); font-size: 1.5rem; font-weight: 700; color: var(--sky); }
.step h3 { margin: 0 0 6px; font-size: 1.08rem; color: var(--ink); }
.step p { margin: 0; font-size: .93rem; }

/* CTA band */
.cta-band { background: var(--sky-soft); text-align: center; }
.cta-band__title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: .04em; margin-bottom: 18px; }
.cta-band__text { color: var(--ink-60); margin-bottom: 34px; }

/* fee card */
.fee { background: var(--gray-bg); border-radius: 10px; padding: clamp(30px,4vw,48px); text-align: center; margin-top: 40px; }
.fee__label { font-family: var(--font-en); letter-spacing: .16em; color: var(--sky); font-size: .8rem; }
.fee__value { font-size: clamp(1.6rem,4vw,2.4rem); font-weight: 700; color: var(--navy); margin: 10px 0; }
.fee__note { font-size: .88rem; color: var(--ink-40); }

/* =========================================================
   reveal animation
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__scroll::after { animation: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__figure { max-width: 420px; margin-inline: auto; order: -1; }
  .svc-grid { grid-template-columns: 1fr; }
  .intv-grid { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; background: #fff; padding: 40px; box-shadow: -20px 0 60px -30px rgba(0,0,0,.4); transform: translateX(100%); transition: transform .4s var(--ease); }
  .nav.is-open { transform: none; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; background: transparent; border: none; z-index: 110; }
  .nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .form__row--two { grid-template-columns: 1fr; }
  .info-table th { width: 130px; }
  .footer__bottom { flex-direction: column; }
}
@media (max-width: 460px) {
  .res-grid { grid-template-columns: 1fr; }
}
