/* =====================================================
   本田哲也 自己紹介サイト スタイルシート
   - ブルー系・カジュアル×ビジネスのバランス
   - モバイルファースト（スマホ優先）
   ===================================================== */

/* ===== カラー・共通変数（色を変えたいときはここを編集） ===== */
:root {
  --color-primary: #23405f;      /* 強調カラー：濃紺 */
  --color-primary-dark: #182c42; /* さらに濃い紺 */
  --color-accent: #486889;       /* アクセント：スレートブルー */
  --color-sky: #ebedf0;          /* 薄いグレー（背景・タグ用） */
  --color-bg: #f4f5f6;           /* ページ背景（グレー） */
  --color-surface: #ffffff;      /* カード背景 */
  --color-text: #2c313a;         /* 本文テキスト（ダークグレー） */
  --color-muted: #6b7280;        /* 補足テキスト（グレー） */
  --color-border: #e1e3e7;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(40, 48, 60, 0.08);
  --header-h: 60px;
  --font-body: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
}

/* ===== リセット・ベース ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px); /* 固定ヘッダー分ずらす */
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
ul { list-style: none; }
a { color: var(--color-primary); text-decoration: none; }

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.pc-only { display: none; }

/* 語句を途中で改行させたくないとき用 */
.nowrap { white-space: nowrap; }

/* =====================================================
   ヘッダー / ナビゲーション
   ===================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--color-primary-dark);
}

.brand__sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-left: 8px;
  letter-spacing: 0.05em;
}

/* --- ハンバーガーボタン（スマホ用） --- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- ナビ本体 --- */
.global-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.global-nav.is-open { max-height: 420px; box-shadow: var(--shadow); }

.global-nav ul { padding: 8px 0; }

.global-nav a {
  display: block;
  padding: 13px 24px;
  font-weight: 600;
  color: var(--color-text);
}

.global-nav a:active,
.global-nav a.is-active { color: var(--color-primary); }

/* =====================================================
   ヒーロー
   ===================================================== */
.hero {
  padding: calc(var(--header-h) + 48px) 0 56px;
  background:
    radial-gradient(130% 120% at 12% 8%, rgba(110, 158, 196, 0.40) 0%, rgba(110, 158, 196, 0) 52%),
    radial-gradient(120% 130% at 92% 100%, rgba(64, 96, 132, 0.45) 0%, rgba(64, 96, 132, 0) 55%),
    linear-gradient(145deg, #171f2e 0%, #223c5a 52%, #2e5a7c 100%);
  color: #fff;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.hero-photo img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.40);
}

.hero-catch {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: #b9c4d1;
  margin-bottom: 8px;
  /* カタカナ語などを途中で改行させず、句読点・記号で自然に折り返す */
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}

.hero-name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-kana {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #c4ccd6;
  margin-top: 4px;
  letter-spacing: 0.1em;
}

.hero-title {
  margin-top: 18px;
}

.hero-title__label {
  display: block;
  color: #8fb4d6;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  margin-bottom: 9px;
}

.hero-title__text {
  display: block;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

/* =====================================================
   セクション共通
   ===================================================== */
.section { padding: 64px 0; }

.section--alt { background: var(--color-sky); }

.section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 40px;
}

.section-title__en {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.section-title--light { color: #fff; }
.section-title--light .section-title__en { color: #aab6c4; }

/* ===== カード共通 ===== */
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
}

.card-title {
  font-size: 1.1rem;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-sky);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

/* =====================================================
   About
   ===================================================== */
.about-grid {
  display: grid;
  gap: 24px;
}

.profile-list div {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.92rem;
}

.profile-list div:last-child { border-bottom: none; }

.profile-list dt {
  flex-shrink: 0;
  width: 7.5em;
  font-weight: 600;
  color: var(--color-primary);
}

.profile-list dd { color: var(--color-text); }

/* =====================================================
   Skills
   ===================================================== */
.skill-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.skill-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  text-align: center;
  transition: transform 0.25s;
}

.skill-card:hover { transform: translateY(-4px); }

.skill-icon { font-size: 2rem; margin-bottom: 10px; }

.skill-card h3 {
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.skill-card p { font-size: 0.9rem; color: var(--color-muted); text-align: left; }

/* =====================================================
   Career（タイムライン）
   ===================================================== */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--color-accent), var(--color-primary));
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--color-primary);
}

.timeline-item--turn::before { background: var(--color-accent); border-color: var(--color-accent); }

.timeline-age {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  padding: 3px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.timeline-item--turn .timeline-age { background: var(--color-accent); }

.timeline-body h3 {
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.timeline-body h4 {
  font-size: 0.98rem;
  color: var(--color-primary);
  margin: 14px 0 6px;
  padding-left: 10px;
  border-left: 3px solid var(--color-accent);
}

.timeline-body ul { padding-left: 2px; }

.timeline-body li {
  position: relative;
  padding-left: 16px;
  font-size: 0.92rem;
  margin-bottom: 5px;
  color: var(--color-text);
}

.timeline-body li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* 評価・試練・学び タグ */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 9px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}

.tag--award { background: #fff3d6; color: #9a6b00; }
.tag--trial { background: #fde3e3; color: #a33; }
.tag--learn { background: #ddf0e2; color: #1f7a3d; }

/* 資格 */
.qualification { margin-top: 8px; }

.qualification-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qualification-list li {
  font-size: 0.88rem;
  background: var(--color-sky);
  color: var(--color-primary-dark);
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 600;
}

/* =====================================================
   Hobby
   ===================================================== */
.hobby-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

.hobby-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hobby-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: contain;
  background: #e7e9ec; /* 画像全体を収め、余白はグレーで自然に */
}

.hobby-body { padding: 20px 22px 24px; }

.hobby-body h3 {
  font-size: 1.1rem;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.hobby-body li {
  position: relative;
  padding-left: 16px;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.hobby-body li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.fish-list { margin-top: 10px; }

.fish-list summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

.fish-list p {
  font-size: 0.83rem;
  color: var(--color-muted);
  margin-top: 8px;
  background: var(--color-bg);
  padding: 12px 14px;
  border-radius: 8px;
}

/* お気に入りタグ */
.favorite {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-cloud li {
  font-size: 0.85rem;
  background: var(--color-sky);
  color: var(--color-primary);
  padding: 5px 14px;
  border-radius: 999px;
}

/* =====================================================
   Now
   ===================================================== */
.now-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.now-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.now-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: contain;
  background: #e7e9ec; /* 画像全体を収め、余白はグレーで自然に */
}

.now-body { padding: 18px 22px 24px; }

.now-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.now-body h3 {
  font-size: 1.1rem;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.now-body p { font-size: 0.9rem; color: var(--color-muted); }

/* =====================================================
   Contact
   ===================================================== */
.section--contact {
  background:
    radial-gradient(120% 130% at 88% 6%, rgba(110, 158, 196, 0.35) 0%, rgba(110, 158, 196, 0) 55%),
    linear-gradient(145deg, #171f2e 0%, #223c5a 55%, #2e5a7c 100%);
}

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

.contact-card {
  display: block;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius);
  padding: 26px 24px;
  color: var(--color-text);
  transition: transform 0.25s;
}

.contact-card:hover { transform: translateY(-4px); }

.contact-icon { font-size: 1.8rem; margin-bottom: 8px; }

.contact-card h3 {
  font-size: 1rem;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
  line-height: 1.5;
}

.contact-card p { font-size: 0.88rem; color: var(--color-muted); }

.contact-link {
  margin-top: 12px;
  font-size: 0.85rem !important;
  font-weight: 700;
  color: var(--color-primary) !important;
  letter-spacing: 0.03em;
}

.contact-link::before { content: "🔗 "; }

.contact-card--qr {
  text-align: center;
}

.contact-card--qr img { margin: 0 auto 14px; }

.contact-card--qr small { color: var(--color-muted); }

/* =====================================================
   フッター
   ===================================================== */
.site-footer {
  background: var(--color-primary-dark);
  color: #cfe0ef;
  padding: 48px 0 32px;
  text-align: center;
}

.footer-message { font-size: 0.92rem; margin-bottom: 22px; }

.footer-note {
  font-size: 0.78rem;
  color: #8fadc9;
  margin-bottom: 18px;
}

.footer-copy { font-size: 0.8rem; color: #8fadc9; letter-spacing: 0.08em; }

/* =====================================================
   ページ上部へ戻る
   ===================================================== */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 90;
}

.back-to-top.is-visible { opacity: 1; visibility: visible; }

/* =====================================================
   スクロール時のフェードイン
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 動きを減らす設定のユーザーに配慮 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================
   タブレット以上（768px〜）
   ===================================================== */
@media (min-width: 768px) {
  .pc-only { display: inline; }

  /* ナビを常時表示 */
  .nav-toggle { display: none; }

  .global-nav {
    position: static;
    max-height: none;
    background: none;
    border: none;
    overflow: visible;
  }

  .global-nav ul {
    display: flex;
    gap: 4px;
    padding: 0;
  }

  .global-nav a {
    padding: 8px 14px;
    font-size: 0.92rem;
    border-radius: 8px;
  }

  .global-nav a:hover { background: var(--color-sky); color: var(--color-primary); }

  .hero { padding: calc(var(--header-h) + 72px) 0 80px; }

  .hero-inner {
    flex-direction: row;
    text-align: left;
    justify-content: center;
    gap: 56px;
  }

  .hero-photo img { width: 240px; height: 240px; }

  .hero-name { font-size: 2.4rem; }

  .hero-title__text { font-size: 1.45rem; }

  .about-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }

  .skill-grid { grid-template-columns: repeat(3, 1fr); }

  .hobby-grid { grid-template-columns: repeat(2, 1fr); }

  .now-grid { grid-template-columns: repeat(3, 1fr); }

  .contact-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }

  .timeline { padding-left: 40px; }

  .timeline::before { left: 10px; }

  .timeline-item::before { left: -36px; }

  .section { padding: 80px 0; }

  .section-title { font-size: 1.7rem; }
}
