/*
Theme Name: Tokyo Futari Story
Author: Me
Description: My custom theme
Version: 1.0
*/

:root {
    --color-red: #CB3232;
    --color-navy: #152F65;
    --color-brown: #A67843;
    --color-mosgreen: #207142;
    --color-green: #00953F;
    --color-lightgreen: #D1E8D8;
    --color-linkblue: #2E72AE;
}

/* ==========================================================================
   Base Settings
   ========================================================================== */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-size: 1.6rem;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Helvetica Neue", Arial, Meiryo, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
    margin: 0;
}

/* フォーム要素の継承 */
input,
button,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* グローバルフォーカスリング（アクセシビリティ対応） */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
select:focus-visible, 
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #00953F;
    outline-offset: 2px;
}

/* overflow:hidden等によるフォーカス枠の見切れ防止 (100episodes用) */
.st100 .swiper-slide a:focus,
.st100 .swiper-slide [tabindex]:focus,
#point #btn li:focus,
#animationList li a:focus,
.modal-close:focus,
.st100 .swiper-slide a:focus-visible,
.st100 .swiper-slide [tabindex]:focus-visible,
#point #btn li:focus-visible,
#animationList li a:focus-visible,
.modal-close:focus-visible {
    outline: 3px solid #00953F !important;
    outline-offset: -3px !important;
}

/* 本文へスキップ リンク (アクセシビリティ対応) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #00953F;
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* --- Header Layout --- */
.site-header {
    background-color: #fff;
    border-bottom: 0.1rem solid #e0e0e0;
    padding: 1.2rem 0;
    width: 100%;
}

.header-inner {
    max-width: 120.0rem;
    /* 1200px */
    margin: 0 auto;
    padding: 0 2.0rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.logo-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2.0rem;
}

/* 都庁ロゴ */
.logo-tmg img {
    max-width: 115px;
    display: block;
}

/* サイトロゴ（TOKYOふたりSTORY） */
.logo-main img {
    width: 100%;
    max-width: 320px;
    display: block;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-left: auto;
}



/* 言語セレクト */
.language-selector select {
    border: 0.1rem solid #ccc;
    padding: 0.5rem 0.8rem;
    border-radius: 0.4rem;
    font-size: 1.3rem;
    /* 13px */
    color: #444;
    background: #fff;
}

/* 言語選択セレクトボックスのスタイル例 */
olang select {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
}

/* MSTAが自動生成する元のボタン群は隠しておく（プルダウンを使う場合） */
#msta_langArea {
    display: none;
}


/* 検索ボックス */
.header-search-form {
    display: flex;
    align-items: center;
    border: 0.1rem solid #333;
    border-radius: 0.4rem;
    overflow: hidden;
    height: 3rem;
}

.header-search-form input {
    border: none;
    padding: 0 1.0rem;
    font-size: 1.4rem;
    /* 14px */
    width: 15.0rem;
    /* 150px */
    outline: none;
}

.header-search-form button {
    background-color: #333;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    height: 100%;
    cursor: pointer;
    transition: opacity 0.2s;
}

.header-search-form img {
    width: 16px;
    height: 16px;
}

.header-search-form button:hover {
    opacity: 0.8;
}


/* スマホ小画面用 */
@media (max-width: 480px) {
    .header-tools {
        display: none;
    }
}







/* --- Footer Styles --- */
.site-footer {
    width: 100%;
}

.footer-inner {
    max-width: 120.0rem;
    margin: 0 auto;
    padding: 0 2.0rem;
}

/* SNSセクション */
.footer-sns-section {
    background-color: #008542;
    padding: 3.0rem 0;
    position: relative;
    text-align: center;
}




.sns-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.0rem;
}

.sns-label {
    color: #fff;
    font-size: 2.4rem;
    /* 24px */
    font-weight: bold;
}

.sns-icons {
    display: flex;
    gap: 2.0rem;
}

.sns-icons img {
    height: 52px;


}

/* ページトップボタン */
.page-top-btn {
    position: absolute;
    right: 3.0rem;
    top: -2.5rem;
    background-color: #008542;
    width: 5.0rem;
    height: 5.0rem;
    border-radius: 50%;
    border: 0.2rem solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    z-index: 10;
}

.page-top-btn img {
    width: 32px;
}

/* 情報セクション */
.footer-info-section {
    background-color: #fff;
    padding: 6.0rem 0 2.0rem;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4.0rem;
}

.footer-logo img {
    width: 100%;
    max-width: 35.0rem;
    /* 350px */
    height: auto;
}

.footer-nav {
    display: flex;
    gap: 2.0rem;
    list-style: none;
    margin-bottom: 2.0rem;
    justify-content: flex-end;
    padding: 0;
}

.footer-nav a {
    text-decoration: underline;
    color: #333;
    font-size: 1.4rem;
    /* 14px */
}

.footer-address {
    font-style: normal;
    font-size: 1.4rem;
    line-height: 1.8;
    text-align: right;
    color: #333;
}

.copyright {
    text-align: center;
    font-size: 1.2rem;
    /* 12px */
    border-top: 0.1rem solid #ccc;
    padding-top: 2.0rem;
    color: #333;
    margin: 0;
}

/* --- Media Queries --- */

/* タブレット・スマホ共通（元サイトの基準に合わせるなら 790px ですが 768px でも一般的です） */
@media (max-width: 768px) {
    html {
        font-size: 58%;
        /* 全体を約9割に縮小 */
    }

    .footer-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
        margin-top: 2.0rem;
    }

    .footer-address {
        text-align: center;
    }
}

/* スマホ小画面用 */
@media (max-width: 480px) {
    .logo-group {
        gap: 1.0rem;
    }

    /*     .logo-tmg img { height: 3.0rem; } */
    /*     .logo-main img { height: 3.8rem; } */
    .header-search-form input {
        width: 10.0rem;
    }
}