@charset "UTF-8";


html {
  font-size: 100%;
}

body {
  color: #333;
  font-family: Noto Serif JP;
  letter-spacing: 0.1em;
}

html, body {
  height: 100%;
}

/* 背景スクロール禁止 */
body.is-fixed,
body.no-scroll {
  overflow: hidden;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

li {
  list-style: none;
}

.wrapper {
  width: 100%;
  max-width: 1000px;
  padding-inline: 20px;
  padding-block: 120px;
  margin-inline: auto;
}

.wrappersearch {
  max-width: 950px;
  padding-inline: 20px;
  padding-block: 100px;
  margin-inline: auto;
}

/*--------------------
  ボタン
--------------------*/
.kyoumei-button,
.contact-button,
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 30px 75px;
  margin-top: 20px;
  border-radius: 9999px;

  /* 金色グラデーション */
  background: linear-gradient(
      135deg,
      #f7e7a1 0%,
      #fbeec1 25%,
      #d6ad60 75%,
      #b08a3e 100%
  );

  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;

  /* ふわっと影 */
  box-shadow:
      0 10px 25px rgba(176, 138, 62, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);

  transition: all 0.3s ease;
}

.kyoumei-button::before,
.contact-button::before,
.submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(255,255,255,0.4),
      transparent 60%
  );
  pointer-events: none;
  opacity: 0;
}

.kyoumei-button:hover,
.contact-button:hover,
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow:
      0 14px 30px rgba(176, 138, 62, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.kyoumei-button:hover::before,
.contact-button:hover::before {
  opacity: 1;
}

/*------------------------------
コンテンツをふわっと表示
------------------------------*/

/* 共通：ふわっと表示 */
.fade-in {
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.98);
  transition:
    opacity 1.6s ease,
    filter 1.6s ease,
    transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 表示された状態 */
.fade-in.is-show {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/*==============================
header
==============================*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0; /* ← 高さを持たせない */
  z-index: 2000;
  pointer-events: none;
}

/*-----ハンバーガーメニュ-----*/
.toggle {
  position: fixed;
  top: 80px;
  right: 80px;
  width: 50px;
  cursor: pointer;
  pointer-events: auto;
}

.gold-blur-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  transform: translate(-50%, -50%);
  border-radius: 50%;

  background: linear-gradient(
      90deg,
      #F7E7A9 0%,
      #E6C56E 37%,
      #C9A24D 56%,
      #B08D3E 69%,
      #F5E6A1 88%
  );

  filter: blur(30px);
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.toggle span {
  display: block;
  width: 50px;
  height: 2px;
  background-color: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 線の間隔：15px */
.toggle span + span {
  margin-top: 15px;
}

/* 閉じた時のアニメーション */
.toggle.active span:nth-child(1) {
  transform: translateY(17px) rotate(45deg);
}

.toggle.active span:nth-child(2) {
  opacity: 0;
}

.toggle.active span:nth-child(3) {
  transform: translateY(-17px) rotate(-45deg);
}

/* -----モーダル----- */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  width: 100%;
  height: 100%;
  background: #fff;
  overflow-y: auto;

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.985);
  filter: blur(6px);

  transition:
      opacity 2.4s cubic-bezier(.16,1,.3,1),
      transform 2.4s cubic-bezier(.16,1,.3,1),
      filter 2.4s cubic-bezier(.16,1,.3,1),
      visibility 0s linear 2.4s;
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  filter: blur(0);

  transition-delay: 0s;
}

.search-title {
  text-align: center;
  margin-bottom: 40px;
}

.search-input {
  position: relative;
  max-width: 580px;
  margin: 0 auto 80px;
}

.search-input input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  border-radius: 50px;
  border: 1px solid #333;
}

.icon-search {
  width: 33px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.icon-search:hover {
  scale: calc(1.2);
}

.search-text {
  text-align: center;
  padding-block: 40px;
  position: relative;
}

.search-text::before {
  content: "";
  position: absolute;
  top: 0;          /* 上に線 */
  left: 0;
  width: 100%;
  height: 1px;

  background: linear-gradient(
    90deg,
    rgba(231,200,120,0) 0%,
    rgba(231,200,120,0.6) 20%,
    #E7C878 50%,
    rgba(231,200,120,0.6) 80%,
    rgba(231,200,120,0) 100%
  );
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin: 0 auto;
  width: 100%;
  align-items: start; 
}

.category-box {
  background: #FCF9EF;
  border: solid 1px #E7C878;
  border-radius: 25px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.category-box .jp {
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
}

.category-box .en {
  text-align: center;
  margin-block: 40px;
}
.category-box.active {
  background-color: #FBF7EE;
  border-color: #D2B670;
}

.category-box.active .category-header {
  transform: translateY(-2px);
  transition: transform 0.25s ease;
}

.category-header {
  padding: 70px 30px 30px 30px;
  cursor: pointer;
}

.category-header:hover {
  border-color: #C9B57A; /* 少しだけ濃く */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.category-content {
  margin: 0px 30px 30px 30px;
  padding-top: 20px;
  border-top: 1px solid #E7D8B5;
  display: none; /* JSで開閉 */
}

.category-content label {
  display: block;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.category-content label:has(input:checked) {
  color: #222;
}

.category-content select {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 12px;

  font-family: 'Noto Serif JP', serif;
  font-size: 0.875rem;
  color: #797878;

  background-color: #fff;
  border: 1px solid #E7D8B5;
  border-radius: 8px;

  appearance: none;
  background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0 L5 6 L10 0' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.category-content label {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 0.875rem;
  color: #333;
  margin-bottom: 12px;
  cursor: pointer;
}

.category-content input {
  position: relative;
}

.search-btn {
  display: block;
  position: relative;
  width: 100%;
  max-width: 50%;
  padding: 14px 50px 14px 20px;
  border-radius: 50px;
  background: #FCF9EF;
  border: solid 1px #E7C878;
  margin: 40px auto 0;
}

.icon-search2 {
  width: 33px;
  position: absolute;
  right: 20px;
  top: 50%;
  padding-left: 10px;
  transform: translateY(-50%);
  cursor: pointer;
}

.search-btn:hover {
  border-color: #C9B57A; /* 少しだけ濃く */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* 暗転（オーバーレイ） */
.overlay,
.page-transition {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;

  background-color: rgba(0,0,0,0.8);
  opacity: 0;
  transform: scale(1.6);
  filter: blur(16px);
  transition:
      opacity 1.6s cubic-bezier(.12,1,.25,1),
      transform 1.6s cubic-bezier(.12,1,.25,1),
      filter 1.6s cubic-bezier(.12,1,.25,1);
} 

.overlay.active,
.page-transition.active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/*------------------------------
mainvisual
------------------------------*/
.mainvisual {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.mainvisual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mv-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.25);
  pointer-events: none; /* クリックは子要素だけ */
}

.mv-logo {
  position: absolute;
  bottom: 40px;
  left: 80px;
  color: #fff;
  letter-spacing: 0.12em;

  opacity: 0;
  transition: opacity 1.8s ease;
}

/* mainvisual が is-show になったらロゴ表示 */
.mainvisual.is-show .mv-logo {
  opacity: 1;
  transition-delay: 0.6s; /* ← 遅らせる時間 */
}

.mv-logo .jp {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.mv-logo .en {
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.8;
}

.mv-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.mv-scroll .arrow {
  display: block;
  width: 30px;
  height: 30px;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transform: rotate(45deg);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% {
    opacity: 0;
    transform: translate(-50%, -5px) rotate(45deg);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 10px) rotate(45deg);
  }
}

.mv-sound {
  position: absolute;
  bottom: 40px;
  right: 80px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  color: #fff;
  padding: 16px 14px;
  font-size: 1rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  pointer-events: auto; /* ← クリック可能に */
  transition: opacity 0.3s ease;
}

.mv-sound span {
  font-size: 1rem;
}

.mv-sound:hover {
  opacity: 0.7;
  background: rgba(255,255,255,0.3);
}

/*------------------------------
topic
------------------------------*/
.topic {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.topic a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.topic a:hover {
  cursor: pointer;
}

.topic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-textbox {
  position: absolute;
  bottom: 40px;
  right: 80px;
  background: rgba(255,255,255,0.5);
  padding: 30px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;

  opacity: 0;
  transition: opacity 2.4s ease;
}

.topic.is-show .topic-textbox {
  opacity: 1;
  transition-delay: 0.4s;
}

/* 修正：タイトルとテキスト共通 */
.topic-title, 
.topic-text {
  writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl; /* IE用（念のため） */
  text-orientation: mixed;
  display: block; /* 縦書きを確定させる */
}

/* タイトル固有の設定 */
.topic-title {
  margin: 0;
  font-size: 1.5rem; /* お好みのサイズに */
  line-height: 1.5;
  white-space: nowrap; /* タイトルが勝手に改行されないように */
}

/* 本文固有の設定 */
.topic-text {
  margin: 0;
  font-size: 1rem;
  line-height: 2;
}

/*------------------------------
kyoumei
------------------------------*/
.kyoumei {
  width: 100%;
  height: 100vh;
  background-image: url("../img/kyoumeihaikei.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;  
}

.kyoumei-textbox {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kyoumei-text {
  font-size: 1.5rem;
  text-align: center;
  padding-bottom: 40px;
  line-height: 2;
}

/*------------------------------
 footer
------------------------------*/
#footer {
  background: #1A1A1A;
}

.footer-container {
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  text-align: center;
  border-top: solid 1px #E7C878;
  border-bottom: solid 1px #E7C878;
  padding: 20px;
}

.footer-logo h2 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  padding-block: 5px;
}

.footer-logo p {
  color: #E7C878;
}

.footer-link {
  display: flex;
  flex-direction: column;
}

.search-link,
.link {
  color: #E7C878;
  margin-bottom: 20px;
  cursor: pointer;
  display: block;   /* ← blockじゃなく inline-block */
  padding: 5px 0px;
  text-decoration: none;
}

.search-link span,
.link span {
  position: relative;
  display: inline-block;
}

.search-link span::after,
.link span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: #E7C878;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.search-link:hover span::after,
.link:hover span::after {
  transform: scaleX(1);
}


.topic-container {
  max-width: 960px;
  margin-inline: auto;
  margin-bottom: 100px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.footer-topic {
  display: inline-block;
  width: 100%;
  max-width: 250px;
  aspect-ratio: 16 / 9;
  border: solid 1px #fff;
}

.footer-topic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.under-text {
  color: #fff;
  display: flex;
  justify-content: space-between;
  max-width: 700px;
  margin-inline: auto;
}

.under-text a {
  color: #fff;
}

.under-text a:hover {
  opacity: 0.7;
}

/*==============================
 single.html
==============================*/
/*---セクション間区切りの下線---*/
.presence::before, 
.emotion::before, 
.voice::before, 
.infographic::before, 
.story::before, 
.gallery::before, 
.support::before, 
.guide::before, 
.contact::before,
.article::before {
  content:"";
  position: absolute;
  bottom: 0;
  left: 0;  
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(231,200,120,0) 0%,
    rgba(231,200,120,0.6) 20%,
    #E7C878 50%,
    rgba(231,200,120,0.6) 80%,
    rgba(231,200,120,0) 100%
  ); 
}

/*---セクション見出し（写真に重ねるバージョン）---*/
.sec-title-1 {
  position: absolute;
  top: 40px;
  left: 40px;
  display: inline-block;
  font-size: 1rem;
  color: #505050; 
  background: rgba(255,255,255,0.5);
  padding: 5px;

  opacity: 0;
  transition: opacity 2.4s ease;
}

.presence.is-show .sec-title-1, 
.support.is-show .sec-title-1 {
  opacity: 1;
  transition-delay: 0.6s;
}

/*---セクション見出し（白背景用）---*/
.sec-title-2 {
  position: absolute;
  display: inline-block;   /* ← 文字幅を基準にする */
  top: 40px;
  left: 40px;
  font-size: 1rem;
  color: #505050;
  padding-bottom: 15px;

  opacity: 0;
  transition: opacity 2.4s ease;
}

.sec-title-2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 1px;

  background: linear-gradient(
    90deg,
    rgba(231,200,120,0) 0%,
    rgba(231,200,120,0.6) 20%,
    #E7C878 50%,
    rgba(231,200,120,0.6) 80%,
    rgba(231,200,120,0) 100%
  );

  opacity: 0;
  transition: opacity 2.4s ease;
}

.emotion.is-show .sec-title-2,
.emotion.is-show .sec-title-2::after, 
.voice.is-show .sec-title-2,
.voice.is-show .sec-title-2::after, 
.infographic.is-show .sec-title-2,
.infographic.is-show .sec-title-2::after, 
.story.is-show .sec-title-2,
.story.is-show .sec-title-2::after, 
.gallery.is-show .sec-title-2,
.gallery.is-show .sec-title-2::after, 
.guide.is-show .sec-title-2,
.guide.is-show .sec-title-2::after {
  opacity: 1;
  transition-delay: 0.6s;
}

/*------------------------------
 section/presence
------------------------------*/
.presence {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center; 
}

.presence-img {
  width: 100%;
  height: 80vh;
  position: relative;
}

.presence-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.presence-text {
  display: inline-block;
  margin-inline: auto;
  padding: 30px;

  opacity: 0;
  transition: opacity 2.4s ease;
}

.presence.is-show .presence-text {
  opacity: 1;
  transition-delay: 0.6s;
}

.presence-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  padding-bottom: 10px;
}

.presence-text p {
  font-size: 1rem;
}

/*------------------------------
 section/voice
------------------------------*/
.voice {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  
  padding-block: clamp(100px, 14vw, 140px);
}

.media-container {
  position: relative; 

  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 20px;

  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: clamp(60px, 10vw, 100px);
}

.media-group {
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 40px;
  padding-inline: 20px;
}

.media-group-audio {
  row-gap: 20px;
}

/* 下段：タイトルを強制的に同じ行へ */
.media-title {
  justify-self: center;/*Gridの1マス（セル）の中で、その要素を左右中央に配置する*/
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-align: center;
}

/* ---------- YouTube ---------- */
.media-video {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  width: 100%;
}

.video-wrapper {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: visible; /
}

.video-wrapper::before {
  content: "";
  position: absolute;
  inset: -25px;

  background: url("../img/youtube-frame.svg") no-repeat center / contain;

  z-index: 2;
  pointer-events: none;
}

.video-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 96%;
  height: 96%;

  transform: translate(-50%, -50%);
  z-index: 1;
}

/* ---------- Audio ---------- */
.media-audio {
  display: flex;
  align-items: center;
  height: 200px;  
}

/* 全体の細い線 */
.audio-line {
  flex: 1;
  position: relative;
  width: 100%;
  height: 1px;
  background: rgba(0,0,0,0.2);
  overflow: hidden;
}

.audio-play:hover {
  opacity: 0.6;
}

/* 進んでいく色の線 */
.audio-line-progress {
  flex: 1;
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.6) 70%,
    rgba(0,0,0,0.9) 100%
  );
  filter: blur(0.3px);
}

.audio-wrapper {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  gap: 10px;
}

/*--*/
/* 動画クリック用のプレースホルダー */
.video-wrapper {
  cursor: pointer;
  background: transparent; /* 動画がない時の背景色 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-overlay {
  z-index: 3;
  width: 60px;
  height: 60px;
  border: solid 1px rgba(0,0,0,0.3);
  border-radius: 20px;
  transition: transform 0.3s;

  display: flex;
  justify-content: center; /* 左右中央 */
  align-items: center;     /* 上下中央 */
}

.play-button-icon {
  /* img 自体に幅を指定しておくと安定します（お好みのサイズに） */
  width: 50%; 
  height: auto;
  display: block;
}

.video-wrapper:hover .play-overlay {
  transform: scale(1.1);
  opacity: 0.6;
}

/* モーダル全体のスタイル */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;

  /* ふわっとさせるための設定 */
  opacity: 0;
  visibility: hidden; /* display:noneの代わりにこれを使うとアニメーションが効く */
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* 表示された時の状態 */
.video-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  z-index: 10;

  /* 少し下から浮き上がるような演出を加える場合（お好みで） */
  transform: translateY(20px);
  transition: transform 0.5s ease;
}

.video-modal.is-active .modal-content {
  transform: translateY(0);
}

.modal-content iframe {
  width: 100%;
  height: 100%;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 11;
}

/*------------------------------
 section/emotion infographic guide
------------------------------*/
.emotion,
.infographic,
.guide {
  width: 100%;
  position: relative;
  padding: 80px 40px;
}

.inner {
  width: 100%;
  max-width: 1000px;
  height: auto;
  padding: 120px 20px 40px 20px;
  margin-inline: auto;
}

.inner img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.emotion-text,
.infographic-text,
.guide-text,
.emotionlink-text,
.infographic-text,
.guidelink-text {
  display: block;
  width: fit-content;
  margin-inline: auto;
  padding: 30px;

  opacity: 0;
  transition: opacity 2.4s ease;
}

.emotion.is-show .emotion-text,
.infographic.is-show .infographic-text,
.guide.is-show .guide-text,
.emotion.is-show .emotionlink-text,
.infographic.is-show .infographiclink-text,
.guide.is-show .guidelink-text {
  opacity: 1;
  transition-delay: 0.6s;
}

.emotion-text p,
.infographic-text p,
.guide-text p {
  font-size: 1rem;
}

.emotion-link-item,
.infographic-link-item,
.guide-link-item {
  display: block;      /* インライン要素からブロック要素に変更 */
  width: fit-content;  /* 幅を中身の文字に合わせる */
  margin-left: auto;   /* 左右の余白を自動調整して中央へ */
  margin-right: auto;
  text-align: center;
}

.emotion-link-item:hover,
.infographic-link-item:hover,
.guide-link-item:hover {
  border-bottom: solid 1px;
}

/* 1. カスタムHTML（iframeなど）を中央に寄せる */
.emotion-raw-html {
  display: flex;
  flex-direction: column;
  align-items: center; /* 子要素（iframeなど）を水平中央に */
  justify-content: center;
}

.emotion-raw-html iframe {
  max-width: 100%; /* スマホではみ出さないように */
}

/* 2. リッチテキスト（装飾用）の調整 */
.emotion-rich-text {
  display: block;
  width: fit-content;      /* 横幅を中身（一番長い行）に合わせる */
  max-width: 100%;        /* 親要素からはみ出さないように */
  margin-inline: auto;    /* 要素自体を中央に寄せる */
  text-align: left;       /* テキスト自体は左寄せを維持 */
  padding: 30px;          /* 既存の .emotion-text と合わせるなら */
  
  /* フェードインの挙動を合わせる場合 */
  opacity: 0;
  transition: opacity 2.4s ease;
}

/* フェードイン表示の設定をリッチテキストにも適用 */
.emotion.is-show .emotion-rich-text {
  opacity: 1;
  transition-delay: 0.6s;
}

/*------------------------------
 section/story
------------------------------*/
.story {
  width: 100%;
  background: #F7F7F7;
  position: relative;
  display: flex;
  justify-content: center; 
  align-items: center;
  padding: 80px 40px; 
}

.vertical-box {
  display: flex;
  justify-content: center;
}

.story-text {
  writing-mode: vertical-rl;
  line-height: 2.5;
  letter-spacing: 0.3em; 
  padding-inline: 40px;
}

/*------------------------------
 section/gallery
------------------------------*/
.gallery {
  width: 100%;
  position: relative;
  flex-direction: column;
  padding-block: clamp(80px, 12vw, 160px);

  display: flex;
  align-items: center;
}

.slick-slider {
  width: 100%;
  list-style: none;
}
.slide {
  position: relative;
  padding: 0 20px; /* 画像間の余白 */
  height: clamp(360px, 60vh, 520px);
}

/* ★ 画像＋テキストのラッパー */
.slide-inner {
  position: relative;
  width: 100%;
  height: 100%;

  transform: scale(0.85);
  opacity: 0.6;
  transition: transform 0.4s ease, opacity 0.4s ease;

  will-change: transform;
}

.slide-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 中央スライドだけ拡大 */
.slick-center .slide-inner {
  transform: scale(1.1);
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-text {
  position: absolute;
  bottom: 40px;
  right: 40px;
  background: rgba(255,255,255,0.6);
  padding: 20px;
  writing-mode: vertical-rl;
}

/* -----slickのデフォルト挙動補助----- */
.slick-slide {
  transition: opacity 0.4s ease;
}

/* -----galleryモーダル----- */
.photo-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1800;
}

.photo-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.photo-modal-inner {
  position: relative;
}

/* ★ 画像＋テキストのラッパー（重要） */
.photo-modal-media {
  position: relative;
  display: inline-block;
}

/* 拡大画像 */
.photo-modal-media img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  height: auto;
}

/* テキストは画像基準で右下 */
.photo-modal-media .photo-text {
  position: absolute;
  bottom: 40px;
  right: 40px;
  background: rgba(255,255,255,0.7);
}

/*------------------------------
 section/support
------------------------------*/
.support {
  width: 100%;
  position: relative;
  padding-bottom: 40px;
}

.support-img {
  width: 100%;
  position: relative;

  aspect-ratio: 16 / 9;  /* 写真の比率に合わせる */
  min-height: 300px; 
}

.support-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.support-text {
  width: min(70%, 900px);
  margin: 40px auto 0;
  padding: 30px;

  font-size: 1rem;
  font-weight: 700;
  line-height: 2;
  text-align: center;
}

.supportlink-text {
  position: absolute;
  width: 80%;
  padding: clamp(16px, 4vw, 40px);

  top: 50%;
  left: 50%; 
  transform: translate(-50%, -50%);

  background: rgba(255,255,255,0.8);
  text-align: center;
  box-sizing: border-box;

  z-index: 10;
}

.support-link-item {
  text-decoration: none;
  color: inherit;
  display: inline-block; /* リンクの文字部分だけを反応させる場合 */
  padding: 5px 0;
  transition: opacity 0.3s;
}

.support-link-item:hover {
  text-decoration: underline;
  opacity: 1;
  font-weight: 700;
}

/*------------------------------
 section/contact
------------------------------*/
.contact {
  width: 100%;
  text-align: center;
  padding-bottom: 100px;
  position: relative;
}

.contact-inner {
  display: flex;
  justify-content: center;
  gap: 10%;
  padding-block: 200px;
}

.topback {
  color: #333;
}

.topback:hover {
  border-bottom: solid 1px #333;
}

/*------------------------------
 section/article
------------------------------*/
.article {
  width: 100%;
  background: #F7F7F7;
  position: relative;
}

.article-container {
  max-width: 800px;
  margin-inline: auto;
  padding: 80px 40px;
  display: flex;
  justify-content: center;
  gap: 80px;
}

.article-img {
  display: flex; /* 追加：中身を中央寄せにするため */
  align-items: center; /* 追加 */
  justify-content: center; /* 追加 */
  width: 100%;
  max-height: 280px;
  aspect-ratio: 16 / 9;
  border: solid 1px #E7C878;
  overflow: hidden; /* 追加 */
  text-decoration: none; /* 追加 */
}

.article-img:hover {
  opacity: 0.8;
}

.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-inner p {
  text-align: center;
  padding-top: 10px
}

.article-inner {
  /* 要素が1つの時に広がりすぎないよう、また2つの時に均等になるよう幅を指定 */
  flex: 1;
  max-width: 360px; /* 片方の最大幅を制限 */
  width: 100%;
}

/* --- 画像がない時の追加スタイル --- */
.article-img.no-image {
  background-color: #fff; /* 背景を白くして文字を見やすく */
  padding: 20px;
}

.no-image-content {
  color: #333;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  display: -webkit-box;
  overflow: hidden;
}

.article-img.no-image:hover {
  background-color: #fcf8e8; /* 少し黄色っぽくしてホバー感 */
}

/*-----------------------------------------
セクション入力なし/WordPress標準投稿スタイル
-----------------------------------------*/
/* 標準投稿のスタイル */
.standard-post {
  padding: 40px 0 80px;
}

.post-thumbnail {
  margin-bottom: 30px;
  text-align: center;
}

.post-thumbnail img {
  max-width: 100%; /* 親要素からはみ出さない */
  height: auto;
  border-radius: 8px; 
}

.post-content {
    line-height: 1.8;
    font-size: 1rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
}

/*==============================
 contact.html
==============================*/
/* ------------------------------------------
   1. フォーム全体のコンテナ
   ------------------------------------------ */
.contact-container {
  position: relative;
  min-height: 100vh;
  padding: 100px 20px;
  text-align: center;
}

.contact-title {
  font-size: 1.8rem;
  margin-bottom: 60px;
  letter-spacing: 0.15em;
}

.contact-form {
  max-width: 680px;
  margin: 0 auto 80px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.backlink {
  display: inline-block;
}

/* お問い合わせページのみヘッダーとフッターを隠す */
.page-template-page-contact #header, 
.page-template-page-contact #footer {
    display: none !important;
}

/*==============================
 Ninja Forms デザイン調整
==============================*/

/* 1. フォーム全体のコンテナ調整 */
.contact-container {
  position: relative;
  min-height: 100vh;
  padding: 100px 20px;
  text-align: center;
}

.nf-form-layout {
  max-width: 680px;
  margin: 0 auto 80px !important;
}

/* Ninja Formsのデフォルトの枠線や背景をリセット */
.nf-form-content {
  padding: 0 !important;
}

/* 2. ラベルのスタイル調整 */
.nf-field-label {
  text-align: left;
  margin-bottom: 8px !important;
  padding: 0 !important;
}

.nf-field-label label, 
.nf-label-span {
  font-size: 0.9rem !important;
  font-weight: normal !important;
  color: #333;
}

/* 3. 入力項目（テキスト、エリア、セレクト）の共通スタイル */
.ninja-forms-field.nf-element {
  width: 100% !important;
  padding: 14px 16px !important;
  border: 1px solid #666 !important;
  border-radius: 3px !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
  color: #797878 !important;
  background: #fff !important;
  box-shadow: none !important; /* デフォルトの影を消す */
  height: auto !important;
}

/* テキストエリアの高さ */
.textarea-container .ninja-forms-field.nf-element {
  min-height: 160px !important;
}

/* セレクトボックスの矢印カスタム */
.listselect-container select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0 L5 6 L10 0' fill='%23666'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  cursor: pointer;
}

/* 4. ラジオボタン（お立場）の横並び調整 */
.list-radio-wrap ul {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 0 !important;
  margin-top: 10px !important;
  list-style: none !important;
}

.list-radio-wrap ul li {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  flex: 1;
  min-width: fit-content;
}

.list-radio-wrap ul li label {
  white-space: nowrap !important;
  font-size: 0.85rem !important;
  margin-left: 5px !important;
  cursor: pointer;
}

/* 5. プライバシー同意のチェックボックス調整 */
.checkbox-container .nf-field-wrap {
  display: flex !important;
  flex-direction: row-reverse !important; /* チェックボックスを右に */
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

.checkbox-container .nf-field-label {
  margin-bottom: 0 !important;
}

.checkbox-container .nf-field-label label {
  text-decoration: underline; /* リンク風 */
  color: #7a5c1e;
  font-size: 0.875rem !important;
  cursor: pointer;
}

/* プライバシーポリシーのリンク色調整 */
.checkbox-container .nf-field-label label a {
    color: #7a5c1e !important; /* 金色に近い茶色 */
    text-decoration: underline !important;
    transition: opacity 0.2s;
}

.checkbox-container .nf-field-label label a:hover {
    opacity: 0.7;
}

/* 6. 送信ボタン（黄金グラデーション） */
.submit-container input[type="submit"], 
.submit-container input[type="button"] {
  display: block !important;
  margin: 40px auto 0 !important;
  width: 280px !important;
  height: 80px !important;
  border: none !important;
  border-radius: 40px !important;
  font-size: 1.2rem !important;
  font-weight: bold !important;
  color: #4a3a16 !important;
  cursor: pointer !important;
  /* 金色グラデーション */
  background: linear-gradient(
      135deg,
      #f7e7a1 0%,
      #fbeec1 25%,
      #d6ad60 75%,
      #b08a3e 100%
  ) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
  transition: opacity 0.3s;
}

.submit-container input[type="submit"]:hover {
  opacity: 0.8;
}

/* 7. 不要なエラーメッセージ表示領域を詰める */
.nf-error-msg, .nf-form-fields-required {
  font-size: 0.8rem;
  margin-bottom: 10px;
  display: block;
}

/* 必須項目の注釈メッセージを完全に非表示にする */
.nf-form-fields-required {
    display: none !important;
}

/* 固定ページで入力したテキストとフォームの間の余白 */
.contact-container .nf-form-cont {
    margin-top: 60px !important; /* ここの数値で余白の広さを調整してください */
}

/* フォームと「トップページへ戻る」リンクの間の余白 */
.topback {
    margin-top: 80px !important;
    display: inline-block;
}

/*==============================
 search.php
==============================*/
.result-title {
  font-size: 1.5rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* 記事一覧を縦に並べるコンテナ */
.post-grid {
    display: flex;
    flex-direction: column;
    gap: 30px; /* 記事同士の間隔 */
    margin-top: 40px;
}

/* 1つの記事の帯 */
.post-card-link {
    display: flex;
    align-items: center; /* 上下中央揃え（お好みで flex-start に） */
    text-decoration: none;
    background: rgba(255, 255, 255, 0.5); /* ほんのり背景（郷土共鳴の世界観に合わせて） */
    transition: transform 0.3s ease;
}

.post-card-link:hover {
    transform: translateX(10px); /* ホバー時に少し右に動く演出 */
}

/* 左側の画像エリア（全体の30%） */
.post-image-area {
    flex: 0 0 30%; 
    line-height: 0; /* 下の隙間消し */
    overflow: hidden;
}

.post-image-area img {
    width: 100%;
    height: 180px; /* 帯の高さを固定する場合 */
    object-fit: cover;
    display: block;
}

/* 右側のテキストエリア（残りの70%） */
.post-text-area {
    flex: 1;
    padding: 20px 40px;
    color: #333;
}

.post-date {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.post-title {
    font-size: 1.4rem;
    line-height: 1.5;
    margin: 0;
}

/* スマホ対応：画面が狭い時は縦並びに戻す */
@media (max-width: 768px) {
    .post-card-link {
        flex-direction: column;
        align-items: flex-start;
    }
    .post-image-area {
        flex: 0 0 100%;
        width: 100%;
    }
    .post-text-area {
        padding: 20px;
    }
}

/*==============================
 page.php
==============================*/
.page-wrapper {
  width: 100%;
  max-width: 1000px;
  height: auto;
  padding: 100px 20px 40px 20px;
  margin-inline: auto;
  text-align: center;
}

.page-title {
  font-size: 2rem;
  text-align: center;
  margin: 60px 0 40px;
  letter-spacing: 0.1em;
}

.page-entry-content {
  line-height: 2;
  margin-bottom: 80px;
  text-align: left;
}

/* プライバシーポリシーの箇条書きなどの余白調整 */
.page-entry-content p {
    margin-bottom: 1.5em;
}

.page-back {
  width: fit-content;
  margin: auto;
}


/*========================================
レスポンシブ
========================================*/
@media(max-width: 875px){
  /*--------------------
  ボタン
  --------------------*/
  .kyoumei-button,
  .contact-button,
  .submit-btn {
    padding: 18px 35px;
    font-size: 1.125rem;
  }

  /*==============================
  header
  ==============================*/
  /*-----ハンバーガーメニュ-----*/
  .toggle {
    top: 40px;
    right: 40px;
  }

  /*-----searchモーダル-----*/
  .search-title {
    font-size: 1rem;
  }

  .search-input {
    width: 70%;
    margin: 0 auto 40px;
  }

  .search-text {
    font-size: 0.875rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-box {
    width: 50%;
    margin: 0 auto;
  }

   .category-header {
    padding: 50px 30px 30px 30px;
  }
  .category-box .jp {
    font-size: 1.5rem;
  }

  .category-box .en {
    font-size: 0.875rem;
    margin-block: 20px;
  }

  /*=====================
  トップページ
  ======================*/
  /*------------------------------
  mainvisual
  ------------------------------*/
  .mv-logo {
    left: 40px;
  }

  .mv-logo .jp {
    font-size: 1.75rem;
  }

  .mv-logo .en {
    font-size: 0.75rem;
  }

  .mv-scroll .arrow {
    width: 20px;
    height: 20px;
  }

  .mv-sound {
    right: 40px;
    font-size: 0.75rem;
  }

  .mv-sound span {
    font-size: 0.875rem;
  }

  /*------------------------------
  topic
  ------------------------------*/
  .topic-textbox {
    right: 40px;
    padding: 20px;
  }

  .topic-title{
    font-size: 1rem;
  } 

  .topic-text {
    font-size: 0.875rem;
  }

  /*------------------------------
  kyoumei
  ------------------------------*/
  .kyoumei-text {
    font-size: 1rem;
  }

  /*===========================
  footer
  ===========================*/
  #footer .wrappersearch {
    padding-block: 40px;
  }

  .footer-container {
    flex-direction: column;
    padding-bottom: 20px;
    margin-bottom: 10px;
  }

  .footer-logo {
    padding: 15px;
  }

  .footer-logo h2 {
    font-size: 1.75rem;
  }

  .footer-logo p {
    font-size: 0.75rem;
  }

  .footer-link {
    margin-top: 25px;
  }

  .search-link,
  .link {
    margin-bottom: 3px;
    font-size: 0.75rem;
  }

  .topic-container {
    margin-bottom: 40px;
  }

  .under-text {
    font-size: 0.625rem;
  }

  /*==============================
  single.html
  ==============================*/
  /*---セクション見出し（写真に重ねるバージョン）---*/
  .sec-title-1 {
    top: 20px;
    left: 20px;
    font-size: 0.875rem;
  }

  /*---セクション見出し（白背景用）---*/
  .sec-title-2 {
    top: 20px;
    left: 20px;
    font-size: 0.875rem;
    padding-bottom: 10px;
  }

  /*------------------------------
  section/presence
  ------------------------------*/
  .presence-text h3 {
    font-size: 1rem;
  }

  .presence-text p {
    font-size: 0.75rem;
  }

  /*------------------------------
  section/voice
  ------------------------------*/



  /*------------------------------
  section/story
  ------------------------------*/
  .story-text {
    font-size: 0.75rem;
    line-height: 2;
    letter-spacing: 0.1em; 
  }

  /*------------------------------
  section/gallery
  ------------------------------*/
  .gallery {
    padding-block: clamp(100px, 30vw, 100px);
  }

  .slide {
    height: clamp(280px, 50vh, 380px);
    padding: 0 12px;
  }

  /* ★ 非中央：少し小さく */
  .slide-inner {
    transform: scale(0.9);
    opacity: 0.5;
  }

  /* ★ 中央：等倍（拡大しすぎない） */
  .slick-center .slide-inner {
    transform: scale(1);
    opacity: 1;
  }

  /* テキストを少し内側へ */
  .photo-text {
    bottom: 20px;
    right: 20px;
    padding: 12px;
    font-size: 0.75rem;
  }

  /*------------------------------
  section/support
  ------------------------------*/
  .support {
    padding-bottom: 30px;
  }

  .support-text {
    width: min(90%, 900px);
    padding: 0;
    margin-top: 30px;
    font-size: 0.75rem;
  }

  .supportlink-text {
    font-size: 0.75rem;
    padding: clamp(5px, 4vw, 40px);
  }

  /*------------------------------
  section/contact
  ------------------------------*/
  .contact {
    padding-bottom: 80px;
  }

  .contact-inner {
    padding-block: 100px;
  }

  /*------------------------------
  section/article
  ------------------------------*/
  .article-container {
    gap: 40px;
  }

  .article-inner p {
    font-size: 0.875rem;
  }

  /*==============================
  contact.html
  ==============================*/
  .contact-container {
    padding: 80px 20px;
  }

  .contact-title {
    font-size: 1.5rem;
  }

  .contact-form {
    margin-bottom: 40px;
  }

  .backlink {
    font-size: 0.75rem;
  }

}

@media (max-width: 480px) {
  /*--------------------
  ボタン
  --------------------*/
  .kyoumei-button,
  .contact-button,
  .submit-btn {
    padding: 15px;
    font-size: 0.875rem;
  }

  /*-----ハンバーガーメニュ-----*/
  .toggle {
    width: 30px;
  }

  .toggle span {
    width: 30px;
  }

  /* 線の間隔：15px */
  .toggle span + span {
    margin-top: 8px;
  }

  /* 閉じた時のアニメーション */
  .toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  
  .wrapper {
    padding-block: 80px;
  }

  .category-box {
    width: 80%;
    margin: 0 auto;
  }

  .search-input input {
    padding: 8px 30px 8px 10px;
  }

  .search-btn {
    font-size: 0.75rem;
    padding: 10px 40px 10px 15px;
  }

  .search-text p {
    font-size: 0.75rem;
  }

  /*---セクション見出し（写真に重ねるバージョン）/-セクション見出し（白背景用）--*/
  .sec-title-1,
  .sec-title-2 {
    font-size: 0.75rem;
  }

  /*--single/voice--*/
  /*  YouTube  */
  .video-wrapper::before {
    inset: -15px;
  }

  /*  Audio  */
  .media-audio {
    height: 150px;  
    width: 80%;
    margin: 0 auto
  }

  /*--single/gallery--*/
  .slide {
    height: 260px;
  }

  .photo-text {
    font-size: 0.5rem;
    padding: 5px;
  }

  /*--support--*/
  .support-text {
    width: min(90%, 900px);
    margin: 20px auto 0;
    line-height: 1.8;
  }

  /*--single/contact--*/
  .contact {
    padding-bottom: 40px;
  }

  .contact-inner {
    flex-direction: column;
    padding-block: 80px;
  }

  .contact-inner a {
    width: 50%;
    margin: 20px auto;
  }

  .topback {
    font-size: 0.75rem;
  }

  /*--single/article--*/
  .article-container {
    padding: 40px 40px;
    gap: 20px;
  }

  .article-inner p {
    font-size: 0.5rem;
  }

  /*--contactform--*/
   .contact-title {
    font-size: 1rem;
  }

  /* input / textarea / select 共通 */
  .name input,
  .mail input,
  .form-label textarea,
  .form-label select {
    padding: 8px 14px;
  }

  /*--page.php--*/
  .page-wrapper {
    padding: 60px 20px 40px 20px;
  }

  .page-title {
    font-size: 1.2rem;
  }

  .page-entry-content {
    font-size: 0.875rem;
    margin-bottom: 40px;
  }

  .page-entry-content p {
    margin-bottom: 1.2em;
  }

  .page-back {
    font-size: 0.875rem;
  }
 
}