/* ============================================
   index.css　トップページ専用スタイル
   ============================================ */

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

@supports (height: 100svh) {
  .hero { height: 100svh; }
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.6s ease;
}

/* 写真ごとに見せたい位置を個別指定 */
.hero-slide:nth-child(1) { background-position: center 30%; }
.hero-slide:nth-child(2) { background-position: center 40%; }
.hero-slide:nth-child(3) { background-position: center 20%; }
.hero-slide:nth-child(4) { background-position: center center; }
.hero-slide:nth-child(5) { background-position: center 35%; }

.hero-slide.is-active {
  opacity: 1;
}

/* オーバーレイ */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.06) 0%,
    rgba(0,0,0,0.12) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 5vw 6vh 0;
}

/* 縦書きテキストブロック（右下） */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.2em;
  color: #fff;
}

.hero-text .tagline {
  writing-mode: vertical-rl;
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  letter-spacing: 0.25em;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  line-height: 1.8;
}

@media (max-width: 600px) {
  .hero-overlay {
    padding: 0 6vw 8vh 0;
  }
  .hero-text .tagline {
    font-size: 0.82rem;
  }
}

.hero-overlay .jp {
  margin-top: var(--space-sm);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  letter-spacing: 0.1em;
}

/* ---------- Story ---------- */
.story {
  text-align: center;
}

.story .container {
  max-width: 720px;
}

.story p {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--color-text-soft);
  margin-bottom: 1.4em;
}

/* ---- Story アニメーション ---- */

/* ふわっと下から出てくる */
@keyframes storyFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.story-fadeup {
  opacity: 0;
  animation: storyFadeUp 0.7s ease forwards;
}

/* こねたり：ぷるぷる揺れる（一度だけ、ホバーでも） */
@keyframes koneru {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(-3deg) scaleX(1.06); }
  30%  { transform: rotate(2deg) scaleX(0.96); }
  45%  { transform: rotate(-2deg) scaleX(1.04); }
  60%  { transform: rotate(1deg) scaleX(0.98); }
  75%  { transform: rotate(-1deg); }
  100% { transform: rotate(0deg); }
}

.story-koneru {
  display: inline-block;
  animation: koneru 1.2s ease 1.2s both;
  cursor: default;
}
.story-koneru:hover {
  animation: koneru 0.8s ease;
}

/* 絵を描いたり：パステルカラー */
.story-colorful {
  background: linear-gradient(
    90deg,
    #7DCCB8 0%,
    #F0B8B8 35%,
    #E8C97A 65%,
    #C8A8D0 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 書き留めたり：下線がすーっと伸びる */
@keyframes underlineDraw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.story-underline {
  position: relative;
  display: inline-block;
}
.story-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #D4949A;
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineDraw 0.6s ease 1.8s forwards;
}

/* ---------- Activities (2x2) ---------- */
.activities {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

/* カラフルドット背景 */
.activities::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, #7DCCB8 2px, transparent 2px),
    radial-gradient(circle, #F0B8B8 2px, transparent 2px),
    radial-gradient(circle, #E8C97A 2px, transparent 2px),
    radial-gradient(circle, #B5D4E8 2px, transparent 2px),
    radial-gradient(circle, #C8A8D0 2px, transparent 2px),
    radial-gradient(circle, #F4C2A0 2px, transparent 2px);
  background-size:
    120px 120px,
    120px 120px,
    120px 120px,
    120px 120px,
    120px 120px,
    120px 120px;
  background-position:
    0 0,
    40px 40px,
    80px 10px,
    20px 70px,
    60px 80px,
    100px 45px;
  opacity: 0.35;
  animation: dotsFloat 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes dotsFloat {
  0%   { background-position: 0 0, 40px 40px, 80px 10px, 20px 70px, 60px 80px, 100px 45px; opacity: 0.3; }
  50%  { opacity: 0.45; }
  100% { background-position: 8px 8px, 48px 32px, 72px 18px, 28px 62px, 52px 88px, 108px 38px; opacity: 0.3; }
}

.activities .container {
  position: relative;
  z-index: 1;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (max-width: 720px) {
  .activities-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .activity-card {
    aspect-ratio: 3 / 2;
  }

  .activity-card-overlay .en {
    font-size: 1.4rem;
  }

  .activity-card-overlay p {
    font-size: 0.82rem;
  }
}

.activity-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
}

.activity-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.activity-card:hover img {
  transform: scale(1.05);
}

.activity-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  color: #fff;
}

.activity-card-overlay .en {
  font-family: var(--font-logo);
  font-size: 1.3rem;
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.activity-card-overlay p {
  font-size: 0.85rem;
  margin-top: 0.3em;
  max-width: 24em;
  color: rgba(255,255,255,0.9);
}

/* ---------- Photo Strip ---------- */
.photo-strip {
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  /* スマホで指で軽く弾いたときに滑らかに動くように */
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.photo-strip::-webkit-scrollbar {
  height: 4px;
}

.photo-strip::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.photo-strip-inner {
  display: flex;
  gap: var(--space-sm);
  padding: 0 var(--space-md);
  width: max-content;
}

.photo-strip img {
  height: 260px;
  width: auto;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.photo-strip-inner > div:nth-child(2n) {
  margin-top: 40px;
}

@media (max-width: 600px) {
  .photo-strip img {
    height: 180px;
  }
}

/* ---------- News ---------- */
.news-list {
  max-width: 720px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-family: var(--font-logo);
  font-weight: 300;
  color: var(--color-text-faint);
  flex-shrink: 0;
  width: 5em;
  letter-spacing: 0.05em;
}

.news-text {
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .news-item {
    gap: var(--space-sm);
    align-items: flex-start;
  }

  .news-date {
    width: 4.2em;
    font-size: 0.85rem;
  }

  .news-text {
    font-size: 0.88rem;
  }
}

/* ---------- もっと見るボタン ---------- */
.btn-more {
  display: inline-block;
  font-size: 0.88rem;
  letter-spacing: 0.15em;
  color: var(--color-text-soft);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-more:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

/* ---------- About ---------- */
.about {
  padding: 0;   /* section の padding を打ち消す */
}

.about-bg {
  background: #F7F5D8;   /* ペールイエロー */
  padding: var(--space-xl) 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  align-items: center;
}

/* 丸クロップ写真 */
.about-photo-wrap {
  display: flex;
  justify-content: center;
}

.about-photo-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* テキスト側 */
.about-eyebrow {
  font-family: var(--font-logo);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--color-text-faint);
  text-transform: uppercase;
  margin-bottom: 0.4em;
}

.about-underline {
  width: 120px;
  height: 10px;
  display: block;
  margin-bottom: 1em;
}

.about-role {
  font-family: var(--font-logo);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--color-text-soft);
  margin-bottom: 0.3em;
}

.about-name {
  font-family: var(--font-logo);
  font-size: 2.2rem;
  font-weight: 200;
  letter-spacing: 0.15em;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  margin-bottom: var(--space-md);
}

.about-body p {
  color: var(--color-text-soft);
  line-height: 1.9;
  font-size: 0.95rem;
}

/* リンクグループ */
.about-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.about-link-group {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.about-link-label {
  font-family: var(--font-logo);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--color-text-faint);
  text-transform: uppercase;
}

/* ぽこぽこボタン → btn-moreと統一（アンダーラインスタイル） */
.about-blob-btn {
  display: inline-block;
  font-family: var(--font-logo);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--color-text-soft);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.about-blob-btn:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

@media (max-width: 760px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }
  .about-photo-circle {
    width: 160px;
    height: 160px;
  }
  .about-underline {
    margin-left: auto;
    margin-right: auto;
  }
  .about-links {
    justify-content: center;
  }
  .about-link-group {
    align-items: center;
  }
  .about-bg {
    padding: var(--space-lg) 0;
  }
}
