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

:root {
  --blue:    #4169B5;
  --blue-lt: #eef2ff;
  --text:    #0d1117;
  --sub:     #5a6270;
  --border:  #dde3f0;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Poppins', sans-serif;
  --font-d:  'Damion', cursive;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-jp);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background: #fff;
}
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* トップページ：透過 */
.site-header.is-home {
  background: transparent;
}
/* 内部ページ：固定・白背景 */
.site-header.is-inner {
  position: fixed;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-logo {
  font-family: var(--font-jp);
  font-size: 20px; font-weight: 700;
  color: var(--text); letter-spacing: -.02em;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative; width: 100%; height: 100svh;
  min-height: 560px; display: flex; align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: 0 60px 0 140px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px; opacity: 0;
}
.hero-eyebrow-line {
  width: 36px; height: 1px; background: var(--blue);
}
.hero-eyebrow-text {
  font-family: var(--font-en);
  font-size: 10px; font-weight: 600;
  letter-spacing: .25em; color: var(--blue);
  text-transform: uppercase;
}
.hero-content { max-width: 640px; }
.hero-title {
  font-family: var(--font-jp);
  font-size: clamp(32px, 4.5vw, 62px); font-weight: 900;
  color: var(--text); line-height: 1.35; letter-spacing: .02em; opacity: 0;
}
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0;
}
.hero-scroll-text {
  font-family: var(--font-en); font-size: 10px;
  letter-spacing: .2em; color: #888; text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, #888, transparent);
  animation: lineAnim 1.8s ease-in-out infinite;
}
@keyframes lineAnim {
  0%   { transform: scaleY(0); transform-origin: top; }
  49%  { transform: scaleY(1); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =============================================
   TIMELINE MAIN WRAPPER
   ============================================= */
.tl-main {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 60px 100px 140px;
}
.tl-rail {
  position: absolute;
  left: 72px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}
.tl-rail-progress {
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 0;
  background: var(--blue);
}

/* =============================================
   TIMELINE SECTION
   ============================================= */
.tl-section {
  position: relative;
  margin-bottom: 120px;
}
.tl-section:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -76px;
  top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue);
  transform: scale(0);
  z-index: 2;
}
.tl-tag {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text);
  margin-bottom: 48px;
  opacity: 0;
}

/* =============================================
   SERVICE CARDS
   ============================================= */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.svc-card {
  padding: 52px 56px 52px 56px;
  border-top: 1.5px solid var(--blue);
  display: flex; flex-direction: column; gap: 20px;
  opacity: 0;
}
.svc-card + .svc-card {
  padding-left: 56px;
  border-left: 1px solid var(--border);
}
.svc-card-num {
  font-family: var(--font-en);
  font-size: 13px; font-weight: 600;
  color: var(--blue); letter-spacing: .2em;
}
.svc-card-icon {
  height: 40px;
  display: flex; align-items: center;
}
.svc-card-icon svg { width: 34px; height: 34px; fill: var(--blue); }
.svc-card-icon-text {
  font-family: var(--font-en);
  font-size: 28px; font-weight: 700; color: var(--blue);
  line-height: 1;
}
.svc-card-title {
  font-size: 20px; font-weight: 700;
  color: var(--text); letter-spacing: .02em;
}
.svc-card-desc {
  font-size: 15px; color: var(--sub); line-height: 1.9;
}

/* =============================================
   SERVICE DETAIL
   ============================================= */
.svc-detail-block { margin-bottom: 100px; }
.svc-detail-block:last-child { margin-bottom: 0; }
.svc-detail-head {
  display: flex; align-items: baseline; gap: 20px;
  margin-bottom: 40px; opacity: 0;
}
.svc-detail-num {
  font-family: var(--font-en);
  font-size: 72px; font-weight: 900; line-height: 1;
  color: var(--blue-lt); letter-spacing: -.04em;
  user-select: none;
}
.svc-detail-titles { display: flex; flex-direction: column; gap: 4px; }
.svc-detail-cat {
  font-family: var(--font-d);
  font-size: 20px; color: var(--blue);
}
.svc-detail-title {
  font-size: clamp(22px, 2.2vw, 28px); font-weight: 700;
  color: var(--text); letter-spacing: .02em; line-height: 1.4;
}
.svc-detail-body {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: center;
  opacity: 0;
}
.svc-detail-block:nth-child(even) .svc-detail-body {
  grid-template-columns: 1.4fr 1fr;
}
.svc-detail-block:nth-child(even) .svc-detail-photo { order: -1; }
.svc-detail-text { display: flex; flex-direction: column; gap: 20px; }
.svc-detail-line {
  width: 36px; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
}
.svc-detail-desc { font-size: 14px; color: var(--sub); line-height: 2.1; }
.svc-detail-photo {
  overflow: hidden; aspect-ratio: 3/2;
  transform: translateY(24px); opacity: 0;
}
.svc-detail-photo img {
  height: 100%; object-fit: cover; object-position: center;
  transition: transform .7s ease;
}
.svc-detail-photo:hover img { transform: scale(1.04); }

/* =============================================
   ABOUT / MVV
   ============================================= */
.mvv-item {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--border);
  opacity: 0;
}
.mvv-photo { overflow: hidden; aspect-ratio: 4/3; }
.mvv-photo img {
  height: 100%; object-fit: cover;
  transition: transform .7s ease;
}
.mvv-photo:hover img { transform: scale(1.04); }
.mvv-label {
  font-family: var(--font-en);
  font-size: 11px; font-weight: 600;
  color: var(--blue); letter-spacing: .2em;
  margin-bottom: 14px; display: block;
}
.mvv-heading {
  font-family: var(--font-en);
  font-size: clamp(18px, 1.9vw, 26px);
  font-weight: 700; color: var(--text);
  letter-spacing: -.01em; margin-bottom: 18px;
  line-height: 1.3;
}
.mvv-line {
  width: 36px; height: 2px;
  background: var(--blue); margin-bottom: 18px;
  transform: scaleX(0); transform-origin: left;
}
.mvv-desc { font-size: 13px; color: var(--sub); line-height: 2.1; }

/* =============================================
   COMPANY TABLE
   ============================================= */
.company-table-wrap { opacity: 0; }
.company-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.company-table th,
.company-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  line-height: 1.75;
}
.company-table tr:first-child th,
.company-table tr:first-child td { border-top: 1px solid var(--border); }
.company-table th {
  width: 180px; font-weight: 600;
  color: var(--blue); font-size: 13px;
  letter-spacing: .02em; white-space: nowrap;
}
.company-table td { color: var(--sub); }

/* =============================================
   CONTACT
   ============================================= */
.contact-wrap { opacity: 0; }
.contact-intro {
  font-size: 14px; color: var(--sub);
  line-height: 2; margin-bottom: 48px;
  max-width: 560px;
}
.contact-fields {
  display: flex; flex-direction: column;
  gap: 28px; max-width: 640px;
}
.contact-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 8px; letter-spacing: .02em;
}
.contact-req { color: var(--blue); margin-left: 4px; }
.contact-input,
.contact-textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--border); border-radius: 3px;
  font-family: var(--font-jp); font-size: 14px;
  color: var(--text); background: #fafbff; outline: none;
  transition: border-color .25s;
}
.contact-input:focus,
.contact-textarea:focus { border-color: var(--blue); background: #fff; }
.contact-textarea { min-height: 160px; resize: vertical; }
.contact-btn {
  display: inline-block; padding: 14px 56px;
  background: var(--blue); color: #fff;
  font-family: var(--font-jp); font-size: 14px;
  font-weight: 600; letter-spacing: .1em;
  border: none; border-radius: 3px;
  cursor: pointer; transition: opacity .25s;
}
.contact-btn:hover { opacity: .8; }
.contact-privacy {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px; cursor: pointer;
  font-size: 14px; color: var(--text);
}
.contact-privacy input[type="checkbox"] {
  width: 16px; height: 16px; cursor: pointer;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.contact-privacy-link {
  text-decoration: underline; color: var(--text);
}
.contact-privacy-link:hover { color: var(--blue); }

/* CF7 ラッパー・レスポンス出力リセット */
.wpcf7 { border: none; margin: 0; padding: 0; }
.wpcf7 form { border: none; margin: 0; padding: 0; }
fieldset.hidden-fields-container {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-inline-size: 0 !important;
}
.wpcf7-response-output { display: none !important; border: none !important; margin: 0 !important; padding: 0 !important; }
.wpcf7-response-output.wpcf7-mail-sent-ok,
.wpcf7-response-output.wpcf7-validation-errors,
.wpcf7-response-output.wpcf7-mail-sent-ng,
.wpcf7-response-output.wpcf7-acceptance-missing,
.wpcf7-response-output.wpcf7-spam-blocked { display: block !important; margin-top: 16px !important; }

/* CF7 リセット */
.wpcf7 br { display: none !important; }
.wpcf7-form-control-wrap { display: block; margin: 0; padding: 0; }
.wpcf7-acceptance { display: block; margin: 0 0 20px 0; padding: 0; }
.wpcf7-acceptance label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer;
  font-size: 14px !important;
  color: var(--text) !important;
  font-weight: normal !important;
  margin: 0 !important;
  padding: 0 !important;
  letter-spacing: normal !important;
}
.wpcf7-acceptance input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  cursor: pointer;
  accent-color: var(--blue);
  flex-shrink: 0;
  margin: 0 !important;
}
.wpcf7-list-item { margin: 0 !important; }
.wpcf7-list-item-label { margin: 0; padding: 0; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #333; padding: 28px 24px; text-align: center;
}
.footer-copy {
  font-family: var(--font-en); font-size: 15px; font-weight: 600;
  color: #aaa; letter-spacing: .03em;
}

/* =============================================
   THANKS PAGE（お問い合わせ完了）
   ============================================= */
.thanks-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 100px 40px; text-align: center;
}
.thanks-icon {
  width: 64px; height: 64px;
  background: var(--blue); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 32px;
}
.thanks-icon svg { width: 32px; height: 32px; fill: #fff; }
.thanks-en {
  font-family: var(--font-en);
  font-size: 11px; font-weight: 600;
  color: var(--blue); letter-spacing: .2em;
  text-transform: uppercase; margin-bottom: 20px;
}
.thanks-title {
  font-size: clamp(22px, 3vw, 32px); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.4; margin-bottom: 24px;
}
.thanks-desc {
  font-size: 15px; color: var(--sub);
  line-height: 2; max-width: 480px;
  margin: 0 auto 48px;
}
.thanks-btn {
  display: inline-block; padding: 14px 48px;
  background: var(--blue); color: #fff;
  font-family: var(--font-jp); font-size: 14px;
  font-weight: 600; letter-spacing: .08em;
  border-radius: 3px; transition: opacity .25s;
}
.thanks-btn:hover { opacity: .8; }

@media (max-width: 768px) {
  .thanks-wrap { padding: 80px 24px; }
}

/* =============================================
   CONTACT LP（SNS流入向け問い合わせページ）
   ============================================= */
.lp-wrap {
  min-height: 100vh;
  padding: 120px 40px 80px;
  max-width: 760px;
  margin: 0 auto;
}
.lp-hero { margin-bottom: 56px; }
.lp-hero-en {
  font-family: var(--font-en);
  font-size: 11px; font-weight: 600;
  color: var(--blue); letter-spacing: .2em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.lp-hero-en::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--blue);
}
.lp-hero-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: 20px;
}
.lp-hero-desc {
  font-size: 14px;
  color: var(--sub);
  line-height: 1.9;
}
/* 内部ページのヘッダーを固定白背景に */
.site-header.is-inner {
  position: fixed;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .lp-wrap { padding: 100px 24px 60px; }
}

/* =============================================
   PRIVACY PAGE
   ============================================= */
.page-hero {
  padding: 140px 40px 60px;
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}
.page-hero-en {
  font-family: var(--font-en);
  font-size: 11px; font-weight: 600;
  color: var(--blue);
  letter-spacing: .15em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.page-hero-en::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--blue);
}
.page-hero-title {
  font-family: var(--font-jp);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.privacy-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 40px 100px;
}
.privacy-intro {
  font-size: 15px;
  line-height: 1.85;
  color: var(--sub);
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.privacy-section { margin-bottom: 48px; }
.privacy-section-title {
  font-size: 16px; font-weight: 700;
  color: var(--text); margin-bottom: 16px;
  display: flex; align-items: baseline; gap: 12px;
}
.privacy-section-title::before {
  content: '';
  display: block;
  width: 4px; height: 16px;
  background: var(--blue); border-radius: 2px;
  flex-shrink: 0;
}
.privacy-section-body { font-size: 14px; line-height: 1.9; color: var(--sub); }
.privacy-list { list-style: none; padding: 0; margin-top: 8px; }
.privacy-list li {
  font-size: 14px; line-height: 1.9; color: var(--sub);
  padding-left: 16px; position: relative;
}
.privacy-list li::before {
  content: '・'; position: absolute; left: 0; color: var(--blue);
}
.privacy-contact-box {
  background: var(--blue-lt);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px; margin-top: 12px;
}
.privacy-contact-box p { font-size: 14px; line-height: 1.9; color: var(--sub); }
.privacy-contact-box a { color: var(--blue); text-decoration: underline; }
.privacy-contact-box a:hover { opacity: .7; }
.privacy-date {
  margin-top: 64px; padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--sub); text-align: right;
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 48px; font-size: 13px; font-weight: 600;
  color: var(--blue); letter-spacing: .04em; transition: gap .2s;
}
.back-link:hover { gap: 12px; }
.back-link::before { content: '←'; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .tl-main { padding: 80px 40px 80px 120px; }
  .svc-detail-body { gap: 40px; }
}

@media (max-width: 768px) {
  .site-header { padding: 16px 20px; }
  .hero-inner { padding: 0 24px; justify-content: center; }
  .hero-content { text-align: left; }
  .hero-title { font-size: clamp(24px, 6vw, 36px); }

  .tl-main { padding: 60px 24px; }
  .tl-rail { display: none; }
  .tl-dot  { display: none; }

  .svc-cards { grid-template-columns: 1fr; }
  .svc-card,
  .svc-card + .svc-card { padding: 32px 0; border-left: none; }

  .svc-detail-body,
  .svc-detail-block:nth-child(even) .svc-detail-body {
    grid-template-columns: 1fr; gap: 28px;
  }
  .svc-detail-block:nth-child(even) .svc-detail-photo { order: 0; }
  .svc-detail-head { flex-direction: column; gap: 8px; margin-bottom: 28px; }
  .svc-detail-num { font-size: 48px; }

  .mvv-item { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .company-table th { width: 110px; }
  .company-table th, .company-table td { padding: 14px 12px; font-size: 13px; }

  .page-hero { padding: 110px 24px 48px; }
  .privacy-wrap { padding: 48px 24px 72px; }
  .privacy-section { margin-bottom: 36px; }
}

@media (max-width: 480px) {
  .site-header { padding: 14px 16px; }
  .header-logo { font-size: 15px; }
  .hero-title { font-size: clamp(22px, 7vw, 32px); }
  .hero-scroll { display: none; }
}
