/* css/corporate.css */

/* フォントの適用 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-en {
    font-family: 'Manrope', 'Noto Sans JP', sans-serif;
}

/* スムーススクロール（アンカーリンク用） */
html {
    scroll-behavior: smooth;
}

/* 最小限のフェードインアニメーション（delay中も初期状態を保持: both） */
.fade-in {
    animation: fadeIn 0.7s ease-out both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 画像のオブジェクトフィットユーティリティ */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* EMON: 公開準備中のIT教育プラットフォームを、別事業として見せるロゴ表示 */
.emon-brand-card {
    background: #050709;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem;
}
.emon-logo {
    display: block;
    width: min(7.5rem, 38%);
    height: auto;
    margin: 0 auto 0.85rem;
    border-radius: 9999px;
    border: 1px solid rgba(198, 166, 104, 0.28);
}
@media (min-width: 1024px) {
    .emon-logo {
        width: min(8rem, 38%);
    }
}

/* 代表プロフィール: 写真は控えめに、本文と略歴を主役にする */
.about-message-headline,
.about-message-statement {
    letter-spacing: 0;
}
@media (min-width: 1024px) {
    .about-message-headline,
    .about-message-statement {
        white-space: nowrap;
    }
    .about-message-headline {
        font-size: 1.8rem;
    }
}

.representative-profile-grid {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}
.representative-figure {
    width: min(100%, 15rem);
    margin-inline: auto;
}
.representative-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 38%;
}
.representative-headline {
    max-width: 100%;
    white-space: nowrap;
    font-size: 0.8125rem;
    letter-spacing: 0;
}
.representative-timeline-item {
    display: grid;
    gap: 0.25rem;
}
@media (min-width: 640px) {
    .representative-headline {
        font-size: 1.25rem;
        letter-spacing: 0.02em;
    }
    .representative-timeline-item {
        grid-template-columns: 9rem minmax(0, 1fr);
        gap: 1.5rem;
    }
}
@media (min-width: 1024px) {
    .representative-profile-grid {
        grid-template-columns: 15rem minmax(0, 1fr);
        gap: 3.5rem;
    }
    .representative-figure {
        margin-inline: 0;
    }
    .representative-headline {
        font-size: 1.5rem;
    }
}

/* キーボードフォーカスの可視化（アクセシビリティ） */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C6A668;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ヒーロー実写の暗色加工（低彩度・暗め＝重厚で素材の粗を隠す） */
.hero-photo {
    filter: grayscale(0.35) contrast(1.06) brightness(0.5);
}

/* 粒状ノイズ（純デジタルのツルツル感/AI感を消し、紙のような質感を出す） */
.grain {
    position: relative;
    overflow: hidden;
}
.grain::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 見出しの明朝（重厚・老舗の風格）。日本語見出しに .font-serif を付与 */
.font-serif {
    font-feature-settings: "palt" 1;
    letter-spacing: 0.02em;
}

/* 数字帯などのカウント表示用 */
.tnum {
    font-variant-numeric: tabular-nums;
}

/* ヘッダー: 暗色ヒーロー上は透過(白文字)、スクロールで生成り背景＋濃色文字 */
#siteHeader.scrolled {
    background-color: rgba(244, 241, 234, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    box-shadow: 0 1px 0 rgba(7, 26, 45, 0.08);
}
/* 透過時(ヒーロー上)=白ロゴ / スクロール時(明色)=紺ロゴ を切替 */
#siteHeader .logo-on-light { display: none; }
#siteHeader.scrolled .logo-on-dark { display: none; }
#siteHeader.scrolled .logo-on-light { display: block; }
#siteHeader .nav-link {
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.3s;
}
#siteHeader .nav-link:hover {
    color: #ffffff;
}
#siteHeader .menu-bar {
    background-color: #ffffff;
}
/* スクロール時: 濃色文字 */
#siteHeader.scrolled .nav-link {
    color: #3a3f45;
}
#siteHeader.scrolled .nav-link:hover {
    color: #071a2d;
}
#siteHeader.scrolled .menu-bar {
    background-color: #071a2d;
}

/* 採用ページ: 応募ボタンのURL未設定中（Googleフォーム準備中）は操作不可の見た目にする */
.recruit-apply-btn[href="#"] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* 採用トップ: 求人カード（装飾は罫線のみ。タグ・影は使わない） */
.job-card--pending {
    cursor: default;
}

/* 採用トップ: よくある質問（details/summary） */
.faq-item summary {
    list-style: none;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item .faq-icon {
    transition: transform 0.25s;
    font-weight: 400;
    flex-shrink: 0;
}
.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}
