/* ===================================================================
   tomitano103 — Portfolio / SNS Link Hub
   共通スタイルシート（JA / TW / EN 全ページ共通）
   =================================================================== */

:root {
  --bg:       #F5F1EB;
  --paper:    #FDFAF6;
  --ink:      #1A1815;
  --mid:      #5A5550;
  --faint:    #A8A39C;
  --line:     #DDD8D0;

  --ja:       #2D5A3D;
  --ja-light: #C8DACC;
  --ja-pale:  #E8F0EA;
  --tw:       #3A6A7A;
  --tw-light: #B8D4DB;
  --tw-pale:  #E2EFF2;
  --en:       #8A5A6A;
  --en-light: #D4B8C0;
  --en-pale:  #F2E8EB;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Noto Sans JP', sans-serif;
  --mono:  'DM Mono', monospace;
}

body[data-lang="ja"] { --bg: var(--ja-pale); --line: var(--ja-light); --accent: var(--ja); --accent-border: var(--ja-light); --accent-pale: var(--ja-pale); }
body[data-lang="tw"] { --bg: var(--tw-pale); --line: var(--tw-light); --accent: var(--tw); --accent-border: var(--tw-light); --accent-pale: var(--tw-pale); }
body[data-lang="en"] { --bg: var(--en-pale); --line: var(--en-light); --accent: var(--en); --accent-border: var(--en-light); --accent-pale: var(--en-pale); }

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a { color:inherit; }
img { display:block; max-width:100%; }

/* — Nav — */
.nav {
  position: sticky; top:0; z-index:10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease, background-color .3s ease;
}
.nav.scrolled { box-shadow: 0 1px 0 var(--line); }
.nav-inner {
  max-width: 880px; margin:0 auto; padding: 16px 32px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.nav-mark {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  color: var(--ink); text-decoration:none;
}
.nav-menu { display:flex; gap:28px; list-style:none; }
.nav-menu a {
  font-family: var(--mono); font-size: 10px; letter-spacing:.1em; text-transform:uppercase;
  color: var(--faint); text-decoration:none; transition: color .2s ease;
}
.nav-menu a:hover, .nav-menu a:focus-visible { color: var(--accent); }
.nav-langs { display:flex; gap:2px; }
.nav-langs a {
  font-family: var(--mono); font-size:10px; letter-spacing:.06em;
  padding: 4px 8px; text-decoration:none; color: var(--faint);
  border: 1px solid var(--line); transition: color .2s ease, background-color .2s ease;
}
.nav-langs a.current { color: var(--accent); background: var(--paper); border-color: var(--accent); }
.nav-langs a:hover { color: var(--ink); }

/* — Hero — */
.hero { position:relative; }
.hero img {
  width:100%; height: 46vh; min-height:280px; max-height:520px; object-fit:cover;
  filter: saturate(.92) contrast(1.02);
}
.hero-fade {
  position:absolute; left:0; right:0; bottom:0; height:140px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

/* — Identity block (icon + name) — */
.identity {
  max-width: 880px; margin: -76px auto 0; padding: 0 32px 0;
  position:relative; z-index:2;
  display:flex; flex-direction:column; align-items:center; text-align:center;
}
.avatar {
  width:128px; height:128px; border-radius:50%;
  border: 3px solid var(--bg); object-fit:cover;
  box-shadow: 0 3px 12px rgba(26,24,21,.14);
}
.eyebrow {
  font-family: var(--mono); font-size:10px; letter-spacing:.2em; text-transform:uppercase;
  color: var(--faint); margin: 22px 0 10px;
}
.name {
  font-family: var(--serif); font-weight:600; font-size: 52px; line-height:1.1;
  color: var(--ink); margin: 24px 0 18px;
}
.handle {
  font-family: var(--mono); font-size:12px; color: var(--faint); margin-bottom:36px;
}

/* — SNS icon row (official logos, icon only) — */
.snsrow { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; margin-bottom: 72px; }
.snschip {
  display:flex; align-items:center; justify-content:center;
  width:48px; height:48px; border-radius:50%;
  border:1px solid var(--accent-border); background: var(--paper);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.snschip img { width:22px; height:22px; object-fit:contain; }
.snschip:hover, .snschip:focus-visible {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(26,24,21,.08);
}
.snschip:focus-visible { outline: 1px solid var(--ink); outline-offset:2px; }

/* — Section — */
.section { max-width: 880px; margin:0 auto; padding: 0 32px 32px; }
.section + .section { border-top:1px solid var(--line); padding-top:24px; }
.sl {
  font-family: var(--mono); font-size:9px; letter-spacing:.2em; text-transform:uppercase;
  color: var(--faint); display:flex; align-items:center; gap:12px; margin-bottom:32px;
}
.sl::after { content:''; flex:1; height:1px; background: var(--line); }

.profile-text { padding: 0 16px; }
.bio {
  font-family: var(--serif); font-weight:400; font-size:22px; line-height:1.9;
  color: var(--ink); margin-bottom: 28px;
}
.bio-sub {
  font-size:13px; color: var(--mid); line-height:2; white-space:pre-line;
}

/* — Link card (note article, etc.) — */
.linkcard {
  display:flex; align-items:center; gap:18px; text-decoration:none; color:inherit;
  border:1px solid var(--line); background: var(--paper); border-radius:14px;
  padding:16px; margin:48px 0 16px; transition: border-color .2s ease, transform .2s ease;
}
.linkcard:hover, .linkcard:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.linkcard-thumb { width:120px; height:90px; object-fit:cover; flex-shrink:0; border-radius:8px; }
.linkcard-body { display:flex; flex-direction:column; justify-content:center; gap:5px; min-width:0; }
.linkcard-site { font-family: var(--mono); font-size:9.5px; letter-spacing:.1em; text-transform:uppercase; color: var(--accent); }
.linkcard-title { font-size:13px; color: var(--ink); line-height:1.6; }
.linkcard-desc { font-size:11.5px; color: var(--mid); line-height:1.7; }
@media (max-width:560px) {
  .linkcard { flex-direction:column; align-items:stretch; padding:14px; }
  .linkcard-thumb { width:100%; height:150px; }
}

/* — Video — */
.video-frame {
  border:1px solid var(--line); background: var(--paper); padding:10px;
}
.video-frame iframe {
  width:100%; aspect-ratio: 16/9; border:0; display:block;
}
.video-note {
  font-family: var(--mono); font-size:10px; color: var(--faint); margin-top:14px; line-height:1.8;
}

/* — Footer — */
.foot {
  border-top:1px solid var(--line); padding: 28px 32px 40px;
  max-width: 880px; margin:0 auto;
  display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:12px;
}
.foot-l, .foot-r { font-family: var(--mono); font-size:9px; letter-spacing:.08em; color: var(--faint); }

/* — Reveal — */
.reveal { opacity:0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }

/* — Responsive — */
@media (max-width: 640px) {
  .nav-inner { padding: 14px 20px; }
  .name { font-size:36px; }
  .bio { font-size:18px; }
  .avatar { width:96px; height:96px; }
  .identity { margin-top:-56px; padding: 0 20px; }
  .hero img { height:36vh; }
  .section { padding: 0 20px 24px; }
  .section + .section { padding-top:20px; }
  .profile-text { padding: 0 4px; }
  .snsrow { gap:10px; margin-bottom:56px; }
  .snschip { width:44px; height:44px; }
  .foot { padding: 24px 20px 32px; }
}

@media (max-width: 380px) {
  .name { font-size:30px; }
  .snschip { width:40px; height:40px; }
  .snschip img { width:19px; height:19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before { transition-duration: .01ms !important; animation-duration:.01ms !important; }
  html { scroll-behavior:auto; }
}
