@charset "utf-8";

/* ==========================================================================
   0. Imports & Setup
   ========================================================================== */
html, body {
  overflow-x: hidden;
  width: 100%;
}

#topHero .mw-1000 {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  position: relative;
}

.lang-ja h2{
    font-size: 1.65rem;
}

/* ==========================================================================
   Top Page (Main Visual)
   ========================================================================== */
#topHero { 
  background-color: #FDFDF2;
  padding-top: 140px !important; 
  padding-bottom: 80px !important;
  z-index: 0;
}

/* --- 上部：キャッチコピーエリア --- */
#topHero .hero-top-area {
  min-height: 250px;
  padding-top: 30px;
  padding-bottom: 30px;
}

#topHero .hero-catch {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  z-index: 1;
}

#topHero .hero-catch p {
  font-size: 40px; 
  letter-spacing: 0.15em;
  line-height: 1;
  margin: 0 0 0 1.5rem; 
}
#topHero .hero-catch p:nth-child(3) {
  margin-left: 3rem; 
}
#topHero .hero-catch p:last-child {
  margin-left: 0;
}

#topHero .text-purple {
  color: #98475E; 
}

/* --- 上部：花モチーフ --- */
#topHero .hero-motif {
  left: 10%;
  bottom: 10%;
  z-index: 5;
}
#topHero .hero-motif img {
  height: 70px;
  filter: brightness(0);
  opacity: 0.8;
}

/* --- 飾り背景 (PC版) --- */
#topHero .hero-kazari {
  bottom: 10px;
  right: 5px;
  z-index: 1;
  pointer-events: none;
}
#topHero .hero-kazari img {
}

/* --- 中央：画像枠 (比率 2:1) --- */
#topHero .hero-visual-wrapper {
  aspect-ratio: 2 / 1; 
}

#topHero .swiper-top {
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  z-index: 1;
}

/* --- 下部：リード文 --- */
#topHero .hero-lead {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  line-height: 3.5;
  font-size: 16px; 
  letter-spacing: 0.1em;
  opacity: 0.9;
  height: 320px; 
  text-justify:auto; 
}

/* --- 演出：アニメーション --- */
@keyframes motifRolling {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-8deg) scale(1.02); }
  50% { transform: rotate(0deg) scale(1); }
  75% { transform: rotate(8deg) scale(1.02); }
  100% { transform: rotate(0deg) scale(1); }
}
#topHero .motif-roll {
  animation: motifRolling 6s ease-in-out infinite; 
}

#topHero .swiper-top .swiper-slide img {
  transform: scale(1);
  transition: transform 12s ease; 
}
#topHero .swiper-top .swiper-slide-active img {
  transform: scale(1.1); 
}

/* ==========================================
   レスポンシブ (スマホ表示: 991px以下)
   ========================================== */
@media (max-width: 991px) {
    #topHero {
        padding-top: 100px !important; 
        padding-bottom: 50px !important;
    }
    
    #topHero .hero-top-area {
        min-height: 300px;
        padding-top: 30px;
    }
    
    #topHero .hero-visual-wrapper {
        aspect-ratio: 4 / 3; 
    }
    
    /* スマホ版 飾り背景 (非表示) */
    #topHero .hero-kazari {
        display: none !important;
    }

    /* スマホ版 花モチーフ */
    #topHero .hero-motif {
        left: 5%;
        bottom: 5%;
    }
    #topHero .hero-motif img {
        height: 50px; 
    }
    
    #topHero .hero-catch p {
        font-size: 32px; 
        margin: 0 0 0 1.2rem;
    }
    #topHero .hero-catch p:nth-child(3) {
        margin-left: 2rem; 
    }
    
    #topHero .hero-lead {
        height: 280px; 
        line-height: 1.8;
        font-size: 16px; 
    }
}

/* ==========================================================================
   共通コンポーネント (テキスト・背景・セクションタイトルなど)
   ========================================================================== */

/* 汎用テキストスタイル */
.fs-09 { font-size: 0.9rem; }
.section-subtitle { font-size: 0.75rem; letter-spacing: 0.15em; }
.section-lead { font-size: 0.9rem; line-height: 1.8; }

/* ピンク背景エリア (#topConcept, #topStore) */
#topConcept,
#topStore {
  background-color: #FAF0E6 !important;
}

/* 縦書きセクションタイトル */
.section-title-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.section-title-vertical h2 {
  font-size: 26px;
  letter-spacing: 0.15em;
  margin: 0 0 0 .5rem; 
}
.section-title-vertical .en-text {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #555;
  margin: 0;
  margin-top: 5px; 
}


/* ==========================================================================
   1. コンセプトエリア (#topConcept)
   ========================================================================== */
#topConcept { z-index: 0; }
.concept-pict { aspect-ratio: 800/530; }

/* テキストの均等割り付け */
.concept-text-area {
  text-align: justify;
  text-justify: inter-ideograph;
  line-height: 2.0;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.concept-text-area p { margin-bottom: 1.5rem; }
.concept-text-area p:last-child { margin-bottom: 0; }

/* タイトル横のふわふわモチーフ */
@keyframes fluffyUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.concept-title-motif {
  height: 35px;
  mix-blend-mode: multiply;
  animation: fluffyUpDown 3s ease-in-out infinite; 
}

.concept-kazari { pointer-events: none; }

@media (max-width: 767px) {
.concept-text-area {
  line-height: 1.8;
}
.concept-text-area p { margin-bottom: 1rem; }
}

/* ==========================================================================
   1.5 お知らせエリア (#topNews)
   ========================================================================== */
#topNews {
    background-color: #ffffff; /* コンセプトエリア(#FAF0E6)とのコントラストをつけるため白に */
    border-bottom: 1px solid #FDFDF2;
}

/* 投稿リストの枠線 */
.news-item {
    border-bottom: 1px solid #EAEAEA;
}
.news-item:first-child {
    border-top: 1px solid #EAEAEA;
}

/* 日付 */
.news-date {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    min-width: 90px;
}

/* カテゴリーバッジ (カンプのエンジ色を活用) */
.news-cat {
    display: inline-block;
    font-size: 0.75rem;
    padding: 3px 12px;
    background-color: #fff;
    border: 1px solid #98475E; /* 唐丸のブランドカラー */
    color: #98475E;
    min-width: 100px;
}

/* タイトル */
.news-title {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ホバー時の演出 */
.news-item:hover {
    background-color: #FAF0E6; /* はんなりピンク背景が浮かび上がる */
}
.news-item:hover .news-title {
    color: #98475E; /* タイトルがエンジ色に */
}

/* ==========================================
   レスポンシブ調整 (767px以下)
   ========================================== */
@media (max-width: 767px) {
    .news-item {
        padding-top: 1.2rem !important;
        padding-bottom: 1.2rem !important;
    }
    .news-meta {
        margin-bottom: 0.5rem !important;
    }
    .news-date {
        font-size: 0.85rem;
    }
    .news-cat {
        font-size: 0.7rem;
        padding: 2px 10px;
        min-width: 80px;
    }
}


/* ==========================================================================
   2. 京からかみ体験エリア (#topExperience)
   ========================================================================== */
#topExperience { background-color: #FDFDF2; }

/* 縦書きセクションタイトル調整 */
#topExperience .section-title-vertical h2 {
  margin: 0 0 0 .5rem; 
}

/* 上にはみ出す飾り模様 */
#topExperience .experience-kazari {
  top: -150px; 
  left: 20px; 
  right: auto !important; 
  pointer-events: none;
}
#topExperience .experience-kazari img {
  width: 280px; 
  opacity: 0.4; 
  mix-blend-mode: multiply;
}

/* ==========================================================================
   3. オンラインストアエリア (#topStore)
   ========================================================================== */
.store-motif { width: 45px; mix-blend-mode: multiply; }

/* はんなりバウンドアニメーション */
@keyframes bounceHannari {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.motif-bounce-hannari {
  animation: bounceHannari 4s ease-in-out infinite;
}


/* ==========================================================================
   Swiper カルーセル共通設定 (体験 & ストア)
   ========================================================================== */
.exp-swiper img,
.store-swiper img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ページネーション配置 */
.swiper-pagination-bottom { bottom: 0 !important; }

/* おしゃれなドットページネーション */
.swiper-pagination-bullets {
  bottom: 10px !important; 
  text-align: center;
  z-index: 10;
}
.swiper-pagination-bullet {
  width: 8px !important; 
  height: 8px !important;
  background: transparent !important; 
  border: 1px solid #98475E !important; 
  opacity: 0.5 !important; 
  margin: 0 6px !important; 
  transition: all 0.3s ease; 
  cursor: pointer; 
}
.swiper-pagination-bullet-active {
  background: #98475E !important; 
  opacity: 1 !important; 
  transform: scale(1.1); 
}
@media (min-width: 992px) {
  .swiper-pagination-bullet:hover {
    opacity: 0.8 !important; 
  }
}


/* ==========================================================================
   4. 実店舗のご案内エリア (#topShop)
   ========================================================================== */
#topShop { 
  background-color: #FFFFF0; 
  overflow: hidden; 
}

/* 画像ギャラリー (画面幅いっぱい・比率固定) */
.shop-images-wrapper {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 350px;
}
.shop-img-center {
    width: 50vw; 
    flex-shrink: 0;
}
.shop-img-side {
    width: 25vw; 
    flex-shrink: 0;
}
.shop-images-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 縦書きタイトル (左側配置用) */
#topShop .section-title-vertical {
    display: flex;
    align-items: center; 
    margin-right: 2rem !important; 
}
#topShop .section-title-vertical h2 {
    font-size: 24px;
    letter-spacing: 0.2em;
    margin: 0;
}
#topShop .section-title-vertical .en-text {
    margin-top: 10px; 
}

/* 店舗情報テーブル */
.shop-info-table {
    border-collapse: collapse;
    font-size: 0.95rem;
}
.shop-info-table th, 
.shop-info-table td {
    padding: 1.2rem 0;
    border-bottom: 1px solid #D1C5C5;
    vertical-align: top;
}
.shop-info-table tr:first-child th,
.shop-info-table tr:first-child td {
    border-top: none; 
}
.shop-info-table tr:last-child th,
.shop-info-table tr:last-child td {
    border-bottom: none;
}
.shop-info-table th {
    width: 100px;
    font-weight: normal;
    white-space: nowrap;
}
.shop-info-note { font-size: 0.8rem; }

/* アクセス詳細 */
.access-heading {
    border-bottom: 1px solid #D1C5C5;
    font-size: 0.95rem;
}
.access-list {
    font-size: 0.95rem;
    line-height: 2.2;
}
.shop-access-kazari { 
    top: -60px; 
    right: -80px; 
    z-index: 0; 
}
.shop-parking-info { 
    font-size: 0.95rem; 
    line-height: 2; 
}

/* マップエリア */
.shop-map-inner { max-width: 900px; }
.map-btn-icon {
    background-color: #98475E;
    font-size: 0.9rem;
}

/* ==========================================
   レスポンシブ共通設定 (スマホ表示: 991px以下 & 767px以下)
   ========================================== */

/* 991px以下の調整 */
@media (max-width: 991px) {
  /* 各セクションの飾り模様を非表示 (※体験エリアの飾りはスマホでも使うのでここから削除しました) */
  #topShop .shop-title-kazari,
  #topShop .shop-access-kazari {
    display: none !important;
  }
  
  /* 縦書きタイトルの高さ確保 */
  .section-title-vertical {
    height: 200px;
  }
}

/* 767px以下の調整 (スマホ用) */
@media (max-width: 767px) {
    
    /* ==========================================
       共通：縦書きタイトルを「横書き＆中央揃え」に変更
       ========================================== */
    .section-title-vertical {
        writing-mode: horizontal-tb; /* 縦書きを解除 */
        display: flex;
        flex-direction: column;
        align-items: center !important; /* 中央揃え */
        margin-right: 0 !important;
        height: auto !important; /* 縦書き用の高さを解除 */
    }
    .section-title-vertical h2 {
        margin: 0 0 5px 0 !important; /* 下余白に変更 */
        letter-spacing: 0.15em;
    }
    .section-title-vertical .en-text {
        margin-top: 0 !important;
    }

    /* ==========================================
       2. 京からかみ体験エリア (#topExperience) のスマホ調整
       ========================================== */
    
    /* 飾り画像をカンプに合わせて左上に配置 */
    #topExperience .experience-kazari {
        top: -40px; 
        left: -20px; 
    }
    #topExperience .experience-kazari img {
        width: 180px; /* スマホ用に少し小さく調整 */
    }
    
    /* ==========================================
       3. オンラインストアエリア (#topStore) のスマホ調整
       ========================================== */
    
    /* テキストの幅にぴったり合わせる基準の枠を作る */
    .store-title-wrapper {
        display: inline-block !important; 
    }
    
    /* スマホ時のみ：花モチーフを右斜め上に絶対配置 */
    .store-motif {
        position: absolute;
        top: -15px;
        right: -30px; /* テキストの右端からはみ出させる */
        width: 45px;
        margin: 0 !important;
    }

    /* ==========================================
       4. 実店舗のご案内エリア (#topShop) のスマホ調整
       ========================================== */

    /* SP時は中央画像のみを全幅で表示 */
    .shop-images-wrapper {
        height: 250px;
        margin-left: -15px;
        width: calc(100% + 30px);
    }
    .shop-img-center { width: 100%; }
    .shop-img-side { display: none; }
    
    /* 内容を縦積みに */
    #topShop .col-md-6.d-flex { flex-direction: column; }
    
    /* タイトルの下余白 */
    #topShop .section-title-vertical {
        margin-bottom: 1.5rem;
    }

    /* ★追加：表とアクセス部分の左右余白を広く取る */
    #topShop .col-md-6.d-flex .flex-grow-1 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    /* ★追加：地図部分の背景ボックスの余白を減らす（表の余白とバランスを取る） */
    .shop-map-inner {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* ==========================================================================
   5. インスタグラムエリア (#topInstagram)
   ========================================================================== */
#topInstagram {
    background-color: #FFFFF0;
}

/* Instagram投稿フィードのグリッド枠 */
.instagram-feed-grid {
  max-width: 900px;
  margin: 0 auto;
}

/* 各投稿アイテム */
.instagram-post-item {
  display: block;
  overflow: hidden;
  border-radius: 5px; /* 角丸 */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* シャドウ */
  transition: transform 0.4s ease; /* ホバー時のアニメーション */
}

/* ★プレースホルダー用のdiv */
.insta-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1; /* ★正方形に固定 */
  background-color: #eee; /* ★プレースホルダーのグレー色 */
  border-radius: inherit; /* 親の角丸を継承 */
}

/* ホバー時に要素全体を少し拡大する演出 (PCのみ) */
@media (min-width: 992px) {
  .instagram-post-item:hover {
    transform: scale(1.08); /* 親要素全体を拡大 */
  }
}
/* ==========================================================================
   トップのみオープニング（new.php / body.home）
   幕はクリームではない。ヘッダー文字・縦ナビの --c-black(#1a1a1a) を
   暖めた焦げ茶 #241c16。ほぼ不透明。店名はサイト地色 --c-bg(#FCFAF2)。
   秒数は new.php インライン CSS / top-opening.js と同じ:
   フェードイン 1.0s / 開始〜アウト開始 3.2s（保持 2.2s）/ フェードアウト 1.2s / 合計 4.4s。ease。
   店名とロゴ間隔は旧 1.1rem の 1.5倍 = 1.65rem。
   fade-up / #globalNav / functions.php は触らない。
   ========================================================================== */
.js-karamaru-opening {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background-color: #241c16;
  background-color: rgba(36, 28, 22, 0.98);
  cursor: pointer;
  opacity: 1;
  transition: opacity 1.2s ease;
}

.js-karamaru-opening.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.js-karamaru-opening__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 90vw;
  opacity: 0;
  transition: opacity 1s ease;
}

.js-karamaru-opening.is-ready .js-karamaru-opening__inner.is-in {
  opacity: 1;
}

.js-karamaru-opening__title {
  margin: 0 0 1.65rem;
  color: #FCFAF2;
  font-family: var(--font-mincho), 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  line-height: 1.5;
}

.js-karamaru-opening__logo {
  display: block;
  width: auto;
  height: 110px;
}

html.karamaru-opening-active,
html.karamaru-opening-active body {
  overflow: hidden;
}

html.karamaru-opening-skip .js-karamaru-opening {
  display: none !important;
}

/* FOUC 幕本体は new.php の wp_head インライン。終了後に ::before を消す */
html.karamaru-opening-done::before,
html.karamaru-opening-skip::before {
  content: none !important;
  display: none !important;
}

@media (max-width: 1439px) {
  .js-karamaru-opening__title { font-size: 1.4rem; }
  .js-karamaru-opening__logo { height: 100px; }
}

@media (max-height: 720px) {
  .js-karamaru-opening__title {
    font-size: 1.2rem;
    margin-bottom: 1.05rem;
    letter-spacing: 0.12em;
  }
  .js-karamaru-opening__logo { height: 88px; }
}

@media (max-width: 768px) {
  .js-karamaru-opening__title {
    font-size: 1.15rem;
    letter-spacing: 0.12em;
    margin-bottom: 1.35rem;
  }
  .js-karamaru-opening__logo { height: 80px; }
}

@media (max-width: 430px) {
  .js-karamaru-opening__title {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    max-width: 12em;
    margin-bottom: 1.35rem;
  }
  .js-karamaru-opening__logo { height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .js-karamaru-opening {
    display: none !important;
  }
}
