@charset "UTF-8";

/* =========================================
   Base & Reset (簡易リセット)
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* =========================================
   Layout & Utilities
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 中央寄せ用ユーティリティ */
.text-center {
    text-align: center;
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    width: 100%;
}

.hero-inner {
    width: 100%;
    max-width: 1200px;
    /* 必要に応じて全幅にするならnone */
    margin: 0 auto;
}

/* =========================================
   Intro Section
   ========================================= */
.intro-section {
    padding: 60px 0;
    text-align: center;
}

.intro-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 30px;
}

.intro-text {
    font-size: 20px;
    margin-bottom: 40px;
    line-height: 2;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 22px;
    letter-spacing: 0.06em;
    text-align: center;
    cursor: pointer;
}

.btn-primary-outline {
    border: 2px solid #333;
    background: #fff;
    color: #333;
    min-width: 460px;
}

.intro-btn-area {
    margin-bottom: 70px;
}

.category-btn-area {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-blue {
    background-color: #ccedee;
    /* 薄い水色 */
    border: 1px solid #999;
    color: #333;
    min-width: 460px;
}

.btn-pink {
    background-color: #fcece8;
    /* 薄いピンク */
    border: 1px solid #999;
    color: #333;
    min-width: 460px;
}

/* =========================================
   Items Section (BOYS & GIRLS)
   ========================================= */
.items-section {
    padding: 60px 0;
}

.section-boys {
    background-color: #dff2f4;
    /* デザイン画像の色味 */
}

.section-girls {
    background-color: #fbece6;
    /* デザイン画像の色味 */
}

.section-title-img {
    text-align: center;
    margin-bottom: 20px;
}

/* タイトル画像のサイズ調整（必要に応じて） */
.section-title-img img {
    max-width: 400px;
}

/* Item Card */
.item-card {
    margin-bottom: 80px;
    text-align: center;
}

.item-card:last-child {
    margin-bottom: 0;
}

.item-image {
    padding: 10px;
    /* 白枠風 */
    display: inline-block;
    margin-bottom: 20px;
    /* 簡易的な影などをつけてカード感を出す場合 */
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.05); */
}

.item-info {
    text-align: center;
}

.item-title-img {
    margin-bottom: 10px;
}

.item-title-img img {
    max-height: 100px;
    /* テキスト画像の高さ制限 */
    width: auto;
}

.item-price {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    position: relative;
    left: -5px;
}

/* Colors */
.item-colors {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    position: relative;
    left: -5px;
}

.color-label {
    font-size: 12px;
    color: #666;
    margin-right: 5px;
}

.color-circle {
    display: block;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    border: 1px solid #444;
}

.btn-small {
    display: inline-block;
    padding: 12px 60px;
    background: #fff;
    border: 1px solid #707070;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* =========================================
   Navigation Section
   ========================================= */
.nav-section {
    padding: 60px 0 100px;
    background: #fff;
}

.nav-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 450px;
    height: 80px;
    border: 1px solid #ccc;
    border-radius: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
}

.top-link-area {
    text-align: center;
}

.top-link {
    display: inline-block;
    padding-left: 25px;
    background: url('path/to/home-icon.svg') no-repeat left center;
    /* ホームアイコンがあれば設定 */
    font-size: 14px;
    font-weight: bold;
}

/* 既存の記述を上書き、または書き換えてください */
.top-link-area a {
    display: flex;
    /* 横並びモードにする */
    align-items: center;
    /* 上下（垂直方向）の中央に揃える */
    justify-content: center;
    /* 左右（水平方向）の中央に寄せる */
    gap: 5px;
    /* アイコンと文字の間に少し隙間をあける */
    font-weight: bold;
    /* 太文字 */
    text-decoration: none;
    /* 下線を消す */
}

/* もしアイコンの位置が微妙にズレると感じる場合の微調整 */
.top-link-area .material-symbols-outlined {
    font-size: 20px;
    /* アイコンの大きさを調整（文字サイズに合わせる） */
    line-height: 1;
    /* 行の高さをリセットしてズレを防ぐ */
    position: relative;
    /* 微調整用 */
    top: -1px;
    /* 必要なら1pxだけ上に上げるなどの調整 */
}

/* =========================================
   SP Response (Max-width: 768px)
   ========================================= */
@media screen and (max-width: 768px) {

    .container {
        padding: 0 15px;
        /* SP要件: コンテンツ幅375px(中央寄せ)を想定した設計 */
        /* ただし実務ではwidth:100%でpaddingで調整するのが一般的 */
    }

/* ▼▼▼ ここから書き換え ▼▼▼ */

    /* Intro Section */
    .intro-section {
        padding: 30px 0 50px 0;
    }

    .intro-title {
        font-size: 20px;
    }

    .intro-text {
        font-size: 16px;
        text-align: center;
        letter-spacing: 0.08em;
    }

    /* アイテム一覧をチェック（メインボタン） */
    .intro-btn-area {
        width: 100%;
        padding: 0;
    }

    .btn-primary-outline {
        border: 2px solid #333;
        background: #fff;
        color: #333;
        
        /* ★修正: PCの固定幅を解除し、画面幅に合わせる */
        min-width: unset; 
        width: 100%;
        box-sizing: border-box; /* paddingを含めて計算 */
        
        font-size: 19px;
        padding: 15px 10px;
    }

    /* BOYS / GIRLS ボタンエリア */
    .category-btn-area {
        display: flex;
        justify-content: space-between; /* 両端に配置 */
        gap: 10px; /* 隙間 */
        width: 100%;
    }

    /* BOYS / GIRLS ボタン個別の設定（calc使用） */
    .btn-blue,
    .btn-pink {
        /* ★修正: 幅を計算式で指定 */
        /* (全体の幅100% - 隙間10px) ÷ 2 */
        width: calc((100% - 10px) / 2);
        min-width: unset; /* PCの固定幅解除 */
        
        padding: 12px 0; /* 左右paddingは0にして中央揃えに任せる */
        font-size: 16px;
        display: flex; /* 文字を上下左右中央に */
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    /* ▲▲▲ ここまで書き換え ▲▲▲ */

    /* Items */
    .section-title-img img {
        max-width: 95%;
        /* SPでのタイトルサイズ調整 */
    }

    .item-card {
        margin-bottom: 60px;
    }

    /* デザイン画像のSP版を見ると、画像幅いっぱいに近い */
    .item-image {
        width: 100%;
        max-width: 400px;
        /* SPデザイン幅を意識 */
        padding: 0;
    }

    .item-title-img img {
        width: 85%;
    }

    .item-price {
        font-size: 24px;
        position: relative;
        left: -8px;
    }

    .item-colors {
        position: relative;
        left: -8px;
    }

    /* Navigation */
    .nav-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav-btn {
        width: 100%;
        max-width: 390px;
        font-size: 16px;
    }

    .btn-small {
        display: block;   /* 中央寄せしやすいようにブロック要素に変更 */
        width: 100%;      /* 横幅を親要素（画面）に合わせる */
        max-width: 280px; /* 大きくなりすぎないように制限（SPのデザイン感に合わせる） */
        padding: 12px 0;  /* 左右の固定余白(100px)を削除 */
        
        margin: 0 auto;   /* 画面の中央に配置 */
        
        /* その他のデザイン維持 */
        background: #fff;
        border: 1px solid #707070;
        border-radius: 30px;
        font-size: 14px;  /* 文字サイズは14px程度がバランス良いです */
        font-weight: bold;
        color: #333;
    }
}

/* PC（デフォルト）では改行を無効化（非表示） */
.sp-only {
    display: none;
}

/* SP（768px以下）の時だけ改行を有効化 */
@media screen and (max-width: 768px) {
    .sp-only {
        display: block;
    }
}

/* PC（デフォルト）では改行を有効化 */
.pc-only {
    display: block;
}

/* SP（768px以下）の時は改行を無効化（非表示） */
@media screen and (max-width: 768px) {
    .pc-only {
        display: none;
    }
}