
    /* ============================================================
       CSS カスタムプロパティ（変数）
       ※ カラーやフォントはここを変更するだけで全体に反映されます
    ============================================================ */
    :root {
      /* --- カラーパレット --- */
      --color-bg:          #fafafa;          /* ページ背景 */
      --color-surface:     #ffffff;          /* カード・セクション背景 */
      --color-surface-alt: #f4f6f8;          /* 交互セクション背景 */
      --color-coral:       #ff7f6e;          /* アクセント：コーラル */
      --color-coral-light: #fff0ee;          /* コーラル薄め */
      --color-mint:        #4ecdc4;          /* アクセント：ミント */
      --color-mint-light:  #e8faf9;          /* ミント薄め */
      --color-text:        #2d3142;          /* 本文テキスト */
      --color-text-muted:  #6b7280;          /* サブテキスト */
      --color-border:      #e5e7eb;          /* ボーダー */

      /* --- フォント --- */
      --font-en:  'Plus Jakarta Sans', sans-serif;
      --font-ja:  'Noto Sans JP', sans-serif;

      /* --- スペーシング --- */
      --section-py: 96px;
      --container:  1160px;
      --radius-sm:  8px;
      --radius-md:  16px;
      --radius-lg:  24px;

      /* --- シャドウ --- */
      --shadow-sm:  0 1px 4px rgba(0,0,0,.06);
      --shadow-md:  0 4px 20px rgba(0,0,0,.08);
      --shadow-lg:  0 12px 40px rgba(0,0,0,.12);

      /* --- トランジション --- */
      --transition: .3s cubic-bezier(.4,0,.2,1);
    }

    /* ============================================================
       リセット & ベーススタイル
    ============================================================ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html { scroll-behavior: smooth; }

    body {
      font-family: var(--font-ja);
      background: var(--color-bg);
      color: var(--color-text);
      line-height: 1.7;
      overflow-x: hidden;
    }

    img { display: block; max-width: 100%; height: auto; }
    a   { color: inherit; text-decoration: none; }
    ul  { list-style: none; }

    /* ============================================================
       ユーティリティ
    ============================================================ */
    .container {
      width: min(var(--container), 100% - 48px);
      margin-inline: auto;
    }

    .section-label {
      display: inline-block;
      font-family: var(--font-en);
      font-size: .75rem;
      font-weight: 700;
      letter-spacing: .15em;
      text-transform: uppercase;
      color: var(--color-coral);
      background: var(--color-coral-light);
      padding: 4px 14px;
      border-radius: 99px;
      margin-bottom: 12px;
    }

    .section-title {
      font-family: var(--font-en);
      font-size: clamp(1.8rem, 4vw, 2.8rem);
      font-weight: 800;
      line-height: 1.2;
      color: var(--color-text);
    }

    .section-title span { color: var(--color-coral); }

    .section-sub {
      margin-top: 12px;
      color: var(--color-text-muted);
      font-size: .95rem;
    }

    /* スクロールフェードイン（JSで .visible クラスを付与） */
    .fade-in {
      opacity: 0;
      transform: translateY(32px);
      transition: opacity .6s ease, transform .6s ease;
    }
    .fade-in.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ============================================================
       ナビゲーション
    ============================================================ */
    .nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      background: rgba(255,255,255,.85);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--color-border);
      transition: box-shadow var(--transition);
    }
    .nav.scrolled { box-shadow: var(--shadow-md); }

    .nav__inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 64px;
    }

    .nav__logo {
      font-family: var(--font-en);
      font-weight: 800;
      font-size: 1.25rem;
      color: var(--color-text);
      letter-spacing: -.02em;
    }
    .nav__logo span { color: var(--color-coral); }

    .nav__links {
      display: flex;
      gap: 32px;
      align-items: center;
    }

    .nav__links a {
      font-size: .875rem;
      font-weight: 500;
      color: var(--color-text-muted);
      transition: color var(--transition);
      position: relative;
    }
    .nav__links a::after {
      content: '';
      position: absolute;
      bottom: -4px; left: 0; right: 0;
      height: 2px;
      background: var(--color-coral);
      border-radius: 99px;
      transform: scaleX(0);
      transition: transform var(--transition);
    }
    .nav__links a:hover { color: var(--color-coral); }
    .nav__links a:hover::after { transform: scaleX(1); }

    .nav__cta {
      background: var(--color-coral);
      color: #fff !important;
      padding: 8px 20px;
      border-radius: 99px;
      font-weight: 700;
      font-size: .875rem;
      transition: background var(--transition), transform var(--transition) !important;
    }
    .nav__cta:hover { background: #e86d5c !important; transform: translateY(-1px); }
    .nav__cta::after { display: none !important; }

    /* ハンバーガー */
    .nav__hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 4px;
      background: none;
      border: none;
    }
    .nav__hamburger span {
      display: block;
      width: 24px; height: 2px;
      background: var(--color-text);
      border-radius: 99px;
      transition: var(--transition);
    }
    .nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav__hamburger.open span:nth-child(2) { opacity: 0; }
    .nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* モバイルメニュー */
    .nav__mobile {
      display: none;
      flex-direction: column;
      gap: 0;
      background: #fff;
      border-top: 1px solid var(--color-border);
      padding: 16px 0;
    }
    .nav__mobile.open { display: flex; }
    .nav__mobile a {
      padding: 12px 24px;
      font-size: .9rem;
      font-weight: 500;
      color: var(--color-text-muted);
      border-bottom: 1px solid var(--color-border);
      transition: color var(--transition), background var(--transition);
    }
    .nav__mobile a:last-child { border-bottom: none; }
    .nav__mobile a:hover { color: var(--color-coral); background: var(--color-coral-light); }

    /* ============================================================
       ① ヒーローセクション
    ============================================================ */
    .hero {
      min-height: 100svh;
      display: grid;
      place-items: center;
      padding-top: 64px; /* nav height */
      background:
        radial-gradient(ellipse 60% 60% at 80% 20%, rgba(255,127,110,.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 10% 80%, rgba(78,205,196,.10) 0%, transparent 70%),
        var(--color-bg);
      position: relative;
      overflow: hidden;
    }

    /* 装飾ブロブ */
    .hero__blob {
      position: absolute;
      border-radius: 50%;
      filter: blur(60px);
      pointer-events: none;
      z-index: 0;
    }
    .hero__blob--1 {
      width: 480px; height: 480px;
      background: rgba(255,127,110,.15);
      top: -120px; right: -80px;
      animation: blobFloat 8s ease-in-out infinite;
    }
    .hero__blob--2 {
      width: 360px; height: 360px;
      background: rgba(78,205,196,.12);
      bottom: -80px; left: -60px;
      animation: blobFloat 10s ease-in-out infinite reverse;
    }
    @keyframes blobFloat {
      0%, 100% { transform: translateY(0) scale(1); }
      50%       { transform: translateY(-30px) scale(1.05); }
    }

    .hero__inner {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 64px;
      align-items: center;
    }

    .hero__eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-family: var(--font-en);
      font-size: .8rem;
      font-weight: 700;
      letter-spacing: .15em;
      text-transform: uppercase;
      color: var(--color-coral);
      margin-bottom: 20px;
    }
    .hero__eyebrow::before {
      content: '';
      display: block;
      width: 32px; height: 2px;
      background: var(--color-coral);
      border-radius: 99px;
    }

    .hero__name {
      font-family: var(--font-en);
      font-size: clamp(2.8rem, 6vw, 5rem);
      font-weight: 800;
      line-height: 1.05;
      letter-spacing: -.03em;
      color: var(--color-text);
      margin-bottom: 8px;
    }

    .hero__title {
      font-size: clamp(1rem, 2vw, 1.25rem);
      font-weight: 500;
      color: var(--color-text-muted);
      margin-bottom: 24px;
    }

    .hero__catch {
      font-size: clamp(1.1rem, 2.5vw, 1.5rem);
      font-weight: 700;
      color: var(--color-text);
      line-height: 1.5;
      margin-bottom: 40px;
    }
    .hero__catch em {
      font-style: normal;
      background: linear-gradient(135deg, var(--color-coral), #ff9a8b);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hero__btns {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 28px;
      border-radius: 99px;
      font-weight: 700;
      font-size: .9rem;
      cursor: pointer;
      transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    }
    .btn:hover { transform: translateY(-2px); }

    .btn--primary {
      background: var(--color-coral);
      color: #fff;
      box-shadow: 0 4px 16px rgba(255,127,110,.35);
    }
    .btn--primary:hover {
      background: #e86d5c;
      box-shadow: 0 8px 24px rgba(255,127,110,.4);
    }

    .btn--outline {
      background: transparent;
      color: var(--color-text);
      border: 2px solid var(--color-border);
    }
    .btn--outline:hover {
      border-color: var(--color-coral);
      color: var(--color-coral);
    }

    /* ヒーロー右側：プロフィールカード */
    .hero__card {
      background: var(--color-surface);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-lg);
      overflow: hidden;
      position: relative;
    }

    .hero__card-img {
      width: 100%;
      aspect-ratio: 4/3;
      object-fit: cover;
    }

    .hero__card-body {
      padding: 24px 28px;
    }

    .hero__card-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      text-align: center;
    }

    .stat__num {
      font-family: var(--font-en);
      font-size: 1.8rem;
      font-weight: 800;
      color: var(--color-coral);
      line-height: 1;
    }
    .stat__label {
      font-size: .75rem;
      color: var(--color-text-muted);
      margin-top: 4px;
    }

    /* スクロールインジケーター */
    .hero__scroll {
      position: absolute;
      bottom: 32px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      color: var(--color-text-muted);
      font-size: .7rem;
      font-family: var(--font-en);
      letter-spacing: .1em;
      text-transform: uppercase;
      animation: scrollBounce 2s ease-in-out infinite;
    }
    .hero__scroll i { font-size: 1rem; }
    @keyframes scrollBounce {
      0%, 100% { transform: translateX(-50%) translateY(0); }
      50%       { transform: translateX(-50%) translateY(6px); }
    }

    /* ============================================================
       ② スキル・ツール（Bento Grid）
    ============================================================ */
    .skills {
      padding: var(--section-py) 0;
      background: var(--color-surface-alt);
    }

    .skills__header {
      text-align: center;
      margin-bottom: 56px;
    }

    /* Bento Grid */
    .bento {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      grid-auto-rows: 100px;
      gap: 16px;
    }

    .bento-card {
      background: var(--color-surface);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-sm);
      padding: 24px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: transform var(--transition), box-shadow var(--transition);
      overflow: hidden;
      position: relative;
    }
    .bento-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-md);
    }

    /* グリッド配置 */
    .bento-card--intro    { grid-column: span 5; grid-row: span 2; }
    .bento-card--html     { grid-column: span 2; grid-row: span 1; }
    .bento-card--css      { grid-column: span 2; grid-row: span 1; }
    .bento-card--js       { grid-column: span 3; grid-row: span 1; }
    .bento-card--figma    { grid-column: span 3; grid-row: span 2; }
    .bento-card--react    { grid-column: span 2; grid-row: span 1; }
    .bento-card--ts       { grid-column: span 2; grid-row: span 1; }
    .bento-card--tools    { grid-column: span 5; grid-row: span 3; }
    .bento-card--xd       { grid-column: span 3; grid-row: span 1; }
    .bento-card--illust   { grid-column: span 3; grid-row: span 1; }

    .bento-card__icon {
      font-size: 2rem;
      margin-bottom: 8px;
    }
    .bento-card__label {
      font-family: var(--font-en);
      font-weight: 700;
      font-size: .95rem;
      color: var(--color-text);
    }
    .bento-card__sub {
      font-size: .75rem;
      color: var(--color-text-muted);
      margin-top: 4px;
    }

    /* スキルバー */
    .skill-bar {
      margin-top: 8px;
    }
    .skill-bar__track {
      height: 6px;
      background: var(--color-border);
      border-radius: 99px;
      overflow: hidden;
    }
    .skill-bar__fill {
      height: 100%;
      border-radius: 99px;
      background: linear-gradient(90deg, var(--color-coral), var(--color-mint));
      transform-origin: left;
      transform: scaleX(0);
      transition: transform 1s ease .2s;
    }
    .skill-bar__fill.animated { transform: scaleX(1); }

    /* introカード */
    .bento-card--intro .bento-card__title {
      font-family: var(--font-en);
      font-size: 1.4rem;
      font-weight: 800;
      line-height: 1.3;
      color: var(--color-text);
    }
    .bento-card--intro .bento-card__title span { color: var(--color-coral); }
    .bento-card--intro p {
      font-size: .85rem;
      color: var(--color-text-muted);
      line-height: 1.6;
    }

    /* バッジ群 */
    .badge-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 12px;
      border-radius: 99px;
      font-size: .78rem;
      font-weight: 600;
      background: var(--color-surface-alt);
      color: var(--color-text);
      border: 1px solid var(--color-border);
    }
    .badge i { font-size: .85rem; }

    /* 色付きアクセント */
    .bento-card--html  { border-top: 3px solid #e44d26; }
    .bento-card--css   { border-top: 3px solid #264de4; }
    .bento-card--js    { border-top: 3px solid #f7df1e; }
    .bento-card--figma { border-top: 3px solid #a259ff; background: linear-gradient(135deg, #fff 60%, #f5eeff); }
    .bento-card--react { border-top: 3px solid #61dafb; }
    .bento-card--ts    { border-top: 3px solid #3178c6; }
    .bento-card--xd    { border-top: 3px solid #ff61f6; }
    .bento-card--illust{ border-top: 3px solid #ff9a00; }

    /* ============================================================
       ③ ポートフォリオギャラリー
    ============================================================ */
    .portfolio {
      padding: var(--section-py) 0;
      background: var(--color-surface);
    }

    .portfolio__header {
      text-align: center;
      margin-bottom: 56px;
    }

    .portfolio__grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
    }

    /* プロジェクトカード */
    .project-card {
      background: var(--color-surface);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-sm);
      border: 1px solid var(--color-border);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: transform var(--transition), box-shadow var(--transition);
    }
    .project-card:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow-lg);
    }

    .project-card__thumb {
      position: relative;
      overflow: hidden;
      aspect-ratio: 16/10;
    }

    .project-card__thumb img {
    width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .5s ease;
    }
    .project-card:hover .project-card__thumb img {
      transform: scale(1.05);
    }

    .project-card__overlay {
      position: absolute;
      inset: 0;
      background: rgba(45,49,66,.6);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity var(--transition);
    }
    .project-card:hover .project-card__overlay { opacity: 1; }

    .project-card__overlay-btn {
      background: #fff;
      color: var(--color-text);
      padding: 10px 22px;
      border-radius: 99px;
      font-weight: 700;
      font-size: .85rem;
      transition: background var(--transition), transform var(--transition);
    }
    .project-card__overlay-btn:hover {
      background: var(--color-coral);
      color: #fff;
      transform: scale(1.05);
    }

    .project-card__tag {
      position: absolute;
      top: 12px; left: 12px;
      background: var(--color-coral);
      color: #fff;
      font-size: .7rem;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 99px;
      letter-spacing: .05em;
    }

    .project-card__body {
      padding: 20px 22px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .project-card__name {
      font-family: var(--font-en);
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--color-text);
      margin-bottom: 8px;
    }

    .project-card__desc {
      font-size: .85rem;
      color: var(--color-text-muted);
      line-height: 1.65;
      flex: 1;
    }

    .project-card__tools {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 16px;
    }

    .tool-tag {
      font-size: .72rem;
      font-weight: 600;
      padding: 3px 10px;
      border-radius: 99px;
      background: var(--color-mint-light);
      color: #2a9d8f;
      border: 1px solid rgba(78,205,196,.3);
    }

    .project-card__footer {
      padding: 14px 22px;
      border-top: 1px solid var(--color-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .project-card__link {
      font-size: .82rem;
      font-weight: 700;
      color: var(--color-coral);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: gap var(--transition);
    }
    .project-card__link:hover { gap: 10px; }

    .project-card__year {
      font-size: .75rem;
      color: var(--color-text-muted);
    }

        /* ============================================================
       フッター
    ============================================================ */
    .footer { background: var(--color-text); color: rgba(255,255,255,.7); padding: 40px 0; }
    .footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
    .footer__logo { font-family: var(--font-en); font-size: 1.2rem; font-weight: 800; color: #fff; }
    .footer__logo span { color: var(--color-coral); }
    .footer__copy { font-size: .78rem; color: rgba(255,255,255,.4); }
    .footer__social { display: flex; gap: 10px; }

    /* ============================================================
       レスポンシブ
    ============================================================ */
    @media (max-width: 1024px) {
      .portfolio__grid { grid-template-columns: repeat(2, 1fr); }

      .bento-card--intro  { grid-column: span 6; }
      .bento-card--html   { grid-column: span 3; }
      .bento-card--css    { grid-column: span 3; }
      .bento-card--js     { grid-column: span 6; }
      .bento-card--figma  { grid-column: span 4; }
      .bento-card--react  { grid-column: span 4; }
      .bento-card--ts     { grid-column: span 4; }
      .bento-card--tools  { grid-column: span 8; }
      .bento-card--xd     { grid-column: span 4; }
      .bento-card--illust { grid-column: span 4; }
    }

    @media (max-width: 768px) {
      :root { --section-py: 64px; }

      .nav__links { display: none; }
      .nav__hamburger { display: flex; }

      .hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
      }
      .hero__eyebrow { justify-content: center; }
      .hero__btns { justify-content: center; }
      .hero__card { max-width: 480px; margin: 0 auto; }

      .bento {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: auto;
      }
      .bento-card--intro  { grid-column: span 6; grid-row: span 1; }
      .bento-card--html   { grid-column: span 2; grid-row: span 1; }
      .bento-card--css    { grid-column: span 2; grid-row: span 1; }
      .bento-card--js     { grid-column: span 2; grid-row: span 1; }
      .bento-card--figma  { grid-column: span 3; grid-row: span 1; }
      .bento-card--react  { grid-column: span 3; grid-row: span 1; }
      .bento-card--ts     { grid-column: span 3; grid-row: span 1; }
      .bento-card--tools  { grid-column: span 3; grid-row: span 1; }
      .bento-card--xd     { grid-column: span 3; grid-row: span 1; }
      .bento-card--illust { grid-column: span 3; grid-row: span 1; }

      .portfolio__grid { grid-template-columns: 1fr; }

      .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
      }
      .footer__social { justify-content: flex-start; }
    }

    @media (max-width: 480px) {
      .bento {
        grid-template-columns: repeat(2, 1fr);
      }
      .bento-card--intro  { grid-column: span 2; }
      .bento-card--html   { grid-column: span 1; }
      .bento-card--css    { grid-column: span 1; }
      .bento-card--js     { grid-column: span 2; }
      .bento-card--figma  { grid-column: span 2; }
      .bento-card--react  { grid-column: span 1; }
      .bento-card--ts     { grid-column: span 1; }
      .bento-card--tools  { grid-column: span 2; }
      .bento-card--xd     { grid-column: span 1; }
      .bento-card--illust { grid-column: span 1; }
    }
  