/* =============================================
   HAMU Lab - style.css
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --color-bg: #faf9f6;
  --color-surface: #ffffff;
  --color-navy: #1e2d40;
  --color-navy-light: #2e4460;
  --color-accent: #c8923a;
  --color-accent-light: #e8b96a;
  --color-text: #2c2c2c;
  --color-text-muted: #6b6b6b;
  --color-border: #e0ddd8;
  --color-timeline: #d4cec6;

  --font-sans: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --font-serif: 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'Georgia', serif;

  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(30, 45, 64, 0.08);
  --shadow-lg: 0 4px 24px rgba(30, 45, 64, 0.12);

  --max-width: 1000px;
  --section-padding: 96px 24px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 580px;
  line-height: 1.9;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s;
}

.site-nav.scrolled {
  box-shadow: var(--shadow);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: 0.04em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-navy);
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  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);
}

/* ---------- Hero ---------- */
#home {
  padding-top: 120px;
  padding-bottom: 96px;
  padding-left: 24px;
  padding-right: 24px;
  background: linear-gradient(160deg, #f5f3ef 0%, #faf9f6 60%, #f0ede8 100%);
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.25;
  margin-bottom: 24px;
  font-family: var(--font-serif);
}

.hero-sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: #b07c2e;
  border-color: #b07c2e;
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-outline:hover {
  background: var(--color-navy);
  color: #fff;
}

/* Profile placeholder in hero */
.hero-profile {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: var(--shadow-lg);
}

.hero-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-icon {
  color: #bbb;
  font-size: 4rem;
  user-select: none;
}

/* Nav anchor shortcut inside hero */
.hero-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.hero-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.hero-nav a:hover {
  color: var(--color-accent);
}

/* ---------- About ---------- */
#about {
  padding: var(--section-padding);
  background: var(--color-surface);
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-body p {
  margin-bottom: 16px;
  line-height: 1.9;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  background: var(--color-bg);
  color: var(--color-navy);
  border: 1px solid var(--color-border);
  font-weight: 500;
}

.about-profile-block {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--color-border);
}

.about-photo {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: var(--color-border);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #bbb;
}

.photo-placeholder span {
  font-size: 2.5rem;
}

.photo-placeholder p {
  font-size: 0.75rem;
  color: #bbb;
  text-align: center;
}

.about-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.about-role {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.about-detail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-detail-list li {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  align-items: flex-start;
}

.about-detail-list .detail-label {
  color: var(--color-text-muted);
  flex-shrink: 0;
  min-width: 72px;
}

.about-detail-list .detail-value {
  color: var(--color-text);
  font-weight: 500;
}

/* ---------- Philosophy ---------- */
#philosophy {
  padding: 120px 24px;
  background: var(--color-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

#philosophy::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

#philosophy::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.philosophy-inner {
  max-width: 560px;
  margin: 0 auto;
}

.philosophy-text {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.8vw, 1.4rem);
  line-height: 2.4;
  color: var(--color-navy);
  letter-spacing: 0.04em;
}

.philosophy-text em {
  font-style: normal;
  color: var(--color-accent);
  font-weight: 600;
}

.philosophy-text .ph-break {
  display: block;
  height: 1em;
}

/* ---------- Learning ---------- */
#learning {
  padding: var(--section-padding);
  background: var(--color-navy);
  color: #fff;
}

.learning-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

#learning .section-label {
  color: var(--color-accent-light);
}

#learning .section-title {
  color: #fff;
  margin-bottom: 12px;
}

.learning-lead {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 40px;
  line-height: 1.7;
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.learning-card {
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  transition: background 0.2s, border-color 0.2s;
}

.learning-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

.learning-icon {
  font-size: 1.4rem;
  margin-bottom: 12px;
  display: block;
}

.learning-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.learning-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
}

/* ---------- PSR (Problem/Solution/Result) ---------- */
.psr-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.psr-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
}

.psr-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 0;
  border-radius: 3px;
  text-align: center;
}

.psr-problem { color: #b85c38; background: #fdf0ec; border: 1px solid #f5c4b3; }
.psr-solution { color: #1e6b45; background: #edf6f1; border: 1px solid #b3dfc7; }
.psr-result { color: #1e4070; background: #edf2fa; border: 1px solid #b3c8ec; }

.psr-text {
  font-size: 0.84rem;
  color: var(--color-text);
  line-height: 1.8;
  padding-top: 2px;
}

/* ---------- What I Do ---------- */
#whatido {
  padding: var(--section-padding);
  background: var(--color-surface);
}

.whatido-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.whatido-lead {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 560px;
}

.whatido-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 48px;
}

.whatido-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.whatido-list li:first-child {
  border-top: 1px solid var(--color-border);
}

.whatido-icon {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 3px;
  width: 20px;
}

.whatido-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
  line-height: 1.4;
}

.whatido-item-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.lab-definition {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 28px;
}

.lab-definition p {
  font-size: 0.92rem;
  color: var(--color-navy);
  font-style: italic;
  line-height: 1.8;
  font-family: var(--font-serif);
}

/* ---------- Worry check (What I Do upper half) ---------- */
.worry-list {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 8px 0;
  margin-bottom: 24px;
}

.worry-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 24px;
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.7;
  border-bottom: 1px solid var(--color-border);
}

.worry-list li:last-child {
  border-bottom: none;
}

.worry-list li::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.worry-bridge {
  background: var(--color-navy);
  border-radius: var(--radius);
  padding: 18px 28px;
  text-align: center;
  margin-bottom: 48px;
}

.worry-bridge p {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.6;
}

.whatido-sublabel {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
  display: block;
}

.worry-action-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s, gap 0.2s;
  letter-spacing: 0.02em;
}

.worry-action-cta:hover {
  border-color: var(--color-accent);
  gap: 12px;
}

/* ---------- Service Cards ---------- */
.service-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}

.service-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
}

.service-card-num {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 2px;
}

.service-card-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.service-card-catch {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.55;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.service-card-section-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  display: block;
}

.service-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card-list li {
  font-size: 0.84rem;
  color: var(--color-text);
  padding: 4px 0 4px 16px;
  position: relative;
  line-height: 1.65;
}

.service-card-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.78rem;
  top: 5px;
}

.service-card-takehome {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 14px;
}

.service-card-takehome-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
  display: block;
}

.service-card-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  line-height: 1.75;
}

/* ---------- HAMU Promise Block ---------- */
.hamu-promise {
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  margin-top: 24px;
}

.hamu-promise-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
  display: block;
}

.hamu-promise-text {
  font-size: 0.9rem;
  line-height: 2.1;
  color: rgba(255,255,255,0.88);
}

.hamu-promise-text strong {
  color: #fff;
  font-weight: 700;
}

/* ---------- Learning groups ---------- */
.learning-groups {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.learning-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ---------- Contact closing ---------- */
.contact-closing {
  margin-top: 48px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
  font-style: italic;
}

/* ---------- Footer brand ---------- */
.footer-brand {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.08em;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 16px;
  width: 100%;
}

/* ---------- Mission ---------- */
#mission {
  padding: var(--section-padding);
  background: var(--color-navy);
  color: #fff;
}

.mission-inner {
  max-width: 680px;
  margin: 0 auto;
}

#mission .section-label {
  color: var(--color-accent-light);
}

#mission .section-title {
  color: #fff;
  margin-bottom: 36px;
}

.mission-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 24px;
}

.mission-body p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.95;
  margin-bottom: 18px;
}

.mission-body p:last-child {
  margin-bottom: 0;
}

/* ---------- Story closing ---------- */
.story-closing {
  margin-top: 48px;
  padding: 32px 36px;
  background: var(--color-bg);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.story-closing p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-bottom: 12px;
}

.story-closing p:last-child {
  margin-bottom: 0;
  color: var(--color-navy);
  font-weight: 600;
}

/* ---------- Project plain ---------- */
.project-plain {
  font-size: 0.83rem;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 8px;
  padding: 10px 12px;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

/* ---------- Values ---------- */
#values {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.values-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.values-header {
  margin-bottom: 48px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.value-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.value-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.value-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.value-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
  line-height: 1.4;
}

.value-body {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.9;
}

/* ---------- Story ---------- */
#story {
  padding: var(--section-padding);
  background: var(--color-surface);
}

.story-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.story-header {
  margin-bottom: 56px;
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 11px;
  width: 2px;
  background: var(--color-timeline);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline-chapter {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
  line-height: 1.4;
}

.timeline-body {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.9;
}

/* ---------- Projects ---------- */
#projects {
  padding: var(--section-padding);
  background: var(--color-bg);
}

.projects-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.projects-header {
  margin-bottom: 48px;
}

.projects-intro {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-bottom: 28px;
  padding: 16px 20px;
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  border-color: var(--color-accent);
}

.project-card.open {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
}

/* カードヘッダー（常に表示） */
.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  user-select: none;
}

.project-card-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.project-card-chevron {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.2s, border-color 0.2s;
  position: relative;
}

.project-card-chevron::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(45deg);
  margin-top: -3px;
  transition: border-color 0.2s;
}

.project-card.open .project-card-chevron {
  transform: rotate(180deg);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.project-card.open .project-card-chevron::after {
  border-color: #fff;
}

/* カードボディ（折りたたみ） */
.project-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease;
}

/* 開いたときの高さはJS（main.js）が中身の実寸で設定する。
   固定値の上限を書くとスマホで見切れるため、ここでは指定しない */

.project-body {
  padding: 0 24px 24px;
  border-top: 1px solid var(--color-border);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e8e4de, #d4cfc8);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #aaa;
}

.project-thumb-placeholder span {
  font-size: 2rem;
}

.project-thumb-placeholder p {
  font-size: 0.75rem;
  color: #aaa;
}

.project-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.project-purpose {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.project-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-navy-light);
  margin-bottom: 6px;
  margin-top: 12px;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
}

.feature-tag {
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 100px;
  background: var(--color-bg);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.project-tech {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.project-tech strong {
  color: var(--color-navy);
  font-weight: 600;
}

.project-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.project-action-link {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1.5px solid var(--color-border);
  color: var(--color-navy);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.project-action-link:hover {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: #fff;
}

.project-action-demo {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.project-action-demo:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}

/* ---------- Contact ---------- */
#contact {
  padding: var(--section-padding);
  background: var(--color-navy);
  color: #fff;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

#contact .section-label {
  color: var(--color-accent-light);
}

#contact .section-title {
  color: #fff;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  margin-bottom: 20px;
}

.contact-lead {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.9;
  margin-bottom: 48px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-bottom: 48px;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  max-width: 400px;
  transition: background 0.2s, border-color 0.2s;
  text-align: left;
}

.contact-link-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-link-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.contact-link-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-bottom: 2px;
}

.contact-link-value {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
}

.contact-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #141e2a;
  padding: 32px 24px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo .logo-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  #philosophy {
    padding: 80px 24px;
  }

  .psr-row {
    grid-template-columns: 64px 1fr;
    gap: 8px;
  }

  .learning-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px 20px;
  }

  /* Nav mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(250, 249, 246, 0.98);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    padding: 8px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 24px;
    border-bottom: none;
    font-size: 0.9rem;
    width: 100%;
  }

  /* Hero mobile */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-profile {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  /* About mobile */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Values mobile */
  .values-grid {
    grid-template-columns: 1fr;
  }

  /* Projects mobile */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Timeline mobile */
  .timeline {
    padding-left: 32px;
  }

  .timeline-dot {
    left: -28px;
  }

  /* Footer mobile */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .hero-nav {
    gap: 16px;
  }

  .contact-link-item {
    max-width: 100%;
  }
}

/* ---------- Demo Guide ---------- */
.demo-guide {
  background: var(--color-bg);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 16px;
  margin: 16px 0 4px;
}

.demo-guide-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.demo-guide-text {
  font-size: 0.84rem;
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
}

/* ---------- Scroll fade-in ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Flow ---------- */
#flow {
  padding: var(--section-padding);
  background: var(--color-navy);
  color: #fff;
}

.flow-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

#flow .section-label {
  color: var(--color-accent-light);
}

#flow .section-title {
  color: #fff;
}

.flow-lead {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.9;
  margin-bottom: 48px;
}

.flow-steps {
  text-align: left;
  display: grid;
  gap: 14px;
  margin-bottom: 40px;
}

.flow-step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 22px 28px;
}

.flow-step-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 6px;
}

.flow-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.flow-step-body {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.flow-price {
  background: rgba(200, 146, 58, 0.12);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 36px;
}

.flow-price-main {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-accent-light);
}

.flow-price-sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 6px;
  line-height: 1.8;
}

.flow-cta {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}

.flow-cta:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
}

/* ---------- Projects: グループ見出し ---------- */
.projects-group-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.projects-group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.projects-group-lab {
  margin-top: 56px;
}

.projects-group-note {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin: -8px 0 20px;
}

.projects-group-note a {
  color: var(--color-accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.projects-group-note a:hover {
  border-color: var(--color-accent);
}

/* ---------- Story: 折りたたみ ---------- */
.story-toggle {
  display: inline-block;
  margin-top: 24px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 24px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.story-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.timeline .story-early {
  display: none;
}

.timeline.story-open .story-early {
  display: block;
}

@media (max-width: 768px) {
  .flow-step {
    padding: 18px 20px;
  }
}
