/*
Theme Name: Portfolio
Author: hitomin
Description: ポートフォリオテーマ
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Yomogi&family=Noto+Sans+JP:wght@400;500;700&family=Poppins:wght@400;700;900&display=swap');

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  --primary:    #B8FF3C;
  --accent:     #FF6B9D;
  --text-main:  #1a1a1a;
  --text-sub:   #666666;
  --bg-light:   #FAFAF7;
  --bg-cream:   #FFF9F0;
  --footer-bg:  #1E3A1E;
  --white:      #ffffff;
  --border:     2px solid var(--text-main);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', sans-serif; color: var(--text-main); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   Fonts
   ============================================================ */
.font-yomogi  { font-family: 'Yomogi', cursive; }
.font-noto    { font-family: 'Noto Sans JP', sans-serif; }
.font-poppins { font-family: 'Poppins', sans-serif; }

/* ============================================================
   Layout
   ============================================================ */
.container { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 896px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 672px; margin: 0 auto; padding: 0 1.5rem; }

/* ============================================================
   Navbar
   ============================================================ */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  background: transparent;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f0f0f0;
}
.navbar-inner {
  max-width: 1152px; margin: 0 auto; padding: 0 1.5rem;
  height: 80px; display: flex; align-items: center; justify-content: space-between;
}
.navbar-logo img { height: 48px; width: auto; }
.navbar-links { display: flex; align-items: center; gap: 2.5rem; }
.navbar-links a {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 500; font-size: 1rem;
  color: var(--text-sub); transition: color 0.2s; white-space: nowrap; position: relative;
}
.navbar-links a:hover, .navbar-links a.active { color: var(--text-main); }
.navbar-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  height: 2px; background: var(--primary); width: 0; transition: width 0.3s;
}
.navbar-links a:hover::after, .navbar-links a.active::after { width: 100%; }
.navbar-badge {
  font-family: 'Yomogi', cursive; font-size: 0.875rem;
  background: var(--accent); color: white;
  padding: 0.5rem 1.25rem; border-radius: 9999px;
  white-space: nowrap; transform: rotate(-2deg); display: inline-block; position: relative;
}
.navbar-badge::after {
  content: ''; position: absolute; bottom: -8px; left: 20px;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 8px solid var(--accent);
}
.navbar-mobile-btn {
  display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--text-main);
}
.navbar-mobile-menu {
  display: none; background: white; border-top: 1px solid #f0f0f0; padding: 1rem 1.5rem;
}
.navbar-mobile-menu.open { display: block; }
.navbar-mobile-menu a {
  display: block; padding: 1rem 0; font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem; color: var(--text-main); border-bottom: 1px solid #f0f0f0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary); color: var(--text-main);
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700; font-size: 1rem;
  padding: 1rem 2.5rem; border-radius: 9999px; white-space: nowrap;
  transition: transform 0.2s; position: relative;
}
.btn-primary:hover { transform: translateY(-4px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--text-main);
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700; font-size: 1rem;
  padding: 1rem 2.5rem; border-radius: 9999px; white-space: nowrap;
  border: var(--border); transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--text-main); color: white; }
.btn-white {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: white; color: var(--text-main);
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700; font-size: 1.25rem;
  padding: 1.25rem 3.5rem; border-radius: 9999px; white-space: nowrap;
  border: var(--border); transition: background 0.2s, transform 0.2s;
}
.btn-white:hover { background: var(--primary); transform: translateY(-4px); }
.btn-dark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--text-main); color: white;
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700; font-size: 1rem;
  padding: 1rem 3rem; border-radius: 9999px; white-space: nowrap;
  border: var(--border); transition: background 0.2s, transform 0.2s;
}
.btn-dark:hover { background: var(--accent); transform: translateY(-4px); }

/* ============================================================
   Section: Hero
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; background: var(--bg-cream);
  overflow: hidden; display: flex; align-items: center;
  padding: 5rem 0 5rem;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* Hero dots */
.dots-grid {
  display: grid; gap: 0.75rem;
}
.dots-grid .dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.dots-bottom-left {
  position: absolute; bottom: 0; left: 0;
  grid-template-columns: repeat(12, 1fr);
  opacity: 0.25; padding: 2rem;
}
.dots-bottom-left .dot { background: var(--accent); }
.dots-bottom-right {
  position: absolute; bottom: 0; right: 0;
  grid-template-columns: repeat(8, 1fr);
  opacity: 0.15; padding: 1.5rem; transform: rotate(5deg);
}
.dots-bottom-right .dot { width: 6px; height: 6px; background: var(--text-main); }
.dots-top-center {
  position: absolute; top: 2.5rem; left: 33%;
  grid-template-columns: repeat(10, 1fr);
  opacity: 0.15;
}
.dots-top-center .dot { width: 6px; height: 6px; background: var(--accent); }
.dots-mid-left {
  position: absolute; top: 33%; left: 2rem;
  grid-template-columns: repeat(3, 1fr);
  opacity: 0.15;
}
.dots-mid-left .dot { width: 6px; height: 6px; background: var(--text-main); }

/* Decorative stars */
.deco-star {
  position: absolute; pointer-events: none; color: var(--primary);
}

.hero-grid {
  display: grid; grid-template-columns: 3fr 2fr;
  gap: 2rem; align-items: center;
}
.hero-badge {
  display: inline-block; background: var(--text-main); color: white;
  font-family: 'Poppins', sans-serif; font-weight: 900; font-size: 0.75rem;
  padding: 0.375rem 1rem; border-radius: 9999px; margin-bottom: 1rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-heading {
  font-family: 'Yomogi', cursive;
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}
.hero-sub {
  font-family: 'Yomogi', cursive;
  font-size: clamp(1.5rem, 3vw, 3rem);
  color: var(--accent); display: inline-block;
  transform: rotate(3deg); margin-left: 2rem;
}
.hero-name-en {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 1.5rem; color: var(--text-main); letter-spacing: 0.05em;
}
.hero-name-jp {
  font-family: 'Yomogi', cursive; font-size: clamp(0.875rem, 3vw, 1.125rem);
  color: var(--text-sub); margin-top: 0.25rem;
  word-break: break-word;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Hero Image */
.hero-image-wrap { position: relative; padding: 2.5rem 4rem; }
.hero-img {
  width: 320px; height: 420px; border-radius: 1.5rem; overflow: hidden;
  border: 4px solid var(--text-main); transform: rotate(-1deg);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Speech bubbles */
.bubble {
  position: absolute; border: var(--border); border-radius: 1rem;
  padding: 0.875rem 1.25rem; font-family: 'Yomogi', cursive; font-size: 1rem;
  text-align: center;
}
.bubble::before { content: ''; position: absolute; }
.bubble-top {
  top: -0.5rem; right: 0; background: white; color: var(--text-main);
  max-width: 160px; transform: rotate(3deg);
}
.bubble-top::after {
  content: ''; position: absolute; bottom: -10px; left: 20px;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-top: 10px solid var(--text-main);
}
.bubble-bottom {
  bottom: -0.5rem; right: 0; background: var(--accent); color: white;
  max-width: 160px; transform: rotate(2deg);
}
.bubble-bottom::after {
  content: ''; position: absolute; top: -10px; left: 24px;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-bottom: 10px solid var(--accent);
}
.bubble-left {
  bottom: 2.5rem; left: 0; background: white; color: var(--text-main);
  max-width: 180px; transform: rotate(-2deg);
}
.bubble-accent { color: var(--accent); font-weight: 700; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0.5;
}
.scroll-indicator span { font-family: 'Noto Sans JP', sans-serif; font-size: 0.875rem; color: var(--text-sub); }
.scroll-line { width: 1px; height: 32px; background: var(--text-sub); animation: bounce 1s infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ============================================================
   Section: About Preview
   ============================================================ */
.about-preview {
  padding: 6rem 0; background: white; position: relative; overflow: hidden;
}
.about-preview::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
}
.about-flex { display: flex; align-items: center; gap: 3rem; }
.about-label-col { flex: 0 0 auto; }
.about-label-big {
  font-family: 'Poppins', sans-serif; font-weight: 900;
  font-size: clamp(5rem, 10vw, 8rem); line-height: 1;
  -webkit-text-stroke: 3px var(--primary); color: transparent;
  display: inline-block; transform: rotate(-2deg); user-select: none;
}
.about-pill {
  display: inline-block; margin-top: 0.75rem; background: var(--primary);
  padding: 0.5rem 1.25rem; border-radius: 9999px; transform: rotate(-1deg);
}
.about-pill span { font-family: 'Yomogi', cursive; font-size: 1.5rem; color: var(--text-main); }
.about-text-col { flex: 1; }
.about-text-lg { font-size: 1.125rem; line-height: 2.25; margin-bottom: 1.25rem; }
.about-text-md { font-size: 1rem; color: var(--text-sub); line-height: 2; }
.highlight { background: var(--primary); padding: 0 0.25rem; border-radius: 0.25rem; }
.link-underline {
  font-weight: 700; font-size: 1rem; color: var(--text-main);
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: var(--primary); transition: color 0.2s; display: inline-flex; align-items: center; gap: 0.5rem;
}
.link-underline:hover { color: var(--accent); }

/* ============================================================
   Section: Skills
   ============================================================ */
.skills-section {
  padding: 7rem 0; background: var(--bg-light); position: relative; overflow: hidden;
}
.wave-top, .wave-bottom { position: absolute; left: 0; right: 0; }
.wave-top { top: 0; }
.wave-bottom { bottom: 0; }
.wave-top svg, .wave-bottom svg { width: 100%; display: block; }
.section-title-row { display: flex; align-items: flex-end; gap: 1rem; margin-bottom: 3.5rem; }
.section-title-big {
  font-family: 'Yomogi', cursive; font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: var(--text-main); display: inline-block; transform: rotate(-1deg); white-space: nowrap;
}
.section-title-en {
  font-family: 'Poppins', sans-serif; font-size: 1rem;
  color: var(--text-sub); font-style: italic; display: inline-block;
  transform: rotate(1deg); margin-bottom: 0.5rem;
}
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.skill-card {
  position: relative; border: var(--border); border-radius: 1rem; padding: 2rem;
  background: white; transition: transform 0.3s; cursor: default;
}
.skill-card:hover { transform: translateY(-4px) rotate(var(--r, 0deg)); }
.skill-card.highlight { background: var(--primary); }
.skill-card-star {
  position: absolute; top: 1rem; right: 1rem;
  color: rgba(26,26,26,0.2); font-size: 1.125rem;
}
.skill-emoji { font-size: 2.5rem; margin-bottom: 1rem; }
.skill-title { font-family: 'Yomogi', cursive; font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.skill-desc { font-family: 'Noto Sans JP', sans-serif; font-size: 0.875rem; color: var(--text-sub); line-height: 1.75; }

/* ============================================================
   Section: Works Gallery
   ============================================================ */
.works-section { padding: 7rem 0; background: white; position: relative; overflow: hidden; }
.works-title-center { text-align: center; margin-bottom: 3.5rem; }
.works-title-en {
  font-family: 'Poppins', sans-serif; font-weight: 900;
  font-size: clamp(4rem, 8vw, 6rem); line-height: 1; color: var(--text-main);
}
.works-title-jp {
  font-family: 'Yomogi', cursive; font-size: 1.5rem; color: var(--accent);
  display: inline-block; transform: rotate(-1deg); margin-top: 0.5rem;
}
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.work-card {
  display: block; background: white; border: var(--border); border-radius: 1rem;
  overflow: hidden; transition: transform 0.3s;
}
.work-card:hover { transform: translateY(-8px); }
.work-thumb { position: relative; height: 208px; overflow: hidden; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.3s; }
.work-card:hover .work-thumb img { transform: scale(1.05); }
.work-category {
  position: absolute; top: 0.75rem; left: 0.75rem;
  font-family: 'Yomogi', cursive; font-size: 0.875rem;
  padding: 0.25rem 0.75rem; border-radius: 9999px; border: var(--border);
}
.cat-lp, .cat-ec    { background: var(--primary); color: var(--text-main); }
.cat-corp           { background: var(--accent); color: white; }
.cat-blog           { background: var(--text-main); color: white; }
.cat-portfolio      { background: var(--accent); color: white; }
.work-content { padding: 1.25rem; }
.work-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; line-height: 1.4; }
.work-desc { font-size: 0.875rem; color: var(--text-sub); line-height: 1.75; }
.work-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.75rem; }
.work-tag {
  font-size: 0.875rem; color: var(--text-sub);
  border: 1px solid #e5e7eb; padding: 0.125rem 0.625rem; border-radius: 9999px;
}
.works-cta { text-align: center; margin-top: 3.5rem; }

/* ============================================================
   Section: Contact CTA
   ============================================================ */
.contact-cta {
  padding: 7rem 0; background: var(--accent);
  position: relative; overflow: hidden;
}
.contact-cta-inner { position: relative; z-index: 1; text-align: center; }
.cta-heading {
  font-family: 'Yomogi', cursive;
  font-size: clamp(1.75rem, 4vw, 3.75rem); color: white;
  display: inline-block; transform: rotate(-1deg); line-height: 1.5;
  margin-bottom: 1.5rem; white-space: nowrap;
}
.cta-bubble {
  display: inline-block; background: white; color: var(--text-main);
  border: var(--border); border-radius: 1rem;
  padding: 1rem 2rem; font-family: 'Yomogi', cursive;
  font-size: 1rem; transform: rotate(1deg); position: relative; margin-bottom: 2.5rem;
}
.cta-bubble-note { font-family: 'Noto Sans JP', sans-serif; font-size: 0.875rem; color: var(--text-sub); display: block; margin-top: 0.25rem; }
.cta-bubble::before {
  content: ''; position: absolute; top: -10px; left: 40px;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-bottom: 10px solid var(--text-main);
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: var(--footer-bg); color: white;
}
.footer-inner { max-width: 1152px; margin: 0 auto; padding: 4rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-bottom: 3rem; }
.footer-logo img { height: 48px; width: auto; margin-bottom: 1rem; filter: brightness(200%); }
.footer-desc { font-size: 0.875rem; color: rgba(255,255,255,0.7); line-height: 1.8; }
.footer-tag {
  display: inline-block; margin-top: 1rem;
  background: var(--primary); color: var(--text-main);
  font-family: 'Yomogi', cursive; font-size: 0.75rem;
  padding: 0.375rem 0.75rem; border-radius: 9999px; transform: rotate(-1deg);
}
.footer-col-title { font-family: 'Yomogi', cursive; font-size: 1.125rem; color: var(--primary); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-sns { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-sns a { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.7); transition: color 0.2s; font-size: 0.875rem; }
.footer-sns a:hover { color: var(--primary); }
.footer-sns i { font-size: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; }
.footer-big-title {
  font-family: 'Poppins', sans-serif; font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 6rem); color: rgba(255,255,255,0.1);
  line-height: 1; letter-spacing: -0.02em; margin-bottom: 1rem; user-select: none;
}
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* ============================================================
   About Page: Profile Section
   ============================================================ */
.profile-section {
  padding: 9rem 0 5rem; background: var(--bg-cream); position: relative; overflow: hidden;
}
.profile-page-title { margin-bottom: 4rem; }
.profile-title-big {
  font-family: 'Poppins', sans-serif; font-weight: 900;
  font-size: clamp(5rem, 10vw, 8rem); line-height: 1;
  -webkit-text-stroke: 3px var(--text-main); color: transparent;
}
.profile-title-jp {
  font-family: 'Yomogi', cursive; font-size: 1.875rem; color: var(--accent);
  display: inline-block; transform: rotate(-1deg); margin-top: 0.5rem;
}
.profile-flex { display: flex; gap: 4rem; align-items: flex-start; }
.profile-img-col { flex: 0 0 40%; position: relative; }
.profile-img-frame {
  display: inline-block; transform: rotate(-2deg);
}
.profile-img-frame-inner {
  width: 100%; max-width: 384px; border-radius: 1.5rem; overflow: hidden; border: 4px solid var(--text-main);
}
.profile-img-frame-inner img { width: 100%; height: 320px; object-fit: cover; object-position: top; }
.profile-bubble-tr {
  position: absolute; top: -2rem; right: -2.5rem;
  background: var(--primary); border: var(--border);
  border-radius: 1rem; padding: 0.75rem 1rem;
  font-family: 'Yomogi', cursive; font-size: 0.875rem; color: var(--text-main);
  max-width: 144px; text-align: center; transform: rotate(5deg);
}
.profile-bubble-tr::after {
  content: ''; position: absolute; bottom: -10px; left: 20px;
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 10px solid var(--text-main);
}
.profile-bubble-tl {
  position: absolute; left: -2.5rem; top: 33%;
  background: var(--accent); color: white; border: var(--border);
  border-radius: 1rem; padding: 0.75rem 1rem;
  font-family: 'Yomogi', cursive; font-size: 0.875rem;
  max-width: 128px; text-align: center; transform: rotate(-4deg);
}
.profile-bubble-tl::after {
  content: ''; position: absolute; bottom: -10px; right: 20px;
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 10px solid var(--text-main);
}
.profile-bubble-br {
  position: absolute; bottom: -1.25rem; right: -2rem;
  background: white; border: var(--border);
  border-radius: 1rem; padding: 0.75rem 1rem;
  font-family: 'Yomogi', cursive; font-size: 0.875rem; color: var(--text-main);
  white-space: nowrap; transform: rotate(2deg);
}
.profile-namecard {
  margin-top: 3rem; background: var(--text-main); color: white;
  border-radius: 1rem; padding: 1.5rem; border: var(--border);
  transform: rotate(1deg);
}
.profile-namecard-en { font-family: 'Poppins', sans-serif; font-weight: 900; font-size: 1.875rem; }
.profile-namecard-jp { font-family: 'Yomogi', cursive; font-size: 1rem; color: rgba(255,255,255,0.7); margin-top: 0.25rem; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.profile-tag { font-size: 0.875rem; background: rgba(255,255,255,0.1); padding: 0.25rem 0.75rem; border-radius: 9999px; color: rgba(255,255,255,0.8); }
.profile-text-col { flex: 1; }
.profile-texts { display: flex; flex-direction: column; gap: 1.5rem; font-size: 1.125rem; line-height: 2.25; }
.profile-box {
  border: var(--border); border-radius: 1rem; padding: 1.5rem; background: white;
  transform: rotate(-0.5deg);
}
.profile-box-main { font-family: 'Yomogi', cursive; font-size: 1.25rem; margin-bottom: 0.5rem; }
.profile-box-sub { font-size: 0.875rem; color: var(--text-sub); }

/* ============================================================
   About Page: Career Timeline
   ============================================================ */
.career-section { padding: 7rem 0; background: white; }
.career-timeline { position: relative; }
.career-line {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; border-left: 2px dashed rgba(26,26,26,0.2); transform: translateX(-50%);
}
.career-list { display: flex; flex-direction: column; gap: 2rem; }
.career-item { position: relative; display: flex; }
.career-item:nth-child(odd) { justify-content: flex-start; }
.career-item:nth-child(even) { justify-content: flex-end; }
.career-dot {
  position: absolute; left: 50%; top: 1.75rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); border: 2px solid var(--text-main);
  transform: translateX(-50%); z-index: 1;
}
.career-card {
  width: 41.67%; border: var(--border); border-radius: 1rem; padding: 1.5rem;
}
.career-card.bg-primary-c { background: var(--primary); }
.career-card.bg-accent-c   { background: var(--accent); }
.career-card.bg-white-c    { background: white; }
.career-header { display: flex; align-items: flex-start; gap: 1rem; }
.career-period {
  flex-shrink: 0; font-family: 'Poppins', sans-serif; font-size: 0.875rem; font-weight: 700;
  background: rgba(255,255,255,0.7); color: var(--text-sub);
  padding: 0.25rem 0.75rem; border-radius: 9999px; white-space: nowrap;
}
.career-role { font-family: 'Yomogi', cursive; font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.career-role.text-white { color: white; }
.career-role.text-dark { color: var(--text-main); }
.career-desc { font-size: 0.875rem; line-height: 1.75; }
.career-desc.text-white-sub { color: rgba(255,255,255,0.8); }
.career-desc.text-sub { color: var(--text-sub); }

/* ============================================================
   About CTA
   ============================================================ */
.about-cta {
  padding: 6rem 0; background: var(--primary); position: relative; overflow: hidden;
}
.about-cta-inner { position: relative; z-index: 1; text-align: center; }
.about-cta-heading {
  font-family: 'Yomogi', cursive; font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--text-main); display: inline-block; transform: rotate(-1deg); line-height: 1.5; margin-bottom: 1.5rem;
}
.about-cta-sub { font-size: 0.875rem; color: var(--text-sub); margin-bottom: 2rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image-wrap { display: none; }
  .hero-heading { font-size: 2.5rem; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-flex { flex-direction: column; }
  .profile-img-col { width: 100%; }
  .career-line { display: none; }
  .career-item { justify-content: flex-start !important; }
  .career-card { width: 100%; }
  .career-dot { display: none; }
}
@media (max-width: 768px) {
  .navbar-links, .navbar-badge { display: none; }
  .navbar-mobile-btn { display: flex; }
  .about-flex { flex-direction: column; }
  .skills-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-heading { font-size: clamp(1.5rem, 6vw, 2rem); }
  .hero { padding: 5rem 0 4rem; overflow-x: hidden; }
  .hero-name-en { font-size: 1.25rem; }
}

/* ============================================================
   Generic Page Hero  (Works / Contact inner pages)
   ============================================================ */
.page-hero {
  padding: 9rem 0 3rem;
  background: var(--bg-cream);
  position: relative;
  overflow: hidden;
}
.page-hero-title { margin-bottom: 1.5rem; }
.page-hero-title-big {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 8vw, 8rem);
  line-height: 1;
  -webkit-text-stroke: 2px var(--text-main);
  color: transparent;
}
.page-hero-title-jp {
  font-family: 'Yomogi', cursive;
  font-size: 1.875rem;
  color: var(--accent);
  display: inline-block;
  transform: rotate(-1deg);
  margin-top: 0.5rem;
}
.page-hero-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 2;
  max-width: 40rem;
  margin-top: 0.75rem;
}
.page-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.page-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: white;
  border: var(--border);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  color: var(--text-main);
}
.page-hero-pill i { color: var(--accent); font-size: 0.875rem; }

/* ============================================================
   Works Full Grid  (works.html)
   ============================================================ */
.works-full-section { padding: 3rem 0 5rem; background: white; }

.works-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 2px solid #e5e7eb;
  background: white;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--text-main); color: var(--text-main); }
.filter-btn.active { background: var(--text-main); color: white; border-color: var(--text-main); }
.filter-count {
  font-size: 0.75rem;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.2);
}
.filter-btn:not(.active) .filter-count { background: #f3f4f6; color: var(--text-sub); }

/* Year badge on cards */
.work-year-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.75rem;
  background: rgba(255,255,255,0.92);
  color: var(--text-sub);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
}

/* Extra category colors */
.cat-interview { background: var(--text-main); color: white; }
.cat-column    { background: var(--accent); color: white; }

/* ============================================================
   Works Detail Page  (works-detail.html)
   ============================================================ */
.work-detail-page { padding: 7rem 0 5rem; background: white; }

.work-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  color: var(--text-sub);
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}
.work-detail-back:hover { color: var(--text-main); }
.work-detail-back i { font-size: 0.875rem; }

.work-detail-hero-img {
  width: 100%;
  height: 400px;
  border-radius: 1rem;
  overflow: hidden;
  border: var(--border);
  margin-bottom: 2rem;
  transform: rotate(-0.5deg);
}
.work-detail-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}

.work-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}
.meta-badge {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: white;
  color: var(--text-sub);
}
.meta-badge-cat {
  font-family: 'Yomogi', cursive;
  font-size: 0.875rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  border: var(--border);
}
.meta-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  background: var(--text-main);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  transition: background 0.2s;
}
.meta-badge-link:hover { background: var(--accent); }

.work-detail-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 2rem;
}
.work-detail-body {
  border: var(--border);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--bg-cream);
  margin-bottom: 1rem;
  transform: rotate(0.3deg);
}
.work-detail-body-label {
  font-family: 'Yomogi', cursive;
  font-size: 1.125rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.work-detail-body-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  line-height: 2.25;
  color: var(--text-main);
  white-space: normal;
}
.work-detail-tools-section { margin-bottom: 3rem; }
.work-detail-tools-label {
  font-family: 'Yomogi', cursive;
  font-size: 1.125rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}
.work-tools-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.work-tool-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  color: var(--text-main);
  background: white;
  border: var(--border);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
}
.work-tool-item i { color: var(--accent); font-size: 0.75rem; }

.work-detail-footer-cta {
  background: var(--text-main);
  color: white;
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  transform: rotate(-0.5deg);
}
.work-detail-footer-cta-title {
  font-family: 'Yomogi', cursive;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.work-detail-footer-cta-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  line-height: 1.75;
}
.work-detail-footer-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.btn-primary-green {
  display: inline-flex; align-items: center;
  background: var(--primary); color: var(--text-main);
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700; font-size: 1rem;
  padding: 1rem 2.5rem; border-radius: 9999px;
  white-space: nowrap; transition: transform 0.2s;
}
.btn-primary-green:hover { transform: translateY(-2px); }
.btn-ghost-white {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.1); color: white;
  font-family: 'Noto Sans JP', sans-serif; font-size: 1rem;
  padding: 1rem 2rem; border-radius: 9999px;
  white-space: nowrap; transition: background 0.2s;
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
   Contact Page Form  (contact.html)
   ============================================================ */
.contact-form-section { padding: 4rem 0 6rem; background: white; }
.contact-form-wrap { max-width: 42rem; margin: 0 auto; padding: 0 1.5rem; }

.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.form-required {
  font-family: 'Yomogi', cursive;
  font-size: 0.75rem;
  color: var(--accent);
  margin-left: 0.375rem;
}
.form-optional {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-left: 0.5rem;
  font-weight: 400;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  color: var(--text-main);
  background: white;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--text-main); }
.form-input::placeholder,
.form-textarea::placeholder { color: #d1d5db; }
.form-select-wrap { position: relative; }
.form-select-wrap i {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-sub); pointer-events: none; font-size: 1.125rem;
}
.form-textarea { resize: none; }
.form-char-count {
  text-align: right;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}
.form-char-count.near-limit { color: #f87171; }
.form-submit {
  width: 100%;
  background: var(--text-main); color: white;
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700; font-size: 1rem;
  padding: 1rem; border-radius: 9999px; border: none;
  cursor: pointer; white-space: nowrap; transition: transform 0.2s;
  margin-top: 0.5rem;
}
.form-submit:hover { transform: translateY(-2px); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-note {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.75rem; color: #9ca3af;
  text-align: center; margin-top: 1rem; line-height: 1.75;
}
.form-error-msg {
  background: #fef2f2; border: 2px solid #fecaca;
  border-radius: 0.75rem; padding: 0.75rem 1rem;
  font-family: 'Noto Sans JP', sans-serif; font-size: 0.875rem; color: #f87171;
  margin-bottom: 1rem; display: none;
}
.form-error-msg.show { display: block; }
.form-success-wrap {
  text-align: center; padding: 6rem 0;
}
.form-success-wrap.show { display: block; }
.form-success-inner {
  display: inline-block; background: var(--primary);
  border: var(--border); border-radius: 1.5rem;
  padding: 3rem; transform: rotate(-1deg);
}
.form-success-icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success-title {
  font-family: 'Yomogi', cursive; font-size: 1.5rem;
  color: var(--text-main); margin-bottom: 0.75rem;
}
.form-success-sub {
  font-family: 'Noto Sans JP', sans-serif; font-size: 0.875rem;
  color: var(--text-sub); line-height: 1.75;
}

/* Flash message (AJAX) */
.form-flash {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
}
.form-flash--success {
  display: block;
  background: #f0fff4;
  color: #276749;
  border: 1.5px solid #9ae6b4;
}
.form-flash--error {
  display: block;
  background: #fff5f5;
  color: #c53030;
  border: 1.5px solid #feb2b2;
}

/* ============================================================
   Responsive (additions for new pages)
   ============================================================ */
@media (max-width: 768px) {
  .page-hero-title-big { font-size: clamp(2.75rem, 13vw, 4.5rem); }
  .work-detail-hero-img { height: 220px; }
  .work-detail-title { font-size: 1.375rem; }
  .work-detail-footer-btns { flex-direction: column; align-items: center; }
  .work-detail-footer-cta { padding: 2rem 1.25rem; }
}
.work-detail-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.work-detail-info-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
}

.work-detail-info-label {
  margin: 0 0 8px;
  font-size: 14px;
  color: #6b7280;
}

.work-detail-info-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

.work-detail-sub-image {
  margin: 40px 0;
}

.work-detail-sub-image-tag {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: var(--border);
}

.work-detail-point {
  margin: 40px 0;
  padding: 24px;
  background: #f9fafb;
  border-radius: 20px;
  border: var(--border);
}

.work-detail-point-title {
  margin: 0 0 16px;
  font-size: 1.125rem;
  color: var(--text-main);
}

.work-detail-point-text p {
  margin: 0 0 0.5em;
  line-height: 1.9;
}

@media (max-width: 768px) {
  .work-detail-info {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   Hero mobile fix
   ========================================= */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
}

@media (max-width: 768px) {
  .hero {
    display: block;
    min-height: auto;
    padding: 7rem 0 3rem;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }

  .hero-content {
    position: relative;
    z-index: 2;
  }

  .hero-badge {
    margin-bottom: 1rem;
    font-size: 0.7rem;
  }

  .hero-heading {
    font-size: 1.85rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    word-break: keep-all;
    overflow-wrap: normal;
    line-break: strict;
  }

  .hero-sub {
    display: inline-block;
    margin-left: 0;
    margin-top: 0.25rem;
    font-size: 1.8rem;
    transform: rotate(2deg);
  }

  .hero-name-en {
    font-size: 1rem;
    line-height: 1.4;
    margin-top: 1.5rem;
  }

  .hero-name-jp {
    font-size: 0.95rem;
    line-height: 1.8;
    word-break: keep-all;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }

  .hero-image-wrap {
    display: block;
    padding: 0;
    margin-top: 1rem;
  }

  .hero-img {
    width: min(100%, 320px);
    height: auto;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
  }

  .bubble {
    font-size: 0.9rem;
    padding: 0.7rem 0.9rem;
  }

  .bubble-top {
    top: -1rem;
    right: 0.25rem;
    max-width: 130px;
  }

  .bubble-left {
    left: 0;
    bottom: 1rem;
    max-width: 150px;
  }

  .bubble-bottom {
    right: 0;
    bottom: -1rem;
    max-width: 130px;
  }

  .scroll-indicator {
    display: none;
  }

  .dots-top-center {
    left: 50%;
    transform: translateX(-50%);
    top: 1.5rem;
  }

  .dots-mid-left {
    left: 1rem;
    top: 18rem;
  }

  .dots-bottom-left {
    padding: 1rem;
    grid-template-columns: repeat(6, 1fr);
  }

  .dots-bottom-right {
    padding: 1rem;
    grid-template-columns: repeat(5, 1fr);
  }
}