@charset "UTF-8";

main {
  padding: 100px 0;
}

section {
  padding: 100px 0;
}

/*-------------------------------------------
HERO
-------------------------------------------*/
#hero {
  display: flex;
}

.main-ttl {
  width: 50%;
}

h1 {
  margin-bottom: 48px;
  line-height: 0.9;
}

.main-ttl p.lead {
  font-size: var(--font-size-16);
  line-height: 32px;
  font-weight: 350;
}

/*-------------------------------------------
HERO cards（wanted motion）
-------------------------------------------*/
.card-container {
  position: relative;
  width: 480px;
  height: 486px;
}

.card {
  position: absolute;
  top: 40px;
  left: 115px;
  width: 300px;
  height: 400px;
  border-radius: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transform-origin: left bottom;
  object-fit: cover;

  /* 初期（非表示） */
  opacity: 0;

  /* 各カードの最終位置（変数で持つ） */
  --tx: 0px;
  --ty: 0px;
  --rot: 0deg;

  /* “落ちる→揃う→扇状に開く” */
  animation: none;
}

/* 最終の重なり（動画の見え方に近い値） */
.card1 {
  z-index: 3;
  --tx: -10px;
  --ty: -6px;
  --rot: -10deg;
}
.card2 {
  z-index: 2;
  --tx: 22px;
  --ty: 10px;
  --rot: 3deg;
}
.card3 {
  z-index: 1;
  --tx: 52px;
  --ty: 24px;
  --rot: 12deg;
}

/* 発火（JSで .is-hero-ready を付ける） */
#hero.is-hero-ready .card {
  animation: heroCardIntro 1.7s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

/* 1枚ずつ“落ちる”タイミング */
#hero.is-hero-ready .card1 {
  animation-delay: 0s;
}
#hero.is-hero-ready .card2 {
  animation-delay: 0.18s;
}
#hero.is-hero-ready .card3 {
  animation-delay: 0.36s;
}

/* 初期：上から落ちる準備 */
#hero .card {
  opacity: 0;
  transform: translateY(-200px);
  transition:
    transform 1s ease,
    opacity 1s ease;
}

/* 落下完了 */
#hero .card.is-drop {
  opacity: 1;
  transform: translateY(0);
}

/* 展開（落下後に扇状） */
#hero .card.is-fan.card1 {
  transform: translateY(0) rotate(-10deg);
}
#hero .card.is-fan.card2 {
  transform: translateY(0) rotate(0deg);
}
#hero .card.is-fan.card3 {
  transform: translateY(0) rotate(10deg);
}

/* 0〜60%：落ちて中央に揃う → 60〜100%：扇状に開く */
@keyframes heroCardIntro {
  0% {
    opacity: 0;
    transform: translateY(-220px) rotate(0deg);
    filter: blur(1px);
  }
  55% {
    opacity: 1;
    transform: translateY(0px) rotate(0deg);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
    filter: blur(0px);
  }
}

/*-------------------------------------------
SERVICE
-------------------------------------------*/
.ttl-set p.heading {
  font-weight: bold;
  line-height: 1.5;
  padding: 24px 0 12px;
  text-align: center;
}

.ttl-set p.cap {
  font-size: var(--font-size-14);
  line-height: 1.7;
  width: 640px;
  margin: 0 auto 80px;
}

.features {
  display: flex;
  gap: 5%;
}

.feature {
  width: 30%;
  flex-direction: column;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.feature.show {
  opacity: 1;
  transform: translateY(0);
}

.feature img {
  object-fit: cover;
  width: 100%;
  margin-bottom: 24px;
}

p.small-ttl {
  font-weight: bold;
  font-size: 18px;
  line-height: 24px;
  margin: 0 0 20px;
  text-align: center;
}

.feature p.cap {
  font-size: var(--font-size-14);
  line-height: 1.7;
  text-align: justify;
}

.scene_01,
.scene_02,
.scene_03 {
  height: 190px;
}

/*-------------------------------------------
STRENGTH
-------------------------------------------*/
.points {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin: 0 auto;
  align-items: center;
  perspective: 1000px; /* 立体感を出すため */
}

.point {
  display: flex;
  flex-direction: column;
  align-items: center; /* ← 横方向中央揃え */
  background-color: var(--color-gr1);
  border-radius: 150px;
  width: 300px;
  height: 300px;
  position: relative;
  opacity: 0;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.point.show {
  opacity: 1;
  animation: flip 1s ease-in-out forwards;
}

@keyframes flip {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.cross {
  width: 71px;
  height: 71px;
}

.cross span {
  display: block;
  width: 100px;
  height: 2px;
  background: var(--color-bl);
  position: relative;
  top: 34px;
  left: -15px;
}

.cross span:nth-child(1) {
  transform: rotate(-45deg);
}

.cross span:nth-child(2) {
  transform: rotate(-135deg);
}

.point p.middle-ttl {
  position: relative;
  top: 42px;
  font-size: 24px;
  font-weight: bold;
}

.point p.cap {
  text-align: center;
  font-size: var(--font-size-14);
  line-height: 1.7;
  position: absolute;
  top: 203px;
}

.point img.hand {
  width: 95px;
  height: 76px;
  position: absolute;
  top: 91px;
}

.point img.clothes {
  width: auto;
  height: 109px;
  position: absolute;
  top: 82px;
}

/*-------------------------------------------
NEWS
-------------------------------------------*/
#news .news-list {
  max-width: 560px;
  margin: 80px auto 0;
}

/* li は枠線と余白＋アニメ用 */
#news .news-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-bl);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

#news .news-list li.show {
  opacity: 1;
  transform: translateY(0);
  line-height: 1.5;
}

/* 1件目だけ上余白なし */
#news .news-list li:first-child {
  padding-top: 0;
}

/* ★ a を flex にする（ここだけでOK） */
#news .news-list li > a {
  display: flex;
  align-items: baseline;
  width: 100%;
  color: inherit;
  text-decoration: none;
  font-size: 18px;
}

#news .news-list li > a:hover {
  opacity: 0.75;
}

/* 中身 */
#news .news-list .date {
  width: 140px;
  flex-shrink: 0;
}

#news .news-list .text {
  flex: 1;
  font-weight: 500;
}

#news .news-list {
  list-style: none;
  padding-left: 0;
}

.news-archive {
  padding: 100px 0;
}
.news-archive__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 40px;
}
.pagination ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
}
.pagination a {
  color: inherit;
  text-decoration: none;
}

#news a {
  pointer-events: none;
  cursor: default;
  color: inherit;
  text-decoration: none;
}

/*-------------------------------------------
SP
-------------------------------------------*/
@media screen and (max-width: 767px) {
  .pc-only {
    display: none;
  }

  main {
    padding: 30px 0 0;
  }

  section {
    padding: 60px 0;
  }
  /*-------------------------------------------
HERO
-------------------------------------------*/
  #hero {
    flex-direction: column-reverse;
  }

  .main-ttl {
    width: 100%;
  }

  h1 {
    margin-bottom: 32px;
    font-size: 110px;
  }

  .main-ttl p.lead {
    font-size: 15px;
    line-height: 1.7;
    text-align: justify;
  }

  .card-container {
    position: relative;
    width: 324px;
    height: 328px;
    margin: 0 auto;
  }

  .card {
    top: 0px;
    left: 52px;
    width: 225px;
    height: 300px;
    border-radius: 24px;
  }
  /*-------------------------------------------
SERVICE
-------------------------------------------*/
  .ttl-set p.cap {
    width: 100%;
    margin: 0 auto 64px;
  }

  .features {
    display: flex;
    flex-direction: column;
    gap: 64px;
  }

  .feature {
    width: 100%;
  }

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

  .scene_01,
  .scene_02,
  .scene_03 {
    height: auto;
  }
  /*-------------------------------------------
STRENGTH
-------------------------------------------*/
  .points {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  /*-------------------------------------------
NEWS
-------------------------------------------*/
  #news .news-list {
    margin: 64px auto 0;
  }

  #news .news-list li {
    padding: 16px 0;
  }

  /* a を縦並びに */
  #news .news-list li > a {
    flex-direction: column;
    align-items: flex-start;
  }

  /* PCの固定幅を解除 */
  #news .news-list .date {
    width: auto;
    margin-bottom: 8px;
  }

  #news .news-list .text {
    line-height: 1.4;
  }

  #news .news-list li > a {
    display: flex;
    flex-direction: column !important;
    align-items: flex-start;
  }

  #news .news-list .date {
    width: auto;
    margin-bottom: 8px;
  }
}