/* ========================================
   リセット & ベーススタイル
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5f7a;
    --secondary-color: #2c8ba8;
    --accent-color: #57c5f7;
    --dark-bg: #0a1929;
    --text-light: #ffffff;
    --text-gray: #b0c4d0;
    --gradient-1: linear-gradient(135deg, #0a1929 0%, #1a2a3a 50%, #1a5f7a 100%);
    --gradient-2: linear-gradient(45deg, rgba(26, 95, 122, 0.1), rgba(87, 197, 247, 0.2));
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--gradient-1);
    background-attachment: fixed;
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ========================================
   リンクの基本色（ブラウザデフォルトの青・紫を上書き）
   ======================================== */
a {
    color: #4dd9ac;
    text-decoration: none;
}
a:visited {
    color: #e8a070;
}
a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ========================================
   背景エフェクト
   ======================================== */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(87, 197, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(26, 95, 122, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundPulse 20s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--text-gray);
    text-transform: uppercase;
}

.header-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.header-nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--accent-color);
}

.header-nav a:hover::after,
.header-nav a.active::after {
    width: 100%;
}

/* 外部リンクアイコン */
.external-link::after {
    content: ' ↗';
    font-size: 0.8em;
    opacity: 0.7;
}

/* ========================================
   コンテナ
   ======================================== */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.content {
    max-width: 900px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

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

/* ========================================
   ロゴセクション
   ======================================== */
.logo-section {
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out 0.2s both;
}

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

.logo {
    display: inline-block;
}

.logo-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    color: var(--accent-color);
    filter: drop-shadow(0 0 20px rgba(87, 197, 247, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.site-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--text-gray);
    text-transform: uppercase;
}

/* ========================================
   メインコンテンツ
   ======================================== */
.main-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out 0.4s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.headline {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    text-transform: uppercase;
}

.divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 0 auto 2rem;
    animation: dividerGlow 2s ease-in-out infinite;
}

@keyframes dividerGlow {
    0%, 100% {
        opacity: 0.5;
        box-shadow: 0 0 10px var(--accent-color);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px var(--accent-color);
    }
}

.description {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.sub-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.office-info {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background: rgba(87, 197, 247, 0.05);
    border-left: 3px solid var(--accent-color);
    border-radius: 8px;
}

.office-name {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-light);
}

/* ========================================
   ステータスバッジ
   ======================================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(87, 197, 247, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-top: 1rem;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(87, 197, 247, 0.7);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(87, 197, 247, 0);
    }
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* ========================================
   ツールセクション
   ======================================== */
.tools-section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* カード共通ベーススタイル（background / border） */
.tool-card,
.tool-card-compact,
.about-card,
.simulator-card,
.guide-card,
.article-body,
.book-recommend-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-card {
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem auto;
    max-width: 800px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.tool-card.featured {
    border-color: var(--accent-color);
    box-shadow: 0 8px 32px rgba(87, 197, 247, 0.2);
}

/* ツールカードホバー共通（translateY + box-shadow） */
.tool-card:hover,
.tool-card-compact.active-tool:hover,
.tool-card.coming-soon.active-tool:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(87, 197, 247, 0.3);
}

.tool-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--accent-color);
    filter: drop-shadow(0 0 20px rgba(87, 197, 247, 0.5));
}

.tool-icon svg {
    width: 100%;
    height: 100%;
}

.tool-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.tool-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* ボタン共通スタイル（グラジエント系） */
.tool-button,
.tool-button-small,
.calculate-button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(87, 197, 247, 0.3);
}

.tool-button:hover,
.tool-button-small:hover,
.calculate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(87, 197, 247, 0.5);
}

.tool-button {
    display: inline-block;
    padding: 1rem 3rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.new-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* お役立ち情報ページのセクションタイトル */
.info-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 3rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent-color);
}

.info-section-title:first-of-type {
    margin-top: 2rem;
}

/* ツールグリッド（統一サイズ） */
.tools-section-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-top: 1.5rem;
    margin-bottom: 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    letter-spacing: 0.05em;
    text-transform: none;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.2rem;
}

.tool-card-compact {
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.6;
    cursor: not-allowed;
}

.tool-card-compact.active-tool {
    opacity: 1;
    cursor: pointer;
}

.tool-card-compact.active-tool:hover {
    border-color: var(--accent-color);
}

.tool-card-compact h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* PC: 4列 */
@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* スマホ: 2列 */
@media (max-width: 600px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .tool-card-compact {
        padding: 1rem;
    }

    .tool-card-compact h4 {
        font-size: 0.85rem;
    }

    .tool-icon-small {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .tool-button-small {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .coming-soon-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .coming-soon-grid .tool-card {
        padding: 0.8rem;
    }

    .coming-soon-grid .tool-card h4 {
        font-size: 0.85rem;
    }
}

.coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.tool-card.coming-soon {
    padding: 2rem;
    opacity: 0.6;
    cursor: not-allowed;
}

.tool-card.coming-soon:hover {
    transform: none;
}

.tool-icon-small {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-card.coming-soon h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.coming-tag {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
}

/* アクティブなツールカード（coming-soonから昇格） */
.tool-card.coming-soon.active-tool {
    opacity: 1;
    cursor: pointer;
}

.tool-button-small {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========================================
   トグルスイッチ
   ======================================== */
.toggle-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background: var(--text-gray);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: rgba(87, 197, 247, 0.3);
    border-color: var(--accent-color);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(26px);
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(87, 197, 247, 0.5);
}

.toggle-label {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background: rgba(10, 25, 41, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-info {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.footer-address {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-law-update {
    font-size: 0.78rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}
.footer-law-update a {
    color: var(--accent-color);
    text-decoration: none;
}
.footer-law-update a:hover {
    text-decoration: underline;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-gray);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========================================
   レスポンシブデザイン
   ======================================== */
@media (max-width: 768px) {
    /* スマホではタイトル非表示（パンくずで現在地が分かるため） */
    .hide-on-mobile {
        display: none;
    }

    .header-container {
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        position: relative;
        mask-image: linear-gradient(to right, black 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    }

    .header-nav.scrolled-end {
        mask-image: linear-gradient(to left, black 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to left, black 85%, transparent 100%);
    }

    .header-nav.scrolled-middle {
        mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    }

    .header-nav::-webkit-scrollbar {
        display: none;
    }

    .header-nav ul {
        gap: 0;
        white-space: nowrap;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0 0.5rem;
    }

    .header-nav li {
        flex-shrink: 0;
    }

    .header-nav a {
        font-size: 0.85rem;
        display: inline-block;
        padding: 0.5rem 0.8rem;
        white-space: nowrap;
    }

    .hero {
        padding: 9rem 1rem 3rem;
        min-height: 60vh;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .logo-icon {
        width: 70px;
        height: 70px;
    }

    .section-title {
        font-size: 2rem;
    }

    .tool-card {
        padding: 2rem 1.5rem;
    }

    .tool-title {
        font-size: 1.5rem;
    }

    .tool-description {
        font-size: 1rem;
    }

    .coming-soon-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .coming-soon-grid .tool-card {
        padding: 1rem;
    }

    .coming-soon-grid .tool-card h4 {
        font-size: 0.9rem;
    }

    .coming-soon-grid .tool-card p {
        font-size: 0.8rem !important;
    }

    .container {
        padding: 1rem;
    }

    .site-title {
        font-size: 2rem;
    }

    .site-subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.2em;
    }

    .headline {
        font-size: 2.5rem;
    }

    .description {
        font-size: 1.1rem;
    }

    .sub-description {
        font-size: 0.9rem;
    }

    .main-content {
        padding: 2rem 1.5rem;
    }

    .office-name {
        font-size: 1.1rem;
    }

    .sp-only {
        display: inline;
    }

    .page-content {
        padding: 7rem 1rem 3rem;
    }

    .page-content .divider {
        display: none;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .section-description {
        font-size: 0.72rem;
    }

    .guide-intro {
        font-size: 0.73rem;
        line-height: 1.5;
        margin: 0.5rem 0 1.2rem;
    }

    /* 運営者情報ページのレイアウト調整 */
    .about-card {
        padding: 1.5rem;
    }

    .about-heading {
        font-size: 1.5rem;
    }

    .info-label,
    .info-value {
        font-size: 1rem;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    .simulator-card {
        padding: 1.5rem 0.5rem;
    }
}

@media (max-width: 640px) {
    .page-content {
        padding: 7rem 0 3rem;
    }

    .simulator-card,
    .result-card,
    .cta-card {
        padding: 1rem 0;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    body {
        overflow-x: hidden;
    }

    /* 小さいスマホでは運営者情報をヘッダーから非表示（フッターからアクセス可） */
    .hide-on-small-mobile {
        display: none;
    }

    .page-content {
        padding: 8rem 0 4rem;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .simulator-container {
        padding: 0;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }

    .site-title {
        font-size: 1.6rem;
    }

    .headline {
        font-size: 2rem;
    }

    .description {
        font-size: 1rem;
    }

    .main-content {
        padding: 1.5rem 1rem;
    }

    .simulator-card,
    .result-card,
    .cta-card {
        padding: 1rem 0;
        margin-left: 0;
        margin-right: 0;
        border-width: 1px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .result-details {
        padding: 1rem 0.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .result-notes {
        padding: 0 0.5rem;
    }

    .share-section {
        padding: 1rem 0.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 1.5rem 0;
    }

    .info-badge {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .badge-icon {
        font-size: 1.2rem;
    }

    .badge-text {
        font-size: 0.9rem;
    }

    .badge-detail {
        display: none;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
        max-height: 85vh;
    }

    .modal-title {
        font-size: 1.3rem;
        padding-right: 2.5rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .history-timeline {
        padding-left: 1.5rem;
    }

    .history-item {
        padding-left: 1.5rem;
    }

    .history-year {
        font-size: 1.1rem;
    }

    .history-era {
        font-size: 0.8rem;
        display: block;
        margin-left: 0;
        margin-top: 0.2rem;
    }

    .history-content {
        padding: 1rem;
    }

    .history-content strong {
        font-size: 1rem;
    }

    .result-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
        margin: 0 0 1.5rem 0;
    }

    .result-item {
        padding: 1rem 0.5rem;
        margin: 0;
        border-width: 1px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .result-item.primary {
        border-width: 1px;
    }

    .result-value {
        font-size: 1.4rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        overflow: hidden;
        padding: 0 0.2rem;
        letter-spacing: -0.02em;
    }

    .result-label {
        font-size: 0.85rem;
    }

    .result-note {
        font-size: 0.75rem;
    }

    .result-item.primary,
    .result-item.secondary {
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .cta-heading {
        font-size: 1.5rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

}

@media (min-width: 769px) {
    .sp-only {
        display: none;
    }

    /* 運営者情報ページ - デスクトップレイアウト */
    .info-row {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 2rem;
        align-items: start;
    }

    .info-label {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .info-value {
        margin-bottom: 0;
    }
}

/* ========================================
   ページコンテンツ（運営者情報など）
   ======================================== */
.page-content {
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .page-content {
        padding: 7rem 1rem 3rem;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 8rem 0 4rem;
        max-width: 100vw;
        overflow-x: hidden;
    }
}

.page-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.about-section {
    margin-top: 3rem;
}

.about-card {
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.about-heading {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    border-bottom: 2px solid rgba(87, 197, 247, 0.3);
    padding-bottom: 0.5rem;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-row {
    display: block;
}

.info-label {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.1rem;
    display: block;
    padding-bottom: 0.5rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(87, 197, 247, 0.3);
}

.info-value {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    display: block;
    margin-bottom: 1.5rem;
}

.about-text {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.9;
}

.about-text p {
    margin-bottom: 1.2rem;
}

.about-text.disclaimer {
    background: rgba(255, 197, 87, 0.05);
    border-left: 3px solid rgba(255, 197, 87, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(87, 197, 247, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(87, 197, 247, 0.1);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.service-item p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ========================================
   シミュレーター
   ======================================== */
.simulator-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.simulator-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-gray);
    margin: 2rem 0 1.5rem;
}

.info-badge {
    background: linear-gradient(135deg, rgba(87, 197, 247, 0.2), rgba(26, 95, 122, 0.2));
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    padding: 1rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0 auto 3rem;
    animation: fadeIn 1s ease-out;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-badge:hover {
    background: linear-gradient(135deg, rgba(87, 197, 247, 0.3), rgba(26, 95, 122, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(87, 197, 247, 0.4);
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

.badge-detail {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-left: 0.5rem;
    text-decoration: underline;
}

.simulator-card {
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
    text-align: left;
}

@media (max-width: 768px) {
    .simulator-card { padding: 1.5rem 0.5rem; }
}
@media (max-width: 640px) {
    .simulator-card { padding: 1rem 0.5rem; }
}
@media (max-width: 480px) {
    .simulator-card { padding: 1rem 0.5rem; }
}

.simulator-heading {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--accent-color);
    text-align: center;
}
@media (max-width: 640px) {
    .simulator-heading { font-size: 1.3rem; margin-bottom: 1.2rem; }
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
}

.label-text {
    font-size: 1.1rem;
}

.label-unit {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-left: 0.5rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(87, 197, 247, 0.3);
}

.form-input::placeholder {
    color: var(--text-gray);
    opacity: 0.6;
}

.form-hint {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
    font-style: italic;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-light);
}

input.form-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
    accent-color: var(--accent-color);
    flex-shrink: 0;
}

/* テーブル共通スタイル */
.loan-limit-table,
.article-table {
    width: 100%;
    border-collapse: collapse;
}

.loan-limit-table th,
.article-table th {
    color: var(--text-light);
    font-weight: 600;
}

.loan-limit-table {
    margin-top: 0.8rem;
    font-size: 0.85rem;
}

.loan-limit-table th,
.loan-limit-table td {
    border: 1px solid rgba(87, 197, 247, 0.5);
    padding: 0.4rem 0.6rem;
    text-align: center;
    background: rgba(10, 25, 41, 0.3);
}

.loan-limit-table th {
    background: rgba(87, 197, 247, 0.15);
}

.loan-limit-table td:first-child {
    text-align: left;
    color: var(--text-gray);
}

.loan-limit-table .highlight-family {
    color: var(--accent-color);
    font-weight: 700;
}

.loan-limit-table .no-diff td {
    color: var(--text-gray);
    font-style: italic;
}

.form-select {
    cursor: pointer;
}

.form-select option {
    background: var(--dark-bg);
    color: var(--text-light);
}

.calculate-button {
    width: 100%;
    padding: 1.2rem 2rem;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
}

.calculate-button:active {
    transform: translateY(0);
}

/* 結果セクション */
.result-section {
    animation: fadeInUp 0.8s ease-out;
}

.result-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(87, 197, 247, 0.2);
    text-align: left;
}

.result-heading {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.result-item {
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.result-item.primary {
    background: linear-gradient(135deg, rgba(87, 197, 247, 0.2), rgba(26, 95, 122, 0.2));
    border: 2px solid var(--accent-color);
}

.result-item.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-label {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-weight: 600;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    word-break: break-word;
}

.result-note {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.result-details {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.details-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.details-grid {
    display: grid;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
}

.detail-label {
    color: var(--text-gray);
    font-size: 1rem;
}

.detail-value {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.1rem;
}

.result-notes {
    background: rgba(255, 197, 87, 0.05);
    border-left: 3px solid rgba(255, 197, 87, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
}

.result-notes h4 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.result-notes ul {
    list-style: none;
    padding-left: 0;
}

.result-notes li {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.8;
    padding-left: 1.5rem;
    position: relative;
}

.result-notes li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* CTAカード */
.cta-card {
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.3), rgba(87, 197, 247, 0.2));
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(87, 197, 247, 0.3);
}

.cta-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.cta-button {
    padding: 1.2rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-button.primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 2px solid var(--accent-color);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.cta-note {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-style: italic;
}

/* モーダル */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #0a1929 0%, #1a2a3a 100%);
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    padding: 3rem;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
    padding-right: 3rem;
}

.history-timeline {
    position: relative;
    padding-left: 2rem;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-color), rgba(87, 197, 247, 0.3));
}

.history-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.history-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(87, 197, 247, 0.8);
    transform: translateX(-5px);
}

.history-item.current::before {
    background: #51cf66;
    box-shadow: 0 0 15px rgba(81, 207, 102, 0.8);
    animation: pulse 2s ease-in-out infinite;
}

.history-item.current .history-year {
    color: #51cf66;
}

.history-year {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.history-era {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-gray);
    margin-left: 0.5rem;
}

.history-content {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid rgba(87, 197, 247, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 8px;
}

.history-content strong {
    color: var(--accent-color);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.8rem;
}

.history-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.history-content li {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.8;
    padding-left: 1.5rem;
    position: relative;
}

.history-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.highlight-old {
    color: #ff6b6b;
    text-decoration: line-through;
    font-weight: 600;
}

.highlight-new {
    color: #51cf66;
    font-weight: 700;
}

.modal-note {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(87, 197, 247, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

.modal-update {
    margin-top: 1rem;
    padding: 0.8rem 1.2rem;
    background: rgba(81, 207, 102, 0.1);
    border-left: 3px solid #51cf66;
    border-radius: 5px;
    color: #51cf66;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* ========================================
   スムーズスクロール
   ======================================== */
html {
    scroll-behavior: smooth;
}

/* ========================================
   選択テキストのスタイル
   ======================================== */
::selection {
    background: rgba(87, 197, 247, 0.3);
    color: var(--text-light);
}

::-moz-selection {
    background: rgba(87, 197, 247, 0.3);
    color: var(--text-light);
}

/* ========================================
   共有・保存機能
   ======================================== */
.share-section {
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(87, 197, 247, 0.05), rgba(140, 122, 230, 0.05));
    border-radius: 15px;
    border: 1px solid rgba(87, 197, 247, 0.2);
}

.share-heading {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-align: center;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.share-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 1rem;
    background: rgba(13, 16, 28, 0.6);
    border: 1px solid rgba(87, 197, 247, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.share-button:hover {
    transform: translateY(-3px);
    border-color: rgba(87, 197, 247, 0.6);
    background: rgba(13, 16, 28, 0.8);
    box-shadow: 0 5px 20px rgba(87, 197, 247, 0.2);
}

.share-button:active {
    transform: translateY(0);
}

.share-icon {
    font-size: 1.8rem;
}

.share-text {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* 各ボタンの個別カラー */
.share-button.print:hover {
    border-color: rgba(255, 197, 87, 0.6);
    box-shadow: 0 5px 20px rgba(255, 197, 87, 0.2);
}

.share-button.email:hover {
    border-color: rgba(87, 197, 247, 0.6);
    box-shadow: 0 5px 20px rgba(87, 197, 247, 0.2);
}

.share-button.line:hover {
    border-color: rgba(0, 195, 0, 0.6);
    box-shadow: 0 5px 20px rgba(0, 195, 0, 0.2);
}

.share-button.x:hover {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.15);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   チェッカー・ツール共通
   ======================================== */

/* タブ（複数ツールで共用） */
.checker-tabs {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
}
.checker-tab {
    flex: 1;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Noto Sans JP', sans-serif;
}
.checker-tab.active {
    background: rgba(87,197,247,0.15);
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.checker-tab:hover:not(.active) {
    border-color: rgba(87,197,247,0.4);
    color: var(--text-light);
}
@media (max-width: 640px) {
    .checker-tabs { flex-direction: column; }
}

/* 計算・変換ボタン */
.checker-calc-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    color: #0a1929;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: opacity 0.2s, transform 0.1s;
    font-family: 'Noto Sans JP', sans-serif;
}
.checker-calc-btn:hover  { opacity: 0.85; }
.checker-calc-btn:active { transform: scale(0.99); }

/* 根拠法令バッジ */
.law-basis {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--text-gray);
    background: rgba(255,255,255,0.06);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

/* ========================================
   パンくずリスト
   ======================================== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb .separator {
    color: var(--text-gray);
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--text-light);
}

/* ========================================
   セクション共通
   ======================================== */
.section-description {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .section-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
}

.section-more {
    text-align: center;
    margin-top: 2rem;
}

.section-more-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.section-more-link:hover {
    background: rgba(87, 197, 247, 0.1);
    transform: translateY(-2px);
}

/* ========================================
   歩き方セクション（トップページ）
   ======================================== */
.guide-section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.guide-card-home {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.guide-card-home:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(87, 197, 247, 0.2);
}

.guide-card-home-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.guide-card-home-content h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.guide-card-home-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ========================================
   歩き方一覧ページ
   ======================================== */
.guide-intro {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 2rem 0 3rem;
}

@media (max-width: 768px) {
    .guide-intro {
        font-size: 0.98rem;
        line-height: 1.6;
        margin: 1rem 0 2rem;
    }
}

.guide-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.guide-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.guide-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(87, 197, 247, 0.3);
    transform: translateX(5px);
}

/* カード全体がリンクの場合 */
.guide-card-link {
    text-decoration: none;
    cursor: pointer;
}

.guide-card-link .guide-card-title {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.guide-card-link:hover .guide-card-title {
    color: var(--accent-color);
}

.guide-card-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.guide-card-content {
    flex: 1;
}

.guide-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.guide-card-title a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.guide-card-title a:hover {
    color: var(--accent-color);
}

.guide-card-excerpt {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.guide-card-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.guide-card-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(87, 197, 247, 0.15);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.guide-card-date {
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* 歩き方一覧 - 関連リンク */
.guide-related {
    margin-top: 4rem;
    padding: 2rem;
    background: rgba(87, 197, 247, 0.05);
    border-radius: 15px;
}

.guide-related-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.guide-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.guide-related-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.guide-related-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.guide-related-icon {
    font-size: 1.2rem;
}

/* 近日公開の記事カード */
.guide-card.coming-soon-article {
    opacity: 0.6;
    cursor: default;
}

.guide-card.coming-soon-article:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.guide-card.coming-soon-article .guide-card-title span {
    color: var(--text-gray);
}

/* トップページの近日公開カード */
.guide-card-home.coming-soon-home {
    opacity: 0.6;
    cursor: default;
}

.guide-card-home.coming-soon-home:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* 関連記事の近日公開 */
.article-related-item.coming-soon-related {
    opacity: 0.6;
    cursor: default;
}

.article-related-item.coming-soon-related:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.coming-tag-small {
    font-size: 0.75rem;
    color: var(--accent-color);
    margin-left: auto;
}

/* ========================================
   記事ページ
   ======================================== */
.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.article-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(87, 197, 247, 0.15);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-date {
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.article-lead {
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* 記事本文 */
.article-body {
    border-radius: 20px;
    padding: 3rem;
}

.article-section {
    margin-bottom: 3rem;
}

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

.article-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(87, 197, 247, 0.3);
}

.article-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 2rem 0 1rem;
}

.article-section p {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

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

/* 記事内のボックス */
.info-box {
    background: rgba(87, 197, 247, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.info-box h3,
.info-box h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.info-box ul,
.info-box ol {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    color: var(--text-gray);
    line-height: 1.8;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.info-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.highlight-box {
    background: linear-gradient(135deg, rgba(87, 197, 247, 0.1), rgba(140, 122, 230, 0.1));
    border: 1px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.highlight-box p {
    margin: 0;
}

.highlight-box a {
    color: var(--accent-color);
}

/* 参考書おすすめボックス */
.book-recommend {
    margin: 2rem 0;
}

.book-recommend-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.book-recommend-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    text-decoration: none;
    transition: border-color 0.3s, background 0.3s;
}

.book-recommend-card:hover {
    border-color: rgba(87, 197, 247, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.book-recommend-img {
    flex-shrink: 0;
}

.book-recommend-img img {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.book-recommend-info {
    flex: 1;
    min-width: 0;
}

.book-recommend-title {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.book-recommend-author {
    color: var(--text-gray);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.book-recommend-note {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.6;
}

.book-recommend-arrow {
    flex-shrink: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
}

.book-recommend-card:hover .book-recommend-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.book-recommend-disclaimer {
    font-size: 0.7rem;
    color: rgba(176, 196, 208, 0.5);
    margin-top: 0.4rem;
}

/* 記事内テーブル */
.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-table th,
.article-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-table th {
    background: rgba(87, 197, 247, 0.1);
}

.article-table td {
    color: var(--text-gray);
}

.article-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ステップリスト */
.step-list {
    list-style: none;
    padding-left: 0;
    counter-reset: step-counter;
}

.step-list li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--accent-color);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* 比較ボックス */
.comparison-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.comparison-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
}

.comparison-item h4 {
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.comparison-item ul {
    list-style: none;
    padding-left: 0;
}

.comparison-item li {
    color: var(--text-gray);
    line-height: 1.8;
    padding-left: 1.2rem;
    position: relative;
}

.comparison-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* 引用ボックス */
.advice-quote {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
}

.advice-quote p {
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.advice-quote cite {
    display: block;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-style: normal;
}

/* 関連記事 */
.article-related {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(87, 197, 247, 0.05);
    border-radius: 15px;
}

.article-related-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.article-related-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.article-related-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-related-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.article-related-icon {
    font-size: 1.3rem;
}

.article-related-text {
    font-size: 1rem;
}

/* 記事フッター */
.article-footer {
    margin-top: 3rem;
    text-align: center;
}

.article-dates {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.back-to-list {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    padding: 0.8rem 2rem;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.back-to-list:hover {
    background: rgba(87, 197, 247, 0.1);
}

/* YouTubeチャンネルカード */
.youtube-channels {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.channel-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.channel-card:hover {
    border-color: rgba(255, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.channel-card h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.channel-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.channel-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff0000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.channel-link:hover {
    background: rgba(255, 0, 0, 0.2);
}

.channel-link::before {
    content: '▶';
    font-size: 0.8rem;
}

/* 過去問サイト用 */
.channel-card.kakomon:hover {
    border-color: rgba(87, 197, 247, 0.3);
}

.channel-link.kakomon-link {
    color: var(--accent-color);
    background: rgba(87, 197, 247, 0.1);
}

.channel-link.kakomon-link:hover {
    background: rgba(87, 197, 247, 0.2);
}

.channel-link.kakomon-link::before {
    content: '→';
}

/* タイムライン */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-color), rgba(87, 197, 247, 0.3));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(87, 197, 247, 0.5);
    transform: translateX(-4.5px);
}

.timeline-item.current::before {
    background: #51cf66;
    box-shadow: 0 0 15px rgba(81, 207, 102, 0.8);
    animation: pulse 2s ease-in-out infinite;
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}

.timeline-item.current .timeline-date {
    color: #51cf66;
}

.timeline-content {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
}

/* レスポンシブ（記事ページ） */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.8rem;
    }

    .article-body {
        padding: 1.5rem 0.8rem;
    }

    .article-section h2 {
        font-size: 1.4rem;
    }

    .guide-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .guide-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .guide-card-icon {
        font-size: 2rem;
    }

    .guide-card-title {
        font-size: 1rem;
    }

    .guide-card-excerpt {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .channel-card {
        padding: 1.2rem;
    }

    .book-recommend-card {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .book-recommend-img img {
        width: 60px;
        height: auto;
    }

    .book-recommend-title {
        font-size: 0.85rem;
    }

    .book-recommend-note {
        font-size: 0.8rem;
    }

    .book-recommend-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .article-body {
        padding: 1rem 0.5rem;
    }
}

/* ========================================
   楽天ポイントアップデーバナー（5のつく日のみ表示）
   ======================================== */
.rakuten-point-day {
    max-width: 600px;
    margin: 1.2rem auto 0;
    padding: 0.9rem 1.4rem;
    background: rgba(180, 116, 13, 0.07);
    border: 1px solid rgba(180, 116, 13, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.point-day-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.point-day-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    color: #d4910a;
    font-weight: 600;
}

.point-day-text {
    font-size: 0.88rem;
    color: var(--text-light);
    font-weight: 500;
}

.point-day-btn {
    flex-shrink: 0;
    display: inline-block;
    padding: 0.55rem 1.1rem;
    background: linear-gradient(135deg, #b5740d, #d4910a);
    color: #fff !important;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s, opacity 0.2s;
}

.point-day-btn:hover {
    opacity: 0.85;
    color: #fff !important;
    text-decoration: none !important;
}

.point-day-disclaimer {
    max-width: 600px;
    margin: 0.3rem auto 0;
    font-size: 0.68rem;
    color: rgba(176, 196, 208, 0.4);
    text-align: right;
}

@media (max-width: 480px) {
    .rakuten-point-day {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }
    .point-day-btn {
        text-align: center;
    }
}

/* ========================================
   転職エージェント推薦カード
   ======================================== */
.job-recommend {
    max-width: 600px;
    margin: 0 auto;
}

.job-recommend-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.job-recommend-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    text-decoration: none;
    transition: border-color 0.3s, background 0.3s;
}

.job-recommend-card:hover {
    border-color: rgba(87, 197, 247, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.job-recommend-img {
    flex-shrink: 0;
}

.job-recommend-img img {
    border-radius: 4px;
}

.job-recommend-info {
    flex: 1;
    min-width: 0;
}

.job-recommend-title {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.job-recommend-note {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.6;
}

.job-recommend-arrow {
    flex-shrink: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
}

.job-recommend-card:hover .job-recommend-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.job-recommend-disclaimer {
    font-size: 0.7rem;
    color: rgba(176, 196, 208, 0.5);
    margin-top: 0.4rem;
}

@media (max-width: 768px) {
    .job-recommend-card {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .job-recommend-img img {
        width: 90px;
        height: auto;
    }

    .job-recommend-title {
        font-size: 0.85rem;
    }

    .job-recommend-note {
        font-size: 0.8rem;
    }

    .job-recommend-arrow {
        display: none;
    }
}

/* ========================================
   印刷用スタイル
   ======================================== */
@media print {
    /* 不要な要素を非表示 */
    .header,
    .footer,
    .simulator-card,
    .share-section,
    .cta-card,
    .background-overlay,
    .cursor-glow {
        display: none !important;
    }

    /* 背景を白に */
    body {
        background: white !important;
    }

    /* 計算結果を見やすく */
    .result-card {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #333;
        page-break-inside: avoid;
    }

    .result-heading,
    .details-heading,
    .result-notes h4,
    .share-heading {
        color: #000 !important;
    }

    .result-label,
    .detail-label,
    .result-note {
        color: #333 !important;
    }

    .result-value,
    .detail-value {
        color: #000 !important;
    }

    .result-notes ul li {
        color: #333 !important;
    }

    /* ページタイトル追加 */
    .page-title {
        color: #000 !important;
        page-break-after: avoid;
    }
}

/* ========================================
   お問い合わせフォーム
   ======================================== */
.contact-form {
    margin-top: 2rem;
}

.contact-note {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 1rem;
}

.form-textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1.1rem;
    font-family: 'Noto Sans JP', sans-serif;
    resize: vertical;
    min-height: 150px;
    transition: all 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(87, 197, 247, 0.3);
}

.form-textarea::placeholder {
    color: var(--text-gray);
    opacity: 0.6;
}

.label-required {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.checkbox-text a {
    color: var(--accent-color);
    text-decoration: underline;
}

.contact-submit {
    margin-top: 1rem;
}

/* ========================================
   利用規約ページ
   ======================================== */
.about-text h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.8rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.about-text ul li {
    color: var(--text-gray);
    line-height: 1.8;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.about-text ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.terms-update {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* ========================================
   フッターリンク複数対応
   ======================================== */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 480px) {
    .footer-links {
        gap: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* ========================================
   今日のトピック（AIニュース）
   ======================================== */
.topics-spacer {
    padding-top: 70px;
}

@media (max-width: 768px) {
    .topics-spacer {
        padding-top: 120px;
    }
}

.topics-section {
    padding: 2rem 0;
    background: rgba(10, 25, 41, 0.5);
}

.topics-section .section-title {
    font-size: 2rem;
}

.topics-container {
    max-width: 900px;
    margin: 0 auto;
}

.topics-date {
    text-align: center;
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.topics-empty {
    text-align: center;
    color: var(--text-gray);
    padding: 2rem;
}

.topics-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.topic-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(87, 197, 247, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.topic-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(87, 197, 247, 0.4);
    transform: translateY(-2px);
}

.topic-title {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.topic-summary {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.topic-advice {
    background: rgba(87, 197, 247, 0.1);
    border-left: 3px solid var(--accent-color);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1rem;
}

.topic-advice .advice-label {
    display: inline-block;
    background: var(--accent-color);
    color: var(--dark-bg);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.topic-advice p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.topic-source {
    text-align: right;
    margin: 0;
}

.topic-source a {
    color: var(--accent-color);
    font-size: 0.85rem;
    text-decoration: none;
}

.topic-source a:hover {
    text-decoration: underline;
}

.topics-badge {
    display: none;
}


@media (max-width: 768px) {
    .topics-section {
        padding: 1.2rem 0;
    }

    .topics-section .section-title {
        display: none;
    }

    .topics-section .divider {
        display: none;
    }

    .topics-section .section-description {
        font-size: 0.88rem;
        text-align: left;
        margin-bottom: 0.8rem;
    }

    .topics-badge {
        display: inline-block;
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.3);
        font-size: 0.9rem;
        font-weight: 600;
        padding: 0.3rem 0.8rem;
        border-radius: 4px;
        margin-bottom: 0.8rem;
    }

    .topics-list {
        gap: 0.8rem;
    }

    .topic-card {
        padding: 1rem;
    }

    .topic-title {
        font-size: 0.92rem;
        margin-bottom: 0.5rem;
    }

    .topic-summary {
        font-size: 0.82rem;
        line-height: 1.5;
        margin-bottom: 0.6rem;
    }

    .topic-advice {
        padding: 0.7rem;
        margin-bottom: 0.6rem;
    }

    .topic-advice p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .topic-source a {
        font-size: 0.78rem;
    }
}

/* ========================================
   目次（記事共通）
   ======================================== */
.toc-box {
    background: rgba(26, 95, 122, 0.15);
    border: 1px solid rgba(87, 197, 247, 0.2);
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0 2rem;
}
.toc-box h3 {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0 0 0.7rem;
    letter-spacing: 0.05em;
}
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}
.toc-list li {
    counter-increment: toc-counter;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}
.toc-list li:last-child { border-bottom: none; }
.toc-list li::before {
    content: counter(toc-counter) ". ";
    color: var(--accent-color);
    font-weight: 700;
    margin-right: 0.3rem;
}
.toc-list a {
    color: var(--text-light);
    text-decoration: none;
}
.toc-list a:hover { color: var(--accent-color); }

/* ========================================
   法改正ページ
   ======================================== */

/* カテゴリバッジ */
.law-badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.law-badge-takkengyoho { background: rgba(87, 197, 247, 0.2); color: #57c5f7; border: 1px solid rgba(87, 197, 247, 0.4); }
.law-badge-minpo       { background: rgba(179, 157, 219, 0.2); color: #ce93d8; border: 1px solid rgba(179, 157, 219, 0.4); }
.law-badge-zesei       { background: rgba(165, 214, 167, 0.2); color: #81c784; border: 1px solid rgba(165, 214, 167, 0.4); }
.law-badge-toroku      { background: rgba(255, 204, 128, 0.2); color: #ffb74d; border: 1px solid rgba(255, 204, 128, 0.4); }
.law-badge-kenchiku    { background: rgba(128, 203, 196, 0.2); color: #4db6ac; border: 1px solid rgba(128, 203, 196, 0.4); }
.law-badge-kinyu       { background: rgba(239, 154, 154, 0.2); color: #e57373; border: 1px solid rgba(239, 154, 154, 0.4); }
.law-badge-souzoku     { background: rgba(244, 143, 177, 0.2); color: #f06292; border: 1px solid rgba(244, 143, 177, 0.4); }

/* 凡例 */
.law-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.law-importance-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 2rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    margin-bottom: 2rem;
    align-items: center;
}
.law-importance-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.law-star-desc {
    font-size: 0.82rem;
    color: rgba(176, 196, 208, 0.7);
}
.law-exam-label {
    background: rgba(87, 197, 247, 0.15);
    color: #57c5f7;
    border-radius: 3px;
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
}
.law-practice-label {
    background: rgba(129, 199, 132, 0.15);
    color: #81c784;
    border-radius: 3px;
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
}

/* フィルタータブ */
.law-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}
.law-tab {
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.law-tab:hover {
    border-color: var(--accent-color);
    color: var(--text-light);
    background: rgba(87, 197, 247, 0.08);
}
.law-tab.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    font-weight: 700;
}

/* 年度セクション */
.law-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 3rem;
}
.law-year-section {
    position: relative;
}
.law-year-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(87, 197, 247, 0.3);
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}
.law-year-num {
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: 900;
}

/* 法改正カード */
.law-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.law-card:last-child {
    margin-bottom: 0;
}
.law-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(87, 197, 247, 0.25);
}
.law-card-highlight {
    border-color: rgba(255, 179, 0, 0.35);
    background: rgba(255, 179, 0, 0.04);
}
.law-card-highlight:hover {
    border-color: rgba(255, 179, 0, 0.5);
}

.law-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}
.law-date {
    font-size: 0.82rem;
    color: var(--text-gray);
}
.law-new-badge {
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.25), rgba(255, 140, 0, 0.25));
    border: 1px solid rgba(255, 179, 0, 0.5);
    color: #ffd54f;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 3px;
    letter-spacing: 0.05em;
}

.law-sub-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 1.2rem 0 0.5rem;
    padding-left: 0.6rem;
    border-left: 3px solid var(--accent-color);
}

.law-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.law-card-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* 箇条書き */
.law-points {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1.2rem;
}
.law-points > li {
    color: var(--text-gray);
    font-size: 0.92rem;
    line-height: 1.7;
    padding-left: 1.4rem;
    position: relative;
    margin-bottom: 0.4rem;
}
.law-points > li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.8rem;
    top: 0.15rem;
}
.law-sub-points {
    list-style: none;
    padding-left: 1.2rem;
    margin: 0.4rem 0 0;
}
.law-sub-points li {
    color: var(--text-gray);
    font-size: 0.88rem;
    line-height: 1.7;
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.2rem;
}
.law-sub-points li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: rgba(176, 196, 208, 0.5);
}

/* フッター（重要度） */
.law-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 0.8rem;
    margin-top: 0.5rem;
}
.law-importance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.law-stars {
    color: #ffd54f;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-right: 0.8rem;
}

/* 今後の動向 */
.law-upcoming {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.law-upcoming-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
}
.law-upcoming-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}
.law-upcoming-date {
    font-size: 0.82rem;
    color: var(--text-gray);
}
.law-upcoming-item h3 {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.law-upcoming-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* 免責事項 */
.law-disclaimer {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid rgba(176, 196, 208, 0.3);
    border-radius: 0 6px 6px 0;
    padding: 0.8rem 1.2rem;
    margin-top: 2rem;
}
.law-disclaimer p {
    color: rgba(176, 196, 208, 0.6);
    font-size: 0.82rem;
    line-height: 1.7;
    margin: 0;
}

/* 関連記事リンク */
.article-related-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}
.article-related-link:hover .article-related-text {
    color: var(--accent-color);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .law-year-title {
        font-size: 1.2rem;
    }
    .law-year-num {
        font-size: 1.6rem;
    }
    .law-card {
        padding: 1.2rem;
    }
    .law-card-title {
        font-size: 1rem;
    }
    .law-filter-tabs {
        gap: 0.4rem;
    }
    .law-tab {
        padding: 0.4rem 0.9rem;
        font-size: 0.82rem;
    }
    .law-importance-legend {
        gap: 0.5rem 1rem;
    }
}
