/* styles.css */

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    letter-spacing: 0.1em;
    font-size: 14px;
    line-height: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 400;
    color: #30373d;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background-color: #30373d;
}

.content-wrapper {
    background-color: #F8DDD2;
}

@media (max-width: 768px) {
    body {
        font-size: 12px;
        line-height: clamp(1rem, 6.6vw, 3rem);
    }
}


.sp-only {
    display: none;
}

/* Header */
header {
    background: url('../images/header-background.png') no-repeat center;
    background-size: cover;
    max-height: 100px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 120px;
    position: relative;
}

.logo-container {
    display: flex;
    position: absolute;
    left: 20%;
    width: auto;
    max-width: none;
}

.logo {
    height: 50px;
    /* 固定高さ */
    width: auto;
    /* 幅は自動調整 */
    object-fit: contain;
    /* 画像の縦横比を維持 */
}


@media (max-width: 1200px) {
    .logo-container {
        left: 10%;
    }
}


@media (max-width: 500px) {
    header {
        background: url('../images/header-background-sp.png') no-repeat center;
        max-height: 70px;
    }

    .logo-container {
        left: 7%;
    }

    .logo {
        width: 40%;
        height: auto;
    }
}


/* 1. 親コンテナの設定（画面全体を使う） */
.center-container {
    /* Flexboxを使って子要素（terms-content）を中央に配置 */
    display: flex;

    /* 左右中央に配置 */
    justify-content: center;

    /* 画面の高さいっぱいを使う（レスポンシブ対応に必須） */
    min-height: 100vh;

    /* 横幅も画面全体を使う */
    width: 100vw;

    /* スクロールバーを管理 */
    overflow-y: auto;
    padding: 20px 0;
    /* 中央配置が機能しつつ、内容が画面からはみ出たときのための余白 */
}

/* 2. 利用規約の内容ボックスの設定 */
.cokkie-content {
    /* 最大幅を設定し、PC表示時に内容が広がりすぎるのを防ぐ */
    max-width: 800px;

    /* 左右の余白（レスポンシブ対応） */
    padding: 30px;

    /* スマホ表示などで横幅がmax-widthを超えないようにする */
    width: 90%;

    /* デザイン */
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    line-height: 1.6;
    color: #333;
    text-align: left;
    /* 中央配置とは別に、テキスト自体は左揃えが読みやすい */
}

@media (max-width: 500px) {
    .cokkie-content {
        /* 左右の余白（レスポンシブ対応） */
        padding: 20px;

    }
}


/* 見出しのスタイル */

.cokkie-content h1 {
    border-bottom: 2px solid #000000;
    margin-top: 20px;
    padding-bottom: 5px;
}

.cokkie-content h1 {
    font-size: 2em;
    text-align: center;
}

.cokkie-content h2 {
    margin-bottom: 0px;
}

.cokkie-content h3 {
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 14px;
}


@media (max-width: 768px) {
    .cokkie-content h2 {
        font-size: 14px;
    }

    .cokkie-content h3 {
        font-size: 12px;
    }
}

.cokkie-content p {
    margin-top: 0px;
}

.cokkie-content p.no-margin-bottom {
    margin-bottom: 0px;
}

.cokkie-content ol {
    margin-top: 0px;
    padding-left: 1.5em;
}

.sub-list {
    counter-reset: list-item 0;
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

.sub-list>li {
    position: relative;
    margin-bottom: 0em;
    padding-left: 0.5em;
    counter-increment: list-item;
}

.sub-list>li::before {
    content: "(" counter(list-item, decimal) ")";
    font-weight: bold;

    position: absolute;
    left: -1.5em;
    width: 1.5em;
    text-align: left;
}

.flex-item {
    display: flex;
    line-height: 1.5;
    word-break: break-all;
}

.flex-item::before {
    content: "・";
    flex-shrink: 0;
    width: 1em;
    margin-right: 0.25em;
}

.url-wrapper {
    display: flex;
    flex-direction: column;
    /* コンテンツ部分が幅全体を使うように */
    flex-grow: 1;
}

.flex-item a {
    /* リンクの下線を削除 */
    text-decoration: none;
    /* リンクの色を親要素から継承 */
    color: inherit;
}

.note {
    display: flex;
    line-height: 1.5;
}

.note::before {
    content: "※";
    flex-shrink: 0;
    width: 1em;
    margin-right: 0.25em;
}

.note-content {
    display: flex;
    flex-direction: column;
}

.text-right {
    text-align: right;
    margin-right: 1em;
}

/* Footer */
footer {
    background: #30373d;
    color: #fff;
    text-align: center;
    margin-top: -1px;
    padding: 20px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 18px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

.footer-logo {
    height: 70px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.footer-links {
    margin: 10px 0;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
    font-size: 0.9em;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 15px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 400;
}


@media (max-width: 768px) {
    footer {
        padding: 30px 10px;
        /* SP版の余白を調整 */
        text-align: center;
        /* 全体の中央揃え */
    }

    .footer-content {
        flex-direction: column;
        /* 全体を縦方向に並べる */
        align-items: center;
        /* 中央揃え */
        gap: 15px;
        /* 各要素間の余白 */
    }

    .footer-logo {
        height: 55px;
        /* ロゴのサイズを調整 */
        margin-bottom: 15px;
        /* ロゴの下に余白 */
    }

    .footer-links {
        font-size: 0.8em;
        /* フォントサイズを小さめに調整 */
        line-height: 1.5;
        /* 読みやすさを確保 */
        margin: 15px 0px;
        /* 上下の余白を調整 */
        text-align: center;
        /* テキストを中央揃え */
        display: flex;
        flex-direction: row;
        /* リンクを横並びに */
        flex-wrap: wrap;
        /* 横幅が足りない場合は折り返す */
        gap: 10px;
        /* リンク間のスペースを設定 */
        justify-content: center;
        /* 横方向で中央揃え */
    }

    .footer-links a {
        margin: 0 5px;
        /* リンク間の余白 */
        font-size: 15px;
        /* リンクのフォントサイズを調整 */
    }

    .copyright {
        font-size: 14px;
        /* コピーライトのフォントサイズを調整 */
        margin-top: 10px;
        /* 上部の余白を追加 */
        line-height: 1.5;
        /* 行間を調整 */
        font-family: 'Zen Maru Gothic', sans-serif;
        font-weight: 400;
    }
}