/* top.css — TOPページ専用 */

/* ---------- ファーストビュー（左に文字・右に写真） ---------- */
.hero { position: relative; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; }
.hero__content { position: relative; max-width: 560px; padding-block: clamp(2rem, 1rem + 2.6vw, 3.25rem); }
.hero__title { position: relative; display: inline-block; font-size: var(--fs-hero); line-height: 1.18; letter-spacing: .02em; margin-bottom: 1.25rem; }
.hero__title-hand { position: absolute; left: 100%; bottom: -.5rem; margin-left: -.75rem; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.5rem); }
.hero__desc { font-size: var(--fs-lead); line-height: 1.8; margin-bottom: 1.25rem; color: var(--color-text-strong); max-width: 24em; }
.hero__line-lead { font-weight: 800; font-size: 1rem; margin-bottom: .5rem; color: var(--color-text-strong); }
.hero .line-btn { min-width: 320px; justify-content: space-between; }
.hero .line-note { margin-top: .5rem; }

.hero__media { position: relative; }
.hero__media .media { border-radius: 0; height: 100%; background: transparent; }
.hero__hand { position: absolute; right: 5%; top: 42%; color: #fff; font-family: var(--font-hand); font-size: clamp(1.25rem, .8rem + 1.4vw, 2.125rem); line-height: 1.35; transform: rotate(-12deg); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
:lang(en) .hero__hand, :lang(ko) .hero__hand { font-weight: 700; }

@media (min-width: 768px) {
  .hero { min-height: clamp(380px, 29vw, 480px); display: flex; align-items: center; }
  .hero__media { position: absolute; top: 0; bottom: 0; right: 0; width: 70%; }
  .hero__media .media {
    -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.6) 7%, #000 16%);
    mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.6) 7%, #000 16%);
  }
  .hero__media img { object-position: left center; }
  .hero__content { max-width: 34%; }
}
@media (max-width: 767px) {
  .hero { display: flex; flex-direction: column; }
  .hero__media { order: 2; }
  .hero__media .media { aspect-ratio: 13 / 7; }
  .hero__content { padding-block: 1.25rem 1.25rem; }
  .hero__title { font-size: 2.125rem; margin-bottom: .75rem; }
  .hero__title-hand { left: 100%; right: auto; bottom: auto; top: .125rem; margin-left: -1.75rem; font-size: 1.5rem; }
  .hero__desc { font-size: .875rem; margin-bottom: .75rem; }
  .hero .line-btn { min-width: 0; min-height: 42px; }
  .hero .line-note { font-size: .75rem; }
  .hero__hand { right: 4%; top: auto; bottom: 22%; font-size: 1.25rem; }
}

/* ---------- 楽しく遊ぶための心構え ---------- */
.tips-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .tips-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tip-card {
  position: relative; display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 1rem; align-items: start;
  background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); padding: .75rem; box-shadow: var(--shadow); min-height: 180px;
}
.tip-card .media { aspect-ratio: 9 / 8; border-radius: 8px; }
.tip-card h3 { font-size: 1.1875rem; margin: .25rem 0 .5rem; }
.tip-card p { font-size: .8125rem; line-height: 1.7; }
.tip-card .handwritten-note { position: absolute; right: 1rem; bottom: .75rem; text-align: right; font-size: 1.3125rem; }
.tip-card__body { padding-bottom: 2.75rem; }
@media (max-width: 599px) {
  .tip-card { grid-template-columns: 30% minmax(0, 1fr); min-height: 0; }
  .tip-card .media { aspect-ratio: 1; }
  .tip-card h3 { font-size: 1rem; margin-top: 0; }
  .tip-card p { font-size: .75rem; }
  .tip-card .handwritten-note { position: static; grid-column: 2; justify-self: end; font-size: 1rem; }
  .tip-card__body { padding-bottom: 0; }
}

/* ---------- 初めての方へ ---------- */
.first-block { position: relative; display: grid; gap: var(--space-3) var(--space-4); align-items: center; }
@media (min-width: 900px) { .first-block { grid-template-columns: 43% minmax(0, 1fr); } }
.first-block .media { aspect-ratio: 9 / 4; }
.first-block h2 { font-size: var(--fs-h2-sub); line-height: 1.32; margin-bottom: 1rem; }
.first-block p { font-size: .875rem; line-height: 1.85; margin-bottom: 1.25rem; max-width: 34em; }
.first-block__text { position: relative; z-index: 1; }
.first-skyline { position: absolute; right: 0; bottom: 0; width: min(32%, 400px); height: auto; color: var(--color-red); opacity: .6; z-index: 0; pointer-events: none; }
@media (max-width: 899px) { .first-skyline { display: none; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: var(--space-3); align-items: center; }
@media (min-width: 900px) { .faq-layout { grid-template-columns: minmax(0, 940px) 1fr; } .faq-layout .text-link { justify-self: center; } }
.faq-list { display: grid; gap: 6px; }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-sm); box-shadow: 0 1px 3px rgba(0, 0, 0, .05); }
.faq-item summary { display: flex; align-items: center; gap: 1rem; cursor: pointer; list-style: none; padding: .5rem 1.25rem .5rem .75rem; font-weight: 700; color: var(--color-text-strong); min-height: 46px; font-size: .9375rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 4px; background: var(--color-red); color: #fff; font-size: .875rem; font-weight: 800; }
.faq-toggle { margin-left: auto; flex: none; width: 16px; height: 16px; position: relative; }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--color-text-strong); transition: transform .2s ease; }
.faq-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: rotate(0deg); }
.faq-answer { padding: 0 1.25rem 1rem 3.5rem; font-size: var(--fs-small); line-height: 1.85; }
@media (max-width: 599px) { .faq-item summary { font-size: .875rem; gap: .625rem; } .faq-answer { padding-left: 1rem; } }
/* 英語・韓国語の調整 */
:lang(en) .hero__title { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); }
@media (min-width: 768px) { :lang(en) .hero__content { max-width: 38%; } }
:lang(en) .hero__hand { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); }
:lang(ko) .hero__hand { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); }

/* PC（1100px以上）：デザイン見本に合わせて文字を大きめに */
@media (min-width: 1100px) {
  .hero { min-height: 410px; }
  .hero__content { max-width: 42%; padding-block: 2rem; }
  .hero__title { margin-bottom: 1rem; }
  .hero__desc { font-size: 1.1875rem; line-height: 1.65; margin-bottom: 1rem; max-width: none; }
  .hero__line-lead { font-size: 1.1875rem; }
  .hero .line-btn { min-width: 360px; }
  .hero__media { width: 66%; }
  .tip-card { padding: .875rem; min-height: 200px; }
  .tip-card h3 { font-size: 1.5rem; }
  .tip-card p { font-size: .9375rem; line-height: 1.65; }
  .tip-card .handwritten-note { font-size: 1.5rem; }
  .first-block h2 { font-size: 3.125rem; }
  .first-block p { font-size: 1.0625rem; max-width: 36em; }
  .first-block .text-link { font-size: 1.25rem; }
  .faq-item summary { font-size: 1.125rem; min-height: 52px; }
  .faq-answer { font-size: 1rem; }
  .faq-layout .text-link { font-size: 1.25rem; }
}

/* 心構えカード：手書き風コメントを本文と重ならないよう、カード下部に右寄せで配置（2026-11-18） */
.tip-card .handwritten-note { position: static !important; grid-column: 1 / -1; justify-self: end; margin: -.25rem .25rem 0 0; }
.tip-card__body { padding-bottom: 0 !important; }
.tip-card { min-height: 0 !important; }
