@charset "UTF-8";

#main {
  padding: 0;
}
#wrapInner {
  padding-bottom: 608px;
}
#pageTop {
  z-index: 100;
}
#header,
#navGlobal,
#prev,
.l-snsArea {
  position: relative;
  z-index: 100;
}
#breadcrumbsInner {
  position: relative;
  z-index: 1;
}
#header,
#navGlobal,
#prev,
#breadcrumbsInner,
.l-snsArea {
  background-color: #fff;
}
.l-snsArea .snsArea {
  margin: 0 auto;
}

/* 背景 */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("../img/thanks-rice/bg_text-gradient@2x.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 前景 */
.content {
  position: relative;
  z-index: 1;
}

/* ヒーローエリア */
.hero {
  display: grid;
  place-items: center;
  gap: 80px;
  padding: 100px 0 80px;
}
.hero .hero-wrap {
  width: min(78vmin, 500px);
  aspect-ratio: 1 / 1;
}
.hero .hero-item {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.scroll-item {
  animation: floatY 1.8s ease-in-out infinite;
}
@keyframes floatY {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px); /* 下に少し */
  }
  100% {
    transform: translateY(0);
  }
}

/* メッセージ */
.message {
  margin: 0 auto 160px;
  padding: 80px 64px;
  width: fit-content;
  color: #1c1f79;
  text-align: center;
  background-image: url("../img/thanks-rice/bg_message@2x.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 40px;
}
.message .heading {
  margin-bottom: 80px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .01em;
}
.message p {
  font-size: 18px;
  line-height: 2;
  letter-spacing: .01em;
}
.message p span.pc {
  display: inline-block;
}

.bg-canvas {
  position: relative;
  padding: 80px 0 130px;
  color: #222576;
  background-image: url("../img/thanks-rice/bg_texture.jpg");
}
.bg-canvas::before,
.bg-canvas::after {
  position: absolute;
  left: 0;
  content: "";
  display: block;
  width: 100%;
  height: 50px;
  background-size: 1280px 50px;
}
.bg-canvas::before {
  top: -50px;
  background-image: url("../img/thanks-rice/deco_canvas-top.png");
}
.bg-canvas::after {
  bottom: -50px;
  background-image: url("../img/thanks-rice/deco_canvas-bottom.png");
}

/* 説明 */
.description {
  margin-bottom: 80px;
  text-align: center;
}
.description_logo {
  margin: 0 auto 24px;
  width: 580px;
}
.description_text {
  line-height: 1.5;
  letter-spacing: .01em;
}

/* ギャラリー */
.l-gallery {
  margin-bottom: 110px;
  text-align: center;
}
.gallery-wrap {
  position: relative;
  overflow: hidden;
  width: fit-content;
  margin: 0 auto;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 15px;
  margin: 0 auto;
  width: fit-content;
  max-height: calc(222px * 3 + 24px * 2);
  overflow: hidden;
  transition:
    max-height 0.8s cubic-bezier(.4,0,.2,1),
    opacity 0.3s ease;
}
.gallery a {
  width: 150px;
  aspect-ratio: 1000 / 1480;
  display: block;
  cursor: pointer;
}
.gallery img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ロールオーバー（ホバー）時に虹色を表示 */
.rainbow-border {
    position: relative;
    width: 165px;
    height: 237px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 12px;
}
.rainbow-border::before {
    content: '';
    position: absolute;
    width: 180%;
    height: 180%;
    background: conic-gradient( #e6bbb8, #d2e0a1, #6fbd9a, #53a0eb, #787ad8,#53a0eb, #6fbd9a, #d2e0a1,#e6bbb8 );
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.rainbow-border:hover::before {
    opacity: 1;
}
.rainbow-border a {
    position: relative;
    z-index: 1;
    width: calc(100% - 15px);
    height: calc(100% - 15px);
    object-fit: cover;
    background: white;
}

/* 回転アニメーション */
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
/* ▼ フェードアウト */
.gallery-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 222px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,1) 100%
  );
  transition: opacity 0.5s ease;
  z-index: 1;
}

/* ▼ 展開時 */
.gallery-wrap.is-open .gallery {
  max-height: 9999px;
}
.gallery-wrap.is-open::after {
  opacity: 0;
}

/* moreボタン */
.gallery-more {
  margin-top: 50px;
  padding: 16px 130px;
  border-radius: 30px;
  font-size: 22px;
  letter-spacing: .02em;
  border: 1px solid #222576;
  background: #fff;
  color: #222576;
  cursor: pointer;
}

/* 美は感謝から始まる */
.thanks {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.thanks_text {
  line-height: 1.5;
}
.gradation-text {
  margin-bottom: 30px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  background: linear-gradient(90deg, #4caba8 0%, #2679c9 30%, #4744de 78%, #1e3c94 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Firefox 対応 */
  background-clip: text;
  color: transparent;
}
.img_thanks {
  width: 500px;
}

/* 下部テキスト */
.foot {
  background-image: url("../img/thanks-rice/bg_foot@2x.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.text_rice-force {
  padding: 200px 0 170px;
  text-align: center;
}
.text_rice-force img {
  width: 657px;
}