/*
Theme Name: Regional Guide Child
Template: twentytwentyfive
Version: 1.0
*/

/* =========================
   店舗ページ共通
========================= */

body.single-shop .shop-information {
    max-width: 900px;
    margin: 40px auto 0;
}

body.single-shop .shop-name-zh {
    margin: 0 0 20px;
    font-size: 18px;
    color: #555;
}

body.single-shop .shop-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

body.single-shop .shop-tags span {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #bbb;
    border-radius: 3px;
    font-size: 14px;
}


/* =========================
   各セクション
========================= */

body.single-shop .shop-section {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

body.single-shop .shop-section h2 {
    margin: 0 0 20px;
    font-size: 26px;
}

body.single-shop .shop-section h3 {
    margin: 0 0 15px;
    font-size: 20px;
}

body.single-shop .shop-section p {
    line-height: 1.8;
}


/* =========================
   店舗情報
========================= */

body.single-shop .shop-details {
    width: 100%;
    border-top: 1px solid #ddd;
}

body.single-shop .shop-detail-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    border-bottom: 1px solid #ddd;
}

body.single-shop .shop-detail-label {
    padding: 14px 16px;
    font-weight: 700;
    background: #f7f7f7;
}

body.single-shop .shop-detail-value {
    padding: 14px 16px;
}

body.single-shop .shop-detail-value a {
    text-decoration: underline;
}


/* =========================
   百度地図ボタン
========================= */

body.single-shop .shop-map-button {
    margin-top: 25px;
}

body.single-shop .shop-map-button a {
    display: inline-block;
    padding: 11px 22px;
    border: 1px solid #222;
    text-decoration: none;
    font-weight: 600;
}


/* =========================
   WeChat
========================= */

body.single-shop .shop-wechat {
    text-align: left;
}

body.single-shop img.shop-wechat-qr {
    display: block !important;
    width: 200px !important;
    max-width: 200px !important;
    height: auto !important;
    margin: 15px 0 0 !important;
}


/* =========================
   キャンペーン
========================= */

body.single-shop .shop-campaign {
    padding: 25px;
    border: 1px solid #ddd;
}


/* =========================
   関連リンク
========================= */

body.single-shop .shop-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.single-shop .shop-links a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #bbb;
    text-decoration: none;
}


/* =========================
   情報提供
========================= */

body.single-shop .shop-source {
    margin-top: 45px;
    padding: 20px 0;
    border-top: 1px solid #bbb;
    font-size: 14px;
    line-height: 1.7;
}

body.single-shop .shop-source p {
    margin: 5px 0;
}


/* =========================
   スマートフォン
========================= */

@media (max-width: 700px) {

    body.single-shop .shop-information {
        padding: 0 18px;
    }

    body.single-shop .shop-detail-row {
        grid-template-columns: 1fr;
    }

    body.single-shop .shop-detail-label {
        padding-bottom: 5px;
    }

    body.single-shop .shop-detail-value {
        padding-top: 5px;
    }
}
/* 店舗詳細ページ：メイン写真 */
.wp-block-post-featured-image {
    width: 90% !important;
    max-width: 980px !important;
    margin: 30px auto 40px !important;
}

.wp-block-post-featured-image img {
    display: block;
    width: 100% !important;
    height: 420px !important;
    object-fit: cover !important;
}
@media (max-width: 600px) {

  .shop-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    column-gap: 10px;
    row-gap: 2px;
    align-items: start;
    margin-bottom: 10px;
  }

  .shop-card .wp-block-post-featured-image {
    grid-column: 1;
    grid-row: 1 / span 5;
    margin: 0;
  }

  .shop-card .wp-block-post-featured-image img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    display: block;
  }

  .shop-card .wp-block-post-title {
    grid-column: 2;
    margin: 0 0 2px;
    font-size: 14px;
    line-height: 1.2;
  }

  .shop-card .wp-block-post-terms,
  .shop-card .taxonomy-area,
  .shop-card .taxonomy-genre,
  .shop-card .taxonomy-immigration_area {
    grid-column: 2;
    margin: 0;
    font-size: 11px;
    line-height: 1.2;
  }

  .shop-card .wp-block-post-excerpt {
    display: none;
  }
}
@media (max-width: 600px) {

  .shop-card {
    display: grid !important;
    grid-template-columns: 100px 1fr !important;
    column-gap: 10px !important;
    row-gap: 2px !important;
    align-items: start !important;
  }

  .shop-card .wp-block-post-featured-image {
    grid-column: 1 !important;
    grid-row: 1 / span 5 !important;
    margin: 0 !important;
    width: 100px !important;
  }

  .shop-card .wp-block-post-featured-image img {
    width: 100px !important;
    height: 75px !important;
    max-width: 100px !important;
    object-fit: cover !important;
    display: block !important;
  }

  .shop-card .wp-block-post-title,
  .shop-card .taxonomy-area,
  .shop-card .taxonomy-genre,
  .shop-card .taxonomy-immigration_area {
    grid-column: 2 !important;
  }

  .shop-card .wp-block-post-excerpt {
    display: none !important;
  }
}
/* スマホ：店舗一覧をコンパクトな横型カードにする */
@media (max-width: 600px) {

    .shop-card {
        display: grid !important;
        grid-template-columns: 100px minmax(0, 1fr) !important;
        column-gap: 10px !important;
        row-gap: 2px !important;
        padding: 0 !important;
        margin: 0 0 10px 0 !important;
        align-items: start !important;
    }

    .shop-card .wp-block-post-featured-image {
        grid-column: 1 !important;
        grid-row: 1 / span 5 !important;
        width: 100px !important;
        margin: 0 !important;
    }

    .shop-card .wp-block-post-featured-image img {
        width: 100px !important;
        max-width: 100px !important;
        height: 75px !important;
        object-fit: cover !important;
        display: block !important;
    }

    .shop-card .wp-block-post-title,
    .shop-card .taxonomy-area,
    .shop-card .taxonomy-genre,
    .shop-card .taxonomy-immigration_area {
        grid-column: 2 !important;
        margin: 0 !important;
    }

    .shop-card .wp-block-post-title {
        font-size: 14px !important;
        line-height: 1.2 !important;
    }

    .shop-card .taxonomy-area,
    .shop-card .taxonomy-genre,
    .shop-card .taxonomy-immigration_area {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    .shop-card .wp-block-post-excerpt {
        display: none !important;
    }
}
/* イミグレページ：スマホ用コンパクト店舗カード */
@media (max-width: 600px) {

  body.tax-immigration_area .wp-block-post-template {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  body.tax-immigration_area .wp-block-post-template > li.wp-block-post {
    display: grid !important;
    grid-template-columns: 100px minmax(0, 1fr) !important;
    column-gap: 8px !important;
    row-gap: 1px !important;
    align-items: start !important;
    margin: 0 0 6px 0 !important;
  }

  body.tax-immigration_area
  .wp-block-post-template > li
  .wp-block-post-featured-image {
    grid-column: 1 !important;
    grid-row: 1 / span 5 !important;
    width: 100px !important;
    margin: 0 !important;
  }

  body.tax-immigration_area
  .wp-block-post-template > li
  .wp-block-post-featured-image img {
    width: 100px !important;
    max-width: 100px !important;
    height: 75px !important;
    object-fit: cover !important;
    display: block !important;
  }

  body.tax-immigration_area
  .wp-block-post-template > li
  .wp-block-post-title,
  body.tax-immigration_area
  .wp-block-post-template > li
  .taxonomy-area,
  body.tax-immigration_area
  .wp-block-post-template > li
  .taxonomy-genre,
  body.tax-immigration_area
  .wp-block-post-template > li
  .taxonomy-immigration_area {
    grid-column: 2 !important;
    margin: 0 !important;
  }

  body.tax-immigration_area
  .wp-block-post-template > li
  .wp-block-post-title {
    font-size: 13px !important;
    line-height: 1.15 !important;
  }

  body.tax-immigration_area
  .wp-block-post-template > li
  .taxonomy-area,
  body.tax-immigration_area
  .wp-block-post-template > li
  .taxonomy-genre,
  body.tax-immigration_area
  .wp-block-post-template > li
  .taxonomy-immigration_area {
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  body.tax-immigration_area
  .wp-block-post-template > li
  .wp-block-post-date {
    display: none !important;
  }
}
/* ジャンルページ：スマホ用コンパクト店舗カード */
@media (max-width: 600px) {

  body.tax-genre .wp-block-post-template {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  body.tax-genre .wp-block-post-template > li.wp-block-post {
    display: grid !important;
    grid-template-columns: 100px minmax(0, 1fr) !important;
    column-gap: 8px !important;
    row-gap: 1px !important;
    align-items: start !important;
    margin: 0 0 6px 0 !important;
  }

  body.tax-genre
  .wp-block-post-template > li
  .wp-block-post-featured-image {
    grid-column: 1 !important;
    grid-row: 1 / span 5 !important;
    width: 100px !important;
    margin: 0 !important;
  }

  body.tax-genre
  .wp-block-post-template > li
  .wp-block-post-featured-image img {
    width: 100px !important;
    max-width: 100px !important;
    height: 75px !important;
    object-fit: cover !important;
    display: block !important;
  }

  body.tax-genre
  .wp-block-post-template > li
  .wp-block-post-title,
  body.tax-genre
  .wp-block-post-template > li
  .taxonomy-area,
  body.tax-genre
  .wp-block-post-template > li
  .taxonomy-genre,
  body.tax-genre
  .wp-block-post-template > li
  .taxonomy-immigration_area {
    grid-column: 2 !important;
    margin: 0 !important;
  }

  body.tax-genre
  .wp-block-post-template > li
  .wp-block-post-title {
    font-size: 13px !important;
    line-height: 1.15 !important;
  }

  body.tax-genre
  .wp-block-post-template > li
  .taxonomy-area,
  body.tax-genre
  .wp-block-post-template > li
  .taxonomy-genre,
  body.tax-genre
  .wp-block-post-template > li
  .taxonomy-immigration_area {
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  body.tax-genre
  .wp-block-post-template > li
  .wp-block-post-date,
  body.tax-genre
  .wp-block-post-template > li
  .wp-block-post-excerpt {
    display: none !important;
  }
}
/* ホームページ：スマホ表示の画像をコンパクトに */
@media (max-width: 600px) {

  body.page-id-116 .wp-block-columns .wp-block-image img {
    width: 180px !important;
    height: 180px !important;
    object-fit: cover !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.page-id-116 .wp-block-column {
    text-align: center;
    margin-bottom: 8px;
  }

  body.page-id-116 .wp-block-column h3 {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
  }
}
@media (max-width: 600px) {

  body.page-id-116 .wp-block-columns {
    gap: 8px !important;
  }

  body.page-id-116 .wp-block-column {
    margin-bottom: 6px !important;
  }

  body.page-id-116 .wp-block-column > * {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
  }

  body.page-id-116 .wp-block-column .wp-block-image {
    margin-bottom: 6px !important;
  }

  body.page-id-116 .wp-block-column .wp-block-buttons {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
  }
}
/* 特集一覧：PCは3列 */
.feature-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px !important;
}
/* バックナンバー：表紙画像を各列の幅に合わせる */
.backnumber-grid .wp-block-post-featured-image {
    width: 100%;
}

.backnumber-grid .wp-block-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}
/* バックナンバー：表紙画像の表示調整 */
.backnumber-grid .wp-block-post-featured-image {
    width: 100% !important;
    margin: 0 0 10px !important;
}

.backnumber-grid .wp-block-post-featured-image a {
    display: block !important;
    width: 100% !important;
}

.backnumber-grid .wp-block-post-featured-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    object-fit: contain !important;
}
/* バックナンバー：リンクを確実にクリックできるようにする */
.backnumber-grid .wp-block-post-featured-image a,
.backnumber-grid .wp-block-post-title a {
    position: relative !important;
    z-index: 2 !important;
    pointer-events: auto !important;
}
/* トップページ：新着情報の画像サイズを正常化 */
.news-grid .wp-block-post-featured-image {
    width: 100% !important;
    margin: 0 0 10px !important;
}

.news-grid .wp-block-post-featured-image a {
    display: block !important;
    width: 100% !important;
}

.news-grid .wp-block-post-featured-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    object-fit: contain !important;
}
/* スマホ：新着情報・バックナンバーの画像を小さくする */
@media (max-width: 600px) {

    /* トップページ 新着情報 */
    .news-grid .wp-block-post-featured-image {
        width: 70% !important;
        max-width: 220px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* バックナンバー */
    .backnumber-grid .wp-block-post-featured-image {
        width: 70% !important;
        max-width: 220px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
/* エリア一覧のスマホ表示調整：深圳は対象外 */
@media (max-width: 600px) {

  body.tax-area:not(.term-shenzhen) .wp-block-post-template {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  body.tax-area:not(.term-shenzhen) .wp-block-post-template > li.wp-block-post {
    display: grid !important;
    grid-template-columns: 100px minmax(0, 1fr) !important;
    column-gap: 8px !important;
    row-gap: 1px !important;
    align-items: start !important;
    margin: 0 0 6px 0 !important;
  }

  body.tax-area:not(.term-shenzhen) .wp-block-post-template > li .wp-block-post-featured-image {
    grid-column: 1 !important;
    grid-row: 1 / span 5 !important;
    width: 100px !important;
    margin: 0 !important;
  }

  body.tax-area:not(.term-shenzhen) .wp-block-post-template > li .wp-block-post-featured-image img {
    width: 100px !important;
    max-width: 100px !important;
    height: 75px !important;
    object-fit: cover !important;
    display: block !important;
  }

  body.tax-area:not(.term-shenzhen) .wp-block-post-template > li .wp-block-post-title,
  body.tax-area:not(.term-shenzhen) .wp-block-post-template > li .taxonomy-area,
  body.tax-area:not(.term-shenzhen) .wp-block-post-template > li .taxonomy-genre,
  body.tax-area:not(.term-shenzhen) .wp-block-post-template > li .taxonomy-immigration_area {
    grid-column: 2 !important;
    margin: 0 !important;
  }

  body.tax-area:not(.term-shenzhen) .wp-block-post-template > li .wp-block-post-title {
    font-size: 13px !important;
    line-height: 1.15 !important;
  }

  body.tax-area:not(.term-shenzhen) .wp-block-post-template > li .taxonomy-area,
  body.tax-area:not(.term-shenzhen) .wp-block-post-template > li .taxonomy-genre,
  body.tax-area:not(.term-shenzhen) .wp-block-post-template > li .taxonomy-immigration_area {
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  body.tax-area:not(.term-shenzhen) .wp-block-post-template > li .wp-block-post-date,
  body.tax-area:not(.term-shenzhen) .wp-block-post-template > li .wp-block-post-excerpt {
    display: none !important;
  }
}