/* ==================================================
   レイアウト・共通要素
   ================================================== */
#l-shop-main {
    max-width: 1200px;
    margin: 0 auto;
}

.c-keyv-shop {
    /* 背景を画面幅いっぱいに広げる。中身は__innerのmax-widthで中央寄せ */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background-color: #FAFAFA;
}

.c-keyv-shop__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2%;
}

/* #contents（.l-default__container）の背景を画面幅いっぱいに白くする */
.l-default__container {
    background-color: #ffffff;
}

.c-shopContainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 24px;
    font-family: sans-serif;
}

#l-shop-main .c-component {
    padding: 0 16px;
}

.e-h2 {
    margin-bottom: 32px;
}

.e-h3 {
    margin-bottom: 16px;
}

.br_sp {
    display: none;
}


/* ==================================================
   店舗検索コンポーネント (c-shopSearch)
   ================================================== */
.c-shopSearch,
.c-shopList {
    margin: 0 auto 40px;
    padding-top: 40px;
}

.c-shopSearch__title {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

/* 検索フォーム */
.c-shopSearch__form {
    display: flex;
    gap: 8px;
}

.c-shopSearch__selectWrap {
    position: relative;
    flex: 1;
}

.c-shopSearch__selectWrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 6px;
    height: 6px;
    border-right: 1px solid #2C2C2C;
    border-bottom: 1px solid #2C2C2C;
    transform: translateY(-75%) rotate(45deg);
    pointer-events: none;
}

.c-shopSearch__select {
    box-sizing: border-box;
    width: 100%;
    height: 56px;
    padding: 0 40px 0 16px;
    font-size: 1.4rem;
    line-height: 54px;
    border: 1px solid #aaa;
    border-radius: 2px;
    /* ネイティブの矢印を消し、::afterで描画した矢印に置き換える */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
}

.c-shopSearch__select {
    color: #000;
}

.c-shopSearch__select:hover {
    color: #A50319;
}

.c-shopSearch__select:focus,
.c-shopSearch__select:hover:focus {
    color: #000;
}

.c-shopSearch__select:open {
    color: #000;
}

.c-shopSearch__button,
.c-shopSearch__btn {
    box-sizing: border-box;
    height: 56px;
    padding: 0 24px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    background-color: #444;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.c-shopSearch__button:hover,
.c-shopSearch__btn:hover {
    background-color: #222;
}

/* 検索結果表示エリア（検索実行まで非表示） */
.c-shopSearchResult {
    display: none;
    min-height: 100px;
    padding: 24px;
    background-color: #ffffff;
}

.c-shopSearchResult.is-active {
    display: block;
}

.c-shopSearchResult__empty {
    margin: 24px 0;
    font-size: 14px;
    color: #777;
    text-align: center;
}

.c-shopSearchResult__item {
    padding: 8px;
    border-bottom: 1px solid #eee;
    color: #000;
    text-decoration: none;
}

.c-shopSearchResult__item:hover {
    color: #A50319;
}

/* 店舗カード（検索結果アイテム） */
.c-shopCard {
    margin-bottom: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #ddd;
}

.c-shopCard:last-child {
    margin-bottom: 0;
}

.c-shopCard__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.c-shopCard__badge {
    padding: 2px 6px;
    font-size: 0.75rem;
    color: #fff;
    background-color: #666;
    border-radius: 2px;
}

.c-shopCard__title {
    font-size: 1.05rem;
    font-weight: bold;
}

.c-shopCard__info {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #555;
}

/* 検索結果カードのテキスト（H5=店舗名 / Small=補助情報） */
.c-shopCard__name {
    font-size: 14px;
    font-weight: bold;
    line-height: 22px;
}

.c-shopCard__address,
.c-shopCard__tel {
    font-size: 12px;
    line-height: 18px;
    color: #555;
}

/* ==================================================
   店舗一覧・アコーディオンコンポーネント (c-shop)
   ================================================== */
.c-shop {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px;
    background-color: #fff;
    border: 1px solid #ddd;
}

.c-shopOwned,
.c-shopSelect {
    margin-bottom: 64px;
}

/* アコーディオン本体 */
.c-shopAccordion {
    margin-bottom: 16px;
}

.c-shopAccordion__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    font-size: 1.4rem;
    font-weight: bold;
    list-style: none;
    /* デフォルト矢印の非表示 */
    cursor: pointer;
    background-color: #f0f0f0;
    transition: background-color 0.2s;
}

/* Safari対策（デフォルト矢印削除） */
.c-shopAccordion__header::-webkit-details-marker {
    display: none;
}

.c-shopAccordion__header:hover {
    background-color: #e5e5e5;
}

/* 開閉アイコン */
.c-shopAccordion__icon {
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.c-shopAccordion[open] .c-shopAccordion__icon {
    transform: rotate(45deg);
}

/* アコーディオンコンテンツ */
.c-shopAccordion__content {
    padding: 16px;
    background-color: #fff;
}

/* エリア・都道府県グループ */
.c-shopGroup {
    margin-bottom: 16px;
}

.c-shopGroup__prefecture,
.c-shopGroup__pref {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: bold;
}

.c-shopGroup__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #333;
    list-style: none;
}

.c-shopName {
    color: #333;
    text-decoration: none;
}

.c-shopName:hover {
    color: #A50319;
}

/* ==================================================
   1. 共通アイコンスタイル（基本デザイン）
   ================================================== */
.c-shopCard__icons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    /* アイコン同士の隙間 */
}

.c-shopCard__icon {
    border: 1px solid #A50319;
    padding: 4px 8px;
    /* アコーディオン・検索共通のベース余白 */
    color: #A50319;
    font-size: 10px;
    line-height: 1.2;
    border-radius: 3px;
    font-weight: normal;
}


/* ==================================================
   2. 店舗検索結果エリアの個別スタイル
   ================================================== */
/* 検索結果カード内のアイコン群の下余白 */
.c-shopSearchResult__item .c-shopCard__icons {
    margin-bottom: 8px;
    /* 検索結果側のみ下の余白を広げる */
}

/* もし検索結果側だけアイコンの内側余白（padding）を大きくしたい場合 */
.c-shopSearchResult__item .c-shopCard__icon {
    padding: 4px 8px;
}


/* ==================================================
   3. 店舗一覧（アコーディオン内）の個別スタイル
   ================================================== */
/* リンクカード全体：縦並び */
.c-shopName {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    text-decoration: none;
    color: #333;
}

.c-shopName .c-shopCard__icons {
    margin-bottom: 0;
}

.c-shopName .c-shopCard__icon {
    padding: 4px 8px;
    background-color: #f0f0f0;
    /* 背景色が必要な場合 */
}

/* 店舗名テキストのスタイル */
.c-shopName__text {
    font-size: 14px;
    font-weight: 400;
}

/* 住所・営業時間・TEL（直営店のみ表示する補助情報） */
.c-shopName__address,
.c-shopName__hours,
.c-shopName__tel {
    font-size: 12px;
    line-height: 18px;
    color: #555;
}

/* ホバー時の装飾 */
.c-shopName:hover .c-shopName__text {
    text-decoration: underline;
}

/* ==================================================
   キービジュアル (Figma準拠)
   PC: 見出し Noto Sans JP 500 40px/60px / 説明 Noto Serif JP 400 24px/33.6px
   SP: 見出し 30px/48px / 説明 15px/21px
   ================================================== */
.c-keyv-shop .e-headline02 {
    font-weight: 500;
}

.c-keyv-shop .e-txt03 {
    font-size: 2.4rem;
    font-weight: 400;
}

/* ==================================================
   店舗情報タブ (c-shopTabs)
   Figma: 店舗一覧 #FAFAFA / 店舗サービス（選択中）#FAE3E2
   ================================================== */
.c-shopTabs ul {
    display: flex;
    max-width: 980px;
    margin: 0 auto 0;
    padding: 0 16px;
    list-style: none;
    gap: 10px;
}

.c-shopTabs li {
    flex: 1;
}

.c-shopTabs li a,
.c-shopTabs li span {
    display: block;
    padding: 14px 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    text-align: center;
    color: #2C2C2C;
    text-decoration: none;
    background-color: #FAFAFA;
    border-width: 1px 1px 0px 1px;
    border-style: solid;
    border-color: #E5E5E5;
    border-radius: 6px 6px 0px 0px;
}

.c-shopTop {
    /* #l-shop-main（最大1200px）を抜けて画面全幅に広げ、左右の余白まで白くする */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background-color: #ffffff;
}

.c-shopTop .c-shopTabs li a,
.c-shopTop .c-shopTabs li span {
    border-width: 1px 1px 1px 1px;
    border-radius: 6px 6px 6px 6px;
}

.c-shopTabs li a:hover,
.c-shopTabs li span:hover {
    color: #A50319;
}

.c-shopTabs li.is-active span {
    background-color: #FAE3E2;
}

.c-shopTabs--list li.is-active span {
    background-color: #FFFFFF;
}

/* ==================================================
   サービスへのリンク (c-shopService__anchors)
   ================================================== */
.c-shopService__anchors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 980px;
    margin: 0 auto 24px;
    padding: 0 16px;
    list-style: none;
}

.c-shopService__anchors a {
    position: relative;
    box-sizing: border-box;

    /* オートレイアウト */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    gap: 2px;
    isolation: isolate;

    width: 100%;
    height: 56px;

    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    color: #2C2C2C;
    text-decoration: none;

    background: #FFFFFF;
    border: 1px solid #D6D6D6;
    border-radius: 4px;

    /* オートレイアウト内部 */
    flex: none;
    order: 0;
    flex-grow: 1;
}

.c-shopService__anchors a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 20px;
    width: 6px;
    height: 6px;
    border-right: 1px solid #2C2C2C;
    border-bottom: 1px solid #2C2C2C;
    transform: translateY(-75%) rotate(45deg);
}

/* ==================================================
   サービス各ブロック (c-shopService)
   ================================================== */
.c-shopService {
    position: relative;
    isolation: isolate;
    /* #l-shop-main（最大1200px）を抜けて画面全幅に広げる */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 60px 0;
    scroll-margin-top: 120px;
}

.c-shopService--skin {
    background: linear-gradient(180deg, #FAE2E2 0%, #FAF0E2 100%);
}

/* 下端に白いグラデーションを敷く（Figma: 肌測定 346px / スキンケア 295px / メイク 195px）。背景より前、中身より後ろ */
.c-shopService::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 346px;
    z-index: -1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
    pointer-events: none;
}

.c-shopService--care::before {
    height: 295px;
}

.c-shopService--makeup::before {
    height: 195px;
}

.c-shopService--care {
    background: linear-gradient(180deg, #E8F0F9 0%, #FDFBE9 100%);
}

.c-shopService--makeup {
    background: linear-gradient(180deg, #FCEDE2 0%, #F5F6DC 100%);
}

.c-shopService__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 24px;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 16px;
    align-items: start;
}

/* PC: 左に見出し・本文、右に写真。下段に流れ・カード */
.c-shopService__head {
    grid-column: 1;
    grid-row: 1;
}

.c-shopService__body {
    grid-column: 1;
    grid-row: 2;
}

.c-shopService__photo {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
}

.c-shopService__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 472 / 354;
    object-fit: cover;
}

.c-shopService__panel,
.c-shopService__cards,
.c-shopService__note {
    grid-column: 1 / -1;
}

.c-shopService__title {
    margin: 0;
    padding-bottom: 12px;
    font-family: "Noto Serif JP", serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 45px;
    color: #252525;
    border-bottom: 1px solid #2C2C2C;
}

.c-shopService__meta {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    color: #2C2C2C;
}

.c-shopService__lead {
    margin: 0 0 16px;
    font-family: "Noto Serif JP", serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 36px;
    color: #30416B;
}

.c-shopService__desc {
    margin: 0;
    font-size: 14px;
    line-height: 21px;
    color: #2C2C2C;
}

/* 測定の流れ / カウンセリングの流れ */
.c-shopService__panel {
    padding: 32px 40px;
    background-color: #fff;
}

.c-shopService__panelTitle {
    margin: 0 0 24px;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    color: #2C2C2C;
}

.c-shopService__steps {
    --cols: 3;
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--cols), 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.c-shopService__steps--2 {
    --cols: 2;
}

/* 円と円をつなぐ横線 */
.c-shopService__steps::before {
    content: "";
    position: absolute;
    top: 15px;
    left: calc(100% / var(--cols) / 2);
    right: calc(100% / var(--cols) / 2);
    height: 2px;
    background-color: #30416B;
}

.c-shopService__steps li {
    position: relative;
    text-align: center;
}

.c-shopService__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background-color: #30416B;
    border-radius: 50%;
}

.c-shopService__stepTitle {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
}

.c-shopService__steps p {
    margin: 0;
    font-size: 14px;
    line-height: 21px;
}

.c-shopService__note {
    margin: 16px 0 0;
    font-size: 12px;
    line-height: 18px;
    color: #2C2C2C;
}

/* メイクカウンセリングのカード */
.c-shopService__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.c-shopService__card {
    padding: 24px;
    background-color: #fff;
}

.c-shopService__cardTitle {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 21px;
}

.c-shopService__card p {
    margin: 0;
    font-size: 14px;
    line-height: 21px;
}

/* SPでだけ改行したい箇所に使う（PCでは非表示） */
.c-shopService__br--sp {
    display: none;
}

/* スタッフレビューバナー */
.c-shopService__banner {
    padding: 25px 16px;
    text-align: center;
    border-top: 1px solid #E5E5E5;
    border-bottom: 1px solid #E5E5E5;
}

.c-shopService__banner img {
    width: 100%;
    max-width: 720px;
    height: auto;
    vertical-align: middle;
}

.c-shopService__banner a:hover {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* 採用情報ボタン */
.c-shopService__recruit {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 30px 16px 30px;
    text-align: center;
    background-color: #F5F5F5;
}

.c-shopService__btn {
    display: inline-block;
    width: 300px;
    max-width: 100%;
    height: 40px;
    line-height: 40px;
    font-size: 12px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    background-color: #2C2C2C;
    border-radius: 4px;
}

.c-shopService__btn:hover {
    opacity: 0.8;
}

/* ==================================================
   SP (767px以下): 1カラム。写真は見出しの直後に配置
   ================================================== */
@media (max-width: 767px) {

    .br_pc {
        display: none;
    }

    /* 店舗検索（セクション間の余白はSPで120px→80pxに縮小） */
    .c-shopSearch {
        padding-top: 80px;
    }

    /* 店舗一覧：SPは1列（1店舗ずつ） */
    .c-shopGroup__list {
        grid-template-columns: 1fr;
    }

    /* キービジュアル（Figma SP: 左右32px） */
    .c-keyv-shop__inner {
        padding-left: 32px;
        padding-right: 32px;
    }

    .c-keyv-shop .e-headline02 {
        font-size: 30px;
        line-height: 48px;
    }

    .c-keyv-shop .e-txt03 {
        font-size: 15px;
        line-height: 21px;
    }

    /* 店舗情報タブ（Figma SP: 左右15px / 間隔10px / 内側 20px・6px） */
    .c-shopTabs ul {
        gap: 10px;
        padding: 0 15px;
    }

    .c-shopTabs li a,
    .c-shopTabs li span {
        padding: 6px 20px;
    }

    .c-shopTabs li.is-active span {
        background-color: #FAE4E2;
    }

    .c-shopTabs--list li.is-active span {
        background-color: #FFFFFF;
    }

    /* サービスへのリンク（Figma SP: 左右15px / 間隔10px / 内側 上下10px・左20px・右15px） */
    .c-shopService__anchors {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 15px;
    }

    .c-shopService__anchors a {
        width: 100%;
        align-items: flex-start;
        padding: 10px 15px 10px 20px;
    }

    .c-shopService__anchors a::after {
        right: 22px;
    }

    /* 見出し・料金・リード・本文は中央揃え（SPキャプチャ準拠） */
    .c-shopService__head {
        text-align: center;
    }

    .c-shopService__title {
        display: inline-block;
        padding: 0 30px 8px;
    }

    .c-shopService__body {
        text-align: center;
        /* 文字の途中で折り返さない（折り返す場合は「、」などの区切りの後ろで） */
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .c-shopService__lead br {
        display: none;
    }

    .c-shopService__br--sp {
        display: inline;
    }

    /* 各セクション（Figma SP: 上下15px / 左右20px） */
    .c-shopService {
        padding: 15px 0;
    }

    /* SP: Figma 486px（全セクション共通） */
    .c-shopService::before {
        height: 486px;
    }

    .c-shopService__inner {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    /* SP: 見出し → 写真 → 本文 → パネルの順（Figma） */
    .c-shopService__head,
    .c-shopService__photo,
    .c-shopService__body,
    .c-shopService__panel,
    .c-shopService__cards {
        grid-column: 1;
        grid-row: auto;
        /* グリッドアイテムの初期値 min-width:auto を解除。
           読点のない文に word-break: keep-all がかかると、折り返せる
           箇所がなくなり中身の幅でセクションごと押し広げてしまうため */
        min-width: 0;
    }

    .c-shopService__title {
        font-size: 26px;
        line-height: 39px;
    }

    /* 「スキンケアカウンセリング」だけ12文字と長く折り返すため、画面幅に応じて縮めて1行に収める */
    .c-shopService--care .c-shopService__title {
        white-space: nowrap;
        font-size: clamp(16px, calc((100vw - 110px) / 12), 26px);
    }

    .c-shopService__lead {
        /* どんな画面幅でも1行に収める。18文字分＋左右の余白で逆算し、入りきらない分は縮小する */
        white-space: nowrap;
        font-size: clamp(14px, calc((100vw - 56px) / 18), 20px);
        line-height: 1.5;
    }

    /* 写真の縦横比（Figma SP） */
    .c-shopService--skin .c-shopService__photo img {
        aspect-ratio: 359 / 210;
    }

    .c-shopService--care .c-shopService__photo img {
        aspect-ratio: 359 / 196;
    }

    .c-shopService--makeup .c-shopService__photo img {
        aspect-ratio: 359 / 228;
    }

    /* 流れ（SP: 縦並び。円が左、タイトルは円の右、説明文はその下） */
    .c-shopService__panel {
        padding: 15px 20px;
    }

    .c-shopService__panelTitle {
        margin-bottom: 15px;
        font-size: 15px;
        line-height: 22.5px;
    }

    .c-shopService__steps,
    .c-shopService__steps--2 {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .c-shopService__steps::before {
        display: none;
    }

    .c-shopService__steps li {
        display: grid;
        grid-template-columns: 28px 1fr;
        column-gap: 5px;
        text-align: left;
    }

    /* 円どうしを縦線でつなぐ（次の項目の上端まで） */
    .c-shopService__steps li:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 13px;
        top: 28px;
        bottom: -10px;
        width: 2px;
        background-color: #30416B;
    }

    .c-shopService__num {
        grid-column: 1;
        grid-row: 1;
        width: 28px;
        height: 28px;
        margin-bottom: 0;
        font-size: 13px;
    }

    .c-shopService__stepTitle {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        margin-bottom: 0;
    }

    .c-shopService__steps li p {
        grid-column: 2;
        grid-row: 2;
        margin-top: 5px;
    }

    /* カード */
    .c-shopService__cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .c-shopService__card {
        padding: 15px 20px;
    }

    /* 採用情報ボタン（Figma SP: 上30px / 左右15px / 幅いっぱい） */
    .c-shopService__recruit {
        padding: 30px 15px 0;
    }

    .c-shopService__btn {
        width: 100%;
    }
}
