@import url(https://fonts.googleapis.com/earlyaccess/notosansjp.css);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    -webkit-text-size-adjust: 100%;
    font-family: "Noto Sans JP", sans-serif;
}

/* タブコンテナ */
.privacy-tabs-container {
    width: 100%;
    background-color: #fff;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* タブリスト */
.privacy-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* スクロールバーのスタイル */
.privacy-tabs::-webkit-scrollbar {
    height: 6px;
}

.privacy-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.privacy-tabs::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.privacy-tabs::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* タブアイテム */
.privacy-tab {
    flex: 0 0 auto;
}

.privacy-tab-button {
    display: block;
    padding: 16px 24px;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.privacy-tab-button:hover {
    background-color: #f5f5f5;
    color: #333;
}

.privacy-tab-button.active {
    background-color: #f8f9fa;
    border-bottom-color: #004680;
    color: #004680;
    font-weight: 600;
}

.privacy-tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #004680 0%, #0056b3 100%);
}

/* 店舗名スタイル */
.privacy-tab-button .shop-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.privacy-tab-button .shop-area {
    display: block;
    font-size: 11px;
    color: #999;
    font-weight: 400;
}

.privacy-tab-button.active .shop-area {
    color: #0056b3;
}

/* タブコンテンツ */
.privacy-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.privacy-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 既存のプライバシーポリシースタイル */
#privacy {
    -webkit-text-size-adjust: 100%;
    font-family: "Noto Sans JP", sans-serif;
    margin-bottom: 60px;
}

#privacy .content_block {
    padding: 0!important;
    max-width: 1200px;
    margin: 0 auto;
}

#privacy .content_block h1 {
    font-weight: bold;
    font-size: 1.4em;
    margin-bottom: 1em;
    color: #333;
    border-bottom: 2px solid #004680;
    padding-bottom: 10px;
}

#privacy ol {
    margin-left: 1em;
}

#privacy .privacydict>li {
    margin-bottom: 2em;
}

#privacy .privacydict li>h2 {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: .8em;
    color: #444;
}

#privacy .privacydict>li p {
    text-indent: 1em;
    margin: 0 auto .4em;
    line-height: 1.8;
}

/* 括弧付き数字 */
#privacy .privacy_num_paren {
    counter-reset: num_paren;
}

#privacy .privacy_num_paren>li {
    position: relative;
    list-style-type: none;
    counter-increment: num_paren;
    margin-bottom: .8em;
}

#privacy .privacy_num_paren>li:before {
    content: "("counter(num_paren) ")";
    display: inline-block;
    margin-left: -2em;
    width: 1em;
    text-align: right;
    position: absolute;
    top: 0;
    left: 0;
}

/* 丸数字 */
ol.privacy_num_circl {
    counter-reset: num_circl;
    list-style: none;
    padding: 0;
    margin: .5em auto;
}

ol.privacy_num_circl>li {
    font-size: 1rem;
    line-height: 1.5;
    padding-left: 1.4rem;
    position: relative;
    margin-bottom: .4em;
}

ol.privacy_num_circl>li:before {
    content: counter(num_circl);
    counter-increment: num_circl;
    background-color: #fff;
    border: 1px solid;
    border-radius: 50%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 1.5em;
    width: 1.5em;
    color: #202020;
    font-size: .7em;
    line-height: 1;
    position: absolute;
    top: .2rem;
    left: 0;
}

/* table */
.privacy_tbl {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.privacy_tbl th,
.privacy_tbl td {
    padding: 8px;
    border: solid 1px #ddd;
    vertical-align: middle;
}

.privacy_tbl th {
    text-align: center;
    background-color: #f5f5f5;
    font-weight: 600;
}

.privacy_address {
    padding: 15px;
    border: solid 1px #ddd;
    background-color: #f9f9f9;
    margin: 1em 0;
}

/* レスポンシブ */
@media screen and (max-width: 767px) {
    .privacy-tab-button {
        padding: 12px 16px;
    }

    .privacy-tab-button .shop-name {
        font-size: 13px;
    }

    .privacy-tab-button .shop-area {
        font-size: 10px;
    }

    #privacy .content_block {
        padding: 20px 15px;
    }

    #privacy .content_block h1 {
        font-size: 1.2em;
    }

    #privacy ol {
        margin-left: 0em;
    }
}