/* =========================================
  TOP Common
========================================= */

/* セクション共通 */
.top__section {
  padding: 120px 40px;
  color: #423f43;
  font-weight: 400;
  letter-spacing: 0.2em;
}

/* コンテンツ最大幅 */
.top__container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
}

/* セクション見出し全体 */
.top__sectionHeader {
  margin-bottom: 80px;
  text-align: center;
}

/* 英字見出し */
.top__sectionEyebrow {
  margin: 0;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0.1em;
  color: #b8875d;
  font-weight: 400;
}

/* メイン見出し */
.top__sectionTitle {
  margin: 16px 0 0;
  font-size: 28px;
  line-height: 24px;
  letter-spacing: 0.2em;
  color: #995417;
  font-weight: 400;
}

/* リード部分 */
.top__sectionIntro {
  margin-top: 56px;
}

/* リード見出し */
.top__sectionLeadTitle {
  margin: 0;
  font-size: 24px;
  line-height: 40px;
  letter-spacing: 0.2em;
  color: #995417;
  font-weight: 400;
}

/* リード本文 */
.top__sectionLeadText {
  margin: 32px 0 0;
  font-size: 17px;
  line-height: 36px;
  letter-spacing: 0.2em;
  color: #423f43;
  font-weight: 400;
}

/* 項目見出し共通 */
.top__itemTitle {
  margin: 0;
  font-size: 24px;
  line-height: 40px;
  letter-spacing: 0.2em;
  color: #423f43;
  font-weight: 400;
}

/* 項目本文共通 */
.top__itemText {
  margin: 0;
  font-size: 17px;
  line-height: 32px;
  letter-spacing: 0.1em;
  color: #423f43;
  font-weight: 400;
}

/* 注釈共通 */
.top__sectionNote {
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.1em;
  color: #858585;
  font-weight: 400;
}

/* PC：改行を非表示 */
.top__spBreak {
  display: none;
}

/* SP */
@media (max-width: 767px) {
  .top__section {
    padding: 80px 24px;
  }

  .top__sectionHeader {
    margin-bottom: 56px;
  }

  .top__sectionIntro {
    margin-top: 40px;
  }
  .top__spBreak {
    display: block;
  }
  .top__spCenter {
    text-align: center;
  }
  .top__sectionLeadText {
    text-align: left;
  }
}

/* =========================================
  TOP Banner
========================================= */
.top-renewal__banners {
  padding: 64px 0;
}

.top-renewal__bannerGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 656px;
  margin: 0 auto;
}

.top-renewal__bannerLink {
  display: block;
  width: 100%;
}

.top-renewal__bannerImage {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .top-renewal__banners {
    padding: 40px 0;
  }
  .top-renewal__bannerGrid {
    grid-template-columns: minmax(0, 320px);
    justify-content: center;
  }
}

/* =========================================
  Fixed Visual
========================================= */
.top__fixedVisual {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1440 / 520;
}

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

/* PC：画像を画面に固定 */
.top__fixedVisualImage.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  pointer-events: none;
  clip-path: inset(100% 0 0 0);
}

@media (max-width: 767px) {
  .top__fixedVisual {
    height: calc(100vw * 250 / 375);
    overflow: hidden;
  }

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

  /* 通常画像：移動時に端が見えないよう少し拡大 */
  .top__fixedVisual:not(.top__fixedVisual--zoom) .top__fixedVisualImage {
    scale: 1.13;
    transform-origin: center center;
  }

  /* second_visualのみ拡大 */
  .top__fixedVisual--zoom {
    overflow: hidden;
  }

  .top__fixedVisual--zoom .top__fixedVisualImage {
    transform: translateX(8px) scale(1.14);
    transform-origin: top center;
  }
}

/* =========================================
  TOP Features
========================================= */
.top__features {
  background: #fff;
}

.top__featuresTitle sup {
  font-size: 0.5em;
  vertical-align: super;
}

/* Features List */
.top__featuresList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.top__featuresItem {
  display: grid;
  grid-template-columns: minmax(0, 484fr) minmax(0, 540fr);
  column-gap: 56px;
  align-items: start;
}

.top__featuresItem + .top__featuresItem {
  margin-top: 64px;
}

/* Image */
.top__featuresImageWrap {
  width: 100%;
}

.top__featuresImage {
  display: block;
  width: 100%;
  max-width: 484px;
  height: auto;
  aspect-ratio: 484 / 342;
  object-fit: cover;
  border-radius: 20px;
}

/* Text */
.top__featuresBody {
  width: 100%;
}

.top__featuresNumberRow {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top__featuresNumberLine {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: #bfbfbf;
  flex-shrink: 0;
}

.top__featuresNumber {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0.24em;
  font-weight: 400;
}

.top__featuresItemTitle {
  margin: 16px 0 0;
  font-size: 24px;
  line-height: 40px;
  font-weight: 400;
}

.top__featuresItemText {
  margin: 32px 0 0;
  font-size: 17px;
  line-height: 32px;
  letter-spacing: 0.1em;
}

/* Note */
.top__featuresNote {
  margin: 80px 0 0;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.1em;
  color: #858585;
  font-weight: 400;
}

/* SP */
@media (max-width: 767px) {
  .top__featuresItem {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .top__featuresItem + .top__featuresItem {
    margin-top: 40px;
  }

  .top__featuresImage {
    max-width: none;
    aspect-ratio: 327 / 231;
    border-radius: 16px;
  }

  .top__featuresNumber {
    font-size: 20px;
  }

  .top__featuresNote {
    margin-top: 56px;
  }
}

/* =========================================
  TOP Records
========================================= */
.top__records {
  background: #fff;
}

/* Section Title */
.top__recordsTitle {
  line-height: 1.6;
}

/* Records List */
.top__recordsList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top__recordsItem {
  min-width: 0;
}

/* Item Title */
.top__recordsItemTitle {
  margin-bottom: 24px;
  text-align: center;
  color: #995417;
}

/* Photo */
.top__recordsPhoto {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 484 / 342;
  object-fit: cover;
  border-radius: 16px;
}

/* Caption */
.top__recordsCaption {
  margin: 32px 0 12px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  font-weight: 400;
}

/* Number Image */
.top__recordsStatImage {
  display: block;
  width: 100%;
  max-width: 270px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* Description */
.top__recordsItemText {
  margin-top: 32px;
}

/* Note */
.top__recordsNote {
  margin: 64px 0 0;
}

/* SP */
@media (max-width: 767px) {
  .top__recordsList {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .top__recordsNote {
    margin-top: 56px;
  }
}

/* =========================================
  TOP Interview
========================================= */

.top__interview {
  background: #fbf7f2;
}

/* Section Title */
.top__interviewTitle {
  line-height: 1.6;
}

/* Cards */
.top__interviewList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}

/* 各カードの外側 */
.top__interviewList > div {
  display: flex;
  flex-direction: column;
  align-self: start;
}

/* カード本体を親の高さに合わせる */
.top__interviewList > div > .top__interviewCard {
  flex: 1 1 auto;
}

/* Card */
.top__interview .top__interviewCard {
  height: auto;
  min-height: 470px;
  padding: 136px 24px 24px !important;
  border-radius: 16px;
}

/* Photo */
.top__interviewCard > .flex.w-full.items-center.justify-center.absolute {
  top: -88px;
}

/* Card Content */
.top__interviewCard > .flex.flex-col {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: auto;
  gap: 0;
}

.top__interviewCard .space-y-2 {
  min-height: 0;
}

/* 既存Tailwindの余白を解除 */
.top__interview .top__interviewCard .space-y-2 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0;
}

/* Heading */
.top__interviewDivider {
  min-height: 112px;
  margin-top: 8px;
  padding-bottom: 16px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom-color: #ddc6ac;
}

.top__interview .top__interviewCardTitle {
  font-size: 20px;
  line-height: 32px;
  letter-spacing: 0.2em;
  color: #995417;
  font-weight: 400;
}

/* Person */
.top__interview .top__interviewPerson {
  display: block;
  min-height: 4lh;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: #858585;
  font-weight: 400;
}

/* =========================================
  Accordion Animation
========================================= */

/* 本文：閉じた状態 */
.top__interview .accordion-interview .accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  max-height: none !important;
  padding: 0;
  overflow: hidden;
  opacity: 1;
  transition: grid-template-rows 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 本文の内側 */
.top__interview .accordion-interview .accordion-content > div {
  min-height: 0;
  overflow: hidden;
}

/* 本文：開いた状態 */
.top__interview .accordion-interview.active .accordion-content {
  grid-template-rows: 1fr;
}

/* Accordion */
/* 本文を上に固定し、ボタンだけ下端へ */
.top__interview .accordion-interview {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  margin-top: 0;
  padding-top: 16px;
}

/* ボタンをカード下端へ配置 */
.top__interview .accordion-title {
  margin-top: auto;
}

/* ボタンの外枠 */
.top__interview .accordion-title > div {
  margin-top: 0;
  border: 0 !important;
  border-radius: 12px;
}

/* 開いたとき：本文とボタンの間16px */
.top__interview .accordion-interview.active .accordion-title > div {
  margin-top: 16px;
}

/* 通常：もっとみる */
.top__interview .accordion-title button {
  width: 100%;
  max-width: 280px;
  height: 56px !important;
  background: #dec7a8 !important;
  border: 1px solid #dec7a8;
  border-radius: 12px;
  color: #423f43;
}

/* 開いた状態：閉じる */
.top__interview .accordion-interview.active .accordion-title button {
  height: 56px !important;
  background: #fff !important;
  border-color: #dec7a8;
  color: #423f43;
}

/* ボタンテキストの切り替え */
.top__interview .accordion-title button .relative > div {
  visibility: visible !important;
  transition: opacity 0.2s ease;
}

.top__interview .accordion-title button .relative > div:first-child {
  opacity: 1;
}

.top__interview .accordion-title button .relative > div:nth-child(2) {
  opacity: 0;
}

/* 開いた状態 */
.top__interview .accordion-interview.active .accordion-title button .relative > div:first-child {
  opacity: 0;
}

.top__interview .accordion-interview.active .accordion-title button .relative > div:nth-child(2) {
  opacity: 1;
}

.top__interview .accordion-title button span {
  color: inherit;
}

/* SP */
@media (max-width: 767px) {
  .top__interview .top__interviewPerson {
    min-height: 0;
  }

  .top__interviewList {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .top__interview .top__interviewCard {
    min-height: 0;
  }
}

/* =========================================
  TOP How to use
========================================= */
.top__howToUse {
  background: #fff;
}

/* Section Title */
.top__howToUseTitle {
  line-height: 1.6;
}

/* Lead */
.top__howToUseLead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  margin-bottom: 56px;
}

.top__howToUseLead::before,
.top__howToUseLead::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #dec7a8;
}

.top__howToUseLeadTitle {
  margin: 0;
  font-size: 24px;
  line-height: 40px;
  letter-spacing: 0.2em;
  font-weight: 400;
  color: #423f43;
  text-align: center;
}

.top__howToUseSpBreak {
  display: none;
}

/* Steps */
.top__howToUseList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top__howToUseItem {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Icon & Title */
.top__howToUseItemHead {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 16px;
}

.top__howToUseIcon {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.top__howToUseIcon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.top__howToUseNumber {
  position: absolute;
  top: 0;
  left: -16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #995417;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 700;
  z-index: 1;
}

.top__howToUseItemTitle {
  margin: 0;
  font-size: 20px;
  line-height: 32px;
  letter-spacing: 0.2em;
  color: #995417;
  font-weight: 400;
}

/* Description */
.top__howToUseItemText {
  margin-top: 24px;
}

/* Note */
.top__howToUseNote {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.1em;
  color: #423f43;
  font-weight: 400;
}

/* Button */
.top__howToUseAction {
  margin-top: auto;
  padding-top: 24px;
}

.top__howToUseButton {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 0;
  border-radius: 9999px;
  background: #dec7a8;
  color: #423f43;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a.top__howToUseButton:hover {
  opacity: 0.8;
}

.top__howToUseButton:disabled {
  opacity: 1;
  cursor: default;
}

/* SP */
@media (max-width: 767px) {
  .top__howToUseLead {
    display: block;
    margin-bottom: 40px;
  }

  .top__howToUseLead::before,
  .top__howToUseLead::after {
    display: none;
  }

  .top__howToUseSpBreak {
    display: block;
  }

  .top__howToUseList {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

/* =========================================
  TOP Our concept
========================================= */
.top__concept {
  --concept-image-size: 208px;
  --concept-image-gap: 16px;
  --concept-offset: 0px;
  --concept-duration: 80s;

  padding: 0 0 120px;
  background: #fff;
  overflow: hidden;
}

/* Marquee */
.top__conceptMarquee {
  width: 100%;
  overflow: hidden;
}

.top__conceptTrack {
  display: flex;
  width: max-content;
  will-change: transform;
}

/* 12枚ずつのグループを複製して連続表示 */
.top__conceptGroup {
  display: flex;
  flex: 0 0 auto;
  gap: var(--concept-image-gap);
  padding-right: var(--concept-image-gap);
}

.top__conceptPhoto {
  flex: 0 0 var(--concept-image-size);
  width: var(--concept-image-size);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px;
}

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

/* 上段：右へ */
.top__conceptTrack--right {
  animation: conceptMoveRight var(--concept-duration) linear infinite;
}

/* 下段：左へ */
.top__conceptTrack--left {
  animation: conceptMoveLeft var(--concept-duration) linear infinite;
}

@keyframes conceptMoveRight {
  from {
    transform: translate3d(calc(-50% - var(--concept-offset)), 0, 0);
  }
  to {
    transform: translate3d(calc(0px - var(--concept-offset)), 0, 0);
  }
}

@keyframes conceptMoveLeft {
  from {
    transform: translate3d(calc(0px - var(--concept-offset)), 0, 0);
  }
  to {
    transform: translate3d(calc(-50% - var(--concept-offset)), 0, 0);
  }
}

/* Content */
.top__conceptContent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: center;
  column-gap: 80px;
  padding: 80px 40px;
}

/* Heading */
.top__conceptHeading {
  align-self: center;
  text-align: center;
}

.top__conceptTitle {
  line-height: 1.7;
}

.top__conceptSpBreak {
  display: none;
}

/* Body */
.top__conceptBody {
  min-width: 0;
  width: 100%;
  max-width: 400px;
  justify-self: start;
}

.top__conceptBody p {
  margin: 0;
}

.top__conceptBody p + p {
  margin-top: 20px;
}

/* SP */
@media (max-width: 767px) {
  .top__concept {
    --concept-image-size: 138px;
    --concept-offset: 113px;
    --concept-duration: 65s;

    padding-bottom: 80px;
  }

  .top__conceptContent {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    padding: 56px 24px;
  }

  .top__conceptSpBreak {
    display: block;
  }
}

/* 動きを減らす設定への対応 */
@media (prefers-reduced-motion: reduce) {
  .top__conceptTrack {
    animation: none;
    transform: none;
    will-change: auto;
  }
}

/* =========================================
  TOP Users Voice
========================================= */
.top__usersVoice {
  background: #faf7f3;
}

/* Layout */
.top__usersVoiceInner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: center;
  column-gap: 80px;
  padding: 0 40px;
}

/* Content */
.top__usersVoiceContent {
  min-width: 0;
  align-self: center;
  text-align: center;
}

/* Heading */
.top__usersVoiceIcon {
  display: block;
  width: 40px;
  height: 40px;
  margin: 16px auto 0;
}

.top__usersVoiceTitle {
  margin-top: 16px;
  line-height: 1.6;
}

/* Description */
.top__usersVoiceText {
  margin-top: 32px;
  text-align: center;
}

/* Photo Grid */
.top__usersVoiceGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 400px;
  justify-self: start;
}

.top__usersVoiceGrid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .top__usersVoiceInner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 56px;
    justify-items: center;
  }
}

/* SP */
@media (max-width: 767px) {
  .top__usersVoiceInner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 56px;
    padding: 0;
  }

  .top__usersVoicePcBreak {
    display: none;
  }

  .top__usersVoiceGrid {
    max-width: none;
  }
}

/* =========================================
  TOP News
========================================= */
.top__news {
  background: #fff;
}

/* News Content */
.top__newsContent {
  width: 100%;
}

/* Related Contents */
.top__newsRelated {
  width: 100%;
  margin-top: 40px;
}

/* Cards */
.top__newsRelatedCards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.top__newsRelatedCard {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dec7a8;
  border-radius: 12px;
  background: #fbf7f2;
  color: #423f43;
  text-decoration: none;
}

/* Image */
.top__newsRelatedImage {
  display: block;
  flex: 0 0 40%;
  width: 40%;
  min-width: 0;
  aspect-ratio: 210 / 150;
  object-fit: cover;
}

/* Text Area */
.top__newsRelatedBody {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 16px 20px;
}

/* Title */
.top__newsRelatedTitle {
  font-size: 20px;
  line-height: 32px;
  letter-spacing: 0.2em;
  font-weight: 400;
  color: #995417;
}

/* Description */
.top__newsRelatedText {
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.1em;
  font-weight: 400;
  color: #423f43;
}

/* SP */
@media (max-width: 767px) {
  .top__newsRelated {
    margin-top: 32px;
  }

  .top__newsRelatedCards {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .top__newsRelatedCard {
    flex-direction: column;
  }

  .top__newsRelatedImage {
    flex: none;
    width: 100%;
    aspect-ratio: 327 / 190;
  }

  .top__newsRelatedBody {
    gap: 12px;
    padding: 20px;
  }
}
