/* ===== Base ===== */
*,
*::before,
*::after { box-sizing: border-box; }

body{
  background:#fff;
  color:#444;
  font-size:16px;
  font-family:'メイリオ', Meiryo, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', Helvetica, Arial, 'ＭＳ Ｐゴシック', sans-serif;
  line-height:1.6;
  margin:0;
}

a{ color:#333; text-decoration:none; }
a:hover{ color:#666; }
a:visited{ color:#333; }
a:focus-visible{
  outline:2px solid #ffd700;
  outline-offset:2px;
}

/* ===== Header ===== */
.header{
  z-index:100;
  padding:12px 0;
  width:100%;
  border-bottom:#ffd700 solid 2px;
  background-image:url("img/header_bg.jpg");
  background-repeat:repeat;
  background-size:auto;
  color:#333;
}

.header-group{
  max-width:960px;
  margin:0 auto;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:12px;
  padding:8px 12px;
}

.header-groupDescription{
  color:#000;
  text-align:center;
  margin:0;
  line-height:1.6;
}

.header-group img{
  display:block;
  height:auto;
  max-height:64px;
}

/* ===== Nav ===== */
.section-nav{
  max-width:960px;
  margin:0 auto;
  padding:21px 0 0;
  background:#fff;
  text-align:center;
}

.section-navGroup{
  display:flex;
  justify-content:space-around;
  padding:0;
  margin:0;
  list-style:none;
}

.section-navGroup > li a{
  display: inline-block;
  vertical-align: middle;
  padding:6px 12px;
  color:#333;
}

.section-navGroup > li a:hover{ color:#666; }

.section-navGroup > li a.active{
  border-bottom:#333 solid 2px;
  color:#666;
}

/* ===== Slider：縦の見切れゼロ最優先（横は余白OK） ===== */

/* 余白が出ても自然に見せる */
.mainImg{
  background:#000;
}

/* ul */
.slider{
  margin:0;
  padding:0;
}

/* slickが「固定高さ」を持ってしまうのを全部無効化 */
.mainImg .slick-list,
.mainImg .slick-track,
.mainImg .slick-slide{
  height: auto !important;
  max-height: none !important;
}

/* 各スライドは中央寄せ（余白が出ても崩れない） */
.mainImg .slick-slide{
  display:flex !important;
  align-items:center;
  justify-content:center;
}

/* クリック領域：横いっぱいにする必要なし。中央に置く */
.mainImg .slick-slide > a.slideLink{
  display:flex;
  align-items:center;
  justify-content:center;
  width: 100%;
  padding: 0;
}

/* 画像は「縦上限」だけ決める。横は自然に縮む。 */
.mainImg .slick-slide img{
  display:block;
  width: auto;                 /* ★横に伸ばし切らない */
  height: 70vh;                /* ★縦を固定 */
  max-width: 100%;             /* 画面からはみ出さない */
  object-fit: contain;         /* 画像全体を表示 */
}

/* PCで縦が高すぎる/低すぎる調整（任意） */
@media (min-width: 768px){
  .mainImg .slick-slide img{
    height: 72vh;          /* PCは少し大きめでもOKなら */
  }
}

/* 矢印非表示（必要なら） */
.slick-next,
.slick-prev{ display:none !important; }

/* slickが作る余計な隙間/はみ出しを潰す（1〜数pxの下切れ対策） */
.mainImg .slick-slide{ line-height: 0; }

/* 画像は縦上限で収める（横は伸ばさない） */
.mainImg .slick-slide img{
  width: auto !important;
  height: 70vh !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

/* ===== Slider：横を広げすぎず、縦の見切れを防ぐ ===== */

/* Announcement above slider */
.slider-announcement{
  max-width:960px;
  margin: 0 auto 12px;
  padding: 6px 14px;
  background:#fff9d9;
  border: 1px solid #ffdd80;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.new-badge{
  display:inline-block;
  margin-right:8px;
  padding:2px 8px;
  border-radius:999px;
  font-weight:bold;
  font-size:0.9rem;
  animation: rainbow-blink 1.6s linear infinite;
}

@keyframes rainbow-blink {
  0%, 100% { color: #ff3b3f; }
  14% { color: #ff9a3c; }
  28% { color: #ffd500; }
  42% { color: #4fdc49; }
  56% { color: #2ba7ff; }
  70% { color: #b53bff; }
  84% { color: #ff3b3f; }
}

/* 背景は画面幅いっぱいのまま（黒帯） */
.mainImg{
  background:#000;
  padding: 0;
}

/* スライダー本体だけ最大幅を制限して中央寄せ */
.mainImg .slider{
  max-width: 700px;   /* ←好みで 800〜1100px などに変更OK */
  margin: 0 auto;
}

/* slick が高さを固定して見切れるのを抑制 */
.mainImg .slick-list,
.mainImg .slick-track{
  height: auto !important;
}

/* 画像は縦を固定（70vh）、横を自動調整で全体表示 */
.mainImg .slick-slide img{
  width: auto !important;
  height: 70vh !important;
  object-fit: contain;
  max-width: 100% !important;
}

/* スライダーの1枚ごとの枠に対する設定 */
.slider .slick-slide {
  /* ここで縦横比を指定（16:9 にしたい場合） */
  aspect-ratio: 16 / 9;
  
  /* スマホでの高さ制限（念のため高さをリセット） */
  height: auto; 
  overflow: hidden; /* はみ出し部分を隠す */
}

/* 画像に対する設定 */
.slider .slick-slide img {
  width: 100%;
  height: 100%;
  
  /* 画像の比率を崩さずに枠いっぱいに広げる（重要） */
  object-fit: cover; 
  
  /* 画像の配置位置（中央寄せ） */
  object-position: center;
}

/* (オプション) PCなど大画面では高さを広げすぎない制限を入れる場合 */
/* @media screen and (min-width: 768px) {
  .slider .slick-slide {
     PCでは比率ではなく高さ固定にしたい場合はこちら有効化など
     height: 500px;
     aspect-ratio: unset;
  }
} */

/* ===== Flyer（中心に大きく表示） ===== */
.flyer{
  text-align:center;
  padding: 20px 0 10px;
}

.flyer-inner{
  display:inline-block;
  max-width: 960px;
  width: 100%;
  padding: 0 16px;
}

.flyer-inner img{
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
  object-fit: contain;
}

/* ===== Update History ===== */
.update-history {
  max-width: 960px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.update-history h2 {
  margin: 0 0 15px 0;
  font-size: 1.5em;
  color: #333;
  border-bottom: 2px solid #ffd700;
  padding-bottom: 5px;
}

.update-history-content {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 10px;
}

.update-item {
  margin-bottom: 15px;
  line-height: 1.6;
}

.update-item strong {
  color: #d32f2f;
  font-weight: bold;
}

/* ===== Main ===== */
main {
  padding: 0 40px;
}

/* ===== Article ===== */
.article{
  max-width:960px;
  margin:30px auto;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  padding:0;
}

.article-group{
  width:31%;
  margin:20px 0;
  min-height: 350px;
}

.article-group > a{ color:#333; }
.article-group > a:hover{ color:#666; }
.article-group > a.sns-link{
  touch-action: manipulation;
  display: block;
  overflow: hidden;
}

.article-groupImg,
.sns-icon{
  width:100%;
  height:auto;
  display:block;
  max-width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.article-groupTitle{
  margin:10px 0;
  padding:10px 0;
  border-bottom:1px dotted #444;
  text-align:center;
  font-weight:bold;
  font-size:1.2em;
}

/* ===== Profile ===== */
.profile{
  background:#f2f2f2;
  padding-bottom:35px;
  border-bottom:1px solid #919191;
}

.profile-wrap{
  max-width:960px;
  margin:0 auto;
  padding:0;
}

.profile-wrapGroup{
  width:100%;
  margin:0 auto;
  padding:50px 0 5px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-wrapGroupImg{
  flex:0 0 20px;
}

.profile-wrapGroupImg > img{
  border-radius:50%;
  width:40px;
  height:40px;
  object-fit:cover;
  display:block;
}

.profile-wrapGroupBody{
  background:#fff;
  border-radius:15px;
  flex:1 1 auto;
  padding:10px 20px 5px;
  margin-bottom:20px;
  min-width:280px;
}

.profile-wrapGroupBody-name{
  font-size:1.5rem;
  font-weight:bold;
  border-bottom:1px solid #f2f2f2;
  padding-bottom:10px;
}

.profile-flex{
  display:flex;
  align-items:flex-start;
  gap:16px;
  flex-direction: column;
}

.profile-qr img{
  width:100px;
  height:auto;
  display:block;
}

/* ===== FAQ ===== */
.faq{
  max-width:960px;
  margin:0 auto;
  padding:5px 40px 24px;
}

.faq-title{
  margin:0 0 12px;
  font-size:1.5rem;
}

.faq-list{
  margin:0;
}

.faq-list dt{
  font-weight:bold;
  margin-top:10px;
  font-size:1.1em;
}

.faq-list dd{
  margin:6px 0 0;
}

/* ===== Footer ===== */
.footer{
  background:#f2f2f2;
  text-align:center;
  padding:10px 0;
  font-size:12px;
}

.footer-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
  position: relative;
}

.footer-left {
  text-align: center;
}

.footer-links {
  position: absolute;
  right: 0;
}

.footer-links a {
  display: inline-block;
}

.footer-links img {
  width: 30px;
  height: auto;
}

/* ===== Responsive ===== */
@media (max-width:600px){
  .header-group{
    flex-direction:column;
    align-items:center;
    gap:6px;
  }

  .section-navGroup{
    flex-wrap:wrap;
    gap:8px;
    justify-content:center;
  }

  .article{
    margin:30px auto;
  }
  .article-group{ width:48%; }

  .profile-wrapGroupImg{ flex:0 0 auto; }
  .profile-wrapGroupImg > img{ width:140px; height:140px; }
}

@media (max-width:420px){
  .article-group{ width:100%; }
}

/* スマホ横向き対応（article-group） */
/* スマホ横向き対応（article-group） */
@media (orientation: landscape) and (max-width: 1024px) {
  .article-group {
    width: 45% !important;
    min-height: auto !important;
  }
  
  .article-groupImg,
  .sns-icon {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    max-width: 100% !important;
    max-height: 180px !important;
    display: block !important;
    overflow: hidden !important;
  }
}

/* instagram.jpg（QR）を強制的に縮小 */
.profile .profile-qr{
  flex: 0 0 110px !important;  /* ここで枠の幅を固定 */
  width: 110px !important;
}

.profile .profile-qr img{
  width: 100% !important;      /* 枠いっぱい（=110px） */
  height: auto !important;
  max-width: 100% !important;
  display: block !important;
}

/* ===== Content Layout ===== */
.content {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  align-items: flex-start;
  padding: 0;
}

.contentImg {
  flex: 0 0 300px;
  overflow: hidden;
  height: 225px;
  border-radius: 8px;
}

.contentImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contentImg img.adjust-position {
  object-position: center top;
}

.contentAbout {
  flex: 1;
}

.contentAbout-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

.contentAbout-text {
  line-height: 1.6;
}

.contentAbout-text ul {
  margin: 0;
  padding-left: 20px;
}

.contentAbout-text li {
  margin-bottom: 8px;
}

.contentAbout-textItem {
  list-style: none;
}

/* ===== Content Image ===== */
.content-img {
  border-radius: 8px;
  max-width: 480px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .content-img {
    max-width: 100%;
  }

  .update-history-content {
    max-height: 160px;
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .content {
    flex-direction: column;
    gap: 15px;
  }
  .contentImg {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: visible;
    border-radius: 8px;
  }
  
  .contentImg img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 400px;
  }
}

/* スマホ横向き対応（重要） */
@media (orientation: landscape) and (max-width: 1024px) {
  .content {
    gap: 10px;
    align-items: center;
  }
  
  .contentImg {
    flex: 0 0 35% !important;
    width: 35% !important;
    max-width: 220px !important;
    height: 160px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
  }
  
  .contentImg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: none !important;
    max-height: none !important;
  }
}

/* ===== Visually Hidden ===== */
.visually-hidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

