/* Feature article and embedded spot detail presentation. */

/* ikuSpot: Feature Article (feature_article) */

/* 読みやすい幅に揃える（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;
}

/* Spot detail explanation should use the card width, not the article text column. */
@media (min-width: 769px){
  .iks-spot-description .iks-spot-description__content,
  .iks-spot-description .iks-spot-description__body.iks-article-prose,
  .iks-spot-description .iks-spot-description__body.entry-content{
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  .iks-spot-description .iks-spot-description__body > :where(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, figure, .wp-block-group, .wp-block-image, .wp-block-table, .wp-block-columns, .wp-block-cover, .wp-block-media-text){
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }
}

/* Spot detail embedded feature article. */
.spot-about.spot-feature-article,
.spot-feature-article{
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 28px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.spot-feature-article__intro{
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  padding: 0 0 12px 14px;
  border-bottom: 1px solid rgba(18, 32, 51, 0.1);
}

.spot-feature-article__intro::before{
  content: "";
  position: absolute;
  top: 0.08em;
  bottom: 12px;
  left: 0;
  width: 4px;
  min-height: 1.35em;
  border-radius: 999px;
  background: #16a34a;
}

.spot-feature-article__article,
.spot-feature-article .spot-about__content,
.spot-feature-article .entry-content{
  box-sizing: border-box;
  width: 100%;
  max-width: none;
}

.spot-feature-article__eyebrow{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #122033;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
}

.spot-feature-article .entry-header,
.spot-feature-article__entry-header{
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(18, 32, 51, 0.1);
}

.spot-feature-article .entry-title,
.spot-feature-article__entry-title{
  margin: 0;
  color: #122033;
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.spot-feature-article .iks-feature-article-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 9px;
  margin: 0;
  color: #6b7683;
  font-size: 0.82rem;
  line-height: 1.7;
}

.spot-feature-article .iks-feature-article-meta__separator{
  color: #c3cad2;
}

.spot-feature-article__card{
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  padding: 18px;
  border: 1px solid rgba(18, 32, 51, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(18, 32, 51, 0.08);
  overflow: hidden;
}

.spot-feature-article__card--no-image{
  display: block;
}

.spot-feature-article__media-link{
  box-sizing: border-box;
  flex: 1 1 clamp(280px, 36%, 380px);
  display: block;
  width: 100%;
  min-width: min(100%, 280px);
  max-width: min(420px, 100%);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #eef2f7;
  position: relative;
  transform: none;
}

.spot-feature-article__image{
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.spot-feature-article__media-link:hover .spot-feature-article__image{
  transform: scale(1.025);
}

.spot-feature-article__body{
  display: flex;
  flex: 999 1 320px;
  min-width: 0;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: static;
  transform: none;
}

.spot-feature-article .spot-feature-article__card-header{
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

.spot-feature-article__title-link{
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
  word-break: normal;
}

.spot-feature-article__title-link:hover,
.spot-feature-article__title-link:focus-visible{
  color: #0f766e;
  text-decoration: underline;
}

.spot-feature-article__title-link:focus-visible{
  outline: 2px solid rgba(15, 118, 110, 0.22);
  outline-offset: 3px;
}

.spot-feature-article__meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: #6b7683;
  font-size: 0.82rem;
  line-height: 1.7;
  max-width: 100%;
}

.spot-feature-article__meta time{
  margin-left: 0.2em;
}

.spot-feature-article__meta-separator{
  color: #c3cad2;
}

.spot-feature-article__description{
  margin: 0;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.spot-feature-article__cta{
  display: inline-flex;
  position: static;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: auto;
  padding: 0 18px;
  border-radius: 8px;
  background: #122033;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(18, 32, 51, 0.14);
  transform: none;
}

.spot-feature-article__cta:hover,
.spot-feature-article__cta:focus-visible{
  background: #0f766e;
  color: #ffffff;
  text-decoration: none;
}

.spot-feature-article__cta:focus-visible{
  outline: 2px solid rgba(15, 118, 110, 0.24);
  outline-offset: 3px;
}

.spot-feature-article__floating-close{
  appearance: none;
  -webkit-appearance: none;
  position: fixed;
  top: calc(var(--iks-topbar-top, 0px) + env(safe-area-inset-top, 0px) + 10px);
  right: calc(env(safe-area-inset-right, 0px) + 12px);
  z-index: 2010;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  min-height: 42px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #122033;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transition:
    transform 0.22s ease,
    opacity 0.22s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease,
    visibility 0s linear 0.22s;
  -webkit-tap-highlight-color: transparent;
}

body.admin-bar:not(.tax-location) .spot-feature-article__floating-close{
  top: calc(var(--wp-admin--admin-bar--height, 32px) + env(safe-area-inset-top, 0px) + 10px);
}

body.iks-mobile-shell-desktop-preview .spot-feature-article__floating-close{
  right: calc(50vw - var(--iks-mobile-shell-desktop-preview-half-w, 50vw) + 18px);
}

.spot-feature-article.is-expanded .spot-feature-article__floating-close:not(.is-activity-hidden):not(.is-media-hidden):not(.is-hidden-by-bottom-close){
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.spot-feature-article__floating-close:hover,
.spot-feature-article__floating-close:focus-visible{
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
  outline: none;
}

.spot-feature-article__floating-close:focus-visible{
  border-color: rgba(37, 99, 235, 0.38);
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.spot-feature-article .entry-content,
.spot-feature-article .spot-about__text{
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  color: #26364a;
  font-size: 0.98rem;
  line-height: 1.9;
}

.spot-feature-article .entry-content > *{
  box-sizing: border-box;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.spot-feature-article .entry-content p{
  margin: 0 0 1em;
}

.spot-feature-article .entry-content h2{
  position: relative;
  margin: 34px 0 18px;
  padding: 0 0 10px 16px;
  border-bottom: 1px solid rgba(18, 32, 51, 0.16);
  color: #122033;
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.48;
  letter-spacing: 0;
}

.spot-feature-article .entry-content h2::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 4px;
  height: 1.2em;
  border-radius: 999px;
  background: #122033;
}

.spot-feature-article .entry-content h3{
  position: relative;
  margin: 28px 0 16px;
  padding: 13px 16px 13px 24px;
  border-radius: 8px;
  background: #122033;
  color: #ffffff;
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0;
}

.spot-feature-article .entry-content h3::before{
  content: "";
  position: absolute;
  left: 12px;
  top: 11px;
  bottom: 11px;
  width: 4px;
  border-radius: 999px;
  background: #f8d989;
}

.spot-feature-article .entry-content h4{
  position: relative;
  margin: 22px 0 10px;
  padding-left: 14px;
  color: #122033;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.48;
  letter-spacing: 0;
}

.spot-feature-article .entry-content h4::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.88);
}

.spot-feature-article .entry-content :is(ul, ol){
  margin: 14px 0 18px;
  padding-left: 1.35em;
}

.spot-feature-article .entry-content li{
  margin: 8px 0;
}

.spot-feature-article .entry-content img{
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.spot-feature-article .entry-content figure,
.spot-feature-article .entry-content .wp-block-image{
  max-width: 100%;
  margin: 20px 0 22px;
}

.spot-feature-article .entry-content .wp-block-image img{
  border: 1px solid rgba(18, 32, 51, 0.1);
  box-shadow: 0 10px 22px rgba(18, 32, 51, 0.07);
}

.spot-feature-article .entry-content figcaption,
.spot-feature-article .entry-content .wp-element-caption{
  margin-top: 9px;
  color: #6b7683;
  font-size: 0.82rem;
  line-height: 1.6;
}

.spot-feature-article .entry-content .ikukore-article-summary{
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  gap: 14px;
  margin: 22px 0 26px;
  padding: 16px;
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 8px;
  background: #f7fbf8;
}

.spot-feature-article .entry-content .ikukore-article-summary__side{
  border-radius: 999px;
  background: linear-gradient(180deg, #16a34a, #38bdf8);
}

.spot-feature-article .entry-content .ikukore-article-summary__title,
.spot-feature-article .entry-content .ikukore-family-check__title{
  margin: 0 0 10px;
  color: #122033;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.spot-feature-article .entry-content .ikukore-article-summary__list{
  margin: 0;
  padding-left: 1.2em;
}

.spot-feature-article .entry-content .ikukore-article-summary__item{
  margin: 6px 0;
}

.spot-feature-article .entry-content .ikukore-family-check{
  margin: 22px 0 26px;
  padding: 16px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 8px;
  background: #fffaf0;
}

.spot-feature-article .entry-content .ikukore-family-check__grid{
  display: grid;
  gap: 10px;
}

.spot-feature-article .entry-content .ikukore-family-check__item,
.spot-feature-article .entry-content .ikukore-family-check__note{
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(18, 32, 51, 0.06);
}

.spot-feature-article .entry-content .ikukore-family-check__note{
  background: #fff7ed;
}

.spot-feature-article .entry-content .ikukore-family-check__icon{
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eaf7ee;
}

.spot-feature-article .entry-content .ikukore-family-check__label{
  margin: 0 0 3px;
  color: #122033;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.spot-feature-article .entry-content .ikukore-family-check__text{
  margin: 0;
  color: #3b4a5d;
  font-size: 0.92rem;
  line-height: 1.7;
}

.spot-feature-article .entry-content figure.wp-block-table{
  max-width: 100%;
  margin: 26px 0 30px;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid rgba(18, 32, 51, 0.08);
  border-radius: 8px;
  background: #fffdf8;
}

.spot-feature-article .entry-content table{
  width: 100%;
  max-width: 100%;
  margin: 22px 0 26px;
  border: 1px solid rgba(18, 32, 51, 0.1);
  border-collapse: collapse;
  background: #ffffff;
  color: #122033;
  font-size: 0.94rem;
  line-height: 1.75;
}

.spot-feature-article .entry-content figure.wp-block-table table{
  margin: 0;
  border: 0;
}

.spot-feature-article .entry-content th,
.spot-feature-article .entry-content td{
  padding: 12px 14px;
  border: 1px solid rgba(18, 32, 51, 0.1);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.spot-feature-article .entry-content th{
  background: #f7f4ef;
  font-weight: 800;
}

.spot-feature-article .entry-content strong,
.spot-feature-article .entry-content b{
  --iks-marker-color: rgba(245, 158, 11, 0.35);
  padding: 0 0.12em;
  border-radius: 5px;
  background-image: linear-gradient(transparent 62%, var(--iks-marker-color) 0);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 0% 100%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font-weight: 800;
  transition: background-size 720ms cubic-bezier(.2, .7, .2, 1);
}

.spot-feature-article .entry-content strong.is-red-highlight,
.spot-feature-article .entry-content b.is-red-highlight{
  --iks-marker-color: rgba(255, 92, 92, 0.35);
}

.spot-feature-article .entry-content strong.iks-marker-inview,
.spot-feature-article .entry-content b.iks-marker-inview{
  background-size: 100% 100%;
}

.spot-feature-article .entry-content em,
.spot-feature-article .entry-content i{
  box-sizing: border-box;
  display: block;
  width: fit-content;
  max-width: min(720px, calc(100% - 60px));
  margin: 22px 0 22px 56px;
  padding: 13px 16px;
  border-radius: 8px;
  background: #edf8f2;
  color: #122033;
  font-style: normal;
  line-height: 1.8;
  position: relative;
}

.spot-feature-article .entry-content em::before,
.spot-feature-article .entry-content i::before{
  content: "";
  position: absolute;
  left: -52px;
  top: 12px;
  width: 40px;
  height: 40px;
  background-image: url("https://ikukore.jp/wp-content/uploads/2026/02/コメント.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.spot-feature-article .entry-content em::after,
.spot-feature-article .entry-content i::after{
  content: "";
  position: absolute;
  left: -9px;
  top: 17px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 9px solid #edf8f2;
}

.spot-feature-article .entry-content em.ikukore-comment-legacy--dad,
.spot-feature-article .entry-content i.ikukore-comment-legacy--dad{
  margin-right: 56px;
  margin-left: auto;
  background: #eef4ff;
}

.spot-feature-article .entry-content em.ikukore-comment-legacy--dad::before,
.spot-feature-article .entry-content i.ikukore-comment-legacy--dad::before{
  right: -52px;
  left: auto;
  background-image: url("https://ikukore.jp/wp-content/uploads/2026/05/コメント２.png");
}

.spot-feature-article .entry-content em.ikukore-comment-legacy--dad::after,
.spot-feature-article .entry-content i.ikukore-comment-legacy--dad::after{
  right: -9px;
  left: auto;
  border-right: 0;
  border-left: 9px solid #eef4ff;
}

.spot-feature-article .entry-content .ikukore-comment{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0;
}

.spot-feature-article .entry-content .ikukore-comment__avatar{
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.spot-feature-article .entry-content .ikukore-comment__bubble{
  position: relative;
  max-width: min(720px, calc(100% - 54px));
  padding: 13px 16px;
  border-radius: 8px;
  background: #edf8f2;
  color: #122033;
  line-height: 1.8;
}

.spot-feature-article .entry-content .ikukore-comment--mom{
  justify-content: flex-start;
}

.spot-feature-article .entry-content .ikukore-comment--mom .ikukore-comment__bubble::before{
  content: "";
  position: absolute;
  left: -9px;
  top: 17px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 9px solid #edf8f2;
}

.spot-feature-article .entry-content .ikukore-comment--dad{
  justify-content: flex-end;
}

.spot-feature-article .entry-content .ikukore-comment--dad .ikukore-comment__bubble{
  background: #eef4ff;
}

.spot-feature-article .entry-content .ikukore-comment--dad .ikukore-comment__bubble::after{
  content: "";
  position: absolute;
  right: -9px;
  top: 17px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 9px solid #eef4ff;
}

.spot-about.spot-feature-article.is-collapsible.is-collapsed .spot-about__content{
  max-height: 360px;
}

.spot-feature-article .spot-about__fade{
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 78%);
}

.spot-feature-article .spot-about__toggle{
  border-color: rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #122033;
}

.spot-feature-article .spot-about__toggle:hover,
.spot-feature-article .spot-about__toggle:focus-visible{
  border-color: rgba(15, 23, 42, 0.18);
  background: #f8fafc;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

@media (min-width: 768px){
  .spot-about.spot-feature-article.is-collapsible.is-collapsed .spot-about__content{
    max-height: 420px;
  }

  .spot-feature-article .entry-title,
  .spot-feature-article__entry-title{
    font-size: 1.48rem;
  }
}

@media (max-width: 640px){
  .spot-about.spot-feature-article,
  .spot-feature-article{
    margin-top: 24px;
    padding: 0;
  }

  .spot-feature-article__intro{
    margin-bottom: 16px;
  }

  .spot-feature-article__card{
    gap: 14px;
    padding: 14px;
  }

  .spot-feature-article__media-link,
  .spot-feature-article__body{
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
  }

  .spot-feature-article__description{
    font-size: 0.93rem;
    line-height: 1.7;
  }

  .spot-feature-article__cta{
    width: 100%;
    min-height: 44px;
  }

  .spot-feature-article__floating-close{
    right: calc(env(safe-area-inset-right, 0px) + 10px);
    min-width: 62px;
    min-height: 40px;
    padding-right: 13px;
    padding-left: 13px;
    font-size: 0.86rem;
  }

  .spot-feature-article .entry-content,
  .spot-feature-article .spot-about__text{
    font-size: 0.95rem;
    line-height: 1.82;
  }

  .spot-feature-article .entry-content h2{
    font-size: 1.18rem;
  }

  .spot-feature-article .entry-content h3{
    padding: 12px 14px 12px 22px;
    font-size: 1.06rem;
  }

  .spot-feature-article .entry-content th,
  .spot-feature-article .entry-content td{
    padding: 10px 11px;
  }

  .spot-feature-article .entry-content em,
  .spot-feature-article .entry-content i{
    max-width: calc(100% - 46px);
    margin-left: 46px;
    padding: 12px 14px;
  }

  .spot-feature-article .entry-content em::before,
  .spot-feature-article .entry-content i::before{
    left: -46px;
    width: 36px;
    height: 36px;
  }

  .spot-feature-article .entry-content em.ikukore-comment-legacy--dad,
  .spot-feature-article .entry-content i.ikukore-comment-legacy--dad{
    margin-right: 46px;
    margin-left: auto;
  }

  .spot-feature-article .entry-content em.ikukore-comment-legacy--dad::before,
  .spot-feature-article .entry-content i.ikukore-comment-legacy--dad::before{
    right: -46px;
    left: auto;
  }
}

@media (prefers-reduced-motion: reduce){
  .spot-feature-article__image{
    transition: none;
  }

  .spot-feature-article .entry-content strong,
  .spot-feature-article .entry-content b{
    transition: none;
    background-size: 100% 100%;
  }
}
