/* ==========================================================
   MIRROR Landing Page — style.css
   ========================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Noto Sans JP", "Inter", sans-serif;
  color: #2C3444;
  background-color: #F5F6F8;
  line-height: 1.8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.pc-only {
  display: inline;
}
.sp-only {
  display: none;
}

/* ---------- Section Common ---------- */
.section {
  padding: 96px 0;
}

.section--light {
  background-color: #F5F6F8;
}

.section--gray {
  background-color: #EAEDF2;
}

.section--dark {
  background-color: #2C3444;
  color: #EAEDF2;
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: #2C3444;
}

.section__title--light {
  color: #EAEDF2;
}

.section__divider {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.section__divider span {
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #F06060, #F06060);
}

.section__divider--light span {
  background: linear-gradient(90deg, #F06060, #F0606088);
}

/* ---------- Button ---------- */
.btn {
  display: inline-block;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn--primary {
  background-color: #F06060;
  color: #fff;
  padding: 16px 36px;
  box-shadow: 0 4px 16px rgba(240, 96, 96, 0.35);
}

.btn--primary:hover {
  background-color: #d94e4e;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(240, 96, 96, 0.5);
}

.btn--primary:active {
  transform: translateY(0);
}

/* ==========================================================
   1. Hero — フルスクリーン背景画像
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #EAEDF2;
}

/* --- 背景画像レイヤー --- */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* 画像を画面いっぱいに拡大 */
  transform: scale(1.05);
  filter: brightness(0.55) saturate(0.85);
  transition: transform 8s ease-out;
}

/* ページ読み込み後のゆったりズームアウト（JSで .is-loaded を付与） */
.hero.is-loaded .hero__bg-img {
  transform: scale(1.0);
}

/* --- グラデーションオーバーレイ --- */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* 中央に向かって暗くし文字を読みやすく */
    radial-gradient(ellipse at 50% 40%, rgba(44, 52, 68, 0.35) 0%, rgba(44, 52, 68, 0.75) 70%),
    /* 上端と下端を特に暗く */
    linear-gradient(to bottom, rgba(44, 52, 68, 0.7) 0%, transparent 30%, transparent 70%, rgba(44, 52, 68, 0.85) 100%);
}

/* --- 鏡面グレアライン装飾（斜めに走る光沢線） --- */
.hero__glare {
  position: absolute;
  top: 0;
  left: -20%;
  width: 140%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.04) 43%,
    rgba(255, 255, 255, 0.07) 44.5%,
    transparent 46%
  );
}

/* --- コンテンツ --- */
.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 120px 24px 100px;
  max-width: 820px;
}

.hero__logo-wrap {
  margin-bottom: 36px;
}

.hero__logo {
  width: 108px;
  height: 108px;
  margin: 0 auto;
  border-radius: 22px;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s ease;
}

.hero__logo:hover {
  transform: scale(1.06);
}

.hero__catch {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.35;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero__sub {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #c8cdd6;
}

.hero__app-name {
  font-family: "Inter", "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #EAEDF2;
  letter-spacing: 0.1em;
}

.hero__separator {
  margin: 0 8px;
  color: #F06060;
}

.hero__full-name {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.hero__desc {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #b0b8c6;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* --- 下端のミラー反射ライン --- */
.hero__mirror-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent 10%, #A0AAB8 35%, #FFFFFF 50%, #A0AAB8 65%, transparent 90%);
  z-index: 4;
}

/* ==========================================================
   2. About (MIRRORとは)
   ========================================================== */
.about__body {
  max-width: 760px;
  margin: 0 auto;
}

.prose p {
  margin-bottom: 1.4em;
  font-size: 0.95rem;
  line-height: 2;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose em {
  font-style: normal;
  color: #3C4557;
  font-weight: 600;
  border-bottom: 2px solid rgba(240, 96, 96, 0.35);
  padding-bottom: 1px;
}

.prose strong {
  font-weight: 700;
  color: #3C4557;
}

/* ==========================================================
   3. Features (主な機能)
   ========================================================== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #fff;
  border-radius: 10px;
  padding: 36px 28px 32px;
  box-shadow: 0 2px 12px rgba(44, 52, 68, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(44, 52, 68, 0.1);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  color: #3C4557;
  margin-bottom: 20px;
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.feature-card__title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.feature-card__desc {
  font-size: 0.875rem;
  line-height: 1.85;
  color: #5a6270;
}

/* ==========================================================
   4. Requirements (動作環境)
   ========================================================== */
.requirements__table-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.requirements__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.requirements__table tr {
  border-bottom: 1px solid #dde0e6;
}

.requirements__table tr:last-child {
  border-bottom: none;
}

.requirements__table th,
.requirements__table td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
}

.requirements__table th {
  font-weight: 600;
  white-space: nowrap;
  width: 160px;
  color: #3C4557;
  background: rgba(60, 69, 87, 0.04);
  border-radius: 4px 0 0 4px;
}

.requirements__table td {
  color: #4a5060;
  line-height: 1.7;
}

/* ==========================================================
   5. Research (研究情報)
   ========================================================== */
.research__body {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.research__text {
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 32px;
  color: #b0b8c6;
}

.research__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 32px 36px;
}

.research__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #F06060;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.research__title-text {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #EAEDF2;
}

.research__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #8ab4f8;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.research__link:hover {
  border-bottom-color: #8ab4f8;
}

.research__link-icon {
  flex-shrink: 0;
}

/* ==========================================================
   6. Contact (お問い合わせ)
   ========================================================== */
.contact__lead {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.85;
  color: #5a6270;
  margin-bottom: 40px;
}

.contact__lead a {
  color: #F06060;
  font-weight: 600;
  border-bottom: 1px solid #F06060;
  transition: opacity 0.2s ease;
}

.contact__lead a:hover {
  opacity: 0.7;
}

/* ==========================================================
   7. Footer
   ========================================================== */
.footer {
  background-color: #3C4557;
  color: #8890a0;
  padding: 28px 0;
  text-align: center;
}

.footer__copy {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ==========================================================
   Responsive
   ========================================================== */

/* Tablet */
@media (max-width: 960px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .pc-only {
    display: none;
  }
  .sp-only {
    display: inline;
  }

  .section {
    padding: 64px 0;
  }

  .section__title {
    font-size: 1.4rem;
  }

  .section__header {
    margin-bottom: 36px;
  }

  /* Hero mobile */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero__content {
    padding: 100px 20px 80px;
  }

  .hero__logo {
    width: 80px;
    height: 80px;
    border-radius: 18px;
  }

  .hero__logo-wrap {
    margin-bottom: 28px;
  }

  .hero__catch {
    font-size: 1.7rem;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
  }

  .hero__desc {
    font-size: 0.88rem;
    margin-bottom: 32px;
  }

  .btn--primary {
    padding: 14px 28px;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 28px 24px;
  }

  .requirements__table th {
    display: block;
    width: 100%;
    padding-bottom: 4px;
    border-radius: 4px 4px 0 0;
  }

  .requirements__table td {
    display: block;
    padding-top: 4px;
    padding-bottom: 18px;
  }

  .research__card {
    padding: 24px 20px;
  }

  .prose p {
    font-size: 0.9rem;
  }
}
