/* ============================================
   KINE TOP 専用 CSS（kine.css）
   対象：Kine Top テンプレートページ
   body には page-template-kine-top または kine-top-page が入っている想定
============================================ */

/* 共通でターゲットにするボディクラス */
body.page-template-kine-top,
body.kine-top-page {
  /* ここでフォントや色は base（custom.css）の設定をそのまま利用 */
}

/* --------------------------------------------
  1. ヘッダー：トップだけ「透明 → スクロールで白」
   （PCのみ。SPは base 側の「最初から白」を優先）
-------------------------------------------- */

@media (min-width: 769px) {

  /* 最上部：透明＋白文字 */
  body.page-template-kine-top .custom-header,
  body.kine-top-page .custom-header {
    background: rgba(255,255,255,0) !important;
    backdrop-filter: none !important;
    color: #fff;
  }

  body.page-template-kine-top .custom-header a,
  body.kine-top-page .custom-header a {
    color: #fff !important;
  }

  /* JS で付く .header-solid 時：白背景＋黒文字 */
  body.page-template-kine-top .custom-header.header-solid,
  body.kine-top-page .custom-header.header-solid {
    background: rgba(255,255,255,0.92) !important;
    backdrop-filter: blur(6px) !important;
    color: #111;
  }

  body.page-template-kine-top .custom-header.header-solid a,
  body.kine-top-page .custom-header.header-solid a {
    color: #111 !important;
  }

  /* ヒーローはヘッダーの下からではなく、かぶせる */
  body.page-template-kine-top .hero,
  body.kine-top-page .hero {
    margin-top: 0;
  }
}

/* --------------------------------------------
  2. セクション共通レイアウト（Kine Top）
-------------------------------------------- */

body.page-template-kine-top #concept,
body.kine-top-page #concept,
body.page-template-kine-top #info,
body.kine-top-page #info,
body.page-template-kine-top #instagram,
body.kine-top-page #instagram,
body.page-template-kine-top .kine-profile,
body.kine-top-page .kine-profile {
  padding: 100px 40px;
}

/* スマホ余白調整 */
@media (max-width: 768px) {
  body.page-template-kine-top #concept,
  body.kine-top-page #concept,
  body.page-template-kine-top #info,
  body.kine-top-page #info,
  body.page-template-kine-top #instagram,
  body.kine-top-page #instagram,
  body.page-template-kine-top .kine-profile,
  body.kine-top-page .kine-profile {
    padding: 70px 20px;
  }
}

/* セクションタイトル h2 はセンター揃え、h3 は左 */
body.page-template-kine-top section > h2,
body.kine-top-page section > h2,
body.page-template-kine-top .profile-title,
body.kine-top-page .profile-title {
  text-align: center;
}

body.page-template-kine-top h3,
body.kine-top-page h3 {
  text-align: left;
}

/* --------------------------------------------
  3. ヒーロースライダー（比率などは base 側の .hero を利用）
-------------------------------------------- */

body.page-template-kine-top .hero,
body.kine-top-page .hero {
  width: 100%;
  aspect-ratio: 21 / 12;
  position: relative;
  overflow: hidden;
}

/* Swiperの中身は base（custom.css）の .hero .swiper～ が効く想定 */

/* SP だけ縦長にしたい場合（base と合わせて） */
@media (max-width: 768px) {
  body.page-template-kine-top .hero,
  body.kine-top-page .hero {
    aspect-ratio: 3 / 4 !important;
  }
}

/* --------------------------------------------
  4. Concept（コンセプトブロック）
-------------------------------------------- */

/* 背景色＋センター */
body.page-template-kine-top #concept,
body.kine-top-page #concept {
  background: #f7f4ef;
  text-align: center;
  color: #444;
}

/* ロゴ */
body.page-template-kine-top .concept-logo,
body.kine-top-page .concept-logo {
  width: 120px;
  height: auto;
  margin: 0 auto 20px;
  opacity: 0.9;
}

/* コンセプト文は明朝体（base で Noto Serif JP を読み込み済み想定） */
body.page-template-kine-top .concept-text,
body.kine-top-page .concept-text {
  font-family: 'Noto Serif JP', serif;
  line-height: 2;
  margin: 0;
}

/* 1文ごとの間隔 */
body.page-template-kine-top .concept-text p,
body.kine-top-page .concept-text p {
  margin: 4px 0;
}

/* スマホ用調整 */
@media (max-width: 768px) {
  body.page-template-kine-top .concept-logo,
  body.kine-top-page .concept-logo {
    width: 150px;
  }
}

/* --------------------------------------------
  5. Information（店舗情報テーブル）
-------------------------------------------- */

body.page-template-kine-top #info,
body.kine-top-page #info {
  background: #fff;
}

/* テーブル本体 */
body.page-template-kine-top .info-table,
body.kine-top-page .info-table {
  max-width: 700px;
  margin: 40px auto 0;
  border-top: 1px solid #ddd;
  color: #222;
}

/* 行 */
body.page-template-kine-top .info-table .row,
body.kine-top-page .info-table .row {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

/* 左ラベル：太字 */
body.page-template-kine-top .info-table .label,
body.kine-top-page .info-table .label {
  font-weight: 600;
}

/* 右側の説明：通常太さに戻す */
body.page-template-kine-top .info-table .value,
body.kine-top-page .info-table .value {
  font-weight: 400;
  line-height: 1.8;
}

/* スマホで1カラムに */
@media (max-width: 600px) {
  body.page-template-kine-top .info-table .row,
  body.kine-top-page .info-table .row {
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  body.page-template-kine-top .info-table .label,
  body.kine-top-page .info-table .label {
    margin-bottom: 4px;
  }
}

/* Google Map iframe（小さくなってしまう対策） */
body.page-template-kine-top .map-frame,
body.kine-top-page .map-frame {
  width: 100%;
  max-width: 900px;
  height: 450px;
  border: 0;
  display: block;
  margin: 40px auto 0;
}

/* --------------------------------------------
  6. 店舗写真ギャラリー（Information 内）
-------------------------------------------- */

body.page-template-kine-top .store-gallery,
body.kine-top-page .store-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 40px auto 60px;
  max-width: 900px;
}

body.page-template-kine-top .store-gallery img,
body.kine-top-page .store-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* スマホ：1列で縦長に */
@media (max-width: 768px) {
  body.page-template-kine-top .store-gallery,
  body.kine-top-page .store-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 92%;
  }

  body.page-template-kine-top .store-gallery img,
  body.kine-top-page .store-gallery img {
    height: 280px;
    border-radius: 4px;
  }
}

/* --------------------------------------------
  7. Profile セクション
-------------------------------------------- */

body.page-template-kine-top .kine-profile,
body.kine-top-page .kine-profile {
  max-width: 1000px;
  margin: 0 auto;
}

/* タイトルはセンター（上で section > h2 をcenterにしているので補強） */
body.page-template-kine-top .profile-title,
body.kine-top-page .profile-title {
  text-align: center;
  margin-bottom: 40px;
}

/* 横並びレイアウト */
body.page-template-kine-top .profile-wrapper,
body.kine-top-page .profile-wrapper {
  display: flex;
  gap: 60px;
  align-items: center; /* 写真の芯と文章の芯が揃うイメージ */
}

/* 写真 */
body.page-template-kine-top .profile-photo-wrap,
body.kine-top-page .profile-photo-wrap {
  flex: 0 0 38%;
}

body.page-template-kine-top .profile-photo,
body.kine-top-page .profile-photo {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}

/* 右側テキスト */
body.page-template-kine-top .profile-text,
body.kine-top-page .profile-text {
  flex: 1;
  max-width: 600px;
}

/* 名前 */
body.page-template-kine-top .profile-name,
body.kine-top-page .profile-name {
  font-size: 18px;
  font-weight: 400;
  text-align: left;
  margin-bottom: 24px;
}

/* 経歴テーブル風 */
body.page-template-kine-top .profile-table,
body.kine-top-page .profile-table {
  margin-bottom: 30px;
  font-size: 13px;
}

body.page-template-kine-top .profile-table .row,
body.kine-top-page .profile-table .row {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 6px 0;
}

body.page-template-kine-top .profile-table .year,
body.kine-top-page .profile-table .year {
  color: #555;
  font-weight: 400;
}

body.page-template-kine-top .profile-table .text,
body.kine-top-page .profile-table .text {
  color: #333;
}

/* 区切り線 */
body.page-template-kine-top .profile-divider,
body.kine-top-page .profile-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 30px 0;
}

/* メッセージ */
body.page-template-kine-top .profile-message,
body.kine-top-page .profile-message {
  font-size: 13px;
  line-height: 1.9;
  color: #333;
  max-width: 550px;
}

/* スマホ版：縦並び */
@media (max-width: 768px) {
  body.page-template-kine-top .profile-wrapper,
  body.kine-top-page .profile-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  body.page-template-kine-top .profile-photo-wrap,
  body.kine-top-page .profile-photo-wrap {
    width: 100%;
  }

  body.page-template-kine-top .profile-name,
  body.kine-top-page .profile-name {
    text-align: center;
  }

  body.page-template-kine-top .profile-text,
  body.kine-top-page .profile-text {
    max-width: 100%;
  }

  body.page-template-kine-top .profile-message,
  body.kine-top-page .profile-message {
    max-width: 100%;
  }
}

/* --------------------------------------------
  8. Instagram セクション
-------------------------------------------- */

body.page-template-kine-top #instagram,
body.kine-top-page #instagram {
  text-align: center;
}

/* --------------------------------------------
  9. Kine 専用：online shop 取消線
-------------------------------------------- */

.disabled-link {
  color: #aaa !important;
  text-decoration: line-through !important;
  pointer-events: none;
  opacity: 0.6;
}