@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;700;900&display=swap');

/* カラースキーム - モノクローム + アクセント */
:root {
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray-light: #F5F5F5;
    --color-gray-mid: #CCCCCC;
    --color-gray-dark: #666666;
    --color-accent: #111111;
    --color-accent-light: #333333;
    --background: #ffffff;
}

BODY {
	font-family: 'Noto Sans JP', sans-serif;
	padding-top: 0;
	color: var(--color-black);
	background: var(--color-white);
	font-weight: 300;
	line-height: 1.8;
	scroll-behavior: smooth;
}

/* ヒーローが無いページ（記事詳細・404等）は白ソリッドヘッダー分オフセット */
body.nav-solid {
	padding-top: 72px;
}

MAIN {
	min-height: 70vh;
}

MAIN .section {
	max-width: 95vw;
	margin: auto;
}

MAIN H1 {
	margin-top: 30px;
	margin-bottom: 30px;
}

/* ローディング画面 */
.start {
	background: #fff;
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	z-index: 9000;
}

.start DIV {
	text-align: center;
    padding-top: 25vh;
	z-index: 9999;
}

/* 横長ロックアップ: マークの右に PRODUS を置く。
   各寸法はマーク高を基準にした係数で算出する。
   間隔 0.573 = ヘッダー左上のロゴ実測比（マーク高 23.4px / 間隔 13.4px）。
   文字は同じ実測比だと 0.923 だが、拡大すると文字が勝ちすぎるため 0.72 に調整。 */
.splash-lockup {
	--mark-h: clamp(44px, 8vw, 92px);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: calc(var(--mark-h) * 0.573);
}

/* スプラッシュのロゴアニメーション（ホップ・ステップ・ジャンプ）
   ボールが3回跳ね、跳ね上がる軌跡がロゴの3本線として残る */
.splash-logo {
	/* viewBox はロゴのインク範囲ぴったり（252 × 310）に合わせてある */
	height: var(--mark-h);
	width: calc(var(--mark-h) * 252 / 310);
}

.splash-bar {
	stroke: #111;
	stroke-width: 40;
	stroke-linecap: round;
	fill: none;
	stroke-dasharray: 1 3;
	stroke-dashoffset: 1.02;
	animation: 2.6s cubic-bezier(0.33, 1, 0.68, 1) both;
}

.splash-bar-1 { animation-name: splash-draw-1; }
.splash-bar-2 { animation-name: splash-draw-2; }
.splash-bar-3 { animation-name: splash-draw-3; }

.splash-ball-x {
	animation: splash-ball-x 2.6s linear both;
}

.splash-ball {
	fill: #111;
	animation: splash-ball-y 2.6s linear both;
}

.splash-word {
	margin: 0;
	font-size: calc(var(--mark-h) * 0.72);
	font-weight: 900;
	letter-spacing: 0.2em;
	line-height: 1;
	white-space: nowrap;
	color: #111;
	opacity: 0;
	transform: translateX(-10px);
	/* 3本目の線が引き終わる 1.98s の直後に、マークの右から現れる */
	animation: splash-word 0.6s 2s cubic-bezier(0.33, 1, 0.68, 1) both;
}

/* 線の描画: ボールの上昇と同じ区間・同じイージングで軌跡として伸びる */
@keyframes splash-draw-1 {
	0%, 8%      { stroke-dashoffset: 1.02; }
	20%, 100%   { stroke-dashoffset: 0; }
}

@keyframes splash-draw-2 {
	0%, 32%     { stroke-dashoffset: 1.02; }
	46%, 100%   { stroke-dashoffset: 0; }
}

@keyframes splash-draw-3 {
	0%, 58%     { stroke-dashoffset: 1.02; }
	76%, 100%   { stroke-dashoffset: 0; }
}

/* ボールの水平移動（等速）: 上昇中は静止、跳躍中だけ右へ */
@keyframes splash-ball-x {
	0%, 20%     { transform: translateX(89.5px); }
	32%, 46%    { transform: translateX(195.5px); }
	58%, 100%   { transform: translateX(301.5px); }
}

/* ボールの垂直移動: 上昇はease-out、頂点からの落下はease-in */
@keyframes splash-ball-y {
	0% {
		transform: translateY(334px);
		opacity: 0;
		animation-timing-function: ease-out;
	}
	5% { opacity: 1; }
	8% {
		transform: translateY(334px);
		animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
	}
	20% {
		transform: translateY(271px);
		animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
	}
	26% {
		transform: translateY(235px);
		animation-timing-function: cubic-bezier(0.32, 0, 0.67, 0);
	}
	32% {
		transform: translateY(288px);
		animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
	}
	46% {
		transform: translateY(182px);
		animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
	}
	52% {
		transform: translateY(148px);
		animation-timing-function: cubic-bezier(0.32, 0, 0.67, 0);
	}
	58% {
		transform: translateY(245px);
		animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
	}
	76%, 100% {
		transform: translateY(65px);
	}
}

@keyframes splash-word {
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.splash-bar, .splash-ball-x, .splash-ball, .splash-word {
		animation: none;
	}
	.splash-bar { stroke-dashoffset: 0; }
	.splash-ball { opacity: 0; }
	.splash-word {
		opacity: 1;
		transform: none;
	}
}

/* ナビゲーションバー（透明→スクロールで白・ミニマル） */
.navbar {
    background: transparent !important;
    border-bottom: 1px solid transparent;
    padding: 24px 0;
    box-shadow: none;
    transition: background 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.96) !important;
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--color-gray-mid);
    padding: 14px 0;
}

/* ワードマーク（丸ロゴ・会社名フル廃止） */
.navbar-brand {
    font-weight: 900;
    color: var(--color-white) !important;
    font-size: 1.35rem;
    letter-spacing: 0.2em;
    transition: color 0.35s ease;
}

.navbar.scrolled .navbar-brand {
    color: var(--color-black) !important;
}

.logo-image {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
    filter: invert(1);              /* 透明ヘッダー(黒背景)では白く反転 */
    transition: filter 0.35s ease;
}

.navbar.scrolled .logo-image {
    filter: none;                   /* スクロール後の白バーでは黒に戻す */
}

.nav-item {
	font-size: 95%;
	flex: 1;
	min-width: 6.5em;
	text-align: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 400;
    font-size: 0.8rem;
    padding: 8px 10px !important;
    margin: 0;
    letter-spacing: 0.15em;
    transition: color 0.35s ease, border-color 0.3s ease;
    position: relative;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.navbar.scrolled .nav-link {
    color: var(--color-black) !important;
}

.nav-link:hover,
.nav-link.active {
    border-bottom: 2px solid currentColor;
    text-decoration: none;
}

/* 言語切替（ナビ末尾の小さなピル） */
.nav-lang {
    min-width: 0;
}

.nav-lang .nav-link {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    padding: 4px 12px !important;
    margin-top: 2px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    line-height: 1.4;
    transition: color 0.35s ease, border-color 0.35s ease, background 0.3s ease;
}

.navbar.scrolled .nav-lang .nav-link {
    border-color: rgba(0, 0, 0, 0.35);
}

.nav-lang .nav-link:hover,
.nav-lang .nav-link.active {
    border: 1px solid currentColor;
    background: rgba(255, 255, 255, 0.12);
}

.navbar.scrolled .nav-lang .nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .nav-lang {
        margin-left: 8px;
    }
}

@media (max-width: 767px) {
    .nav-lang .nav-link {
        margin-top: 8px;
    }
}

/* ハンバーガーメニュー */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    padding: 8px 10px !important;
}

.navbar.scrolled .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.5) !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* モバイル：メニュー展開時は暗い背景で可読性確保 */
@media (max-width: 767px) {
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        background: rgba(10, 10, 10, 0.97);
        margin-top: 12px;
        padding: 10px 16px;
        border-radius: 6px;
    }
    .navbar-collapse.show .nav-link,
    .navbar.scrolled .navbar-collapse.show .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
    }
}

/* セクションタイトル */
.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-black);
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 30px;
    font-weight: 700;
    text-align: center;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: var(--color-black);
    margin: 80px 0;
}

/* ボタンスタイル */
.btn-primary-custom {
    background: #111111;
    color: var(--color-white);
    border: 2px solid #111111;
    padding: 18px 60px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: #333333;
    color: var(--color-white);
    border: 2px solid #333333;
}

/* フッター */
footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 80px 0 40px;
    margin-top: 100px;
}

footer img {
    margin-bottom: 20px;
    background: white !important;
    border-radius: 50%;
    padding: 5px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

footer p {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--color-gray-mid);
    font-weight: 300;
}

footer .footer-links {
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

footer .footer-links a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    font-weight: 400;
    transition: opacity 0.3s ease;
    padding: 0;
}

footer .footer-links a:hover {
    opacity: 0.6;
}

footer .footer-sns {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

footer .footer-sns li {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer .footer-sns li::marker {
    content: "";
}

footer .footer-sns a {
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

footer .footer-sns a:hover {
    opacity: 0.6;
}

footer .footer-sns svg {
    display: block;
}

/* =========================================================
   スクロールモーション（全ページ共通基盤）
   - 既存 .fade-in を上質イージングに格上げ
   - data-reveal / stagger による段階表示
   ========================================================= */

/* 既存 .fade-in（全ページで使用中）を格上げ */
.fade-in {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* data-reveal：単体で下からフェードアップ */
[data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* data-reveal="stagger"：親は出したまま、子を順番に出す */
[data-reveal="stagger"] {
    opacity: 1;
    transform: none;
}

[data-reveal="stagger"] > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

[data-reveal="stagger"].is-visible > * {
    opacity: 1;
    transform: none;
}

/* CSS 側の保険ディレイ（JS があれば JS 指定が優先） */
[data-reveal="stagger"].is-visible > *:nth-child(1) { transition-delay: 0s; }
[data-reveal="stagger"].is-visible > *:nth-child(2) { transition-delay: 0.08s; }
[data-reveal="stagger"].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal="stagger"].is-visible > *:nth-child(4) { transition-delay: 0.24s; }
[data-reveal="stagger"].is-visible > *:nth-child(5) { transition-delay: 0.32s; }
[data-reveal="stagger"].is-visible > *:nth-child(6) { transition-delay: 0.40s; }

/* =========================================================
   下層ページ共通ヒーロー帯（page-hero.part.php 用）
   ダーク基調・英語キッカー＋日本語主役タイトル
   ========================================================= */
.simple-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0a0a0a 0%, #161616 100%);
    color: var(--color-white);
    min-height: clamp(340px, 46vh, 460px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 0;
    text-align: center;
}

.simple-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
}

.simple-hero-kicker {
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 22px;
    animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.simple-hero-title {
    font-size: clamp(1.9rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.2;
    color: var(--color-white);
    margin: 0;
    animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.simple-hero-lead {
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.82);
    margin: 24px 0 0;
    animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

@keyframes heroRise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

@media screen and (max-width: 768px) {
    .simple-hero {
        min-height: 300px;
        padding: 44px 0;
    }
}

/* モーションを好まないユーザーへの配慮（全ページ共通） */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .fade-in.visible,
    [data-reveal],
    [data-reveal="stagger"] > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .simple-hero-kicker,
    .simple-hero-title,
    .simple-hero-lead {
        animation: none !important;
    }
}

/* レスポンシブ対応 */
@media screen and (max-width:480px) {
	MAIN .section {
		max-width: 99vw;
	}
}
