/* ============================== */
/* 初期ページ共通レイアウト        */
/* ============================== */
* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
    color: #1f2937;
}

/* トップページ全体 */
.top-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* メイン表示エリア */
.hero {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 88px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

/* メインコンテンツ */
.hero-content {
    max-width: 760px;
    animation: fadeUp 0.9s ease forwards;
}

/* サブタイトル */
.hero-sub-title {
    margin: 0 0 16px;
    font-size: 15px;
    letter-spacing: 0.18em;
    color: #2563eb;
    font-weight: 700;
    text-transform: uppercase;
}

/* メインタイトル */
.hero-title {
    margin: 0;
    font-size: clamp(48px, 8vw, 92px);
    line-height: 1.05;
    letter-spacing: 0.04em;
    color: #111827;
}

/* 挨拶文 */
.hero-message {
    margin: 32px 0 0;
    font-size: 18px;
    line-height: 2;
    color: #4b5563;
}

/* 詳しく見るボタン */
.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    min-width: 180px;
    padding: 14px 28px;
    border-radius: 999px;
    background-color: #1f2937;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

/* ボタンにマウスを乗せた時の動き */
.hero-button:hover {
    transform: translateY(-4px);
    background-color: #111827;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.22);
}

/* 外部リンクエリア */
.top-footer {
    position: relative;
    z-index: 1;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 15px;
}

/* 外部リンク */
.top-footer a {
    color: #374151;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.top-footer a:hover {
    color: #2563eb;
    transform: translateY(-2px);
}

/* 区切り文字 */
.footer-separator {
    color: #9ca3af;
}

/* 初期表示時のアニメーション */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* スマートフォン表示用 */
@media (max-width: 640px) {
    .hero {
        padding: 40px 20px;
    }

    .hero-message {
        font-size: 16px;
        line-height: 1.9;
    }

    .top-footer {
        flex-wrap: wrap;
        height: auto;
        padding: 24px 16px;
    }
}

/* フッター内のボタンリンク */
.footer-link-button {
    padding: 0;
    border: none;
    background: transparent;
    color: #374151;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link-button:hover {
    color: #2563eb;
    transform: translateY(-2px);
}

/* メールコピー完了メッセージ */
.copy-message {
    position: absolute;
    bottom: 64px;
    padding: 8px 14px;
    border-radius: 999px;
    background-color: #1f2937;
    color: #ffffff;
    font-size: 13px;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.copy-message.show {
    opacity: 1;
    transform: translateY(0);
}
/* ============================== */
/* 詳細ページ共通レイアウト        */
/* ============================== */

/* 詳細ページ全体 */
.detail-page {
    display: flex;
    min-height: 100vh;
    background-color: #f8fafc;
}

/* 左サイドバー */
.side-bar {
    width: 280px;
    min-height: 100vh;
    padding: 40px 28px;
    background-color: #111827;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

/* サイドバータイトル */
.side-title a {
    color: #ffffff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.side-title p {
    margin: 8px 0 0;
    color: #9ca3af;
    font-size: 14px;
}

/* サイドバーメニュー */
.side-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 56px;
}

.side-nav a {
    padding: 12px 14px;
    border-radius: 10px;
    color: #d1d5db;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.side-nav a:hover {
    background-color: #1f2937;
    color: #ffffff;
    transform: translateX(4px);
}

.side-nav a.active {
    background-color: #2563eb;
    color: #ffffff;
}

/* サイドバー下部 */
.side-footer {
    margin-top: auto;
}

.side-footer a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
}

.side-footer a:hover {
    color: #ffffff;
}

/* 本文エリア */
.detail-content {
    flex: 1;
    padding: 64px;
    display: flex;
    align-items: center;
}

/* 本文カード */
.content-card {
    width: 100%;
    max-width: 880px;
    padding: 48px;
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    animation: fadeUp 0.7s ease forwards;
}

/* 本文ラベル */
.content-label {
    margin: 0 0 12px;
    color: #2563eb;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* 本文タイトル */
.content-card h1 {
    margin: 0 0 32px;
    font-size: 40px;
    color: #111827;
}

/* 本文 */
.content-card p {
    font-size: 17px;
    line-height: 2;
    color: #4b5563;
}

/* スマートフォン表示用 */
@media (max-width: 768px) {
    .detail-page {
        flex-direction: column;
    }

    .side-bar {
        width: 100%;
        min-height: auto;
        padding: 24px;
    }

    .side-nav {
        margin-top: 28px;
    }

    .detail-content {
        padding: 24px;
    }

    .content-card {
        padding: 28px;
    }

    .content-card h1 {
        font-size: 32px;
    }
}

/* スキル一覧 */
.skill-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.skill-item {
    padding: 24px;
    border-radius: 16px;
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
}

.skill-item h2 {
    margin: 0 0 12px;
    font-size: 20px;
    color: #111827;
}

.skill-item p {
    margin: 0;
}

/* 応募書類ダウンロードボタン */
.document-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.document-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 999px;
    background-color: #1f2937;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.document-button:hover {
    transform: translateY(-3px);
    background-color: #111827;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.2);
}

@media (max-width: 768px) {
    .skill-list {
        grid-template-columns: 1fr;
    }
}

/** profile領域調整 */
.profile-section {
    text-align: center;
    padding: 32px 16px 24px;
}

.profile-img {
    width: 40%;
    max-width: 112px;
    min-width: 88px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
    margin: 0 auto 16px;
}

.profile-name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.profile-title {
    margin-top: 6px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}