/* =========================================
   mochi-top 用レイアウト
   （このCSSは mochi-top ページだけで読み込み）
========================================= */

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

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

@media (min-width: 769px) {

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

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

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

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

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


/* 01. セクション共通 ------------------------------------------------ */

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

#works,
#workflow,
#concept,
#mochi-profile {
  padding: 100px 40px;
}

/* スマホ余白調整 */
@media (max-width: 768px) {
  #works,
  #workflow,
  #concept,
  #info,
  #mochi-profile {
    padding: 80px 20px;
  }
}


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

body.page-template-mochi-top .hero,
body.mochi-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-mochi-top .hero,
  body.mochi-top-page .hero {
    aspect-ratio: 3 / 4 !important;
  }
}

/* Mochiトップ：pagination 用の余白を作る */
body.page-template-mochi-top .hero,
body.mochi-top-page .hero {
  padding-bottom: 32px; /* ← 丸ボタン分の余白 */
}

body.page-template-mochi-top .hero .swiper-pagination {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  z-index: 10;
}


/* 02. WORKS -------------------------------------------------------- */

/* PC：3×2 の 6件 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.work-item {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.work-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, opacity .4s ease;
}

.work-item:hover img {
  opacity: 0.65;
  transform: scale(1.04);
}

.work-title {
  margin-top: 8px;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.more-works {
  text-align: center;
  margin-top: 28px;
}

.more-works a {
  text-decoration: underline;
  font-size: 0.95rem;
}

/* スマホ：2件だけ表示 */
@media (max-width: 768px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .works-grid .work-item:nth-child(n+5) {
    display: none;
  }

  .work-item img {
    height: 150px;
  }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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