/* 株式会社シーエックス TOP
   色・幅・余白の基本値はここで変更できます。 */
:root {
  --navy: #082d52;
  --blue: #07649b;
  --green: #08774f;
  --ink: #303f50;
  --mist: #f1f6f5;
  --line: #dbe4e9;
  --page-width: 1320px;
  --page-padding: clamp(24px, 4.6vw, 64px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; font-size: 16px; line-height: 1.9; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--navy); font-weight: 700; }
h2 { font-size: 30px; line-height: 1.55; letter-spacing: .01em; }
h3 { font-size: 22px; line-height: 1.6; }
p + p { margin-top: 16px; }
ul, ol { padding: 0; margin: 0; list-style: none; }
svg { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.section-shell { width: min(100%, var(--page-width)); margin-inline: auto; padding-inline: var(--page-padding); }
.section-spacing { padding-block: 90px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.keep-phrase { white-space: nowrap; }
.skip-link { position: fixed; left: 20px; top: -100px; padding: 10px 20px; background: #fff; z-index: 100; }
.skip-link:focus { top: 10px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.eyebrow { color: var(--green); font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 16px 27px; border: 0; border-radius: 100px; background: var(--green); color: #fff; font-size: 16px; line-height: 1.5; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.button:hover { background: #05613f; transform: translateY(-1px); }
.button svg { width: 21px; height: 21px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-size: 14px; font-weight: 700; border-bottom: 1px solid #b5cbd6; padding-block: 3px; white-space: nowrap; }
.text-link:hover { color: var(--green); border-color: var(--green); }
.text-link svg { width: 18px; height: 18px; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.98); }
.site-header.is-scrolled { box-shadow: 0 2px 12px #082d5209; }
.header-inner { max-width: 1440px; margin-inline: auto; padding-inline: var(--page-padding); height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 15px; color: var(--navy); flex-shrink: 0; }
.brand-mark { font-family: Arial, sans-serif; font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -4px; padding-right: 4px; }
.brand-mark span { color: var(--blue); }
.brand-name { font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 700; color: var(--navy); }
.site-nav > a:not(.button):hover { color: var(--green); }
.nav-cta { padding: 12px 25px; font-size: 14px; gap: 14px; }
.menu-toggle { display: none; }

/* ファーストビュー：左コピー／右に机・PC・植物 */
.hero { position: relative; overflow: hidden; }
.hero-photo, .hero-overlay, .consultation-photo, .consultation-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { object-fit: cover; object-position: center 65%; }
.hero-overlay { background: linear-gradient(90deg, rgba(255,255,255,.93) 0%, rgba(255,255,255,.87) 31%, rgba(255,255,255,.48) 48%, rgba(255,255,255,0) 77%); }
.hero-inner { position: relative; min-height: 680px; display: flex; align-items: center; padding-block: 64px; }
.hero-copy { width: 670px; max-width: 62%; }
.hero h1 { font-size: clamp(46px, 5vw, 66px); line-height: 1.28; letter-spacing: -.025em; margin-bottom: 24px; }
.hero h1 span { display: block; white-space: nowrap; }
.hero-wishes { color: var(--navy); font-size: 21px; font-weight: 700; line-height: 1.65; margin-bottom: 22px; }
.hero-description { font-size: 16px; line-height: 1.85; margin-bottom: 28px; }
.primary-cta { min-height: 58px; padding-inline: 31px; }
.cta-note { margin-top: 12px; font-size: 12px; line-height: 1.8; }

/* 悩み */
.challenges { background: #f4f7f8; }
.challenge-grid { display: grid; grid-template-columns: .95fr 1.15fr; gap: 52px; }
.challenge-grid h2 { font-size: 29px; }
.check-list { border-left: 1px solid #cbd7df; padding-left: 44px; }
.check-list li { position: relative; padding-left: 31px; line-height: 1.8; }
.check-list li + li { margin-top: 18px; }
.check-list li::before { content: "✓"; position: absolute; top: 5px; left: 0; width: 19px; height: 19px; line-height: 17px; text-align: center; font-size: 13px; color: var(--green); border: 1px solid #6eaa8a; border-radius: 50%; background: #fff; }
.challenge-conclusion { text-align: center; margin-top: 42px; color: var(--navy); font-size: 20px; }
.challenge-conclusion p + p { margin-top: 12px; }

/* 3つの支援 */
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-bottom: 32px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.service-card { border: 1px solid #e3eaf0; border-radius: 4px; background: #f6f9fc; padding: 30px 24px; }
.service-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 17px; }
.service-icon { width: 46px; height: 46px; color: var(--blue); stroke-width: 2.4; }
.service-heading h3 { color: var(--blue); white-space: nowrap; }
.service-card p { font-size: 16px; }
.service-lead { color: var(--navy); }
.service-card p + p { margin-top: 14px; }

/* 提案で終わらない伴走 */
.approach { background: var(--mist); }
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.approach h2 { font-size: 32px; }
.section-lead { color: var(--navy); font-size: 23px; font-weight: 700; line-height: 1.65; margin-top: 19px; }
.approach-description { border-left: 1px solid #bdcccd; padding-left: 34px; }
.process { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; background: #fff; border-radius: 4px; margin-top: 38px; padding: 26px 24px; }
.process li { position: relative; display: flex; align-items: center; gap: 16px; color: var(--navy); font-weight: 700; padding-right: 25px; }
.process li:not(:last-child)::after { content: "→"; position: absolute; right: 19px; top: 50%; transform: translateY(-50%); color: #78888e; font-size: 22px; font-weight: 400; }
.process-number { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: #3f7756; color: #fff; font-size: 17px; }

/* 採用前の選択肢 */
.hiring { display: grid; grid-template-columns: 1.22fr 1fr; gap: 48px; align-items: center; }
.hiring h2 { margin-bottom: 24px; }
.comparison { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.comparison th { color: var(--navy); background: #eaf0f4; font-size: 18px; padding: 15px 10px; }
.comparison th + th { background: var(--green); color: #fff; border-left: 1px solid var(--line); }
.comparison td { padding: 22px 18px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.75; vertical-align: middle; }
.comparison td + td { color: var(--green); background: #f7faf8; font-weight: 700; border-left: 1px solid var(--line); }
.comparison td svg { width: 23px; height: 23px; float: left; margin: 5px 13px 12px 0; }
.comparison td span { display: block; overflow: hidden; }

/* 支援事例 */
.cases { padding-top: 0; }
.case-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; align-items: stretch; }
.case-card { border: 1px solid #e1e8ee; border-radius: 4px; overflow: hidden; }
.case-card > img { width: 100%; height: auto; aspect-ratio: 2.45 / 1; object-fit: cover; }
.case-card > .case-photo-pet { object-position: center 10%; }
.case-copy { padding: 20px 23px 23px; }
.case-copy h3 { font-size: 22px; line-height: 1.5; margin-bottom: 10px; }
.case-copy p { font-size: 16px; line-height: 1.8; }
.case-status { font-size: 14px; white-space: nowrap; }

/* 代表紹介 */
.representative { padding-top: 0; }
.representative-grid { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 40px; align-items: center; }
.representative-photo { width: 100%; height: 390px; object-fit: cover; object-position: 50% 33%; border-radius: 3px; }
.representative-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.representative-heading h2 { font-size: 26px; }
.representative-role { font-size: 12px; margin-top: 2px; }
.representative-message { color: var(--navy); font-size: 25px; line-height: 1.6; font-weight: 700; margin: 20px 0; }
.representative-copy > p:not(.representative-message) { font-size: 15px; }
.representative-copy > p + p { margin-top: 12px; }

/* 初回相談 */
.consultation { position: relative; overflow: hidden; padding-block: 44px; }
.consultation-photo { object-fit: cover; object-position: center 60%; filter: blur(3px); transform: scale(1.03); }
.consultation-overlay { background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.83) 48%, rgba(255,255,255,.2)); }
.consultation-grid { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: center; }
.consultation h2 { font-size: 28px; line-height: 1.5; margin-bottom: 14px; }
.consultation-copy p { line-height: 1.7; }
.consultation-copy p + p { margin-top: 6px; }
.consultation-action { text-align: center; }
.consultation-action .primary-cta { width: 100%; max-width: 430px; padding-inline: 20px; }
.consultation-action .cta-note { font-size: 12px; }

/* フッターとレビュー専用案内 */
.site-footer { padding-block: 32px; border-top: 1px solid #edf0f2; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer .brand-mark { font-size: 32px; }
.site-footer .brand-name { font-size: 12px; }
.site-footer small { font-size: 11px; color: #687783; }
.footer-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.footer-privacy { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.footer-privacy:hover { color: var(--green); }
.preview-dialog { width: min(480px,calc(100% - 40px)); border: 0; border-radius: 8px; padding: 32px; color: var(--ink); box-shadow: 0 10px 60px #082d5226; }
.preview-dialog::backdrop { background: #082d5259; }
.preview-dialog .button { margin-top: 24px; }

/* 中間幅：文字を小さくせず必要な高さを確保 */
@media (max-width:1160px) {
  .site-nav { gap: 24px; }
  .hero-copy { max-width: 66%; }
  .hero h1 { font-size: 54px; }
  .hero-inner { min-height: 640px; }
  .service-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .service-heading h3 { font-size: 21px; }
  .section-heading h2 { font-size: 27px; }
  .comparison td svg { display: none; }
  .comparison td { padding: 20px 14px; }
  .hiring { gap: 32px; }
  .hiring h2 { font-size: 28px; }
  .process li { font-size: 15px; gap: 12px; }
  .process li:not(:last-child)::after { right: 13px; }
  .representative-grid { grid-template-columns: 300px minmax(0,1fr); gap: 32px; }
  .consultation h2 { font-size: 29px; }
}
@media (min-width:821px) and (max-width:960px) {
  .brand { gap: 10px; }
  .brand-name { font-size: 12px; }
  .site-nav { gap: 16px; font-size: 13px; }
  .nav-cta { padding: 11px 16px; font-size: 13px; }
  .challenge-grid { gap: 28px; }
  .challenge-grid h2 { font-size: 24px; }
  .check-list { padding-left: 25px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 25px; }
  .service-card { padding-inline: 20px; }
  .service-heading h3 { font-size: 18px; }
  .approach h2 { font-size: 28px; }
  .approach-grid { gap: 30px; }
  .case-copy { padding-inline: 18px; }
  .case-copy h3 { font-size: 19px; }
  .representative-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
}

/* タブレットとスマートフォン：自然な縦並び */
@media (max-width:820px) {
  html { scroll-padding-top: 86px; }
  .section-spacing { padding-block: 64px; }
  .header-inner { height: 68px; }
  .brand-mark { font-size: 38px; }
  .brand-name { font-size: 12px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 42px; height: 42px; padding: 8px; border: 0; background: none; cursor: pointer; }
  .menu-toggle > span:not(.sr-only) { display: block; height: 2px; width: 26px; background: var(--navy); transition: transform .2s; }
  .menu-toggle.is-open > span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle.is-open > span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 24px var(--page-padding) 30px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 10px 18px #082d520c; }
  .site-nav.is-open { display: flex; align-items: stretch; flex-direction: column; gap: 0; }
  .site-nav > a { padding: 12px 0; }
  .site-nav .nav-cta { margin-top: 12px; padding: 14px 25px; align-self: flex-start; }
  .hero-inner { min-height: 620px; padding-block: 52px; }
  .hero-copy { max-width: 90%; }
  .hero h1 { font-size: clamp(40px,6.7vw,54px); }
  .hero-overlay { background: linear-gradient(90deg,#ffffffed,#ffffffd9 45%,#ffffff50); }
  .hero-description { max-width: 550px; }
  .challenge-grid { grid-template-columns: 1fr; gap: 30px; }
  .challenge-grid h2 { font-size: 28px; }
  .check-list { border-left: 0; padding-left: 0; }
  .check-list li + li { margin-top: 16px; }
  .challenge-conclusion { text-align: left; margin-top: 32px; font-size: 16px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 27px; }
  .section-heading h2 { font-size: 28px; }
  .service-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-card { padding: 28px; }
  .service-heading { flex-direction: row; align-items: center; gap: 18px; }
  .service-heading h3 { font-size: 22px; }
  .service-lead { margin-left: 64px; }
  .approach-grid { grid-template-columns: 1fr; gap: 28px; }
  .approach h2 { font-size: 29px; }
  .approach-description { border: 0; padding: 0; }
  .section-lead { font-size: 22px; }
  .process { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 24px; padding: 26px 20px; }
  .process li { padding-right: 22px; }
  .process li:nth-child(2)::after { display: none; }
  .hiring { grid-template-columns: 1fr; gap: 30px; }
  .hiring h2 { font-size: 28px; }
  .comparison td { padding: 22px; }
  .comparison td svg { display: block; }
  .cases { padding-top: 0; }
  .case-grid { grid-template-columns: 1fr; gap: 28px; }
  .case-card > img { aspect-ratio: 2.45 / 1; }
  .case-copy { padding: 22px 26px; }
  .case-copy h3 { font-size: 23px; }
  .representative { padding-top: 0; }
  .representative-grid { grid-template-columns: 1fr; gap: 30px; }
  .representative-photo { max-width: 390px; height: auto; aspect-ratio: 4 / 5; object-position: center; }
  .representative-heading { align-items: center; }
  .representative-copy > p:not(.representative-message) { font-size: 16px; }
  .consultation-grid { grid-template-columns: 1fr; gap: 32px; }
  .consultation { padding-block: 48px; }
  .consultation h2 { font-size: 29px; }
  .consultation-overlay { background: #fffffff0; }
  .consultation-action { text-align: left; }
}
@media (max-width:520px) {
  .section-spacing { padding-block: 58px; }
  h2, .section-heading h2 { font-size: 26px; }
  .brand { gap: 12px; }
  .brand-name { font-size: 11px; }
  .brand-mark { font-size: 37px; }
  .hero { display: flex; flex-direction: column; }
  .hero-photo { position: static; order: 2; height: 190px; object-position: 70% 65%; }
  .hero-overlay { display: none; }
  .hero-inner { min-height: auto; padding-top: 38px; padding-bottom: 32px; background: #f8fafb; }
  .hero-copy { max-width: 100%; width: 100%; }
  .hero .eyebrow { font-size: 11px; margin-bottom: 20px; }
  .hero h1 { font-size: clamp(30px,8.8vw,42px); line-height: 1.4; margin-bottom: 21px; }
  .hero-wishes { font-size: 19px; margin-bottom: 19px; }
  .hero-description { font-size: 16px; margin-bottom: 25px; }
  .desktop-break { display: none; }
  .primary-cta { font-size: 14px; padding: 17px 18px; gap: 12px; width: 100%; min-height: 58px; }
  .primary-cta svg { width: 18px; }
  .cta-note { font-size: 11px; }
  .challenge-grid h2 { font-size: 24px; }
  .eyebrow { font-size: 13px; }
  .challenge-conclusion { font-size: 16px; }
  .service-card { padding: 25px 20px; }
  .service-icon { width: 38px; height: 38px; }
  .service-heading { gap: 13px; margin-bottom: 16px; }
  .service-heading h3 { font-size: 20px; white-space: normal; }
  .service-lead { margin-left: 0; }
  .approach h2 { font-size: 26px; }
  .section-lead { font-size: 21px; }
  .process { padding: 24px 16px; column-gap: 14px; row-gap: 23px; margin-top: 30px; }
  .process li { font-size: 14px; gap: 9px; line-height: 1.6; padding-right: 12px; }
  .process-number { width: 28px; height: 28px; font-size: 14px; }
  .process li:not(:last-child)::after { right: -8px; font-size: 19px; }
  .hiring h2 { font-size: 25px; }
  .comparison th { font-size: 16px; padding-block: 14px; }
  .comparison td { font-size: 15px; padding: 20px 14px; }
  .comparison td svg { display: none; }
  .cases, .representative { padding-top: 0; }
  .case-copy { padding: 20px 21px; }
  .case-copy h3 { font-size: 21px; }
  .representative-heading { flex-direction: column; align-items: flex-start; gap: 15px; }
  .representative-message { font-size: 22px; }
  .consultation h2 { font-size: 22px; }
  .consultation-action .cta-note { font-size: 11px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 15px; }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
