/* ════════════════════════════════════════
   LifeTime デモサイト — スタイルシート v3
   白ベース × 紺・ブルー × 明朝体 / 清潔感・信頼感
   内容は公式サイトに準拠
════════════════════════════════════════ */

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

:root {
  --navy:    #1D3050;   /* メインの紺 */
  --navy-d:  #142239;
  --blue:    #3D6EB4;   /* アクセントブルー */
  --blue-l:  #7FA8D9;
  --bg:      #F4F8FC;   /* 薄い背景 */
  --white:   #FFFFFF;
  --text:    #2A3744;
  --mid:     #5C6B7A;
  --light:   #92A3B5;
  --line:    rgba(29, 48, 80, 0.12);
  --serif:   "Noto Serif JP", serif;
  --sans:    "Noto Sans JP", sans-serif;
  --tr:      0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius:  18px;
  --shadow:  0 10px 36px rgba(29, 48, 80, 0.10);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 32px; }

/* ── デモ表示バナー ── */

/* ════ アニメーション基礎 ════ */
.fade-up {
  opacity: 0; transform: translateY(26px);
  animation: fadeUp 1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.d1 { animation-delay: .15s; } .d2 { animation-delay: .3s; }
.d3 { animation-delay: .45s; } .d4 { animation-delay: .6s; }

.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .9s ease, transform .9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .26s; } .reveal.d3 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up, .reveal { animation: none; transition: none; opacity: 1; transform: none; }
  .hero-scroll-bar { animation: none !important; }
}

/* ════ HEADER ════ */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 450;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px 0 20px; height: 84px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  transition: box-shadow var(--tr), height var(--tr);
}
#header.scrolled {
  box-shadow: 0 2px 24px rgba(29, 48, 80, 0.08);
  height: 72px;
}
.header-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.header-logo img { height: 76px; width: auto; transition: height var(--tr); }
#header.scrolled .header-logo img { height: 62px; }
.header-logo-text {
  font-family: "Cormorant Garamond", serif; font-size: 2rem; font-weight: 600;
  color: var(--navy); letter-spacing: .12em; line-height: 1.1;
  display: flex; flex-direction: column;
}
.header-logo-text small {
  font-family: var(--sans); font-size: .7rem; font-weight: 400;
  color: var(--light); letter-spacing: .18em;
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  font-size: .82rem; font-weight: 500; letter-spacing: .08em;
  color: var(--text); text-decoration: none; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: right; transition: transform var(--tr);
  border-radius: 2px;
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta a {
  background: var(--navy); color: var(--white) !important;
  padding: 11px 24px !important; border-radius: 100px;
  transition: background var(--tr), box-shadow var(--tr), transform var(--tr);
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-cta a::after { display: none; }
.nav-cta a:hover { background: var(--blue); box-shadow: 0 8px 22px rgba(61,110,180,.35); transform: translateY(-1px); }
.nav-cta-arrow { transition: transform var(--tr); }
.nav-cta a:hover .nav-cta-arrow { transform: translateX(4px); }

.nav-close-li, .nav-overlay { display: none; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-burger span {
  width: 26px; height: 2px; background: var(--navy);
  border-radius: 2px; transition: all .35s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════ HERO ════ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(127, 168, 217, 0.12), transparent 65%),
    linear-gradient(180deg, #FFFFFF 0%, #F7FAFD 100%);
  min-height: 420px;
  padding: 108px 0 56px;
}
.hero-photo {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(52%, 840px); pointer-events: none;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: left center;
  -webkit-mask-image: linear-gradient(to left, #000 50%, transparent 92%);
          mask-image: linear-gradient(to left, #000 50%, transparent 92%);
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 1140px; margin: 0 auto; padding: 0 40px;
}
.hero-text { max-width: 580px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem; font-weight: 500; letter-spacing: .24em; color: var(--blue);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--blue); }
.hero-catch {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.6;
  color: var(--navy); letter-spacing: .04em;
  margin-bottom: 14px;
}
.hero-catch em { font-style: normal; color: var(--blue); }
.hero-sub {
  font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 400;
  font-size: 1.15rem; color: var(--blue); letter-spacing: .1em; margin-bottom: 20px;
}
.hero-body {
  font-size: clamp(.84rem, 1.1vw, .92rem); color: var(--mid);
  line-height: 2.1; margin-bottom: 30px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tag {
  font-size: .76rem; font-weight: 500; letter-spacing: .06em; color: var(--navy);
  border: 1px solid rgba(29, 48, 80, 0.22);
  padding: 6px 18px; border-radius: 100px;
  background: rgba(255,255,255,0.75);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 36px; border-radius: 100px; text-decoration: none;
  font-size: .86rem; font-weight: 700; letter-spacing: .1em;
  transition: all var(--tr); border: none; cursor: pointer; font-family: var(--sans);
}
.btn-arrow { transition: transform var(--tr); font-weight: 400; }
.btn:hover .btn-arrow { transform: translateX(5px); }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 6px 20px rgba(29,48,80,.22); }
.btn-primary:hover { background: var(--blue); box-shadow: 0 10px 30px rgba(61,110,180,.38); transform: translateY(-2px); }
.btn-outline {
  background: var(--white); color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,48,80,.22); }


/* ════ 共通セクション ════ */
section { padding: 110px 0; }
.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: .92rem; font-weight: 500; letter-spacing: .26em;
  color: var(--blue); text-transform: uppercase; margin-bottom: 14px;
}
.sec-label::before { content: ""; width: 24px; height: 1px; background: var(--blue); }
.sec-label-ja {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  color: var(--blue); margin-bottom: 14px;
}
.sec-label-ja::before { content: ""; width: 24px; height: 1px; background: var(--blue); }
.sec-h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 700; color: var(--navy);
  line-height: 1.7; letter-spacing: .04em; margin-bottom: 14px;
}
.sec-h2 em { font-style: normal; color: var(--blue); }
.sec-sub { font-size: .88rem; color: var(--mid); }
.sec-head { margin-bottom: 60px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-label { justify-content: center; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-size: .84rem; font-weight: 700; letter-spacing: .06em;
  color: var(--blue); text-decoration: none; border-bottom: 1px solid transparent;
  transition: all var(--tr);
}
.text-link span { transition: transform var(--tr); }
.text-link:hover { color: var(--navy); border-bottom-color: var(--navy); }
.text-link:hover span { transform: translateX(5px); }

/* ════ PHILOSOPHY（お悩み）════ */
.philosophy { background: var(--white); }
.philo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
}
.philo-img {
  overflow: visible;
  max-height: 440px;
}
.philo-img img {
  aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% center; width: 100%;
  max-height: 440px;
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, #000 8%, #000 52%, transparent 94%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right,  transparent 0%, #000 8%, #000 52%, transparent 94%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
          mask-composite: intersect;
}
.philo-list { list-style: none; margin-bottom: 18px; }
.philo-list li {
  position: relative; padding: 10px 0 10px 30px;
  font-size: .9rem; color: var(--text); line-height: 1.9;
  border-bottom: 1px dashed rgba(143, 164, 184, 0.4);
}
.philo-list li::before {
  content: "✓"; position: absolute; left: 4px; top: 10px;
  color: var(--blue); font-weight: 700;
}
.philo-body p { font-size: .9rem; color: var(--mid); line-height: 2.15; }
.philo-body p + p { margin-top: 14px; }
.philo-body strong { color: var(--navy); font-weight: 700; }

/* ════ STRENGTHS ════ */
.strengths { background: var(--bg); }
.strength-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.strength-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 24px rgba(29, 48, 80, 0.06);
  transition: transform var(--tr), box-shadow var(--tr);
}
.strength-card:hover { transform: translateY(-8px); box-shadow: 0 22px 52px rgba(61, 110, 180, 0.18); }
.strength-img { position: relative; height: 200px; overflow: hidden; }
.strength-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 32%;
  transition: transform .8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.strength-card:hover .strength-img img { transform: scale(1.05); }
.strength-no {
  position: absolute; left: 22px; top: -30px;
  font-family: "Cormorant Garamond", serif; font-size: 3.2rem; font-weight: 500;
  color: var(--blue); line-height: 1;
  text-shadow: 0 1px 10px rgba(255,255,255,.95);
}
.strength-body { position: relative; padding: 44px 28px 34px; }
.strength-title {
  font-family: var(--serif); font-size: 1.12rem; font-weight: 700;
  color: var(--navy); margin-bottom: 12px; letter-spacing: .04em;
}
.strength-desc { font-size: .84rem; color: var(--mid); line-height: 2; }

/* ════ SERVICES ════ */
.services { background: var(--white); }
.svc-rows { display: flex; flex-direction: column; gap: 80px; }
.svc-row {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
  scroll-margin-top: 100px;
}
.svc-row.rev .svc-photo { order: 2; }
.svc-row.rev .svc-body { order: 1; }
.svc-photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 16 / 10;
}
.svc-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% center;
  transition: transform .9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.svc-row:hover .svc-photo img { transform: scale(1.04); }
.svc-photo-tag {
  position: absolute; left: 18px; bottom: 18px;
  font-family: "Cormorant Garamond", serif; font-size: .82rem; letter-spacing: .2em;
  color: var(--navy); background: rgba(255,255,255,.9);
  padding: 6px 18px; border-radius: 100px; text-transform: uppercase;
}
.svc-no {
  font-family: "Cormorant Garamond", serif; font-size: .95rem; letter-spacing: .24em;
  color: var(--blue); text-transform: uppercase; margin-bottom: 10px;
}
.svc-name {
  font-family: var(--serif);
  font-size: 1.4rem; font-weight: 700; color: var(--navy); letter-spacing: .03em;
  line-height: 1.7; margin-bottom: 16px;
}
.svc-desc { font-size: .88rem; color: var(--mid); line-height: 2.05; margin-bottom: 22px; }
.svc-row .btn-outline { padding: 12px 28px; font-size: .8rem; }

/* ════ RESULTS ════ */
.results { background: var(--bg); }
.case-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  margin-bottom: 52px;
}
.case-card {
  background: var(--white); border-radius: 18px; padding: 30px 32px;
  border-top: 3px solid var(--blue);
  box-shadow: 0 4px 20px rgba(29, 48, 80, 0.05);
  transition: transform var(--tr), box-shadow var(--tr);
}
.case-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(61, 110, 180, 0.16); }
.case-industry {
  font-family: "Cormorant Garamond", serif; font-size: .82rem; letter-spacing: .18em;
  color: var(--blue); text-transform: uppercase; margin-bottom: 8px;
}
.case-name {
  font-family: var(--serif);
  font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; line-height: 1.8;
}
.case-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.case-tags span {
  font-size: .68rem; padding: 3px 12px; border-radius: 100px;
  background: var(--bg); color: var(--blue); font-weight: 500;
}
.case-result {
  font-size: .92rem; font-weight: 700; color: var(--navy);
  background: rgba(61, 110, 180, 0.07); border: 1px solid rgba(61, 110, 180, 0.16);
  border-radius: 12px; padding: 13px 18px;
  display: flex; align-items: center; gap: 12px;
}
.case-result::before {
  content: ""; width: 4px; height: 22px; border-radius: 2px;
  background: var(--blue); flex-shrink: 0;
}
.other-title {
  font-family: "Cormorant Garamond", serif; font-size: .9rem; letter-spacing: .22em;
  color: var(--light); text-transform: uppercase; margin-bottom: 18px;
}
.other-list { display: flex; flex-direction: column; gap: 12px; }
.other-item {
  display: grid; grid-template-columns: 220px 1fr; gap: 18px;
  background: var(--white); border-radius: 14px; padding: 18px 24px;
  font-size: .84rem; transition: transform var(--tr), box-shadow var(--tr);
}
.other-item:hover { transform: translateX(4px); box-shadow: 0 8px 24px rgba(61,110,180,.10); }
.other-item dt { font-weight: 700; color: var(--navy); }
.other-item dd { color: var(--mid); line-height: 1.9; }

/* ════ VISION（チーム写真の帯）════ */
.vision {
  position: relative; padding: 150px 32px; text-align: center; overflow: hidden;
  color: var(--white);
}
.vision-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../images/vision-team.png") center 30% / cover no-repeat;
}
.vision-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(20, 34, 57, 0.9) 30%, rgba(29, 48, 80, 0.72) 70%, rgba(61, 110, 180, 0.55));
}
.vision-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.vision-en {
  font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 400;
  font-size: 1.3rem; letter-spacing: .2em; color: var(--blue-l); margin-bottom: 18px;
}
.vision-catch {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700;
  letter-spacing: .1em; line-height: 1.7;
}

/* ════ COMPANY ════ */
.company { background: var(--white); }
.company-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 70px; align-items: center; }
.company-photo img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% center; width: 100%;
}
.company-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.company-table tr { border-bottom: 1px solid var(--line); }
.company-table tr:first-child { border-top: 1px solid var(--line); }
.company-table th {
  width: 120px; text-align: left; vertical-align: top;
  font-size: .76rem; font-weight: 500; letter-spacing: .14em; color: var(--blue);
  padding: 22px 0;
}
.company-table td { font-size: .88rem; color: var(--text); padding: 20px 0; line-height: 2; }

/* ════ CONTACT ════ */
.contact { background: var(--bg); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start;
}
.contact-photo { margin-top: 28px; }
.contact-photo img {
  border-radius: var(--radius);
  aspect-ratio: 16 / 10; object-fit: cover; object-position: 70% center; width: 100%;
}
.contact-form {
  background: var(--white);
  border: 1px solid rgba(127, 168, 217, 0.3);
  border-radius: 22px; padding: 40px 38px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 18px;
}
.form-demo-note {
  font-size: .74rem; color: var(--blue); letter-spacing: .04em;
  background: var(--bg); border: 1px dashed rgba(61, 110, 180, 0.4);
  border-radius: 10px; padding: 9px 14px; text-align: center;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: .78rem; font-weight: 500; color: var(--text); letter-spacing: .06em;
  display: flex; align-items: center; gap: 8px;
}
.req {
  font-size: .6rem; font-weight: 700; color: var(--white);
  background: var(--blue); border-radius: 4px; padding: 1px 7px; letter-spacing: .1em;
}
.form-group input, .form-group textarea {
  background: var(--bg); border: 1px solid rgba(127, 168, 217, 0.4);
  border-radius: 10px; padding: 12px 16px; color: var(--text);
  font-size: 16px; font-family: inherit; outline: none; width: 100%;
  transition: border-color .3s, background .3s, box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--light); }
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--blue); background: var(--white);
  box-shadow: 0 0 0 3px rgba(61, 110, 180, 0.14);
}
.form-privacy {
  display: flex; align-items: center; gap: 10px;
  font-size: .84rem; color: var(--text);
}
.form-privacy input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--blue);
  cursor: pointer; flex-shrink: 0;
}
.form-privacy label { cursor: pointer; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pp-open {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: inherit;
  color: var(--blue); text-decoration: underline; text-underline-offset: 3px;
  transition: color var(--tr);
}
.pp-open:hover { color: var(--navy); }
.contact .btn-primary { margin-top: 4px; }
.form-status { font-size: .82rem; min-height: 1.4em; text-align: center; color: var(--blue); }
.form-status.success { color: #2E8B57; }
.form-status.error { color: #C0504D; }

/* ── 送信完了画面 ── */
.cf-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 60px 32px;
  background: #fff;
  border-radius: 16px;
  text-align: center;
  animation: fadeUp .6s ease both;
}
.cf-success-icon {
  width: 80px;
  height: 80px;
  color: var(--blue);
}
.cf-success-icon svg { width: 100%; height: 100%; }
.cf-success-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .05em;
}
.cf-success-msg {
  font-size: .95rem;
  line-height: 1.8;
  color: #555;
}

/* ════ FOOTER ════ */
footer { background: var(--navy-d); color: rgba(255, 255, 255, 0.7); padding: 56px 40px 70px; }
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-logo-img {
  height: 64px; width: auto;
  filter: brightness(0) invert(1); opacity: .85;
}
.footer-name {
  font-family: "Cormorant Garamond", serif; font-size: 1.4rem; font-weight: 600;
  color: var(--white); letter-spacing: .14em;
}
.footer-pp {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: .78rem; letter-spacing: .06em;
  color: rgba(255, 255, 255, 0.55); text-decoration: underline; text-underline-offset: 3px;
  transition: color var(--tr);
}
.footer-pp:hover { color: var(--white); }
.footer-inner small { font-size: .72rem; color: rgba(255, 255, 255, 0.35); letter-spacing: .08em; }
.footer-demo { color: rgba(255, 255, 255, 0.25) !important; }

/* ════ プライバシーポリシー モーダル ════ */
.pp-modal { position: fixed; inset: 0; z-index: 600; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pp-modal[hidden] { display: none; }
.pp-overlay {
  position: absolute; inset: 0;
  background: rgba(20, 34, 57, 0.72);
}
.pp-box {
  position: relative; background: var(--white); border-radius: 18px;
  max-width: 720px; width: 100%; max-height: 86vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
  animation: ppIn .4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes ppIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.pp-head {
  background: var(--navy); padding: 26px 36px;
  display: flex; align-items: flex-start; justify-content: space-between; flex-shrink: 0;
}
.pp-head-en {
  font-family: "Cormorant Garamond", serif; font-size: 1.5rem; font-weight: 400;
  color: var(--white); letter-spacing: .12em;
}
.pp-head-ja { font-size: .78rem; color: var(--blue-l); margin-top: 2px; letter-spacing: .08em; }
.pp-close {
  background: rgba(255, 255, 255, 0.15); border: none; color: var(--white);
  width: 38px; height: 38px; border-radius: 50%; font-size: 1rem; cursor: pointer;
  line-height: 1; flex-shrink: 0; transition: background var(--tr);
}
.pp-close:hover { background: rgba(255, 255, 255, 0.32); }
.pp-body { padding: 32px 36px 40px; overflow-y: auto; -webkit-overflow-scrolling: touch; font-size: .88rem; color: var(--text); line-height: 1.95; }
.pp-lead { color: var(--mid); margin-bottom: 28px; }
.pp-sec { margin-bottom: 26px; }
.pp-sec h3 {
  font-size: .95rem; font-weight: 700; color: var(--navy);
  border-left: 4px solid var(--blue); padding-left: 12px; margin-bottom: 10px;
}
.pp-sec p { color: var(--mid); }
.pp-sec ul { color: var(--mid); padding-left: 1.5em; margin-top: 6px; }
.pp-sec li { margin-bottom: 5px; }
.pp-sec a { color: var(--blue); }
.pp-sec strong { color: var(--navy); }
.pp-date {
  background: var(--bg); border-radius: 10px; padding: 14px 18px;
  font-size: .78rem; color: var(--light); text-align: center;
}
body.pp-locked { overflow: hidden; }

/* ── ページ上部へ ── */
.to-top {
  position: fixed; right: 26px; bottom: 48px; z-index: 420;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: var(--navy);
  border: 1px solid rgba(61, 110, 180, 0.3);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1rem;
  box-shadow: 0 6px 20px rgba(29, 48, 80, 0.18);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: all var(--tr);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--navy); color: var(--white); }

/* ════════════════════════════════════════
   レスポンシブ
════════════════════════════════════════ */

/* ── 〜1024px：ハンバーガー切り替え（上から出るカード型）── */
@media (max-width: 1024px) {
  .nav-burger { display: flex; }

  /* 背景を暗くするオーバーレイ */
  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 430;
    background: rgba(20, 34, 57, 0.82);
    opacity: 0; pointer-events: none; transition: opacity .35s ease;
  }
  .nav-overlay.open { opacity: 1; pointer-events: auto; }

  /* 白いカードが上からふわっと出る */
  .nav-links {
    position: fixed; top: 14px; left: 14px; right: 14px; bottom: auto;
    height: calc(100dvh - 28px);
    z-index: 440;
    background: var(--white); border-radius: 16px;
    box-shadow: 0 24px 70px rgba(20, 34, 57, 0.3);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 0; padding: 30px 30px 32px;
    overflow-y: auto;
    opacity: 0; transform: translateY(-16px); pointer-events: none;
    transition: opacity .35s ease, transform .4s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; padding: 15px 0; font-size: 1rem;
    border-bottom: 1px solid rgba(29, 48, 80, 0.08);
  }
  .nav-links li:nth-last-child(2) a { border-bottom: none; }
  .nav-cta { margin-top: 14px; }
  .nav-cta a { display: inline-flex !important; justify-content: center; border-bottom: none; }

  /* カード右上の閉じるボタン */
  .nav-close-li {
    display: block; position: absolute; top: 14px; right: 14px; width: auto !important;
  }
  .nav-close {
    background: none; border: none; cursor: pointer;
    font-size: 1.45rem; font-weight: 300; line-height: 1;
    color: var(--navy); padding: 10px;
  }
}

/* ── 〜900px：ヒーロー縦積み・2カラム解除 ── */
@media (max-width: 900px) {
  .hero { padding: 84px 0 0; min-height: unset; }
  .hero-photo {
    position: relative; top: auto; right: auto; bottom: auto;
    width: 100%; height: 260px; margin-top: 32px;
  }
  .hero-photo img {
    height: 100%; object-position: 60% center;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
  .hero-inner { padding: 0 24px; }
  .hero-text { max-width: none; }
  .hero-catch br { display: none; }

  .philo-grid, .company-grid { grid-template-columns: 1fr; gap: 44px; }
  .philo-img, .philo-img img { max-height: 230px; }
  .strength-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .svc-row, .svc-row.rev { grid-template-columns: 1fr; gap: 28px; }
  .svc-row.rev .svc-photo { order: 0; }
  .svc-row.rev .svc-body { order: 1; }
  .case-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .contact-photo { display: none; }
}

/* ── 〜600px：スマホ調整 ── */
@media (max-width: 600px) {
  #header { padding: 0 14px 0 10px; height: 66px; }
  .header-logo img { height: 54px; }
  .header-logo-text { font-size: 1.5rem; }
  .header-logo-text small { font-size: .58rem; }
  #header.scrolled { height: 60px; }
  #header.scrolled .header-logo img { height: 48px; }

  section { padding: 72px 0; }
  .wrap { padding: 0 20px; }
  .hero { padding: 66px 0 0; }
  .hero-inner { padding: 0 20px; }
  .hero-catch { font-size: 1.65rem; line-height: 1.65; }
  .hero-catch br { display: block; }
  .hero-photo { height: 240px; }
  .hero-btns .btn { padding: 13px 22px; font-size: .82rem; }
  .hero-card-icon { width: 40px; height: 40px; }
  .hero-card-icon svg { width: 23px; height: 23px; }

  .svc-rows { gap: 44px; }
  .svc-photo { aspect-ratio: unset; height: 200px; }
  .svc-name { font-size: 1.18rem; }
  .case-card { padding: 24px 22px; }
  .other-item { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
  .vision { padding: 96px 22px; }
  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  footer { padding: 44px 24px 64px; }
  .to-top { right: 16px; bottom: 44px; }
  .demo-ribbon { font-size: .58rem; padding: 6px 10px; }
  .pp-modal { padding: 12px; }
  .pp-head { padding: 18px 20px; }
  .pp-body { padding: 22px 20px 28px; }

  /* ビジュアル画像：スマホでは左右に余白を入れて少し幅を狭くする */
  .section-visual {
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
  }
}
