/* /src/css/style.css */

/* =========================================================
   style.css（ヘッダー＋モバイル右ドロワー）
========================================================= */

/* ===== Base / Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: #1c1c22;
  /* 丸めのフォント
  font-family: "M PLUS Rounded 1c", system-ui, -apple-system, "Noto Sans JP",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    Meiryo, sans-serif;
  */
  line-height: 1.6;

  font-family: system-ui, -apple-system, "Noto Sans JP", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
 

  background: radial-gradient(circle, #D6D8FD 0%, #FCD2D2 100%);
}

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

a {
  color: inherit;
}

/* ===== Tokens ===== */
:root {
  --container: min(1100px, 92vw);
  --ink: #1c1c22;
  --brand: #7b57ff;
  --brand2: #5b3dff;
}

/* =========================================================
   Shared section title (reuse)
   - 今後どのセクションでもこの見出しデザインを使い回せる
========================================================= */
/* タイトルを共通デザインに揃える（使い回し用） */
.section__title,
.feature__title {
  margin: 0;
  font-family: "IBM Plex Sans JP", system-ui, -apple-system, "Noto Sans JP", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(46px, 3.1vw, 72px);
  font-weight: 800;
  letter-spacing: .015em; /* 日本語は広げすぎない */
  line-height: 1.12;      /* ちょいゆとりで品が出る */
  color: rgba(0, 0, 0, 0.92);
}

@media (max-width: 900px){
  .section__title,
  .feature__title{
    font-size: clamp(30px, 7.5vw, 40px);
    line-height: 1.15;
    letter-spacing: .01em;
  }
}



/* =========================================================
   Header
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;

  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.header-inner {
  width: var(--container);
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 10px 0;
}

/* Logo */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  height: 50px;
  width: auto;
  display: block;
}

/* Global nav */
.gnav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gnav a {
  font-size: 12px;
  font-weight: 800;
  color: rgba(28, 28, 34, 0.78);
  text-decoration: none;

  padding: 8px 10px;
  border-radius: 999px;

  transition: 0.18s ease;
}

.gnav a:hover {
  background: rgba(123, 87, 255, 0.1);
  color: rgba(28, 28, 34, 0.95);
}

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 9px 12px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 900;
  text-decoration: none;

  border: 1px solid transparent;
  transition: 0.18s ease;

  white-space: nowrap;
  user-select: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(28, 28, 34, 0.18);
  color: rgba(28, 28, 34, 0.85);
}

.btn-ghost:hover {
  background: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  box-shadow: 0 14px 28px rgba(91, 61, 255, 0.18);
}

.btn-primary:hover {
  filter: brightness(1.02);
}

/* Hamburger */
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(28, 28, 34, 0.16);
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  position: relative;
}

.menu-btn span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: rgba(28, 28, 34, 0.75);
  border-radius: 2px;
}

.menu-btn span:nth-child(1) { top: 13px; }
.menu-btn span:nth-child(2) { top: 19px; }
.menu-btn span:nth-child(3) { top: 25px; }

/* =========================================================
   Drawer (Mobile)
========================================================= */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 80;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(86vw, 360px);

  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.12);
  border-left: 1px solid rgba(28, 28, 34, 0.10);

  transform: translateX(100%);
  transition: transform .22s ease;
  z-index: 90;
}

.nav-drawer__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 18px;
  gap: 14px;
}

.nav-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav-drawer__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-drawer__logo {
  display: block;
  width: auto;
  height: 50px;
}

.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(28, 28, 34, 0.14);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.nav-drawer__nav {
  display: grid;
  gap: 8px;
  padding-top: 6px;
}

.nav-drawer__nav a {
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  color: rgba(28, 28, 34, 0.92);
  border: 1px solid rgba(28, 28, 34, 0.10);
  background: rgba(255, 255, 255, 0.55);
}

.nav-drawer__actions {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

/* Open state */
body.is-drawer-open .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.is-drawer-open .nav-drawer {
  transform: translateX(0);
}

body.is-drawer-open {
  overflow: hidden;
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 900px) {
  .gnav { display: none; }
  .menu-btn { display: inline-block; }

  /* ✅ ヘッダー上のログイン/登録は消す（ドロワー内だけにする） */
  .header-actions .btn { display: none; }

  /* ✅ ドロワーとオーバーレイは“消さない” */
  .nav-drawer { display: block; }
  .drawer-overlay { display: block; }

  /* ✅ ドロワーを全画面表示にする */
  .nav-drawer{
    width: 100vw;
    max-width: none;
    border-left: none;
    box-shadow: none;
  }

  /* ✅ 中身の余白を全画面向けに調整 */
  .nav-drawer__inner{
    padding: 18px 18px 22px;
    gap: 16px;
  }

  /* ✅ ナビが増えてもボタンが下に押し込まれすぎないように */
  .nav-drawer__nav{
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
  }

  /* ✅ ログイン/登録を“下すぎない”位置へ（autoをやめる） */
  .nav-drawer__actions{
    margin-top: 18px !important;
  }
}

@media (min-width: 901px) {
  /* ✅ PCではドロワー自体を出さない */
  .nav-drawer,
  .drawer-overlay {
    display: none;
  }
}


/* =========================================================
   Hero
========================================================= */
:root{
  /* 背景パターン画像（差し替えてOK） */
  --hero-pattern: url("/src/img/ホーム/5.svg");
}

.hero{
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  padding: 70px 0 110px;
  border-bottom: 1px solid rgba(28,28,34,.08);
}

/* 背景（SVG 1枚を全面に敷く） */
.hero__bg{
  position: absolute;
  inset: 0;
  background-image: var(--hero-pattern);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

/* うっすら矩形の「タイル感」も足す */
.hero::before{
  content:"";
  position:absolute;
  inset:-40px;
  background:
    radial-gradient(1200px 520px at 50% 30%, rgba(255,255,255,.55), transparent 65%),
    linear-gradient(90deg, rgba(255,255,255,.22) 0 1px, transparent 1px 220px),
    linear-gradient(0deg,  rgba(255,255,255,.18) 0 1px, transparent 1px 220px);
  opacity:.35;
  pointer-events:none;
  z-index: 0;
}

.hero__inner{
  width: var(--container);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}




/* タイトル（グラデ文字） */
.hero__title{
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.15;

  background: linear-gradient(90deg, #ff3a3a 0%, #b24cff 45%, #2f49ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title-en,
.hero__title-ja{
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: inherit;
}

.hero__title-bar{
  color: inherit;
}

.hero__lead{
  margin: 18px 0 0;
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 700;
  color: rgba(28,28,34,.85);
  line-height: 1.9;
}

/* キャラ（背景に薄く置く） */
.hero__img{
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.08));
  opacity: .28;
}

.hero__img--left{
  left: 40px;
  bottom: -50px;
  width: min(50vw, 600px);
}

.hero__img--right{
  right: 120px;
  bottom: -30px;
  width: min(30vw, 390px);
}

.hero__img--mid{
  right: 540px;
  bottom: -10px;
  width: min(30vw, 380px);
}

/* CTA行（左：メインキャラ / 右：ボタン群） */
.hero__cta-row{
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.hero__main{
  position: static;
  transform: none;
  width: 440px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.10));
}

.hero__actions{
  margin-top: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hero__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, #7b57ff, #5b3dff);
  box-shadow: 0 18px 34px rgba(91,61,255,.22);
  border: 1px solid rgba(255,255,255,.35);
}

.hero__cta:hover{
  filter: brightness(1.03);
}

.hero__sub{
  font-weight: 900;
  color: rgba(47,73,255,.95);
  text-decoration: none;
  border-bottom: 2px solid rgba(47,73,255,.30);
  padding-bottom: 2px;
}

.hero__sub:hover{
  border-bottom-color: rgba(47,73,255,.60);
}

/* =========================================================
   Hero - Mobile tuning
========================================================= */
@media (max-width: 900px){
  .hero{
    /* ✅ 余分な下余白の原因を潰す */
    min-height: auto;
    padding: 44px 0 58px; /* ←ここで下の余白が縮む */
  }

  /* 背景キャラの調整はそのままでOK */
  .hero__img--left{
    width: 68vw;
    left: -60px;
  }

  .hero__img--right{
    width: 44vw;
    right: -40px;
  }

  .hero__img--mid{
    right: 100px;
    bottom: -10px;
  }

  /* ✅ タイトルを2行に（棒は消す） */
  .hero__title{
    line-height: 1.08;
  }

  .hero__title-en,
  .hero__title-ja{
    display: block;         /* ←改行 */
  }

  .hero__title-bar{
    display: none;          /* ←棒を消す */
  }

  .hero__title-ja{
    margin-top: 6px;        /* 2行の間隔 */
  }

  .hero__lead{
    margin: 14px 0 0;
    line-height: 1.75;
    font-size: clamp(13px, 1.35vw, 16px);
  }

  /* ✅ CTA周りの余白を詰めて“下のスカスカ”を解消 */
  .hero__cta-row{
    margin-top: 26px;
    flex-direction: column;
    gap: 12px;
  }

  .hero__main{
    width: 180px;           /* そのままでもOK */
  }

  .hero__actions{
    gap: 26px;              /* 40px → 詰める */
  }
}


/* =========================================================
   Feature section (Type Tripでできること)
========================================================= */
.feature{
  padding: 60px 0;
}

.feature__inner{
  width: var(--container);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  align-items: center;
  gap: 40px;

  border-radius: 22px;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.feature__lead{
  margin: 18px 0 0;
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 800;
  color: rgba(28,28,34,.88);
  line-height: 1.9;
}

.feature__list{
  margin: 22px 0 0;
  padding: 0;
  list-style: none;

  display: grid;
  gap: 14px;
}

.feature__item{
  display: flex;
  align-items: center;
  gap: 12px;

  font-weight: 900;
  color: rgba(13, 13, 13, 0.65);
  font-size: clamp(14px, 1.2vw, 18px);
}

.feature__icon{
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(28,28,34,.10);
  flex: 0 0 auto;
}

.feature__media{
  margin: 0;
  display: grid;
  place-items: center;
}

.feature__img{
  width: min(520px, 44vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.12));
}

@media (max-width: 900px){
  .feature{
    padding: 54px 0;
  }

  .feature__inner{
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px 18px;
    text-align: left;
  }

  .feature__media{
    order: 2;
  }

  .feature__img{
    width: min(320px, 72vw);
  }
}

/* =========================================================
   Fortune section (タイプおみくじ)
========================================================= */

.fortune{
  padding: 70px 0 80px;
}

.fortune__inner{
  width: var(--container);
  margin: 0 auto;
}

.fortune__title{
  text-align: left;
}

.fortune__hero{
  margin-top: 34px;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.fortune__chara{
  width: min(500px, 78vw);
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.10));
}

/* =========================
   今日のおみくじを引く（.fortune__cta）
========================= */
.fortune__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  padding: 17px 40px;
  border-radius: 50px;
  cursor: pointer;

  border: 0;
  background-color: #fff;
  box-shadow: rgb(0 0 0 / 5%) 0 0 8px;

  letter-spacing: 0.06em;
  font-size: 15px;
  font-weight: 900;
  color: #111;

  transition: all 0.5s ease;
}

.fortune__cta:hover{
  letter-spacing: 0.12em;
  background-color: hsl(261deg 80% 48%);
  color: hsl(0 0% 100%);
  box-shadow: rgb(93 24 220) 0px 7px 29px 0px;
}

.fortune__cta:active{
  letter-spacing: 0.12em;
  background-color: hsl(261deg 80% 48%);
  color: hsl(0 0% 100%);
  box-shadow: rgb(93 24 220) 0px 0px 0px 0px;
  transform: translateY(10px);
  transition: 100ms;
}

.fortune__cta:focus-visible{
  outline: 3px solid rgba(93, 24, 220, .35);
  outline-offset: 4px;
}

/* =========================
   Cards（モダン / ガラス風 / 縦長＋中央寄せ）
   ✅ カード別にキャラ画像・位置・サイズを変えられる版
========================= */

.fortune__cards{
  margin: 34px 0 0;
  padding: 0;
  list-style: none;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.fortune-card{
  position: relative;
  display: grid;

  /* ✅ 縦長 */
  min-height: 190px;

  /* ✅ 文字を中央寄せ（縦も中央） */
  place-content: center;
  text-align: center;

  gap: 10px;
  padding: 26px 18px;
  border-radius: 22px;
  text-decoration: none;
  overflow: hidden;

  /* glass */
  background: rgba(255,255,255,.38);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,.45);
  box-shadow:
    0 20px 45px rgba(0,0,0,.10),
    0 1px 0 rgba(255,255,255,.55) inset;

  transform: translateY(0);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;

  /* ✅ カードごとに上書きする変数（デフォルト） */
  --card-accent-rgb: 47 73 255;
  --card-chara: url("/src/img/キャラ/mikomon.png");
  --card-chara-size: 150px auto;
  --card-chara-pos: 50% 18%;
  --card-chara-opacity: .16;
}

/* アクセントの“にじみ” */
.fortune-card::before{
  content:"";
  position: absolute;
  inset: -60px -60px auto -60px;
  height: 190px;
  background:
    radial-gradient(circle at 30% 30%,
      rgb(var(--card-accent-rgb) / .25),
      transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* 背景キャラ（カード別に差し替え可） */
.fortune-card::after{
  content:"";
  position: absolute;
  inset: 0;
  background-image: var(--card-chara);
  background-repeat: no-repeat;
  background-size: var(--card-chara-size);
  background-position: var(--card-chara-pos);

  opacity: var(--card-chara-opacity);
  filter: saturate(1.05) contrast(1.02);
  pointer-events: none;
  z-index: 0;
  transition: opacity .22s ease, transform .22s ease;
}

.fortune-card__title,
.fortune-card__desc{
  position: relative;
  z-index: 1;
}

.fortune-card__title{
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .02em;
  color: rgb(var(--card-accent-rgb) / .95);
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}

.fortune-card__desc{
  margin: 0;
  font-weight: 800;
  color: rgba(28,28,34,.76);
  line-height: 1.7;
}

/* hover / focus */
.fortune-card:hover{
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.75);
  box-shadow:
    0 26px 60px rgba(0,0,0,.14),
    0 1px 0 rgba(255,255,255,.65) inset;
}

.fortune-card:hover::after{
  opacity: calc(var(--card-chara-opacity) + .04);
  transform: translateY(-2px);
}

.fortune-card:focus-visible{
  outline: 3px solid rgb(var(--card-accent-rgb) / .30);
  outline-offset: 4px;
}

/* accent（RGB）＋ キャラ（例：必要に応じて画像/位置を調整） */
/* ===== 6枚それぞれ：キャラ画像＋位置＋サイズ ===== */

.fortune-card--love{
  --card-accent-rgb: 216 76 211;
  --card-chara: url("/src/img/キャラ/mikomon_laugh.png");
  --card-chara-size: 160px auto;
  --card-chara-pos: 78% 18%;
  --card-chara-opacity: .16;
}

.fortune-card--work{
  --card-accent-rgb: 49 184 90;
  --card-chara: url("/src/img/キャラ/runarin_run.png");
  --card-chara-size: 160px auto;
  --card-chara-pos: 22% 22%;
  --card-chara-opacity: .15;
}

.fortune-card--money{
  --card-accent-rgb: 209 177 26;
  --card-chara: url("/src/img/キャラ/komasuke_run.png");
  --card-chara-size: 170px auto;
  --card-chara-pos: 72% 20%;
  --card-chara-opacity: .14;
}

/* 追加3枚（PC-only側） */
.fortune-card--health{
  --card-accent-rgb: 30 160 210;
  --card-chara: url("/src/img/キャラ/mikomon_run.png");
  --card-chara-size: 165px auto;
  --card-chara-pos: 70% 18%;
  --card-chara-opacity: .14;
}

.fortune-card--study{
  --card-accent-rgb: 120 80 255;
  --card-chara: url("/src/img/キャラ/mikomon.png");
  --card-chara-size: 150px auto;
  --card-chara-pos: 28% 18%;
  --card-chara-opacity: .14;
}

.fortune-card--friend{
  --card-accent-rgb: 255 120 60;
  --card-chara: url("/src/img/キャラ/friends.png");
  --card-chara-size: 190px auto;
  --card-chara-pos: 50% 20%;
  --card-chara-opacity: .12;
}

/* ブラー非対応ブラウザのフォールバック */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){
    .fortune{
  padding: 30px 0 80px;
}
  .fortune-card{
    background: rgba(255,255,255,.78);
  }
}

.fortune__more{
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.fortune__more-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  color: #111;

  background: rgba(255,255,255,.55);
  border: 3px solid rgba(28,28,34,.35);
  box-shadow: 0 14px 28px rgba(0,0,0,.08);
}

.fortune__more-btn:hover{
  filter: brightness(1.03);
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 900px){
  .fortune__cards{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* ✅ PCだけ表示のliをスマホで非表示 */
  .fortune-card--pc-only{
    display: none;
  }

  .fortune-card{
    min-height: 200px;
  }

  /* ✅ スマホではキャラを少し縮める（カード別変数の上書き） */
  .fortune-card{
    --card-chara-size: 140px auto;
    --card-chara-pos: 50% 18%;
  }
}







/* =========================================================
   Diagnosis section（性格診断）
========================================================= */

.diagnosis{
  position: relative;
  overflow: hidden;
  padding: 70px 0 90px;

  /* 背景に溶け込ませる薄いキャラ（差し替えOK） */
  --diagnosis-bg: url("/src/img/キャラ/mikomon_run.png");
}

/* 背景の薄いキャラ（heroと同じ“背景に溶け込む”系） */
.diagnosis::before{
  content:"";
  position: absolute;
  left: -70px;
  bottom: -70px;
  width: min(560px, 78vw);
  height: min(560px, 78vw);

  background-image: var(--diagnosis-bg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left bottom;

  opacity: .12;
  filter: blur(.2px) saturate(1.02);
  transform: rotate(-6deg);

  pointer-events: none;
  z-index: 0;
}

/* 背景に“うっすら白い膜”を足して馴染ませる */
.diagnosis::after{
  content:"";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 380px at 40% 20%, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(800px 420px at 70% 85%, rgba(255,255,255,.35), transparent 70%);
  opacity: .75;
  pointer-events: none;
  z-index: 0;
}

.diagnosis__inner{
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.diagnosis__title{
  text-align: left;
}

/* 2枚のカード */
.diagnosis__cards{
  margin-top: 52px;
  display: grid;
  gap: 22px;
}

/* =========================================================
   Card（共通）
========================================================= */
.diag-card{
  --diag-accent: 47 73 255; /* 既定 */

  position: relative;
  overflow: hidden;

  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;

  padding: 34px 34px; 
  border-radius: 28px;

  background: rgba(255,255,255,.42);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);

  border: 1px solid rgba(255,255,255,.60);
  box-shadow:
    0 18px 40px rgba(0,0,0,.10),
    0 1px 0 rgba(255,255,255,.55) inset;

  transform: translateY(0);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

/* カード内の淡い色味（アクセントに合わせて滲ませる） */
.diag-card::before{
  content:"";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 0%,
      rgb(var(--diag-accent) / .14),
      transparent 55%),
    radial-gradient(circle at 110% 110%,
      rgb(var(--diag-accent) / .10),
      transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.diag-card__body{
  position: relative;
  z-index: 1;
}

.diag-card__heading{
  margin: 0;
  font-size: clamp(29px, 1.7vw, 40px);
  font-weight: 900;
  letter-spacing: .02em;
  color: rgb(var(--diag-accent) / .95);
}

.diag-card__text{
  margin: 12px 0 0;
  color: rgba(28,28,34,.78);
  font-weight: 700;
  line-height: 2.35;
}

/* ボタン（画像の雰囲気に合わせたアウトライン系） */
.diag-card__btn{
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;

  font-weight: 900;
  color: rgb(var(--diag-accent) / .95);

  background: rgba(255,255,255,.72);
  border: 2px solid rgba(28,28,34,.22);
  box-shadow: 0 14px 28px rgba(0,0,0,.08);

  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.diag-card__btn:hover{
  transform: translateY(-1px);
  background-color: hsl(261deg 80% 48%);
  color: #fff;
  border-color: transparent;
  box-shadow: rgb(93 24 220 / .35) 0px 12px 34px 0px;
}

.diag-card__btn:active{
  transform: translateY(2px);
  box-shadow: rgb(93 24 220 / .18) 0px 6px 18px 0px;
}

.diag-card__btn:focus-visible{
  outline: 3px solid rgb(var(--diag-accent) / .28);
  outline-offset: 4px;
}

/* 右下のキャラ */
.diag-card__chara{
  position: relative;
  z-index: 1;
  width: min(260px, 37vw);
  height: auto;
  align-self: end;
  justify-self: end;
  filter: drop-shadow(0 16px 22px rgba(0,0,0,.12));
}

/* hoverでカードが少し浮く */
.diag-card:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.78);
  box-shadow:
    0 26px 60px rgba(0,0,0,.14),
    0 1px 0 rgba(255,255,255,.62) inset;
}

/* =========================================================
   Card（個別アクセント）
========================================================= */
.diag-card--type{
  --diag-accent: 47 73 255;
}

.diag-card--compat{
  --diag-accent: 126 77 255;
}

/* ブラー非対応フォールバック */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){
  .diag-card{
    background: rgba(255,255,255,.78);
  }
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 900px){
  .diagnosis{
    padding: 30px 0 78px;
  }

  .diagnosis::before{
    left: -160px;
    bottom: -190px;
    opacity: .10;
  }

  .diag-card{
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 18px;
  }

  .diag-card__chara{
    width: 120px;
    justify-self: end;
    display: none;
  }

  .diag-card__btn{
    width: 100%;
  }
}











/* =========================================================
   Voices section（ユーザー様からの声）
========================================================= */

.voices{
  position: relative;
  overflow: hidden;
  padding: 92px 0 100px;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(255,255,255,.10), transparent 70%),
    linear-gradient(180deg, #8F79BD 0%, #715A9C 48%, #5E4A86 100%);
  border-top: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.voices__inner{
  width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.voices__title{
  text-align: center;
  color: #fff;
  font-size: clamp(34px, 4vw, 48px);
}

.voices__lead{
  margin: 12px 0 0;
  text-align: center;
  font-weight: 800;
  color: rgba(255,255,255,.82);
}

.voices__marquee-wrap{
  width: 100%;
  margin-top: 34px;
}

.voices__marquee{
  --lane-gap: 22px;
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 22px;
  padding: 0;
  box-sizing: border-box;
}

.voices__marquee::before,
.voices__marquee::after{
  content:"";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(10vw, 120px);
  z-index: 3;
  pointer-events: none;
}

.voices__marquee::before{
  left: 0;
  background: linear-gradient(90deg, #7B65A8 0%, rgba(123, 101, 168, 0) 100%);
}

.voices__marquee::after{
  right: 0;
  background: linear-gradient(270deg, #7B65A8 0%, rgba(123, 101, 168, 0) 100%);
}

.voices-marquee__lane{
  position: relative;
  overflow: hidden;
}

.voices-marquee__track{
  display: flex;
  align-items: stretch;
  gap: var(--lane-gap);
  width: max-content;
  will-change: transform;
  animation: voices-marquee var(--marquee-duration, 36s) linear infinite;
}

.voices-marquee__track--reverse{
  animation-name: voices-marquee-reverse;
}

.voices-marquee__track.is-paused{
  animation-play-state: paused;
}

.voices-marquee__group{
  margin: 0;
  padding: 6px 0;
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: var(--lane-gap);
}

.voice-card{
  flex: 0 0 clamp(260px, 28vw, 360px);
  min-height: 164px;
  padding: 20px 20px 18px;
  display: grid;
  gap: 12px;

  background: rgba(255,255,255,.74);
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 28px;
  box-shadow:
    0 18px 40px rgba(73, 52, 130, .10),
    0 1px 0 rgba(255,255,255,.60) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition:
    transform .24s ease,
    box-shadow .24s ease,
    border-color .24s ease;
}

.voice-card:hover{
  transform: translateY(-4px);
  box-shadow:
    0 24px 54px rgba(73, 52, 130, .14),
    0 1px 0 rgba(255,255,255,.66) inset;
  border-color: rgba(255,255,255,.82);
}

.voice-card__head{
  display: flex;
  align-items: center;
  gap: 12px;
}

.voice-card__avatar{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(28,28,34,.08);
  box-shadow: 0 6px 12px rgba(0,0,0,.04);
  flex-shrink: 0;
}

.voice-card__name{
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .01em;
  color: rgba(28,28,34,.92);
}

.voice-card__text{
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.8;
  color: rgba(28,28,34,.76);
}

@keyframes voices-marquee{
  from{
    transform: translate3d(0, 0, 0);
  }
  to{
    transform: translate3d(calc(-50% - (var(--lane-gap) / 2)), 0, 0);
  }
}

@keyframes voices-marquee-reverse{
  from{
    transform: translate3d(calc(-50% - (var(--lane-gap) / 2)), 0, 0);
  }
  to{
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 900px){
  .voices{
    padding: 72px 0 80px;
  }

  .voices__marquee-wrap{
    margin-top: 28px;
  }

   .voices__marquee{
    --lane-gap: 16px;
    gap: 16px;
    padding: 0;
  }

  .voice-card{
    flex-basis: clamp(230px, 72vw, 300px);
    min-height: 154px;
    padding: 18px 18px 16px;
    border-radius: 24px;
  }

  .voices-marquee__lane:nth-child(3){
    display: none;
  }
}

@media (max-width: 560px){
  .voices{
    padding: 64px 0 72px;
  }

  .voices__inner{
    padding: 0 16px;
  }

  .voices__title{
    font-size: clamp(30px, 8vw, 38px);
  }

  .voices__lead{
    font-size: 14px;
  }

  .voices__marquee::before,
  .voices__marquee::after{
    width: 36px;
  }

  .voices__marquee{
    padding: 0;
  }

  .voices-marquee__lane:nth-child(2){
    display: none;
  }

  .voice-card{
    flex-basis: 78vw;
    min-height: 148px;
  }

  .voice-card__text{
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce){
  .voices-marquee__track{
    animation: none !important;
    transform: none !important;
  }

  .voice-card{
    transition: none;
  }
}



/* =========================================================
   FAQ section（よくある質問）
========================================================= */

.faq{
  position: relative;
  overflow: hidden;
  padding: 80px 0 90px;

  /* 背景キャラ（差し替えOK） */
  --faq-bg: url("/src/img/キャラ/mikomon_wow.png");
}

/* 背景キャラ（溶け込み） */
.faq::before{
  content:"";
  position: absolute;
  right: 90px;
  top: 250px;

  width: min(420px, 50vw);
  height: min(420px, 50vw);

  background-image: var(--faq-bg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right top;

  opacity: .16;
  filter: blur(.25px) saturate(1.02);

  pointer-events: none;
  z-index: 0;
}

/* 白い膜＋光で馴染ませる */
.faq::after{
  content:"";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 30% 20%, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(700px 420px at 85% 45%, rgba(255,255,255,.38), transparent 70%);
  opacity: .8;
  pointer-events: none;
  z-index: 0;
}

.faq__inner{
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.faq__title{
  text-align: left;
  color: #111; /* feature__titleの青をここでは黒に寄せたい場合 */
  font-size: clamp(34px, 4vw, 48px);
}

/* リスト */
.faq__list{
  margin-top: 26px;
  display: grid;
}

/* 1行のアコーディオン */
.faq-item{
  border-top: 1px solid rgba(28,28,34,.22);
}

.faq-item:last-child{
  border-bottom: 1px solid rgba(28,28,34,.22);
}

/* summaryはデフォの三角を消す */
.faq-item > summary{
  list-style: none;
}
.faq-item > summary::-webkit-details-marker{
  display: none;
}

.faq-item__q{
  cursor: pointer;
  padding: 18px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  font-weight: 900;
  color: rgba(28,28,34,.88);
}

/* 右のV字アイコン */
.faq-item__icon{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.60);
  border: 1px solid rgba(28,28,34,.18);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);

  position: relative;
  flex: 0 0 auto;
}

.faq-item__icon::before{
  content:"";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;

  border-right: 3px solid rgba(28,28,34,.80);
  border-bottom: 3px solid rgba(28,28,34,.80);
  transform: rotate(45deg);
  top: -2px;
}

/* 開いたときに回転 */
.faq-item[open] .faq-item__icon::before{
  transform: rotate(-135deg);
  top: 2px;
}

/* 回答 */
.faq-item__a{
  padding: 0 6px 18px;
}

.faq-item__a p{
  margin: 0;
  font-weight: 700;
  color: rgba(28,28,34,.78);
  line-height: 1.85;
}

/* キーボード操作 */
.faq-item__q:focus-visible{
  outline: 3px solid rgba(123, 87, 255, .28);
  outline-offset: 6px;
  border-radius: 12px;
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 900px){
  .faq{
    padding: 64px 0 72px;
  }

  .faq::before{
    right: -30px;
    top: 290px;
    opacity: .12;
    width: min(300px, 64vw);
    height: min(300px, 64vw);
  }

  .faq-item__q{
    padding: 16px 2px;
  }
}




/* =========================================================
   Footer
========================================================= */

.site-footer{
  margin-top: 90px;
  color: rgba(255,255,255,.86);
  background:
    radial-gradient(1200px 560px at 20% 0%, rgba(123,87,255,.22), transparent 60%),
    radial-gradient(900px 520px at 80% 30%, rgba(91,61,255,.18), transparent 62%),
    linear-gradient(180deg, #05074a 0%, #030432 100%);
  border-top: 1px solid rgba(255,255,255,.08);
}

.site-footer__inner{
  width: var(--container);
  margin: 0 auto;
  padding: 34px 0 28px;

  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 26px;
  align-items: start;
}

/* left */
.footer-brand__link{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-brand__logo{
  width: 180px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.35));
  margin-bottom: 20px;
}

/* =========================================================
   SNS（Btnスタイル + URLで自動色分け）
========================================================= */
.footer-sns{
  margin-top: 12px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-sns__btn{
  width: 45px;
  height: 45px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  background-color: transparent;
  position: relative;
  border-radius: 7px;
  cursor: pointer;

  /* aタグ向け */
  text-decoration: none;

  transition: all .3s;
}

/* svgContainer 相当 */
.footer-sns__btn::before{
  content: "";
  position: absolute;
  inset: 0;

  background-color: transparent;
  backdrop-filter: blur(4px);

  border-radius: 10px;
  transition: all .3s;
  border: 1px solid rgba(156, 156, 156, 0.466);

  z-index: 1;
}

/* BG 相当（デフォ：サイトに馴染む紫系） */
.footer-sns__btn::after{
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(45deg,#6a5cff 0%, #7b57ff 50%, #b24cff 100%);
  z-index: 0;
  border-radius: 9px;
  pointer-events: none;
  transition: all .3s;
}

/* SVG（上に載せる） */
.footer-sns__btn svg{
  width: 18px;
  height: 18px;
  fill: #fff;
  position: relative;
  z-index: 2;
}

.footer-sns__btn:hover::after{
  transform: rotate(35deg);
  transform-origin: bottom;
}

.footer-sns__btn:hover::before{
  background-color: rgba(156, 156, 156, 0.466);
}

.footer-sns__btn:active{
  transform: translateY(1px);
}

.footer-sns__btn:focus-visible{
  outline: 3px solid rgba(123,87,255,.38);
  outline-offset: 4px;
}

/* ✅ URLで自動色分け（HTML変更なし） */
/* X（旧Twitter） */
.footer-sns__btn[href*="twitter.com"]::after,
.footer-sns__btn[href*="x.com"]::after{
  background: linear-gradient(45deg,#111 0%, #2b2b2b 50%, #111 100%);
}

/* Instagram */
.footer-sns__btn[href*="instagram.com"]::after{
  background: linear-gradient(45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

/* TikTok */
.footer-sns__btn[href*="tiktok.com"]::after{
  background: linear-gradient(45deg,#00f2ea 0%, #111 45%, #ff0050 100%);
}

/* YouTube */
.footer-sns__btn[href*="youtube.com"]::after,
.footer-sns__btn[href*="youtu.be"]::after{
  background: linear-gradient(45deg,#ff0033 0%, #ff1a1a 55%, #b00000 100%);
}

/* right nav（画像寄せ） */
.footer-nav{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 76px;                 /* 2列間 */
  justify-self: end;
  align-items: start;
}

.footer-nav__title{
  margin: 0 0 14px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: none;

  color: rgba(255,255,255,.95);
}

.footer-nav__col{
  display: grid;
  gap: 14px;                 /* リンク間 */
}

.footer-nav__link{
  font-weight: 500;          /* タイトルとの差を出す */
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0;

  color: rgba(255,255,255,.68);
  text-decoration: none;
}

.footer-nav__link:hover{
  color: rgba(255,255,255,.92);
  text-decoration: none;
}

/* ユーザー列だけ少し詰める（会員登録/ログインの間） */
.footer-nav__col:nth-child(2){
  gap: 12px;
}

/* bottom */
.site-footer__bottom{
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 12px 0 16px;
  margin-top: 130px;
}

.site-footer__bottom-inner{
  width: var(--container);
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__copy{
  color: rgba(255,255,255,.72);
  font-weight: 700;
}

.footer-legal{
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-legal__link{
  color: rgba(255,255,255,.80);
  text-decoration: none;
  font-weight: 600;
}

.footer-legal__link:hover{
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Responsive */
@media (max-width: 900px){

    .site-footer{
  margin-top: 10px;
}


  .site-footer__inner{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .site-footer__bottom-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-footer__bottom{
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 12px 0 16px;
  margin-top: 40px;
  }

  .footer-nav{
    justify-self: start;
    gap: 26px;
  }

   .footer-legal{
    flex-wrap: nowrap;       /* ✅ 改行させない */
    white-space: nowrap;     /* ✅ テキストも折らない */
    gap: 18px;               /* 26pxだと狭い画面で溢れやすい */
    overflow-x: auto;        /* ✅ 万一長い場合は横スクで逃がす */
    -webkit-overflow-scrolling: touch;
  }

  .footer-legal__link{
  font-weight: 200;
  font-size: 16px;
}

  /* 横スクロールバーを目立たせたくない場合（任意） */
  .footer-legal::-webkit-scrollbar{
    height: 6px;
  }
  .footer-legal::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,.18);
    border-radius: 99px;
  }

  .site-footer__copy{
    order: 2;
  }
}









/* =========================================================
   スクロール　Scroll to top button
========================================================= */

.scroll-top{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;

  width: 54px;
  height: 54px;
  border-radius: 16px;

  display: grid;
  place-items: center;

  text-decoration: none;

  background: rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,.24);
  box-shadow:
    0 18px 40px rgba(0,0,0,.18),
    0 1px 0 rgba(255,255,255,.35) inset;

  /* ✅ 最上部では非表示 */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);

  /* ✅ フェード/移動も含めて遷移 */
  transition:
    opacity .22s ease,
    transform .22s ease,
    visibility .22s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

/* ✅ 表示状態（JSで .is-visible を付与） */
.scroll-top.is-visible{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top::before{
  content:"";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg,
    rgba(123,87,255,.75),
    rgba(178,76,255,.55),
    rgba(47,73,255,.55)
  );
  opacity: .38;
  filter: blur(10px);
  z-index: -1;
  transition: opacity .18s ease;
}

.scroll-top__icon{
  width: 14px;
  height: 14px;
  border-right: 3px solid rgba(255,255,255,.92);
  border-bottom: 3px solid rgba(255,255,255,.92);
  transform: rotate(-135deg);
  margin-top: 4px;
}

.scroll-top:hover{
  transform: translateY(-3px);
  filter: brightness(1.02);
  box-shadow:
    0 24px 60px rgba(0,0,0,.22),
    0 1px 0 rgba(255,255,255,.45) inset;
}

.scroll-top:hover::before{
  opacity: .55;
}

.scroll-top:active{
  transform: translateY(2px);
}

.scroll-top:focus-visible{
  outline: 3px solid rgba(123,87,255,.45);
  outline-offset: 4px;
}

/* ブラー非対応のフォールバック */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){
  .scroll-top{
    background: rgba(123,87,255,.78);
    border-color: rgba(255,255,255,.22);
  }
}

@media (max-width: 900px){
  .scroll-top{
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }
}

/* =========================================================
   Nav status / login button avatar
========================================================= */
.nav-status{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: rgba(28, 28, 34, 0.85);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  user-select: none;
  cursor: default;
  border: 1px solid rgba(28, 28, 34, 0.18);
}

.nav-status-btn{
  gap: 8px;
  padding: 6px 12px;
}

.nav-status-btn__avatar{
  width: 28px;
  height: 28px;
  flex: 0 0 28px;

  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(28,28,34,.08);
}

.nav-status-btn__avatar img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(1px);
}