:root {
  --sky: #b4ddf0;
  --ink: #3d332d;
  --muted: #625b55;
  --accent: #467b91;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--sky); font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 20; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }

/* 独自のCSS多角形。背景だけを固定し、文書は通常の縦スクロールを維持。 */
.background-shapes { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.background-shapes i { position: absolute; display: block; }
.background-shapes i:nth-child(1) { inset: 0 51% 35% 0; background: #c4e5f3; opacity: .52; clip-path: polygon(0 0, 77% 0, 27% 100%); }
.background-shapes i:nth-child(2) { inset: 23% 61% 0 0; background: #9ecfe6; opacity: .27; clip-path: polygon(0 0, 100% 45%, 40% 100%, 0 68%); }
.background-shapes i:nth-child(3) { inset: 0 0 26% 64%; background: #cce9f6; opacity: .4; clip-path: polygon(36% 0, 100% 0, 100% 100%, 0 51%); }
.background-shapes i:nth-child(4) { inset: 40% 0 0 58%; background: #9ecfe6; opacity: .24; clip-path: polygon(100% 0, 100% 100%, 0 69%); }
.background-shapes i:nth-child(5) { inset: 57% 55% 0 7%; background: #d1edf8; opacity: .27; clip-path: polygon(0 100%, 100% 0, 76% 100%); }
.background-shapes i:nth-child(6) { inset: 0 13% 56% 45%; background: #96cbe3; opacity: .13; clip-path: polygon(0 0, 100% 0, 73% 100%); }
.site-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 384px minmax(0, 1fr); max-width: 1520px; margin-inline: auto; align-items: start; }
.side { position: sticky; top: 0; min-width: 0; height: 100svh; }
.side-left { padding: 48px clamp(28px, 4.2vw, 64px); }
.side-logo { display: block; width: min(100%, 350px); }
.side-logo img { display: block; width: 100%; height: auto; /* 画像幅2172pxのうち左101pxは透明余白。サイズを維持して補正。 */ transform: translateX(-4.65009%); }
.navigation { list-style: none; padding: 0; margin: 35px 0 0; display: grid; gap: 24px; }
.navigation a, .navigation span { display: inline-block; position: relative; font-size: 17px; font-weight: 600; letter-spacing: .13em; line-height: 1.5; }
.navigation a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.navigation a:hover { color: var(--accent); }
.navigation a:hover::after { transform: scaleX(1); }
.navigation span { cursor: default; }
.side-left .navigation { text-align: left; }
.side-left .navigation a, .side-left .navigation span { letter-spacing: .04em; }
.center-column { position: relative; min-width: 0; background: #fff; margin-top: 40px; border-radius: 20px 20px 0 0; }
.site-header { box-sizing: border-box; width: 100%; height: 50px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border-radius: 20px 20px 0 0; position: relative; z-index: 5; }
.header-logo { display: block; flex: 0 1 150px; min-width: 0; }
/* 元画像を加工せず、左側101/2172の透明余白だけ表示位置で補正。 */
.header-logo img { display: block; width: 100%; height: auto; transform: translateX(-4.65009%); }
.header-actions { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.header-button { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 90px; height: 26px; padding: 0 8px; border: 0; border-radius: 999px; color: #fff; font-size: 10px; font-weight: 600; line-height: 1; white-space: nowrap; }
.header-button-works { background: #c8cbce; }
.header-button-contact { background: #478db8; transition: background-color .2s ease; }
.header-button-contact:hover { background: #2f78ad; }
.header-button:disabled { opacity: 1; cursor: not-allowed; }

/* 固定の縦長領域でフェード。画像の切替によるレイアウト移動を防ぐ。 */
.hero { padding-bottom: 24px; }
.hero-media { position: relative; }
.hero-visual { position: relative; height: 576px; isolation: isolate; overflow: hidden; background: #fff; }
.hero-visual .slides, .hero-visual::after { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 58px), 50% 100%, 0 calc(100% - 58px)); }
.hero-scroll { position: absolute; z-index: 3; left: 50%; bottom: -24px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 14px; color: #72afd0; font-size: 14px; font-weight: 600; line-height: 20px; letter-spacing: .08em; pointer-events: none; }
.hero-scroll-line { display: block; width: 3px; height: 60px; background: #72afd033; overflow: hidden; }
.hero-scroll-line::after { content: ""; display: block; width: 100%; height: 100%; background: #72afd0; transform-origin: top; animation: scroll-line-flow 2.6s ease-in-out infinite; }
@keyframes scroll-line-flow {
  0% { transform: scaleY(0); transform-origin: top; }
  45%, 60% { transform: scaleY(1); transform-origin: top; }
  61% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.slides, .slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide { object-fit: cover; opacity: 0; transition: opacity 1.5s ease-in-out; }
.slide.is-active { opacity: 1; }
/* フェードアウト中も拡大状態を維持し、非表示の次回再生時だけリセット。 */
.slide.is-zooming { animation: fv-zoom 6s linear forwards; }
.slides.is-paused .slide { animation-play-state: paused; }
@keyframes fv-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.slide-woman { --woman-offset: clamp(36px, 12vw, 48px); left: calc(-1 * var(--woman-offset)); right: auto; width: calc(100% + var(--woman-offset)); object-position: 60% 40%; transform-origin: 60% 50%; }
.slide-work { object-position: 50% 85%; }
.slide-city { object-position: 50% 65%; }
.hero-visual::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(0, 0, 0, 0.18); }
.hero-copy { position: absolute; z-index: 2; top: 24px; right: 22px; display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 9px; margin: 0; font-size: 19px; font-weight: 600; letter-spacing: .1em; line-height: 1.6; }
.hero-copy { color: #333333; }
.hero-copy > span { writing-mode: vertical-rl; padding: 13px 7px; background: #fffffff0; }
.hero-copy > span + span { margin-top: 16px; }
.hero-copy .hero-copy-blue { color: #438DB9; }
/* FV直下：参考の余白、左上の吹き出し、右端の縦ラベル、全面写真を踏襲。 */
.consultation-intro { padding-top: 34px; background: #fff; color: #333333; }
.consultation-card { position: relative; margin: 0 29px 50px; padding: 40px 24px 26px; border-radius: 16px; background: #E8F3FA; }
.consultation-bubble { position: absolute; top: -24px; left: -10px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: #72afd0; color: #fff; font-size: 9px; font-weight: 600; line-height: 1.5; letter-spacing: 0; text-align: center; }
.consultation-bubble::after { content: ""; position: absolute; right: 2px; bottom: 3px; width: 13px; height: 15px; background: #72afd0; clip-path: polygon(0 0, 75% 0, 100% 100%); }
.consultation-label { position: absolute; top: -12px; right: 12px; margin: 0; writing-mode: vertical-rl; color: #438DB9; font-family: Arial, sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.consultation-card h2 { margin: 0 0 17px; padding-bottom: 14px; border-bottom: 1px solid #72afd0; color: #333333; font-size: 19px; font-weight: 600; line-height: 1.7; letter-spacing: .01em; }
.consultation-description { font-size: 14px; font-weight: 500; line-height: 1.75; overflow-wrap: anywhere; }
.consultation-description p { margin: 0; }
.consultation-description p + p { margin-top: 12px; }
.consultation-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 22px; padding: 10px 12px; border: 0; border-radius: 999px; background: #438DB9; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.6; text-align: center; transition: background-color .2s ease; }
.consultation-button:hover, .consultation-button:focus-visible { background: #467b91; }
.consultation-button[aria-disabled="true"] { cursor: not-allowed; }
.consultation-photo { margin: 0; }
.consultation-photo img { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; object-position: 65% 50%; }
@media (max-width: 359px) {
  .consultation-card { margin-inline: 24px; padding-inline: 18px; }
  .consultation-card h2 { font-size: 17px; }
}
/* ABOUT：上部の既存レイアウトに影響しない専用スタイル。 */
.about-section { padding: 32px 32px 24px; background-color: #72afd0; background-image: radial-gradient(circle, rgba(255, 255, 255, .12) 1.5px, transparent 2px); background-size: 11px 11px; color: #fff; }
.about-heading { margin: 0 0 22px; }
.about-heading-en { display: block; font-family: Arial, Helvetica, sans-serif; font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: .04em; }
.about-heading-ja { display: block; margin-top: -2px; font-size: 14px; font-weight: 600; line-height: 1.6; }
.about-message { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0 0 20px; }
.about-message > span { display: block; max-width: 100%; padding: 7px 10px; background: #fff; color: #4A4A4A; font-family: "Meiryo", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; font-size: 16px; font-weight: 600; line-height: 1.6; letter-spacing: 0.04em; }
.about-body { font-size: 13px; font-weight: 600; line-height: 1.7; overflow-wrap: anywhere; }
.about-body p { margin: 0; }
.about-body p + p { margin-top: 12px; }
@media (max-width: 359px) {
  .about-section { padding-inline: 24px; }
  .about-message > span { padding-inline: 8px; font-size: 15px; }
}
.side-right { pointer-events: none; }
.right-links { position: fixed; right: max(36px, calc((100vw - 1520px) / 2 + 36px)); bottom: 15svh; width: min(240px, calc((100vw - 384px) / 2 - 54px)); display: grid; gap: 15px; pointer-events: auto; }
.smartphone-card { display: flex; align-items: center; gap: 10px; min-height: 108px; padding: 17px; border-radius: 21px; background: #d3ecf8; }
.smartphone-copy { flex: 1; min-width: 0; }
.smartphone-copy > span { display: block; color: #478db8; font-size: 9px; white-space: nowrap; }
.smartphone-copy p { margin: 4px 0 0; font-size: 12px; font-weight: 600; line-height: 1.6; color: #545c65; white-space: nowrap; }
.qr-space { flex: 0 0 62px; height: 72px; }
.right-button { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; padding: 0 12px; border: 0; border-radius: 999px; color: #fff; font-size: 17px; font-weight: 600; line-height: 1.5; }
.right-button-works { background: #7e93a5; }
.right-button-contact { background: #478db8; }
.right-button:disabled { opacity: 1; cursor: not-allowed; }
@media (min-width: 960px) and (max-width: 1199px) {
  .side-left { padding-inline: 24px; }
  .right-links { right: 18px; width: min(240px, calc((100vw - 384px) / 2 - 36px)); }
}
@media (max-width: 959px) {
  body { background: #fff; }
  .background-shapes, .side { display: none; }
  .site-layout { display: block; max-width: none; }
  .center-column { width: 100%; margin-top: 0; }
  .hero-visual { height: clamp(480px, 150vw, 576px); }
  .hero-copy { right: 6%; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .hero-visual { height: clamp(660px, 100vw, 800px); }
  .hero-copy { top: 50px; font-size: 27px; }
}
@media (max-height: 720px) and (min-width: 960px) {
  .side-left { padding-top: 20px; }
  .navigation { margin-top: 16px; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line::after { animation: none; transform: none; }
  html { scroll-behavior: auto; }
  .slide.is-zooming { animation: none; transform: none; }
  *, *::before, *::after { transition: none !important; }
}

/* トップページのPC右側にある相談窓口 */
.right-consultation-card { padding: 17px; border-radius: 21px; background: #d3ecf8; color: #4a4a4a; }
.right-consultation-card span { color: #478db8; font-size: 12px; }
.right-consultation-card h2 { margin: 6px 0 8px; font-size: 17px; line-height: 1.5; text-align: left; }
.right-consultation-card p { margin: 0; font-size: 13px; line-height: 1.8; }
.right-consultation .right-button { gap: 8px; transition: background-color .2s ease; }
.right-consultation .right-button-contact:hover { background: #2f78ad; }
.right-button-email { background: #fff; color: #478db8; border: 2px solid #75b4da; }
.right-button-email:hover { background: #eef7fc; }
@media (max-height: 420px) {
  .right-consultation { bottom: 8px; max-height: calc(100svh - 16px); overflow-y: auto; }
}
