/* ---------
  Layout & base typography
--------- */
/* Featured image（アイキャッチ）: 特集テンプレでは表示しない
   ※本文内に画像ブロックで同じ画像を置いている場合の「二重表示」を防ぎます */
body.iks-feature-article-page .featured-image.page-header-image{
  display: none;
}


body.iks-feature-article-page .site-content{
  /* GeneratePress 側のコンテナ幅・サイドバー配置を壊さないため、幅/float/clear は触りません */
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

/* Article card */
body.iks-feature-article-page .inside-article{
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  background: var(--iks-bg);
  border: 1px solid var(--iks-border);
  border-radius: calc(var(--iks-radius) + 2px);
  box-shadow: var(--iks-shadow);
  padding: var(--iks-pad);
}

@media (min-width: 768px){
  body.iks-feature-article-page .inside-article{
    padding: var(--iks-pad-lg);
  }
}

/* Keep text measure comfortable */
body.iks-feature-article-page .entry-header,
body.iks-feature-article-page .entry-content{
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

body.iks-feature-article-page .entry-content{
  font-family: var(--iks-font);
  font-size: 16px;
  line-height: var(--iks-leading);
  letter-spacing: var(--iks-letter);
  color: var(--iks-text);
}

/* Let “wide” blocks breathe */
body.iks-feature-article-page .entry-content .alignwide,
body.iks-feature-article-page .entry-content .alignfull,
body.iks-feature-article-page .entry-content .wp-block-image,
body.iks-feature-article-page .entry-content .wp-block-gallery,
body.iks-feature-article-page .entry-content .wp-block-table,
body.iks-feature-article-page .entry-content .wp-block-columns,
body.iks-feature-article-page .entry-content .wp-block-cover,
body.iks-feature-article-page .entry-content .wp-block-group.has-background,
body.iks-feature-article-page .entry-content .wp-block-media-text{
  max-width: 100%;
}

/* Paragraph spacing */
body.iks-feature-article-page .entry-content p{
  margin: var(--iks-para-gap) 0;
  color: var(--iks-text);
}
/* Marker emphasis for bold text (本文の太字をマーカー表示) */
body.iks-feature-article-page .entry-content strong{
  font-weight: 800;
}

body.iks-feature-article-page .entry-content p strong,
body.iks-feature-article-page .entry-content li strong{
  /* マーカー風：下側に色帯を敷く（複数行も自然に） */
  background: linear-gradient(transparent 62%, rgba(245,158,11,.35) 0);
  padding: 0 .12em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* リンク内でも読みやすく（リンク色のままマーカーだけ少し控えめ） */
body.iks-feature-article-page .entry-content a strong{
  background: linear-gradient(transparent 62%, rgba(14,165,233,.22) 0);
}


/* Links: elegant underline */
body.iks-feature-article-page .entry-content a{
  color: var(--iks-accent-2);
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}
body.iks-feature-article-page .entry-content a:hover{
  color: var(--iks-accent);
  text-decoration-thickness: .12em;
}

/* ---------
  Title area（WPのH1も“記事っぽく”）
--------- */
body.iks-feature-article-page .entry-header{
  margin-bottom: 14px;
}

body.iks-feature-article-page .entry-title{
  font-family: var(--iks-font);
  font-size: clamp(24px, 3.1vw, 34px);
  line-height: 1.25;
  letter-spacing: .01em;
  margin: 0 0 10px;
  padding: 16px 16px;
  border: 1px solid var(--iks-border);
  border-radius: var(--iks-radius);
  background:
    radial-gradient(900px 240px at 8% 0%, rgba(14,165,233,.14), rgba(255,255,255,0)),
    radial-gradient(700px 240px at 92% 10%, rgba(22,163,74,.14), rgba(255,255,255,0));
}

body.iks-feature-article-page .entry-meta{
  color: var(--iks-muted-2);
  font-size: 13px;
}

/* ---------
  Headings（H2の“ブログ感”）
--------- */
body.iks-feature-article-page .entry-content h2,
body.iks-feature-article-page .entry-content h3,
body.iks-feature-article-page .entry-content h4{
  font-family: var(--iks-font);
  color: var(--iks-text);
  letter-spacing: .01em;
}

body.iks-feature-article-page .entry-content h2{
  margin: 46px 0 16px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;

  padding: 12px 14px 12px 18px;
  border-left: 6px solid var(--iks-accent);
  border-radius: var(--iks-radius-sm);
  background:
    linear-gradient(90deg,
      rgba(22,163,74,.12) 0%,
      rgba(14,165,233,.08) 52%,
      rgba(255,255,255,0) 100%);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
}

body.iks-feature-article-page .entry-content > h2:first-child{
  margin-top: 24px;
}

body.iks-feature-article-page .entry-content h3{
  margin: 28px 0 14px;
  font-size: clamp(18px, 2.0vw, 22px);
  line-height: 1.4;
  letter-spacing: .01em;

  /* 添付②のような“黒帯＋チェック” */
  padding: 12px 16px 12px 48px;
  background: #2b2b2b;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .10);

  position: relative;
}

body.iks-feature-article-page .entry-content h3::before{
  content: "✓";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1;
  color: #ffffff;
}

body.iks-feature-article-page .entry-content h3 a{
  color: inherit;
  text-decoration: none;
}

body.iks-feature-article-page .entry-content h4{
  margin: 22px 0 10px;
  font-size: 16px;
  line-height: 1.45;
  position: relative;
  padding-left: 14px;
}
body.iks-feature-article-page .entry-content h4::before{
  content:"";
  position:absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(245,158,11,.85);
}

/* ---------
  Lists（読みやすく・気持ちよく）
--------- */
body.iks-feature-article-page .entry-content ul,
body.iks-feature-article-page .entry-content ol{
  margin: 12px 0 16px;
  padding-left: 1.35em;
}

body.iks-feature-article-page .entry-content li{
  margin: 8px 0;
}

/* Custom bullets (UL only) */
body.iks-feature-article-page .entry-content ul{
  list-style: none;
  padding-left: 1.1em;
}
body.iks-feature-article-page .entry-content ul > li{
  position: relative;
  padding-left: .65em;
}
body.iks-feature-article-page .entry-content ul > li::before{
  content:"";
  position:absolute;
  left: -1.05em;
  top: .85em;
  width: .42em;
  height: .42em;
  border-radius: 999px;
  background: rgba(22,163,74,.75);
}

/* ---------
  Images / figures
--------- */
body.iks-feature-article-page .entry-content img{
  border-radius: var(--iks-radius);
}

body.iks-feature-article-page figure,
body.iks-feature-article-page .wp-block-image{
  margin: 18px 0 20px;
}

body.iks-feature-article-page .wp-block-image img{
  border: 1px solid var(--iks-border);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
}

body.iks-feature-article-page figcaption,
body.iks-feature-article-page .wp-element-caption{
  margin-top: 10px;
  color: var(--iks-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------
  Group / cover blocks with background
--------- */
body.iks-feature-article-page .entry-content .wp-block-group.has-background,
body.iks-feature-article-page .entry-content .wp-block-cover{
  border-radius: var(--iks-radius);
  padding: 18px;
  margin: 18px 0 22px;
}

@media (min-width: 768px){
  body.iks-feature-article-page .entry-content .wp-block-group.has-background,
  body.iks-feature-article-page .entry-content .wp-block-cover{
    padding: 22px;
  }
}

body.iks-feature-article-page .entry-content .wp-block-group.has-background{
  border: 1px solid rgba(226,232,240,.85);
  box-shadow: 0 10px 18px rgba(15, 23, 42, .05);
}

/* ---------
  Quote / Callout
--------- */
body.iks-feature-article-page .wp-block-quote{
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--iks-accent-2);
  background: rgba(14,165,233,.08);
  border-radius: var(--iks-radius-sm);
  color: var(--iks-text);
}
body.iks-feature-article-page .wp-block-quote p{
  margin: 0;
}
body.iks-feature-article-page .wp-block-quote cite{
  display:block;
  margin-top: 8px;
  color: var(--iks-muted);
  font-size: 13px;
}

/* Pullquote */
body.iks-feature-article-page .wp-block-pullquote{
  border-top: 2px solid rgba(22,163,74,.25);
  border-bottom: 2px solid rgba(22,163,74,.25);
  padding: 18px 0;
  margin: 22px 0;
}
body.iks-feature-article-page .wp-block-pullquote blockquote{
  margin: 0;
}
body.iks-feature-article-page .wp-block-pullquote p{
  font-size: 18px;
  line-height: 1.7;
}

/* ---------
  Tables（スマホは横スクロール可）
--------- */
body.iks-feature-article-page .entry-content figure.wp-block-table{
  margin: 14px 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--iks-radius);
}
body.iks-feature-article-page .entry-content table{
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--iks-border);
  border-radius: var(--iks-radius);
  overflow: hidden;
  background: #fff;
}

body.iks-feature-article-page .entry-content th,
body.iks-feature-article-page .entry-content td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--iks-border);
  vertical-align: top;
}

body.iks-feature-article-page .entry-content th{
  text-align: left;
  background: var(--iks-soft);
  color: var(--iks-muted);
  font-weight: 800;
  font-size: 13px;
}

body.iks-feature-article-page .entry-content tr:nth-child(even) td{
  background: rgba(241,245,249,.55);
}
body.iks-feature-article-page .entry-content tr:last-child td{
  border-bottom: 0;
}

/* ---------
  Code / preformatted
--------- */
body.iks-feature-article-page .entry-content code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .92em;
  padding: .15em .35em;
  border: 1px solid rgba(226,232,240,.85);
  border-radius: 10px;
  background: rgba(241,245,249,.65);
}

body.iks-feature-article-page .entry-content pre,
body.iks-feature-article-page .wp-block-code{
  margin: 18px 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--iks-border);
  border-radius: var(--iks-radius);
  background: #0b1220;
  color: #e5e7eb;
  overflow: auto;
  line-height: 1.65;
}
body.iks-feature-article-page .entry-content pre code{
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}

/* ---------
  Buttons
--------- */
body.iks-feature-article-page .wp-block-button__link,
body.iks-feature-article-page .wp-block-file__button{
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  border: 1px solid rgba(22,163,74,.28);
  background: rgba(22,163,74,.10);
  color: var(--iks-text);
  box-shadow: 0 10px 18px rgba(15, 23, 42, .06);
  text-decoration: none;
}
body.iks-feature-article-page .wp-block-button__link:hover,
body.iks-feature-article-page .wp-block-file__button:hover{
  background: rgba(22,163,74,.16);
  border-color: rgba(22,163,74,.38);
}

/* ---------
  Separators
--------- */
body.iks-feature-article-page .entry-content hr,
body.iks-feature-article-page .wp-block-separator{
  border: 0;
  height: 1px;
  margin: 26px 0;
  background: linear-gradient(90deg, rgba(226,232,240,0), rgba(226,232,240,1), rgba(226,232,240,0));
}

/* ---------
  Internal links（特集記事 下部）
  - location × spot_category（3〜6件）
  - 関連カテゴリ（2〜4件）
--------- */
body.iks-feature-article-page .iks-feature-links{
  margin-top: 26px;
  padding-top: 6px;
}

body.iks-feature-article-page .iks-feature-links__inner{
  border-top: 1px solid var(--iks-border);
  padding-top: 18px;
}

body.iks-feature-article-page .iks-feature-links__title{
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: .02em;
}

@media (min-width: 768px){
  body.iks-feature-article-page .iks-feature-links__title{
    font-size: 20px;
  }
}

body.iks-feature-article-page .iks-feature-links__cardlist{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

@media (min-width: 680px){
  body.iks-feature-article-page .iks-feature-links__cardlist{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.iks-feature-article-page .iks-feature-links__carditem{
  margin: 0;
}

body.iks-feature-article-page .iks-feature-links__card{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border: 1px solid var(--iks-border);
  border-radius: var(--iks-radius);
  background: #fff;
  box-shadow: 0 10px 18px rgba(15, 23, 42, .06);
  text-decoration: none;
  color: var(--iks-text);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

body.iks-feature-article-page .iks-feature-links__card:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .10);
  border-color: rgba(22,163,74,.30);
}

body.iks-feature-article-page .iks-feature-links__cardlabel{
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.35;
}

body.iks-feature-article-page .iks-feature-links__cardarrow{
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  color: var(--iks-muted);
}

body.iks-feature-article-page .iks-feature-links__related{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(226,232,240,.95);
}

body.iks-feature-article-page .iks-feature-links__subtitle{
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 900;
  color: var(--iks-muted);
  letter-spacing: .03em;
}

body.iks-feature-article-page .iks-feature-links__chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.iks-feature-article-page .iks-feature-links__chip{
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(22,163,74,.26);
  background: rgba(22,163,74,.08);
  color: var(--iks-text);
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}

body.iks-feature-article-page .iks-feature-links__chip:hover{
  background: rgba(22,163,74,.14);
  border-color: rgba(22,163,74,.36);
  transform: translateY(-1px);
}

/* ---------
  Internal links（特集記事 下部：横スライダー版）
  - single-spot 下部の「関連スポット」モジュールと同等のUI
--------- */
body.iks-feature-article-page .spot-related{
  margin-top: 18px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(0,0,0,.08);
}
body.iks-feature-article-page .spot-related__title{
  font-size: 1.05rem;
  margin: 0 0 12px;
}
body.iks-feature-article-page .spot-related__block{
  margin: 16px 0 0;
}

/* 特集スライダー（feature-slider）と同じUIを特集記事内で使う */
body.iks-feature-article-page .spot-related .feature-slider{
  margin: 10px 0 18px;
}

body.iks-feature-article-page .spot-related .feature-slider--related{
  /* relatedはMap/Mediaの可読性を優先して大きく */
  --feature-slide-size: clamp(220px, 34vw, 420px);
  --feature-slide-gap: clamp(6px, 1.8vw, 12px);
  --feature-slide-peek: clamp(8px, 4vw, 18px);
  --feature-arrow-size: clamp(28px, 6.5vw, 40px);
  --feature-slide-adjacent-scale: .78;
  --feature-slide-small-scale: .62;
}

/* related：横スワイプを維持しつつ、縦スクロールが止まらないようにする */
body.iks-feature-article-page .spot-related .feature-slider__track{
  /* 縦スクロールはページに任せ、横ドラッグはJS側で制御（iOSのラバーバンド戻り対策） */
  touch-action: pan-y;
  /* Instaカード（縦長）混在時に、後続スライドが縦方向に引き伸ばされるのを防ぎつつ、
     正方形カード（Map等）は縦方向中央に置く */
  align-items: center;
}
body.iks-feature-article-page .spot-related .feature-slider__inner{
  max-width: 100%;
  margin: 0;
  padding: 0;
}
body.iks-feature-article-page .spot-related .feature-slider__head{
  margin-bottom: 10px;
}
body.iks-feature-article-page .spot-related .feature-slider__title{
  font-size: 1rem;
}
body.iks-feature-article-page .spot-related .feature-slider__more{
  font-size: .92rem;
  text-decoration: underline;
}

/* ===== related：メタ（タイトル＋距離）を"画像の上"に確保して、Insta/Mapに被せない ===== */
body.iks-feature-article-page .spot-related .feature-slider--related .feature-slider__meta{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 8px 12px 10px;
  background: rgba(255,255,255,.96);
  color: #0f172a;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
body.iks-feature-article-page .spot-related .feature-slider--related .feature-slider__tag{
  /* 以前の"画像上オーバーレイ"は廃止（規約配慮：埋め込みに被せない） */
  position: absolute;
  top: 8px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end; /* 距離バッジを右上に寄せる */
  font-size: .76rem;
  line-height: 1;
  padding: .34rem .6rem;
  border-radius: 999px;
  background: rgba(15,23,42,.88);
  color: #fff;
}
body.iks-feature-article-page .spot-related .feature-slider--related .feature-slider__caption{
  position: static;
  padding: 0 86px 0 0; /* 右上の距離バッジと重ならないよう余白を確保 */
  margin: 0;
  background: transparent;
  color: inherit;
}
body.iks-feature-article-page .spot-related .feature-slider--related .feature-slider__caption-text{
  font-size: clamp(.86rem, 1.6vw, 1.02rem);
  font-weight: 800;
  line-height: 1.2;
  text-shadow: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Insta embedをスライド内にフィット */
body.iks-feature-article-page .spot-related .feature-slider--related .feature-slider__insta{
  position: absolute;
  inset: 0;
  display: block;
}
body.iks-feature-article-page .spot-related .feature-slider--related .feature-slider__insta iframe,
body.iks-feature-article-page .spot-related .feature-slider--related .feature-slider__insta blockquote.instagram-media{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

/* related slider: spotのMap/Mediaをカード同様に表示するため、iframeをフィットさせ、クリックはカードリンクに集約 */
body.iks-feature-article-page .spot-related .feature-slider--related .feature-slider__media{ position: relative; }
body.iks-feature-article-page .spot-related .feature-slider--related .feature-slider__media iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

/* Instaカードだけ縦長（9:16）を優先して"切れ"を防ぐ */
body.iks-feature-article-page .spot-related .feature-slider--related .feature-slider__slide--insta .feature-slider__media{
  aspect-ratio: 9 / 16;
  background: #fff;
}

/* related：見えたらロード用のプレースホルダー（Map/Instagram） */
body.iks-feature-article-page .spot-related .feature-slider--related .feature-slider__placeholder{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  pointer-events: none;
  transition: opacity .2s ease;
}
body.iks-feature-article-page .spot-related .feature-slider--related iframe.feature-slider__lazy,
body.iks-feature-article-page .spot-related .feature-slider--related .feature-slider__insta{
  opacity: 0;
  transition: opacity .2s ease;
}
body.iks-feature-article-page .spot-related .feature-slider--related .feature-slider__media.is-loaded iframe.feature-slider__lazy,
body.iks-feature-article-page .spot-related .feature-slider--related .feature-slider__media.is-loaded .feature-slider__insta{
  opacity: 1;
}
body.iks-feature-article-page .spot-related .feature-slider--related .feature-slider__media.is-loaded .feature-slider__placeholder{
  opacity: 0;
}
body.iks-feature-article-page .spot-related .feature-slider--related .feature-slider__hit{
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  border-radius: inherit;
}
body.iks-feature-article-page .spot-related .feature-slider--related .feature-slider__hit:focus-visible{
  outline: 3px solid rgba(59,130,246,.45);
  outline-offset: 2px;
}
@media (max-width: 768px){
  body.iks-feature-article-page .spot-related .feature-slider--related{
    --feature-slide-size: clamp(260px, 82vw, 360px);
    --feature-slide-gap: clamp(6px, 4vw, 12px);
    --feature-slide-peek: clamp(10px, 12vw, 18px);
    --feature-arrow-size: 34px;
  }
}

/* ---------
  Compatibility
--------- */
.iks-usj-guide{
  color: var(--iks-text);
}


/* ikuSpot: Feature Article (feature_article) */

/* 旧: ページヘッダーのアイキャッチが二重になる場合があるので非表示 */
body.iks-feature-article-page .featured-image.page-header-image {
  display: none;
}

/* 読みやすい幅に揃える（GeneratePress のレイアウト自体は触らない） */
body.iks-feature-article-page .entry-header,
body.iks-feature-article-page .entry-content,
body.iks-feature-article-page .entry-footer {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

body.iks-feature-article-page .inside-article {
  padding: 24px 16px;
}

@media (min-width: 768px) {
  body.iks-feature-article-page .inside-article {
    padding: 32px 24px;
  }
}

/* 記事下の関連ブロックは少し余白を確保 */
body.iks-feature-article-page .spot-related {
  margin-top: 40px;
}

