@charset "UTF-8";
/*
 Theme Name: SANGO Child
 Theme URI: https://saruwakakun.design
 Author: SARUWAKA
 Author URI: https://saruwakakun.com
 Template: sango-theme
 Version: 3.0
*/
/* こちらはSANGOの子テーマ用CSSです。以下にCSSを記入していきましょう。 */

@media (min-width: 1024px){
  .home .sgb-heading__inner{
    font-size: 4rem !important;
  }
}


/* =========================================================
   HIROBIRO-like HERO Slider
   ========================================================= */

/* --- HERO: full-bleed base --- */
.hirobiro-top .hero--slider{
  position: relative;
  width: 100vw;
  min-height: 70vh;
  overflow: hidden;

  /* full-bleed */
  margin: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  margin-bottom: 8px;
}

/* Swiper fills hero height */
.hirobiro-top .hero--slider .swiper,
.hirobiro-top .hero--slider .swiper-wrapper,
.hirobiro-top .hero--slider .swiper-slide{
  height: 100%;
}

.hirobiro-top .hero--slider .swiper{
  position: absolute;
  inset: 0;
}

.hirobiro-top .hero--slider .swiper-slide{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay for readability */
.hirobiro-top .hero--slider::before{
  content:"";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.18));
  z-index: 2;
}

/* --- HERO inner (text container) --- */
.hirobiro-top .hero--slider .hero__inner{
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;

  padding-left: clamp(20px, 6vw, 72px);
  padding-right: clamp(20px, 6vw, 72px);
  padding-top: 64px;
  padding-bottom: 64px;

  color: #fff;
}

/* Typography */
.hirobiro-top .hero__eyebrow{
  margin: 0 0 10px;
  letter-spacing: .18em;
  font-size: 12px;
  opacity: .9;
}

.hirobiro-top .hero__title{
  margin: 0 0 14px;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.15;
}

.hirobiro-top .hero__lead{
  margin: 0 0 22px;
  max-width: 42em;
  font-size: 16px;
  line-height: 1.8;
  opacity: .95;
}

.hirobiro-top .hero__title,
.hirobiro-top .hero__lead{
  text-shadow: 0 6px 18px rgba(0,0,0,.28);
}

/* Tags */
.hirobiro-top .hero__tags{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.hirobiro-top .hero__tag{
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.20);
}

/* Actions / Buttons */
.hirobiro-top .hero__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hirobiro-top .hero__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: transform .15s ease, filter .15s ease;
}

.hirobiro-top .hero__btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.hirobiro-top .hero__btn--primary{
  background: #fff;
  color: #111;
}

/* Swiper UI */
.hirobiro-top .hero--slider .swiper-button-next,
.hirobiro-top .hero--slider .swiper-button-prev{
  color: #fff;
  z-index: 4;
}

.hirobiro-top .hero--slider .swiper-pagination-bullet{
  background: rgba(255,255,255,.7);
  opacity: 1;
}
.hirobiro-top .hero--slider .swiper-pagination-bullet-active{
  background: #fff;
}

/* Text fade animation */
.hirobiro-top .hero__eyebrow,
.hirobiro-top .hero__title,
.hirobiro-top .hero__lead,
.hirobiro-top .hero__tags,
.hirobiro-top .hero__actions{
  transition: opacity .45s ease, transform .45s ease;
}

.hirobiro-top .hero--is-animating .hero__eyebrow,
.hirobiro-top .hero--is-animating .hero__title,
.hirobiro-top .hero--is-animating .hero__lead,
.hirobiro-top .hero--is-animating .hero__tags,
.hirobiro-top .hero--is-animating .hero__actions{
  opacity: 0;
  transform: translateY(6px);
}

.hirobiro-top .hero__eyebrow{ transition-delay: .05s; }
.hirobiro-top .hero__title{ transition-delay: .10s; }
.hirobiro-top .hero__lead{ transition-delay: .18s; }
.hirobiro-top .hero__tags{ transition-delay: .24s; }
.hirobiro-top .hero__actions{ transition-delay: .30s; }


/* =========================================================
   HERO sub navigation (3 cards)
   ========================================================= */

.hero-nav{
  margin: 36px 0 12px;
}

.hero-nav__inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 72px);

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hero-nav__card{
  position: relative;
  display: block;
  padding: 22px 22px 24px;
  border-radius: 16px;

  background: #fff;
  color: inherit;
  text-decoration: none;

  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  border: 1px solid transparent;

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background-color .18s ease;
}

.hero-nav__card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0,0,0,.14);
  border-color: rgba(0,0,0,.08);
  background-color: #fff;
}

/* arrow */
.hero-nav__card::after{
  content: "→";
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s ease;
}

.hero-nav__card:hover::after{
  opacity: .55;
  transform: translateX(0);
}

.hero-nav__eyebrow{
  display: block;
  font-size: 12px;
  letter-spacing: .14em;
  opacity: .6;
  margin-bottom: 6px;
}

.hero-nav__title{
  font-size: 20px;
  margin: 0 0 6px;
}

.hero-nav__desc{
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  opacity: .75;
}

/* icon */
.hero-nav__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0,0,0,.04);
  margin-bottom: 10px;
  color: #111;
  transition: transform .18s ease, background .18s ease, filter .18s ease;
}

.hero-nav__card:hover .hero-nav__icon{
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.hero-nav__icon svg{
  width: 22px;
  height: 22px;
}

/* per-card icon colors */
.hero-nav__card--events .hero-nav__icon{
  background: rgba(255, 190, 0, .18);
  color: #8a6a00;
}

.hero-nav__card--shops .hero-nav__icon{
  background: rgba(0, 140, 255, .14);
  color: #004c8c;
}

.hero-nav__card--stories .hero-nav__icon{
  background: rgba(0, 0, 0, .06);
  color: #111;
}


/* =========================================================
   Front page content wrapper
   ========================================================= */
.front-content{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 72px);
}


/* =========================================================
   Fixed LINE Banner + QR hover (PC only)
   - keep ONLY this variant to avoid conflicts
   ========================================================= */

.fixed-line-wrap{
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
}

.fixed-line-banner{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 56px;
  height: 310px;
  padding: 14px 10px;

  background: #06C755;
  color: #fff;
  text-decoration: none;

  border-radius: 14px 0 0 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);

  transition: filter .15s ease, transform .15s ease;
}

.fixed-line-banner:hover{
  filter: brightness(1.03);
  transform: translateX(-2px);
}

.fixed-line-banner__text{
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: 800;
  letter-spacing: .12em;
  font-size: 14px;
  line-height: 1;
}

/* QR popover */
.fixed-line-qr{
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.fixed-line-wrap:hover .fixed-line-qr{
  opacity: 1;
  transform: translateY(-50%) translateX(-6px);
  pointer-events: auto;
}

.fixed-line-qr__box{
  position: relative;
  width: 180px;
  padding: 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.06);
}

.fixed-line-qr__box::after{
  content:"";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.08));
}

.fixed-line-qr__img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.fixed-line-qr__caption{
  margin-top: 8px;
  font-size: 12px;
  opacity: .75;
  text-align: center;
}

/* Mobile: hide (hover not available) */
@media (max-width: 768px){
  .fixed-line-wrap{ display: none; }
}

/* =====================================
   Event slider thumb: A4 vertical + no crop
   ===================================== */

/* figure(.rlmg) 側の “横長固定” を潰して、縦比率にする */
.splide__slide.is-event figure.rlmg{
  width: 100% !important;

  /* 既存の比率指定（padding-bottom等）を無効化 */
  height: auto !important;
  padding: 0 !important;

  /* A4に近い縦比率（必要なら 3/4 や 4/5 に変更OK） */
  aspect-ratio: 1 / 1.414 !important;

  /* 中身を中央に */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  overflow: hidden !important;
  background: #fff !important;
}

/* img 側の “絶対配置＋cover” を潰して、切らずに収める */
.splide__slide.is-event figure.rlmg img{
  position: static !important;   /* absolute を殺す */
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;

  object-fit: contain !important; /* ←切らない */
  object-position: center !important;

  display: block !important;
}

/* =====================================
   FIX: Event thumb shows only center
   (reset SANGO absolute-centering styles)
   ===================================== */

.splide__slide.is-event figure.rlmg{
  overflow: hidden !important; /* ここは維持 */
}

/* とにかく “absolute/transform系” を全部殺す */
.splide__slide.is-event figure.rlmg img{
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;

  transform: none !important;

  /* サイズ決定（箱にフィットさせる） */
  width: 100% !important;
  height: 100% !important;

  /* これで「全体を収める」 */
  object-fit: contain !important;
  object-position: center center !important;

  /* 余計な制限を解除 */
  max-width: none !important;
  max-height: none !important;
}

/* =====================================
   Splide full-bleed (edge to edge)
   ===================================== */

.related-posts,
.wp-block-sgb-posts,
.splide{
  width: 100vw;
  max-width: none;

  /* 画面中央基準で左右に広げる */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.splide__track{
  overflow: hidden;
}

.splide__list{
  width: 100%;
}

/* =====================================
   catpost-cards full width
   ===================================== */

.catpost-cards{
  width: 100vw;
  max-width: none;

  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

/* Next posts auto block */
.sakulab-next-posts {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid rgba(255,255,255,.12);
}

.sakulab-next-posts__title {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.sakulab-next-posts__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .sakulab-next-posts__list {
    grid-template-columns: 1fr;
  }
}

.sakulab-next-posts__item a {
  text-decoration: none;
}

.sakulab-next-posts__item-title {
  font-size: 1.2rem;
  line-height: 1.35;
}

.entry-content .sakulab-next-posts p {
  margin: 4px 5px;
}

/* 次に読む3本：画像サイズ統一 */
.sakulab-next-posts__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* ★ここで比率を固定（おすすめ） */
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 0;
}

.sakulab-next-posts__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* ★はみ出た部分はトリミング */
  object-position: center;
  display: block;
}


/* =========================================================
   Responsive adjustments (organized)
   ========================================================= */

/* ---------- PC / Tablet (>= 769px) ----------
   one-column 全体の横幅をワイド化
-------------------------------------------- */
/* =========================================================
   Layout width unify (SANGO)
   投稿 / 固定 / カテゴリ / タグ / アーカイブ
   ========================================================= */

@media (min-width: 769px){

  /* メインコンテンツ全体 */
  .one-column #inner-content.wrap{
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
  }

  /* main 本体 */
  .one-column #main{
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
  }

  /* アーカイブヘッダー（カテゴリ・タグ） */
  .one-column .archive_header{
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }

  /* アーカイブ本文リスト */
  .one-column .archive-content,
  .one-column .catpost-cards,
  .one-column .posts-list,
  .one-column .entry-content{
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }
}


/* ---------- PC (>= 1024px) ----------
   HEROの微調整（PC寄り）
------------------------------------ */
@media (min-width: 1024px){
  /* HERO: リードは1行で省略（必要なら） */
  .hirobiro-top .hero__lead{
    max-width: 80ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* HERO: 左パディングを少し増やす */
  .hirobiro-top .hero--slider .hero__inner{
    padding-left: clamp(40px, 8vw, 96px);
  }
}

/* ---------- Tablet (<= 960px) ----------
   HEROサブナビ（カード数調整）
-------------------------------------- */
@media (max-width: 960px){
  .hero-nav__inner{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Mobile (<= 640px) ----------
   HEROサブナビ + HERO本体の調整
-------------------------------------- */
@media (max-width: 640px){
  /* HERO sub nav */
  .hero-nav{
    margin-top: 24px;
  }
  .hero-nav__inner{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* HERO slider */
  .hirobiro-top .hero--slider{
    min-height: 64vh;
  }
  .hirobiro-top .hero--slider .hero__inner{
    padding: 46px 20px;
  }
}