/*
 * EST トップページ（v2）— EST 固有の調整だけを書く。
 * 共通の部品は lp-base.css（StockPilot / E-Document の LP と同じデザインの仕組み）。
 */

/* SWELL の本文用コンテナの余白を外し、セクションを画面幅いっぱいに出す */
.est-top-v2 .l-content { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.est-top-v2 { overflow-x: clip; }
.est-top { padding: 0 !important; }
.est-top a.btn { text-decoration: none; }
.est-top .btn-primary, .est-top .btn-primary:hover { color: #fff; }

/* 見出しとリードの最後の 1 文字だけが次の行に残らないようにする */
.est-top h2, .est-top h3, .est-top .section-lead { text-wrap: balance; }
.est-top p, .est-top li { text-wrap: pretty; }
/* 日本語のキャッチは語の途中で折り返さない（| → <wbr> の位置でだけ改行） */
.est-top-lang-ja .est-top .hero h1 .accent { word-break: keep-all; }
/* 日本語の見出しは文節で折り返す（対応していないブラウザでは通常の折り返し） */
.est-top-lang-ja .est-top h2, .est-top-lang-ja .est-top h3 { word-break: auto-phrase; }

/* ── ヒーロー ── */
/* 背景は E-Document の LP と同じ「日本とベトナム、ホーチミンの街並み」 */
.est-top .hero::before {
	width: 70%;
	background-image: url("img/lp/hero-bg.webp");
	background-position: right center;
	opacity: 1;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .8) 25%, #000 45%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .8) 25%, #000 45%);
}
@media (max-width: 960px) {
	.est-top .hero::before { width: 100%; opacity: .18; background-image: url("img/lp/hero-bg-sm.webp"); }
}
.est-top .hero-product img { width: 120px; height: auto; }
/* 日本語の管理画面に、ベトナム語の給与明細を重ねる（同じデータを 2 つの言語で） */
.est-top .est-hero-sub { position: absolute; z-index: 2; left: 0; bottom: 0; width: 46%; margin: 0; }
.est-top .est-hero-sub img { aspect-ratio: 1212 / 640; object-fit: cover; object-position: top left; }
.est-top .est-chip-sub { left: 8%; bottom: calc(46% * .53 + 6px); }
.est-top .est-chip-sub span, .est-top .hero-chip-lang span { white-space: nowrap; }
@media (max-width: 560px) {
	.est-top .est-chip-sub { display: none; }
}
.est-top .hero-strip b { font-size: 26px; }
.est-top .est-strip-note { width: min(var(--container), 100% - 40px); margin: 0 auto; padding: 0 0 10px; font-size: 11.5px; color: var(--slate); }

/* ── 毎月の流れ（overview を 5 段階で使う） ── */
.est-top .est-overview-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 0; }
@media (max-width: 900px) {
	.est-top .est-overview-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.est-top .est-overview-5 .overview-step::after { display: none; }
}
@media (max-width: 480px) { .est-top .est-overview-5 { grid-template-columns: 1fr; } }

/* ── 選ばれる理由（申し込み案内と同じ紺の帯で目立たせる） ── */
.est-top .est-reasons {
	background: linear-gradient(120deg, rgba(6, 27, 77, .94) 0%, rgba(9, 40, 108, .9) 55%, rgba(0, 105, 198, .82) 100%),
		url("img/lp/cta-bg.webp") center / cover no-repeat var(--navy);
}
.est-top .est-reasons .section-head h2 { color: #fff; }
.est-top .est-reasons .section-lead { color: rgba(255, 255, 255, .82); }
/* 1 枚目（日本の商習慣でトータルサポート）を横いっぱいに大きく。残りは 3 枚ずつ並べる */
.est-top .est-reason-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.est-top .est-reason:first-child {
	grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 8px 40px; align-items: center;
	padding: 32px 36px; background: linear-gradient(120deg, #fff 55%, var(--blue-soft) 100%);
}
.est-top .est-reason:first-child .est-reason-head { grid-column: 1; margin-bottom: 0; }
.est-top .est-reason:first-child .est-reason-head h3 { font-size: 24px; }
.est-top .est-reason:first-child .est-reason-head img { width: 60px; height: 60px; }
.est-top .est-reason:first-child > p { grid-column: 1; margin: 0; font-size: 15px; }
.est-top .est-reason:first-child .est-chips { grid-column: 2; grid-row: 1 / span 2; gap: 8px; }
.est-top .est-reason:first-child .chip { font-size: 13.5px; padding: 6px 14px; }
.est-top .est-reason { display: flex; flex-direction: column; padding: 26px 24px 22px; border: 0; }
.est-top .est-reason-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.est-top .est-reason-head img { width: 52px; height: 52px; flex: none; }
.est-top .est-reason-head h3 { font-size: 18px; line-height: 1.45; color: var(--navy); }
.est-top .est-reason > p { flex: 1; margin: 0 0 16px; font-size: 14.5px; color: var(--slate); }
.est-top .est-reason .est-chips { margin: 0; }
@media (max-width: 960px) {
	.est-top .est-reason-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.est-top .est-reason:first-child { grid-column: 1 / -1; grid-template-columns: 1fr; }
	.est-top .est-reason:first-child .est-chips { grid-column: 1; grid-row: auto; margin-top: 12px; }
}
@media (max-width: 600px) {
	.est-top .est-reason-grid { grid-template-columns: 1fr; }
	.est-top .est-reason:first-child { padding: 24px 22px; }
	.est-top .est-reason:first-child .est-reason-head h3 { font-size: 19px; }
}

/* ── 立場ごと（スライド。kakeru-web.com の制作実績と同じ動き） ── */
/* 立場のボタン（見た目は言語切替の lang-nav と同じピル型） */
.est-top .est-tabs-list {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: fit-content; max-width: 100%;
	margin: 0 auto 8px; padding: 4px; border: 1px solid var(--line); border-radius: 28px; background: #fff;
}
.est-top .est-tabs-list button {
	appearance: none; border: 0; background: none; cursor: pointer; font-family: inherit;
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px;
	font-size: 14.5px; font-weight: 700; color: var(--slate); white-space: nowrap;
	transition: background-color .18s var(--ease), color .18s var(--ease);
}
.est-top .est-tabs-list button img { width: 28px; height: 28px; }
.est-top .est-tabs-list button:hover { color: var(--navy); }
.est-top .est-tabs-list button[aria-pressed="true"] { background: var(--navy); color: #fff; }
/* 6 つのパターンは 3 列 × 2 段の同じ幅にそろえる */
@media (min-width: 701px) {
	.est-top .est-tabs-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(860px, 100%); border-radius: 20px; padding: 6px; gap: 4px; }
	.est-top .est-tabs-list button { justify-content: flex-start; border-radius: 14px; padding: 8px 14px; }
}

/* JS が動く前（と動かないとき）は、横にスクロールできる並び。動いたら Embla に任せる */
.est-top .est-carousel__viewport { overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 0 4px; }
.est-top .est-carousel.is-ready .est-carousel__viewport { overflow: hidden; scroll-snap-type: none; }
.est-top .est-carousel__track { display: flex; touch-action: pan-y pinch-zoom; margin: 0; }
/* スマホは 1 枚を画面の約 84%、左右に前後が少し見える。PC は最大 820px（画面の約 56%） */
.est-top .est-carousel__slide { --t: 1; --d: 0; position: relative; flex: 0 0 84%; min-width: 0; padding-inline: 8px; scroll-snap-align: center; }
/* PC は縦を短くするため、画面とテキストを左右に並べる（1 枚は最大 980px、画面の約 66%） */
@media (min-width: 900px) {
	.est-top .est-carousel__slide { flex-basis: min(66%, 980px); padding-inline: 14px; }
	.est-top .est-carousel__inner { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); }
	.est-top .est-carousel__shot { border-bottom: 0; border-right: 1px solid var(--line); }
	.est-top .est-carousel__shot img { height: 100%; aspect-ratio: auto; min-height: 300px; }
	.est-top .est-carousel__body { padding: 22px 24px; align-self: center; }
	.est-top .est-carousel__body h3 { font-size: 18px; margin-bottom: 8px; }
	.est-top .est-carousel__body .check-list li { font-size: 13.5px; line-height: 1.6; }
	.est-top .est-carousel__body .feature-label { margin-bottom: 4px; }
}

/* 立体的な重なり：前後の 1 枚は小さく（0.68 倍）、真ん中へ寄せてメインの後ろに重ね、外側が手前に来るよう約 22 度傾ける */
.est-top .est-carousel__inner {
	overflow: hidden;
	opacity: calc(.55 + .45 * var(--t));
	transform: perspective(1400px) translateX(calc(var(--d) * -34%)) rotateY(calc(var(--d) * -22deg)) scale(calc(.68 + .32 * var(--t)));
	transform-origin: 50% 40%;
	box-shadow: 0 2.25rem 3.5rem -1.25rem rgba(9, 40, 108, calc(.45 * var(--t))), 0 .5rem 1.25rem rgba(9, 40, 108, calc(.12 * var(--t)));
}
.est-top .est-carousel__shot { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.est-top .est-carousel__shot img { aspect-ratio: 1212 / 520; object-fit: cover; object-position: top left; }
.est-top .est-carousel__body { padding: 22px 28px 24px; opacity: clamp(0, (var(--t) - .6) * 2.5, 1); }
.est-top .est-carousel__body h3 { font-size: 21px; color: var(--navy); margin-bottom: 10px; }
.est-top .est-carousel__body .check-list li { font-size: 14.5px; }
.est-top .est-carousel__slide:not(.is-selected) { cursor: pointer; }

/* 矢印・番号・一時停止 */
.est-top .est-carousel__controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.est-top .est-carousel:not(.is-ready) .est-carousel__controls { display: none; }
.est-top .est-carousel__btn {
	display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
	border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer;
	transition: background-color .18s var(--ease), color .18s var(--ease);
}
.est-top .est-carousel__btn::before {
	content: ""; width: 18px; height: 10px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h17M12.5 0.5 17 5l-4.5 4.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h17M12.5 0.5 17 5l-4.5 4.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center / contain;
}
.est-top .est-carousel__btn--prev::before { transform: scaleX(-1); }
.est-top .est-carousel__btn--pause { width: 40px; height: 40px; margin-left: 6px; }
.est-top .est-carousel__btn--pause::before { width: 10px; height: 12px; -webkit-mask: linear-gradient(90deg, #000 0 30%, transparent 30% 70%, #000 70%); mask: linear-gradient(90deg, #000 0 30%, transparent 30% 70%, #000 70%); }
.est-top .est-carousel__btn--pause[aria-pressed="true"]::before { width: 10px; -webkit-mask: none; mask: none; clip-path: polygon(0 0, 100% 50%, 0 100%); }
@media (hover: hover) { .est-top .est-carousel__btn:hover { background: var(--navy); color: #fff; } }
.est-top .est-carousel__count { min-width: 72px; margin: 0; text-align: center; font-size: 13px; letter-spacing: .12em; color: var(--slate); font-variant-numeric: tabular-nums; }
.est-top .est-carousel__count span { font-size: 22px; color: var(--ink); }

@media (max-width: 700px) {
	.est-top .est-tabs-list { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: var(--radius-lg); }
	.est-top .est-tabs-list button { justify-content: center; padding: 8px 6px; font-size: 13px; line-height: 1.4; border-radius: var(--radius); white-space: normal; word-break: auto-phrase; }
	.est-top .est-tabs-list button img { display: none; }
	.est-top .est-carousel__body { padding: 18px 18px 20px; }
	.est-top .est-carousel__body h3 { font-size: 18px; }
}

/* ── 主な機能（func カードに、項目のチップと画面を足す） ── */
.est-top .est-func { display: flex; flex-direction: column; }
.est-top .est-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.est-top .est-chips .chip { margin-top: 0; font-weight: 500; }
.est-top .est-func-shot { margin-top: auto; box-shadow: none; }
.est-top .est-func-shot img { aspect-ratio: 1212 / 640; object-fit: cover; object-position: top left; }
.est-top .est-option { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; align-items: center; margin-top: 28px; padding: 32px 36px; border-color: #ddd0f7; background: linear-gradient(110deg, var(--purple-soft) 0%, #fff 60%); }
.est-top .est-option .chip { margin-top: 0; background: var(--purple); color: #fff; }
.est-top .est-option-head { display: flex; align-items: center; gap: 12px; margin: 12px 0 10px; }
.est-top .est-option-head img { width: 52px; height: 52px; flex: none; }
.est-top .est-option-head h3 { font-size: 21px; line-height: 1.45; color: var(--purple); }
.est-top .est-option-text > p { margin: 0 0 12px; font-size: 15px; color: var(--slate); }
.est-top .est-option .check-list li { font-size: 14.5px; }
.est-top .est-option-shot img { aspect-ratio: 1212 / 700; object-fit: cover; object-position: top left; }
@media (max-width: 900px) { .est-top .est-option { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; } }

/* ── 自社のルール（overview-views を 4 列で使う） ── */
.est-top .est-rules { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; }
.est-top .est-rules li { align-items: flex-start; padding: 16px; }
.est-top .est-rules b { margin-bottom: 2px; color: var(--ink); }
.est-top .est-rules span { font-size: 13.5px; color: var(--slate); }
@media (max-width: 960px) { .est-top .est-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .est-top .est-rules { grid-template-columns: 1fr; } }

/* ── セキュリティ ── */
.est-top .est-assure-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .est-top .est-assure-3 { grid-template-columns: 1fr; } }
.est-top .est-places { margin-top: 20px; }
.est-top .est-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.est-top .est-card-head img { width: 44px; height: 44px; flex: none; }
.est-top .est-card-head h4 { margin: 0; }
.est-top .est-card-head small { display: block; font-size: 12.5px; font-weight: 500; color: var(--slate); }

/* ── 導入事例 ── */
.est-top .est-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.est-top .est-case { display: flex; flex-direction: column; padding: 26px 26px 20px; }
.est-top .est-case .chip { margin-top: 0; }
.est-top .est-case-metric { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 14px 0 6px; font-weight: 700; color: var(--ink); }
.est-top .est-case-metric b {
	font-size: 44px; line-height: 1.05; letter-spacing: -0.02em;
	background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 80%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.est-top .est-case h3 { font-size: 17px; margin-bottom: 6px; }
.est-top .est-case-body { flex: 1; margin: 0; font-size: 14.5px; color: var(--slate); }
.est-top .est-case-period { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--navy); }
@media (max-width: 700px) { .est-top .est-cases { grid-template-columns: 1fr; } }

/* ── 料金・注記とボタン ── */
.est-top .est-center-note { max-width: 52em; margin: 24px auto 0; font-size: 13.5px; color: var(--slate); text-align: center; }
.est-top .est-center-cta { margin: 28px 0 0; text-align: center; }

/* ── 最新記事 ── */
.est-top .est-articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.est-top .est-articles a { display: flex; flex-direction: column; height: 100%; overflow: hidden; color: var(--ink); text-decoration: none; transition: box-shadow .18s var(--ease); }
.est-top .est-articles a:hover { box-shadow: var(--shadow-shot); }
.est-top .est-article-thumb { display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--blue-soft), #f7faff); overflow: hidden; }
.est-top .est-article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.est-top .est-article-thumb img[width="192"] { width: 64px; height: 64px; object-fit: contain; }
.est-top .est-article-meta { display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; font-size: 12.5px; color: var(--slate); }
.est-top .est-article-meta .chip { margin-top: 0; }
.est-top .est-article-title { padding: 6px 20px 20px; font-weight: 700; line-height: 1.6; }
@media (max-width: 900px) { .est-top .est-articles { grid-template-columns: 1fr; } }

/* ── 申し込み案内：ボタンが 3 つ ── */
.est-top .cta-box .btn + .btn { margin-top: 10px; }

/* スマホの画面は切り抜かずに全体を見せる（淡い青の地に置く） */
.est-top .est-shot-mobile { background: #eaf2fc; }
.est-top .est-shot-mobile img { object-fit: contain; object-position: center top; }
.est-top .est-carousel__shot.est-shot-mobile img { object-position: center; padding: 16px 0 0; }

/* ── スマホアプリ（スマホの画面を大きく） ── */
.est-top .est-mobile { background: linear-gradient(180deg, #fff 0%, #eaf2fc 100%); }
.est-top .est-mobile-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.est-top .est-mobile-text h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 12px; }
.est-top .est-mobile-text .section-lead { margin-bottom: 18px; }
.est-top .est-mobile-stores { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 6px 16px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--navy); }
.est-top .est-mobile-stores img { width: 36px; height: 36px; }
.est-top .est-mobile-shot { margin: 0; }
.est-top .est-mobile-shot img { width: 100%; border-radius: var(--radius-lg); }
@media (max-width: 900px) {
	.est-top .est-mobile-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* HR インサイトが別料金であることの注釈（小さく） */
.est-top .est-option-fee { grid-column: 1 / -1; margin: -12px 0 0; font-size: 12.5px; color: var(--slate); }

/* ======================================================================
   EST の LP イメージ（est-lp/docs/EST 人事労務SaaSのランディングページ.png）に合わせた調整
   ====================================================================== */

/* ヒーロー：昼のホーチミンの街並み。右にスマホを重ねる */
.est-top .hero::before { width: 72%; background-image: url("img/lp2/sky-day.webp"); background-position: right bottom; }
@media (max-width: 960px) { .est-top .hero::before { background-image: url("img/lp2/sky-day-sm.webp"); } }
.est-top .hero-phone { left: auto; right: 2%; bottom: -4px; width: 21%; max-width: 160px; }
.est-top .hero-phone img { aspect-ratio: 603 / 1150; object-position: top; }

/* 実績の帯：数字の左に丸いアイコン */
.est-top .hero-strip li > img { width: 44px; height: 44px; flex: none; padding: 9px; border-radius: 50%; background: var(--blue-soft); }

/* LP イメージのグラデーションのアイコン（丸い地が絵に含まれている） */
.est-top img.est-ic2 { border-radius: 50%; }

/* 課題：右に人物の写真と「その悩み、EST で解決できます。」 */
.est-top .est-issue-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: stretch; }
.est-top .est-issue-wrap .issue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.est-top .est-issue-photo { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.est-top .est-issue-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.est-top .est-issue-photo figcaption {
	position: absolute; left: 18px; top: 22px; font-size: 22px; font-weight: 700; line-height: 1.5;
	color: var(--navy); text-shadow: 0 1px 0 rgba(255, 255, 255, .8); transform: rotate(-4deg);
}
@media (max-width: 960px) {
	.est-top .est-issue-wrap { grid-template-columns: 1fr; }
	.est-top .est-issue-photo { order: -1; max-height: 260px; }
}
@media (max-width: 560px) { .est-top .est-issue-wrap .issue-grid { grid-template-columns: 1fr; } }

/* 選ばれる理由・申し込み案内：夜のホーチミンの街並み */
.est-top .est-reasons {
	background: linear-gradient(120deg, rgba(6, 27, 77, .92) 0%, rgba(9, 40, 108, .78) 55%, rgba(9, 40, 108, .45) 100%),
		url("img/lp2/sky-night.webp") center bottom / cover no-repeat var(--navy);
}
.est-top .cta-final {
	background: linear-gradient(110deg, rgba(6, 27, 77, .95) 0%, rgba(6, 27, 77, .75) 50%, rgba(6, 27, 77, .35) 100%),
		url("img/lp2/sky-night.webp") center bottom / cover no-repeat var(--navy);
}

/* 主な機能：左に機能の一覧、右に説明と画面 */
.est-top .est-ftabs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.est-top .est-ftabs-list { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.est-top .est-ftabs-list button {
	appearance: none; border: 0; background: none; cursor: pointer; font-family: inherit; text-align: left;
	display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius);
	font-size: 15px; font-weight: 700; color: var(--slate); transition: background-color .18s var(--ease), color .18s var(--ease);
}
.est-top .est-ftabs-list button img { width: 34px; height: 34px; flex: none; }
.est-top .est-ftabs-list button:hover { background: var(--paper); color: var(--navy); }
.est-top .est-ftabs-list button[aria-selected="true"] { background: var(--navy); color: #fff; }
.est-top .est-ftabs-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: center; padding: 28px 30px; }
.est-top .est-ftabs-panel[hidden] { display: none; }
.est-top .est-ftabs-text h3 { font-size: 23px; color: var(--navy); margin-bottom: 8px; }
.est-top .est-ftabs-text > p { margin: 0 0 12px; font-size: 15px; color: var(--slate); }
.est-top .est-ftabs-shot img { aspect-ratio: 1212 / 743; object-fit: cover; object-position: top left; }
@media (max-width: 900px) {
	.est-top .est-ftabs { grid-template-columns: 1fr; }
	.est-top .est-ftabs-list { flex-direction: row; flex-wrap: wrap; }
	.est-top .est-ftabs-list button { flex: 1 1 45%; font-size: 14px; }
	.est-top .est-ftabs-panel { grid-template-columns: 1fr; padding: 22px 20px; }
}

/* スマホアプリ：3 台のスマホの枠 */
.est-top .est-phones { display: flex; justify-content: center; align-items: flex-end; gap: 22px; margin: 0; }
.est-top .est-phone {
	width: min(30%, 210px); border: 7px solid #101a33; border-radius: 30px; overflow: hidden; background: #101a33;
	box-shadow: 0 30px 50px -24px rgba(9, 40, 108, .55);
}
.est-top .est-phone:nth-child(2) { transform: none; }
.est-top .est-phone img { width: 100%; aspect-ratio: 603 / 1150; object-fit: cover; object-position: top; border-radius: 22px; }

/* セキュリティ：見出しの横にサーバーの写真 */
.est-top .est-sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 36px; }
.est-top .est-sec-head h2 { font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 12px; }
.est-top .est-sec-head img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
@media (max-width: 800px) { .est-top .est-sec-head { grid-template-columns: 1fr; } .est-top .est-sec-head img { height: 170px; } }

/* 主な機能：画面を大きく（説明 4：画面 8）。選んでいる項目から右のパネルへ矢印を出し、つながりを見せる */
.est-top .est-ftabs { grid-template-columns: 220px minmax(0, 1fr); }
.est-top .est-ftabs-panel { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; padding: 24px; }
.est-top .est-ftabs-text h3 { font-size: 21px; }
.est-top .est-ftabs-shot img { aspect-ratio: 1212 / 760; }
.est-top .est-ftabs-list button { position: relative; }
.est-top .est-ftabs-list button[aria-selected="true"]::after {
	content: ""; position: absolute; right: -21px; top: 50%; transform: translateY(-50%);
	border: 10px solid transparent; border-left-color: var(--navy);
}
@media (max-width: 900px) {
	.est-top .est-ftabs-panel { grid-template-columns: 1fr; }
	.est-top .est-ftabs-list button[aria-selected="true"]::after { display: none; }
}

/* ======================================================================
   ページの下の方（導入事例・資料の帯・料金・記事とよくある質問）
   写真を飾りで添えず、カードの組み合わせで変化を付ける（LP イメージに合わせる）
   ====================================================================== */

/* 導入事例：写真を上にしたカードを横に 4 枚 */
.est-top .est-cases { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.est-top .est-case { padding: 0; overflow: hidden; }
.est-top .est-case-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.est-top .est-case-in { display: flex; flex-direction: column; flex: 1; padding: 22px 20px 18px; }
.est-top .est-case-metric { display: block; margin: 10px 0 4px; }
.est-top .est-case-metric b { display: block; font-size: 38px; }
.est-top .est-case-metric span { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.est-top .est-case h3 { font-size: 15px; line-height: 1.5; margin: 6px 0; }
.est-top .est-case-body { font-size: 13px; line-height: 1.7; }
.est-top .est-case-period { font-size: 12.5px; margin-top: 12px; padding-top: 10px; }
@media (max-width: 1000px) { .est-top .est-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .est-top .est-cases { grid-template-columns: 1fr; } }

/* 途中の資料ダウンロードの帯 */
.est-top .est-band {
	padding: 56px 0; color: #fff;
	background: linear-gradient(100deg, rgba(6, 27, 77, .95) 0%, rgba(9, 40, 108, .85) 55%, rgba(9, 40, 108, .45) 100%),
		url("img/lp2/sky-aerial.webp") center 40% / cover no-repeat var(--navy);
}
.est-top .est-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.est-top .est-band h2 { color: #fff; font-size: clamp(21px, 2.2vw, 28px); margin-bottom: 6px; }
.est-top .est-band p { margin: 0; color: rgba(255, 255, 255, .85); }
.est-top .est-band .btn { flex: none; background: #fff; color: var(--navy); box-shadow: none; }
.est-top .est-band .btn:hover { background: var(--blue-soft); color: var(--navy); }
@media (max-width: 800px) { .est-top .est-band-inner { flex-direction: column; align-items: flex-start; } .est-top .est-band .btn { width: 100%; } }

/* 料金：プランごとに色の帯 */
.est-top .est-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 920px; margin: 0 auto; }
.est-top .est-plan { padding: 0; overflow: hidden; }
.est-top .est-plan-head { padding: 20px 26px; color: #fff; background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 100%); }
.est-top .est-plan-1 .est-plan-head { background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%); }
.est-top .est-plan-head h3 { color: #fff; font-size: 24px; }
.est-top .est-plan-sub { display: inline-block; margin-bottom: 4px; padding: 1px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12px; font-weight: 700; }
.est-top .est-plan .check-list { padding: 18px 26px 20px; }
@media (max-width: 700px) { .est-top .est-plans { grid-template-columns: 1fr; } }


/* 主な機能の自動切り替え：選んでいる項目の下に、次へ進むまでの進み具合の線 */
.est-top .est-ftabs-list button::before {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
	background: rgba(255, 255, 255, .85); transform: scaleX(0); transform-origin: left;
}
.est-top .est-ftabs.is-auto .est-ftabs-list button[aria-selected="true"]::before { animation: est-ftabs-progress var(--est-ftabs-delay, 5000ms) linear forwards; }
@keyframes est-ftabs-progress { to { transform: scaleX(1); } }

/* 申し込み案内：横に長い画面でも、街並み（写真の縦 60% あたり）が見えるようにする */
.est-top .cta-final { background-position: center, center 62%; }

/* 課題の写真の一言：手書きの文字の画像（docs/その悩み、ESTで解決できます。.png） */
.est-top .est-issue-photo .est-issue-catch { position: absolute; left: 6%; top: 3%; width: 88%; height: auto; object-fit: contain; }

/* セキュリティ：サーバールームの写真を背景に敷き、紺の面にする（写真を見出しの横に置かない） */
.est-top .est-security {
	background: linear-gradient(180deg, rgba(6, 27, 77, .93) 0%, rgba(6, 27, 77, .86) 100%),
		url("img/lp2/server.webp") center / cover no-repeat var(--navy-deep);
}
.est-top .est-security .section-head h2 { color: #fff; }
.est-top .est-security .section-lead, .est-top .est-security .est-center-note { color: rgba(255, 255, 255, .8); }
.est-top .est-security .card { border-color: transparent; }

/* 料金：明るい街並みの背景（docs/ChatGPT 画像 2026年10月17日 22_08_46-1.png） */
.est-top #pricing { background: url("img/lp2/bg-column.webp") center bottom / cover no-repeat #f3f7fd; }
/* よくある質問：波と点の飾り（背景が透明な画像。docs/ChatGPT 画像 2026年10月17日 22_08_47-2.png）を薄い青の地に重ねる */
.est-top #qa { background: url("img/lp2/bg-faq.webp") center top / 100% auto no-repeat, linear-gradient(180deg, #eef4fc 0%, #f6f9fe 100%); }


/* 途中の資料ダウンロードの帯：夜の街並み。街の灯り（写真の縦 55% あたり）が右側に見える位置で切り取る */
.est-top .est-band {
	background: linear-gradient(90deg, rgba(6, 27, 77, .96) 0%, rgba(6, 27, 77, .85) 40%, rgba(6, 27, 77, .2) 100%),
		url("img/lp2/sky-night.webp") right 55% / cover no-repeat var(--navy-deep);
}

/* 申し込み案内：日本とベトナムを結ぶ地図と街並み（E-Document の LP の背景）。途中の帯（夜の街並み）と重ならないようにする */
.est-top .cta-final {
	background: linear-gradient(90deg, rgba(6, 27, 77, .9) 0%, rgba(6, 27, 77, .55) 45%, rgba(6, 27, 77, 0) 75%),
		url("img/lp/cta-bg.webp") right center / cover no-repeat var(--navy-deep);
}
.est-top .cta-final { background: linear-gradient(90deg, rgba(6, 27, 77, .85) 0%, rgba(6, 27, 77, 0) 55%), url("img/lp/cta-bg.webp") right center / auto 100% no-repeat, #0a2a6a; }
@media (max-width: 1100px) { .est-top .cta-final { background: linear-gradient(90deg, rgba(6, 27, 77, .9) 0%, rgba(6, 27, 77, .4) 100%), url("img/lp/cta-bg.webp") 70% center / cover no-repeat #0a2a6a; } }
/* 画像の左端の色（#042a66 あたり）で地を埋め、境目を出さない */
@media (min-width: 1101px) { .est-top .cta-final { background: linear-gradient(90deg, rgba(4, 30, 80, .6) 0%, rgba(4, 30, 80, 0) 50%), url("img/lp/cta-bg.webp") right center / auto 100% no-repeat, linear-gradient(180deg, #042a66 0%, #03265c 100%); } }

/* 手書きの画像がない言語は、写真の上に文字で表示する */
.est-top .est-issue-photo figcaption { position: absolute; left: 18px; right: 18px; top: 22px; font-size: 21px; font-weight: 700; line-height: 1.45; color: var(--navy); text-shadow: 0 1px 0 rgba(255, 255, 255, .8); transform: rotate(-4deg); }

/* ======================================================================
   スマホ・タブレット（ファイルの最後に置き、上の PC 向けの指定より優先させる）
   ====================================================================== */

/* 日本語のリードと見出しは文節で折り返す（「こ／んな」のような語の途中の改行を防ぐ） */
.est-top-lang-ja .est-top .section-lead,
.est-top-lang-ja .est-top .hero-lede,
.est-top-lang-ja .est-top h2,
.est-top-lang-ja .est-top h3 { word-break: auto-phrase; }

@media (max-width: 900px) {
	/* 主な機能：一覧を上に 2 列で、その下にパネル */
	.est-top .est-ftabs { grid-template-columns: 1fr; gap: 14px; }
	.est-top .est-ftabs-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px; }
	.est-top .est-ftabs-list button { padding: 8px 10px; font-size: 14px; white-space: normal; line-height: 1.35; }
	.est-top .est-ftabs-list button img { width: 28px; height: 28px; }
	.est-top .est-ftabs-list button[aria-selected="true"]::after { display: none; }
	.est-top .est-ftabs-panel { grid-template-columns: 1fr; gap: 16px; padding: 20px 18px; }
	.est-top .est-ftabs-text h3 { font-size: 19px; }
}

@media (max-width: 600px) {
	.est-top .section { padding: 56px 0; }
	.est-top .section-head { margin-bottom: 28px; }
	.est-top .section-lead { font-size: 14.5px; }

	/* 毎月の流れ：アイコンを左、文を右にした横長の行にして、縦の長さを抑える */
	.est-top .est-overview-5 { gap: 10px; }
	.est-top .est-overview-5 .overview-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 14px 16px; text-align: left; }
	.est-top .est-overview-5 .overview-step img { width: 48px; height: 48px; margin: 0; grid-row: span 2; }
	.est-top .est-overview-5 .overview-step h3 { margin: 0; font-size: 16px; }
	.est-top .est-overview-5 .overview-step p { font-size: 13px; }

	/* 課題：写真は横長にして高さを抑える */
	.est-top .est-issue-photo { max-height: 220px; }
	.est-top .est-issue-photo img:not(.est-issue-catch) { object-position: 60% 20%; }
	.est-top .est-issue-photo .est-issue-catch { width: 70%; left: 4%; top: 4%; }
	.est-top .issue { padding: 18px 16px 16px; }
	.est-top .issue h3 { font-size: 16px; }

	/* 選ばれる理由 */
	.est-top .est-reason { padding: 20px 18px; }
	.est-top .est-reason-head h3 { font-size: 16.5px; }
	.est-top .est-reason > p { font-size: 14px; }

	/* 会社のかたち（スライド）：1 枚をほぼ画面幅に */
	.est-top .est-carousel__slide { flex-basis: 90%; padding-inline: 6px; }

	/* スマホアプリ：3 台のスマホを画面幅に収める */
	.est-top .est-phones { gap: 10px; }
	.est-top .est-phone { border-width: 5px; border-radius: 20px; }
	.est-top .est-phone img { border-radius: 15px; }

	/* 最新記事：サムネイルを左、タイトルを右の横長に */
	.est-top .est-articles { gap: 12px; }
	.est-top .est-articles a { flex-direction: row; align-items: stretch; }
	.est-top .est-article-thumb { width: 110px; flex: none; aspect-ratio: auto; }
	.est-top .est-article-meta { padding: 12px 14px 0; flex-wrap: wrap; gap: 6px; }
	.est-top .est-article-title { padding: 4px 14px 12px; font-size: 14.5px; }
	.est-top .est-article-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }

	/* 料金・導入事例 */
	.est-top .est-plan-head { padding: 16px 20px; }
	.est-top .est-plan .check-list { padding: 14px 20px 16px; }
	.est-top .est-case-in { padding: 18px 16px 16px; }

	/* 申し込み案内 */
	.est-top .cta-final h2 { font-size: 22px; }
}
.est-top .est-article-text { display: block; }
@media (max-width: 600px) { .est-top .est-article-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; } }
@media (max-width: 600px) {
	/* 実績の帯：英語・ベトナム語の長い数字（2–6 months など）が収まるよう小さく */
	.est-top .hero-strip b { font-size: 21px; white-space: normal; }
	.est-top .hero-strip li { gap: 8px; padding-right: 8px; }
	.est-top .hero-strip li > img { width: 34px; height: 34px; padding: 7px; }
}
