/* =========================================================
   Haruka Karakawa Portfolio
   Cute Pop Yellow Theme
   ========================================================= */

:root {
  --bg: #fffaf0;
  --bg-soft: #fff2c7;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #4b3524;
  --muted: #8a7460;
  --line: #f2dfad;
  --primary: #ffbf3f;
  --primary-dark: #c98212;
  --accent: #ffd95a;
  --accent-soft: #fff3bd;
  --pink: #ff9fb2;
  --pink-soft: #ffe9ef;
  --blue: #7cc7f2;
  --blue-soft: #e8f6ff;
  --green: #8bd37c;
  --green-soft: #ecfae8;
  --purple: #c7b6ff;
  --purple-soft: #f1edff;
  --shadow: 0 12px 30px rgba(160, 105, 28, 0.10);
  --shadow-hover: 0 20px 42px rgba(160, 105, 28, 0.16);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 10%, rgba(255,217,90,.42), transparent 28%),
    radial-gradient(circle at 92% 20%, rgba(124,199,242,.30), transparent 24%),
    radial-gradient(circle at 82% 78%, rgba(255,159,178,.28), transparent 22%),
    linear-gradient(180deg, #fffdf7 0%, #fff8e3 42%, #fffdf7 100%);
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3,
.logo-text strong {
  font-family: "Zen Maru Gothic", "M PLUS Rounded 1c", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    radial-gradient(#ffd95a 1.3px, transparent 1.3px),
    radial-gradient(#ffb5c3 1.1px, transparent 1.1px),
    radial-gradient(#9bd5f4 1px, transparent 1px);
  background-size: 34px 34px, 48px 48px, 58px 58px;
  background-position: 0 0, 20px 18px, 12px 40px;
  z-index: -1;
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px);
  background: #ffe29a;
  border-bottom: 1px solid rgba(242,223,173,0.8);
  box-shadow: 0 6px 14px rgba(255,191,63,0.15);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -16px; height: 18px;
  pointer-events: none;
  background: radial-gradient(circle at 18px -2px, #ffe29a 19px, transparent 20px) repeat-x;
  background-size: 44px 18px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 14px; }
.logo:has(.logo-text):not(:has(.logo-mark)) { padding: 10px 0; }
.site-header--home .header-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 28px; }
.logo-mark {
  position: relative; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 18px 22px 18px 22px;
  background: radial-gradient(circle at 30% 25%, #fff7c9 0 22%, transparent 23%), linear-gradient(135deg, #ffe985, #ffbf3f);
  color: #6f4800; font-weight: 900; letter-spacing: .04em;
  box-shadow: 0 10px 24px rgba(255,191,63,.35);
}
.logo-mark::before, .logo-mark::after { content: "✦"; position: absolute; color: #fff7c9; font-size: .72rem; }
.logo-mark::before { left: -6px; top: 7px; }
.logo-mark::after { right: -4px; bottom: 6px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 1.04rem; letter-spacing: .02em; color: #5d3f14; }
.logo-text small { color: #896539; }
.global-nav { display: flex; gap: 22px; align-items: center; }
.global-nav a span { display: block; text-align: center; }
.global-nav a { position: relative; color: #74552d; font-weight: 800; font-size: .9rem; transition: color .2s ease, transform .2s ease; }
.global-nav a::before { content: "☆"; display: block; text-align: center; color: #d39a28; font-size: .9rem; line-height: 1; transform: scale(.8); transition: transform .2s ease; }
.global-nav a::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 0; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--pink)); transform: translateX(-50%); transition: width .2s ease; }
.global-nav a:hover { color: #5d3f14; transform: translateY(-2px); }
.global-nav a:hover::before { transform: scale(1.15) rotate(10deg); }
.global-nav a:hover::after { width: 100%; }
.site-header--home .global-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  justify-self: end;
  justify-items: stretch;
  align-items: center;
  column-gap: 12px;
  row-gap: 0;
  width: min(100%, 520px);
}
.site-header--home .global-nav a {
  padding: 4px 10px 10px;
}
.header-links { display: flex; gap: 10px; }
.icon-button { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; border: 2px solid rgba(201,140,19,.28); background: rgba(255,252,244,.74); color: #7a5318; font-size: .78rem; font-weight: 900; }

/* Hero */
.hero { position: relative; padding: 76px 0 58px; }
.hero::before, .hero::after { position: absolute; pointer-events: none; opacity: .7; font-weight: 900; }
.hero::before { content: "✦"; left: 5%; top: 20%; color: var(--accent); font-size: 2rem; }
.hero::after { content: "♡"; right: 8%; top: 24%; color: var(--pink); font-size: 1.8rem; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; }
.eyebrow, .section-label, .footer-label { margin: 0 0 12px; color: var(--primary-dark); font-weight: 900; letter-spacing: .1em; font-size: .82rem; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,217,90,.32); }
.eyebrow::before { content: "🌼"; letter-spacing: 0; }
.hero h1 { margin: 0; font-size: clamp(2.45rem, 4vw, 4.35rem); line-height: 1.18; letter-spacing: -.045em; }
.hero-subtitle { display: inline-block; margin: 22px 0 12px; padding: 8px 16px; border-radius: 999px; color: #6f4800; background: #fff3bd; font-size: 1.05rem; font-weight: 900; }
.hero-description { max-width: 620px; color: var(--muted); font-size: 1.02rem; }
.hero-actions { display: flex; gap: 14px; margin: 30px 0 26px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-3px) rotate(-.5deg); }
.button-primary { background: linear-gradient(135deg, #ffe680, #ffbf3f); color: #5d3b00; box-shadow: 0 14px 26px rgba(255,191,63,.36); }
.button-primary::after { content: "›"; font-size: 1.25rem; line-height: 1; }
.button-primary:hover { box-shadow: 0 18px 34px rgba(255,191,63,.44); }
.button-secondary { background: rgba(255,255,255,.82); border: 2px solid rgba(255,191,63,.45); color: var(--primary-dark); }
.button-wide { min-width: 300px; }
.tech-tags, .card-tags, .footer-links, .achievement-list { list-style: none; padding: 0; margin: 0; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-tags li, .card-tags li, .filter-chip { border-radius: 999px; border: 1px solid rgba(242,223,173,.92); background: rgba(255,255,255,.82); color: #6d604d; padding: 8px 14px; font-size: .88rem; font-weight: 800; }
.card-tags li,
.tech-tags li { background: #fff2bd; border-radius: 999px; padding: 6px 12px; font-weight: 600; border: 1px solid rgba(160,105,28,0.1); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.card-tags li:nth-child(4n+1),
.tech-tags li:nth-child(4n+1) { background: #fff2bd; }
.card-tags li:nth-child(4n+2),
.tech-tags li:nth-child(4n+2) { background: #e8f6ff; }
.card-tags li:nth-child(4n+3),
.tech-tags li:nth-child(4n+3) { background: #ffe9ef; }
.card-tags li:nth-child(4n+4),
.tech-tags li:nth-child(4n+4) { background: #ecfae8; }
.hero-image-card { position: relative; overflow: hidden; border-radius: 46px; border: 2px solid rgba(255,255,255,.96); box-shadow: var(--shadow); background: radial-gradient(circle at 80% 20%, rgba(255,217,90,.44), transparent 24%), linear-gradient(135deg, rgba(255,244,194,.88), rgba(255,255,255,.92)); }
.hero-image-card::after { content: "✧"; position: absolute; right: 22px; top: 18px; color: var(--accent); font-size: 2rem; z-index: 2; }
.hero-image-card img { position: relative; z-index: 1; aspect-ratio: 1.08 / .84; object-fit: cover; }

/* Common */
.section { padding: 76px 0; }
.section-soft { background: linear-gradient(180deg, rgba(255,244,194,.48), rgba(255,253,247,.82)); border-top: 1px solid rgba(242,223,173,.75); border-bottom: 1px solid rgba(242,223,173,.75); }
.two-column, .skill-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.section-heading h2, .section-heading-block h2, .site-footer h2 { margin: 0 0 18px; font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.2; }
.section-heading h2::before, .section-heading-block h2::before { content: "✿"; margin-right: 10px; color: var(--primary); font-size: .75em; }
.section-heading-block h2 { color: var(--text); }
.section-heading-block p:not(.section-label), .detail-section p { color: var(--muted); }
.timeline-card, .skills-panel, .achievement-panel, .strength-card, .project-card { background: var(--surface); border: 1px solid rgba(242,223,173,.92); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.timeline-card, .skills-panel, .achievement-panel { border-radius: var(--radius-xl); padding: 32px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding-left: 22px; }
.timeline-item + .timeline-item { margin-top: 26px; }
.timeline-item::before { content: "♥"; position: absolute; left: 0; top: 0; color: var(--pink); font-size: .9rem; }
.timeline-date { color: var(--primary-dark); font-weight: 900; }
.timeline-item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.timeline-item p { margin: 0; color: var(--muted); }

/* Strength */
.strength-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.strength-card { border-radius: 32px; padding: 30px 22px; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.strength-card:nth-child(1) { background: linear-gradient(180deg, #fff3bd, #fffaf0); }
.strength-card:nth-child(2) { background: linear-gradient(180deg, #ffe9ef, #fffaf7); }
.strength-card:nth-child(3) { background: linear-gradient(180deg, #ecfae8, #fbfff9); }
.strength-card:nth-child(4) { background: linear-gradient(180deg, #e8f6ff, #fbfdff); }
.strength-card:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: var(--shadow-hover); }
.strength-icon { display: grid; place-items: center; margin: 0 auto 18px; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle at 30% 20%, #fff8cf, transparent 40%), linear-gradient(135deg, #ffe586, #ffbf3f); color: #674700; font-weight: 900; font-size: 1.5rem; box-shadow: 0 8px 18px rgba(255,191,63,.24); }
.strength-card h3 { margin: 0 0 10px; font-size: 1.08rem; }
.strength-card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Projects */
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.project-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-chip { cursor: pointer; }
.filter-chip.active { background: linear-gradient(135deg, #ffe27a, #ffbf3f); border-color: transparent; color: #5d3b00; box-shadow: 0 10px 20px rgba(255,191,63,.24); }
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.project-card { display: grid; grid-template-columns: 1fr; gap: 14px; border-radius: 28px; padding: 13px; align-items: stretch; transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-6px) rotate(.3deg); box-shadow: var(--shadow-hover); }
.project-card.featured { grid-column: span 2; }
.project-card.is-hidden { display: none; }
.project-text { display: flex; flex-direction: column; padding: 2px 4px 4px; }
.project-type { display: inline-block; align-self: flex-start; margin-bottom: 10px; padding: 5px 11px; border-radius: 999px; background: rgba(255,217,90,.32); color: var(--primary-dark); font-size: .72rem; font-weight: 900; }
.project-card h3 { margin: 0 0 10px; font-size: 1.08rem; line-height: 1.35; }
.project-card p { margin: 0 0 14px; color: var(--muted); font-size: .9rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; margin-bottom: 14px; }
.card-link { color: var(--primary-dark); font-weight: 900; }
.project-card img { order: -1; height: auto; min-height: 170px; border-radius: 22px; object-fit: cover; background: linear-gradient(135deg, #fff4c2, #ffffff); border: 1px solid rgba(242,223,173,.9); }
.project-more { margin-top: 34px; text-align: center; }

/* Skills / Achievements */
.skill-layout { align-items: start; grid-template-columns: 1.1fr .9fr; }
.skill-block { margin-bottom: 28px; }
.skill-block:last-child { margin-bottom: 0; }
.skill-block h3 { margin: 0 0 12px; font-size: 1.08rem; }
.skill-block ul { list-style: none; padding: 0; margin: 0; }
.skill-block li { position: relative; padding: 10px 0 10px 24px; border-bottom: 1px dashed rgba(217,149,18,.20); color: var(--text); }
.skill-block li::before { content: "🌼"; position: absolute; left: 0; top: 9px; font-size: .82rem; }
.skill-block li:last-child { border-bottom: none; }
.achievement-main { display: grid; gap: 12px; margin-bottom: 24px; }
.achievement-item.highlight { padding: 18px 20px; border-radius: 24px; background: linear-gradient(135deg, rgba(255,244,194,.92), rgba(255,255,255,.92)); border: 1px solid var(--line); }
.achievement-item.highlight strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.achievement-item.highlight strong::before { content: "🏆 "; }
.achievement-item.highlight span { color: var(--muted); font-size: .92rem; }
.achievement-list { display: grid; gap: 14px; }
.achievement-list li { padding: 14px 0; border-bottom: 1px dashed rgba(217,149,18,.20); }
.achievement-list li:last-child { border-bottom: none; }
.achievement-list strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.achievement-list span { color: var(--muted); font-size: .95rem; }

/* Footer */
.site-footer { position: relative; color: var(--text); background: #ffe29a; margin-top: 44px; border-top: 1px solid rgba(242,223,173,.92); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -23px; height: 48px; background: radial-gradient(circle at 22px 24px, #ffe29a 25px, transparent 26px) repeat-x; background-size: 60px 46px; }
.footer-grid { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 34px 0 18px; }
.footer-grid section { width: auto; }
.site-footer h2 { font-size: 1.35rem; }
.site-footer p, .site-footer a { color: var(--text); }
.footer-grid > section > .footer-label { margin-bottom: 6px; }
.site-footer h2 { margin-bottom: 10px; }
.footer-mail { display: inline-block; margin-top: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(242,223,173,.95); background: rgba(255,255,255,.82); font-weight: 900; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-links a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.footer-links a::before { content: "✦ "; color: var(--primary-dark); }
.footer-bottom { border-top: 1px solid rgba(201,140,19,.12); text-align: center; padding: 12px 0 16px; }
.footer-bottom p { margin: 0; color: rgba(75,53,36,.7); }

/* Detail pages */
.project-detail-page { padding-top: 10px; }
.project-hero { padding: 58px 0 34px; }
.project-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.project-hero-lead { margin: 0 0 12px; color: var(--primary-dark); font-size: 1.18rem; font-weight: 900; }
.project-hero-description { color: var(--muted); margin-bottom: 20px; }
.project-meta-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.project-meta-list li { display: flex; gap: 14px; padding: 13px 16px; border-radius: 20px; background: rgba(255,255,255,.78); border: 1px solid var(--line); }
.project-meta-list strong { min-width: 84px; color: var(--primary-dark); }
.project-hero-image { overflow: hidden; border-radius: 38px; border: 2px solid rgba(255,255,255,.96); box-shadow: var(--shadow); background: #fff; }
.project-hero-image img { aspect-ratio: 1.12 / .82; object-fit: cover; }
.detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
.detail-section + .detail-section { margin-top: 50px; }
.detail-section h2 { margin: 0 0 16px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.25; }
.detail-card-list { display: grid; gap: 16px; }
.detail-card-list.two { grid-template-columns: repeat(2, 1fr); }
.detail-card { padding: 24px; border-radius: 26px; background: rgba(255,255,255,.82); border: 1px solid rgba(242,223,173,.9); box-shadow: var(--shadow); }
.detail-card h3 { margin: 0 0 10px; font-size: 1.05rem; }
.detail-card h3::before { content: "✦ "; color: var(--primary); }
.detail-card p { margin: 0; color: var(--muted); }
.flow-box { padding: 24px; border-radius: 26px; background: linear-gradient(135deg, rgba(255,244,194,.78), rgba(255,255,255,.92)); border: 1px solid var(--line); }
.flow-list { margin: 0; padding-left: 1.2em; }
.flow-list li + li { margin-top: 10px; }
.detail-image-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.detail-image-card { margin: 0; padding: 12px; border-radius: 26px; background: rgba(255,255,255,.82); border: 1px solid rgba(242,223,173,.9); box-shadow: var(--shadow); }
.detail-image-card img { border-radius: 20px; aspect-ratio: 1.2 / .9; object-fit: cover; margin-bottom: 10px; }
.detail-image-card figcaption { color: var(--muted); font-size: .92rem; }
.detail-side { display: grid; gap: 18px; position: sticky; top: 110px; }
.side-card { padding: 26px; border-radius: 28px; background: rgba(255,255,255,.84); border: 1px solid rgba(242,223,173,.9); box-shadow: var(--shadow); }
.side-card h2 { margin: 0 0 14px; font-size: 1.28rem; }
.side-list, .side-link-list { list-style: none; padding: 0; margin: 0; }
.side-list li, .side-link-list li { padding: 10px 0 10px 20px; position: relative; border-bottom: 1px dashed rgba(217,149,18,.24); }
.side-list li::before, .side-link-list li::before { content: "●"; position: absolute; left: 0; color: var(--accent); font-size: .7rem; }
.side-list li:last-child, .side-link-list li:last-child { border-bottom: none; }
.side-link-list a { color: var(--primary-dark); font-weight: 900; }

/* Responsive */
@media (max-width: 1100px) {
  .header-links { display: none; }
  .site-header .header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding: 12px 0 16px;
  }
  .site-header .logo {
    width: 100%;
    justify-content: center;
  }
  .site-header .global-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    width: 100%;
  }
  .site-header .global-nav a {
    padding: 4px 8px 8px;
  }
  .hero-grid, .two-column, .skill-layout, .footer-grid, .strength-grid, .project-hero-grid, .detail-grid, .detail-card-list.two, .detail-image-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card.featured { grid-column: span 1; }
  .detail-side { position: static; }
}
@media (max-width: 860px) {
  .hero { padding-top: 42px; }
  .project-card, .project-card.featured { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .section-heading-row { align-items: start; flex-direction: column; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .project-meta-list li { flex-direction: column; gap: 4px; }
  .project-meta-list strong { min-width: 0; }
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    padding: 34px 0 20px;
  }
}
@media (max-width: 560px) {
  .container { width: min(var(--container), calc(100% - 24px)); }
  .header-inner { min-height: 72px; }
  .site-header .logo-text { display: none; }
  .logo-text small { display: none; }
  .logo:has(.logo-text):not(:has(.logo-mark)) { padding: 4px 0; }
  .site-header .global-nav {
    gap: 6px 8px;
  }
  .site-header .global-nav a {
    font-size: .82rem;
  }
  .hero h1 { font-size: 2rem; }
  .button, .button-wide { width: 100%; }
  .timeline-card, .skills-panel, .achievement-panel, .strength-card, .project-card, .detail-card, .side-card { border-radius: 24px; }
  .section { padding: 58px 0; }
}

/* =========================
   Cute Pop Design Adjustments
   ========================= */

/* 背景を単色寄りにして見やすくする */
body {
  background: #fff8dc;
}

/* ドット装飾を少し控えめに */
body::before {
  opacity: 0.18;
}

/* ヘッダーを少し見やすく */
.site-header {
  background: #ffe29a;
}

/* ヒーローの間延びを調整 */
.hero {
  padding: 54px 0 52px;
}

.hero-grid {
  gap: 56px;
}

/* ヒーロー画像を少し大きく・存在感を出す */
.hero-image-card {
  border-radius: 34px;
  max-width: 440px;
  margin-left: auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.4rem);
}

/* 説明文を少し読みやすく */
.hero-description,
.section-heading-block p:not(.section-label),
.project-card p,
.detail-section p {
  color: #6f6254;
}

/* セクション背景を単色に寄せる */
.section-soft {
  background: #fff3c4;
}

/* カードの白さを少し強くして見やすく */
.timeline-card,
.skills-panel,
.achievement-panel,
.strength-card,
.project-card,
.detail-card,
.side-card {
  background: rgba(255, 255, 255, 0.92);
}

/* Strengths を少しポップに */
.strength-card {
  border-width: 2px;
}

.strength-icon {
  width: 74px;
  height: 74px;
}

/* Projectsのカードを少し大きくする */
.project-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card.featured {
  grid-column: span 2;
}

/* 画像の高さを揃えてカードを綺麗に */
.project-card img {
  height: 210px;
  min-height: 210px;
  object-fit: cover;
}

/* 制作物カードの文字を少し大きく */
.project-card h3 {
  font-size: 1.15rem;
}

.project-card p {
  font-size: 0.94rem;
}

/* タグをよりかわいく */
.card-tags li,
.tech-tags li,
.filter-chip {
  border: none;
  box-shadow: inset 0 -2px 0 rgba(160, 105, 28, 0.08);
}

/* Skills / Achievements の余白調整 */
.skills-panel,
.achievement-panel {
  padding: 36px;
}

/* Footerを少しすっきり */
.site-footer {
  background: #ffe29a;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -23px;
  height: 48px;
  background:
    radial-gradient(circle at 22px 24px, #ffe29a 25px, transparent 26px) repeat-x;
  background-size: 60px 46px;
}

/* スマホ・タブレット */
@media (max-width: 1100px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .hero-image-card {
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .project-card img {
    height: auto;
    min-height: 0;
  }
}
