/* =========================================================
   Advent Cosplay — profile.css（最終調整版）
   目的：プロフィール（6スキル）を静かに、深く魅せる
   ========================================================= */

/* ---------- 基本トークン ---------- */
:root{
  --p-max: 1100px;
  --ink: #261b1b;
  --ink-soft: #4a3f3f;
  --accent: #800020;
  --glass: rgba(255,255,255,.82);
  --glass-dark: rgba(20,20,25,.72);
  --ring: rgba(0,0,0,.08);
  --shadow: 0 10px 28px rgba(0,0,0,.18);
  --radius: 18px;
}

/* ---------- ページ全体 ---------- */
.profile-page{
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 8vh;
  scroll-snap-type: y proximity;
}

.profile-page section{ 
  width: min(100%, var(--p-max));
  margin-inline: auto;
}

/* ---------- プロフィールヘッダー ---------- */
.profile-intro{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(16px, 4vw, 40px);
  margin: clamp(18px, 5vh, 48px) auto clamp(10px, 3vh, 24px);
  align-items: center;
  padding: clamp(14px, 2.4vw, 24px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.76));
  box-shadow: var(--shadow);
  border: 1px solid var(--ring);
  backdrop-filter: blur(2px);
}

.profile-header{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(12px, 2.4vw, 22px);
  align-items: center;
}
.profile-icon{
  width: clamp(72px, 12vw, 110px);
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0,0,0,.2);
  border: 3px solid rgba(255,255,255,.9);
}
.profile-header h1{
  font-family: "Hangyaku", system-ui, sans-serif;
  font-size: clamp(24px, 4.6vw, 40px);
  margin: 0;
}
.profile-header p{
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--ink-soft);
}
.profile-chart{ justify-self: end; }
.profile-radar{
  width: clamp(160px, 24vw, 260px);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.18));
}

/* ---------- セクション共通 ---------- */
.skill-section{
  scroll-snap-align: start;
  margin: clamp(28px, 8vh, 80px) auto;
  padding: clamp(16px, 3vw, 24px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--ring);
  overflow: hidden;
  position: relative;
}

.skill-section h2{
  font-family: "Yusei Magic", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 3.8vw, 30px);
  margin: 4px 4px 14px;
  color: var(--accent);
  letter-spacing: .02em;
  text-shadow: 0 1px 0 #fff;
}

/* 本文＋挿絵の2カラム */
.skill-content{
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: clamp(14px, 3vw, 28px);
  align-items: start;
}
@media (max-width: 880px){
  .skill-content{ grid-template-columns: 1fr; }
}

/* テキスト面 */
.skill-text{
  line-height: 1.9;
  font-size: clamp(15px, 1.9vw, 17px);
  background: rgba(255,255,255,.70);
  border: 1px solid var(--ring);
  border-radius: 14px;
  padding: clamp(14px, 2.4vw, 18px);
  color: #2a2222;
}

/* 挿絵 */
.skill-image img{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--ring);
  box-shadow: 0 12px 24px rgba(0,0,0,.16);
}

/* ---------- フェードイン ---------- */
.fadein{
  opacity: 0;
  transform: translateY(22px) scale(.985);
  transition:
    opacity .8s ease,
    transform .8s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.fadein.visible{
  opacity: 1;
  transform: none;
}

/* ---------- 背景構成（写真＋紙ベール） ---------- */
.skill-section.has-bg{
  background: transparent;
  position: relative;
}

.skill-section.has-bg::before{
  content:"";
  position:absolute; inset:0;
  background: var(--sec-bg) center / cover no-repeat;
  z-index: 0;
  transform: translateZ(0);
}

.skill-section.has-bg::after{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.76)),
    url("https://adventcosplay.com/wp-content/uploads/2025/08/smokeground_Y.jpg") center / cover no-repeat;
  mix-blend-mode: normal;
  z-index: 1;
}

/* 中身を最前面へ */
.skill-section.has-bg > *{ position: relative; z-index: 2; }

/* PCのみ軽めのパララックス */
@media (min-width: 961px){
  .skill-section.has-bg::before{ background-attachment: fixed; }
}

/* ---------- セクション背景指定 ---------- */
.skill-section:nth-of-type(1){ --sec-bg: url('https://adventcosplay.com/wp-content/uploads/2025/10/my-image-01.webp'); }
.skill-section:nth-of-type(2){ --sec-bg: url('https://adventcosplay.com/wp-content/uploads/2025/10/my-image-02.webp'); }
.skill-section:nth-of-type(3){ --sec-bg: url('https://adventcosplay.com/wp-content/uploads/2025/10/my-image-03.webp'); }
.skill-section:nth-of-type(4){ --sec-bg: url('https://adventcosplay.com/wp-content/uploads/2025/10/my-image-04.webp'); }
.skill-section:nth-of-type(5){ --sec-bg: url('https://adventcosplay.com/wp-content/uploads/2025/10/my-image-05.webp'); }
.skill-section:nth-of-type(6){ --sec-bg: url('https://adventcosplay.com/wp-content/uploads/2025/10/my-image-06.webp'); }


/* 目次 */
.profile-toc { margin: 0 auto 1.5rem; max-width: 980px; padding: .5rem 1rem; }
.profile-toc ul { display:flex; flex-wrap:wrap; gap:.5rem .75rem; list-style:none; padding:0; margin:0; }
.profile-toc a {
  display:inline-block; padding:.4rem .7rem; border-radius:999px;
  background: rgba(255,253,240,.85);
  border:1px solid rgba(120,60,60,.18);
  text-decoration:none; font-size:.92rem;
}
.profile-toc a:hover { filter:brightness(1.03); }


/* 言語切替ナビ */
.lang-switch {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8em;
  margin: 1.5em auto;
  padding: 0.6em 1em;
  border-radius: 2em;
  font-size: 0.95rem;
}

/* 言語切り替えボタン */
.lang-btn {
  text-decoration: none;
  font-weight: 600;
  color: #d6c3b5; /* 通常時：アンティークベージュゴールド */
  transition: all 0.25s ease;
  padding: 0.2em 0.8em;
  border-bottom: 2px solid rgba(214, 195, 181, 0.3); /* 薄く存在を感じる下線 */
}

.lang-btn:hover,
.lang-btn:focus {
  color: #fff; /* 白文字 */
  border-bottom-color: #c99; /* ホバー時：ワインゴールド */
  text-shadow: 0 0 6px rgba(255, 240, 230, 0.4); /* 優しく光る演出 */
}



.lang-btn.is-ja {
  border-bottom: 2px solid #b36;
}
.lang-btn.is-en {
  border-bottom: 2px solid #36b;
}



/* ページ内目次（英・日共通） */
.profile-toc {
  text-align: center;
  margin: 1.8em auto;
}
.profile-toc ul {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8em;
  padding: 0;
  list-style: none;
}
.profile-toc a {
  display: inline-block;
  padding: 0.3em 0.8em;
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.1);
  color: #ffe;
  text-decoration: none;
  transition: all 0.25s ease;
}
.profile-toc a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* fadeinアニメの見栄え補強 */
.fadein {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease;
}
.fadein.visible {
  opacity: 1;
  transform: translateY(0);
}
