/* 基本設定とフォント */
body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: #333;
    margin: 0;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* コンテナとカードデザイン */
.container {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px 50px;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: fadeIn 0.8s ease-out;
}

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

/* ヘッダー */
header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 30px;
}

.profile-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #1e3a8a; /* 濃い青 */
}

.brand-name {
    white-space: nowrap;
}

.profile-text {
    font-size: 1.05em;
    color: #4a5568; /* やや濃いグレー */
    text-align: left;
}

.link-section {
    margin-bottom: 34px;
}

.link-section:last-child {
    margin-bottom: 0;
}

.link-section h2 {
    color: #1e3a8a;
    font-size: 1.05em;
    letter-spacing: 0.04em;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(30, 58, 138, 0.18);
}

.subsection-heading {
    color: #334155;
    font-size: 0.98em;
    margin: 20px 0 10px;
}

.link-section h2 + .subsection-heading {
    margin-top: 0;
}

/* リンクボタン */
main nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

main nav li {
    margin-bottom: 18px;
    animation: slideInUp 0.5s ease-out forwards;
    opacity: 0;
}

/* アニメーションの遅延設定 */
main nav li:nth-child(1) { animation-delay: 0.2s; }
main nav li:nth-child(2) { animation-delay: 0.3s; }
main nav li:nth-child(3) { animation-delay: 0.4s; }
main nav li:nth-child(4) { animation-delay: 0.5s; }
main nav li:nth-child(5) { animation-delay: 0.6s; }
main nav li:nth-child(6) { animation-delay: 0.7s; }
main nav li:nth-child(7) { animation-delay: 0.8s; }
main nav li:nth-child(8) { animation-delay: 0.9s; }
main nav li:nth-child(9) { animation-delay: 1.0s; }
main nav li:nth-child(10) { animation-delay: 1.1s; }
main nav li:nth-child(11) { animation-delay: 1.2s; }
main nav li:nth-child(12) { animation-delay: 1.3s; }


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

main nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border-left: 5px solid transparent;
}

.priority-link {
    background: linear-gradient(90deg, #2450a6 0%, #13213f 100%);
    border-left-color: #facc15;
}

.contact-link {
    background: linear-gradient(90deg, #245d55 0%, #143b38 100%);
    border-left-color: #86efac;
}

.featured-link {
    background: linear-gradient(90deg, #365fae 0%, #182848 100%);
}

.product-link {
    background: linear-gradient(90deg, #344f95 0%, #17233f 100%);
    border-left-width: 7px;
}

.link-with-image {
    justify-content: flex-start;
}

.link-icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
}

.link-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    line-height: 1.5;
    min-width: 0;
    text-align: left;
}

.link-title {
    display: block;
}

.link-description {
    display: block;
    color: #fff;
    font-size: 0.86em;
    font-weight: 400;
    margin-top: 3px;
}

.product-badge {
    display: inline-block;
    color: #17233f;
    background: #d7f7ef;
    border-radius: 999px;
    font-size: 0.72em;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 8px 4px 0;
    padding: 2px 8px;
    vertical-align: middle;
}

.link-with-image > .link-content {
    flex-grow: 1;
    text-align: left;
}


/* アクセシビリティとインタラクション */
main nav a:hover, main nav a:focus {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg, #5a7ccb 0%, #20345c 100%);
    outline: none;
}

main nav a:focus {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(75, 108, 183, 0.5);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .container,
    main nav li,
    main nav a {
        animation: none;
        transition: none;
    }

    main nav li {
        opacity: 1;
    }

    main nav a:hover,
    main nav a:focus {
        transform: none;
    }
}


/* フッター */
footer {
    text-align: center;
    font-size: 0.95em;
    color: #718096;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    body {
        padding: 20px 10px;
    }
    .container {
        padding: 30px 25px;
    }
    h1 {
        font-size: 1.4em;
    }
    main nav a {
        padding: 12px 15px;
        font-size: 1em;
    }
    .link-section {
        margin-bottom: 28px;
    }
    .link-icon {
        width: 35px;
        height: 35px;
        margin-right: 15px;
    }
    .link-description {
        font-size: 0.82em;
    }
}

main nav a i {
    margin-right: 15px;
    font-size: 1.2em;
    width: 25px;
    text-align: center;
}

.platform-link {
    border-left-color: var(--platform-color);
}

.platform-link i {
    color: var(--platform-color);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.alter-i-link { --platform-color: #a78bfa; }
.note-link { --platform-color: #41c9b4; }
.substack-link { --platform-color: #ff6719; }
.x-link { --platform-color: #f8fafc; }
.youtube-link { --platform-color: #ff3b30; }
.instagram-link { --platform-color: #f77737; }
.threads-link { --platform-color: #e5e7eb; }

/* 紹介動画 */
.video-toggle {
    margin-top: 10px;
}

.video-toggle summary {
    cursor: pointer;
    color: #1e3a8a;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 8px;
}

.video-toggle summary:hover,
.video-toggle summary:focus {
    background: rgba(30, 58, 138, 0.08);
    outline: none;
}

.video-toggle summary:focus {
    box-shadow: 0 0 0 3px rgba(75, 108, 183, 0.35);
}

/* 埋め込みビデオのレスポンシブ対応 */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 アスペクト比 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 10px;
    margin-top: 15px; /* 上のリンクとの間隔 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
