:root {
  --bg: #faf7f2;
  --bg-elev: #f3eee5;
  --bg-card: #ffffff;
  --line: #e8e1d4;
  --text: #2d2520;
  --text-dim: #7d736a;
  --accent: #c2851d;
  --accent-soft: #d49b3a;
  --shadow: 0 1px 2px rgba(45, 37, 32, 0.04), 0 4px 12px rgba(45, 37, 32, 0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 6px;
  --max: 1200px;
  --font-jp: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

::selection { background: rgba(194,133,29,0.25); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; }

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

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.site-logo span { color: var(--accent); }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform .25s;
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 24px;
    gap: 16px;
    transform: translateY(-110%);
    transition: transform .25s ease, visibility .25s;
    box-shadow: var(--shadow);
    visibility: hidden;
    z-index: 49;
  }
  .site-nav.open { transform: translateY(0); visibility: visible; }
  .nav-toggle { display: block; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
}
.hero::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  bottom: 6%;
  left: 4%;
  background: var(--accent);
  -webkit-mask: url("../images/paw.svg") center/contain no-repeat;
  mask: url("../images/paw.svg") center/contain no-repeat;
  opacity: 0.06;
  transform: rotate(-18deg);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-text .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-text .eyebrow::before {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  background: var(--accent);
  -webkit-mask: url("../images/paw.svg") center/contain no-repeat;
  mask: url("../images/paw.svg") center/contain no-repeat;
  opacity: 0.85;
  transform: rotate(-10deg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 70% 30%, rgba(194,133,29,0.10), transparent 60%),
    var(--bg);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-text .eyebrow {
  font-family: var(--font-en);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-text h1 {
  font-size: clamp(36px, 5.6vw, 60px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero-text h1 small {
  display: block;
  font-family: var(--font-en);
  font-size: 0.34em;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-top: 14px;
}
.hero-text p {
  color: var(--text-dim);
  max-width: 480px;
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 32px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-stats div { font-size: 13px; }
.hero-stats dt {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hero-stats dd { font-weight: 500; color: var(--text); }
.hero-image {
  aspect-ratio: 4 / 5;
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.hero-image:hover img { transform: scale(1.03); }
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(45,37,32,0.18));
  pointer-events: none;
}
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  color: var(--text-dim);
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { aspect-ratio: 1 / 1; max-width: 480px; margin: 0 auto; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all .2s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.btn-primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: #ffffff; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}
.section-head h2 {
  font-family: var(--font-en);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-head h2::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: var(--accent);
  -webkit-mask: url("../images/paw.svg") center/contain no-repeat;
  mask: url("../images/paw.svg") center/contain no-repeat;
  transform: rotate(-12deg);
  opacity: 0.9;
  flex-shrink: 0;
}
.paw-accent {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--accent);
  -webkit-mask: url("../images/paw.svg") center/contain no-repeat;
  mask: url("../images/paw.svg") center/contain no-repeat;
  vertical-align: middle;
  opacity: 0.85;
}
.section-head .more {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.section-head .more:hover { color: var(--accent); }

/* ---------- profile preview ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.profile-grid img,
.profile-grid .placeholder {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--bg-card);
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.profile-list {
  list-style: none;
  display: grid;
  gap: 16px;
}
.profile-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.profile-list dt {
  color: var(--text-dim);
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-self: center;
}
@media (max-width: 720px) {
  .profile-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- prose / story blocks ---------- */
.prose {
  max-width: 680px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
}
.prose p { margin-bottom: 20px; }
.prose p + p { margin-top: 0; }

.section-lead {
  font-size: 18px;
  line-height: 1.85;
  color: var(--text-dim);
  max-width: 680px;
  margin-bottom: 48px;
}

/* ---------- timeline (growth record) ---------- */
.timeline {
  display: grid;
  gap: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-item .t-img {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}
.timeline-item .t-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.timeline-item time {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.timeline-item h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}
.timeline-item p {
  color: var(--text-dim);
  line-height: 1.85;
  font-size: 15px;
}
@media (max-width: 720px) {
  .timeline-item { grid-template-columns: 1fr; gap: 16px; }
  .timeline-item .t-img { max-width: 280px; }
}

/* ---------- info table ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.info-table th, .info-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.info-table th {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
  width: 180px;
}
.info-table td { color: var(--text); }

.todo {
  display: inline-block;
  background: rgba(194,133,29,0.12);
  color: var(--accent);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: var(--font-en);
  letter-spacing: 0.05em;
}

/* ---------- gallery ---------- */
/* ---------- carousel ---------- */
.carousel {
  position: relative;
  margin: 0 -8px;
}
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 8px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.carousel-track.gallery-track > .tile {
  width: clamp(220px, 28vw, 300px);
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(45,37,32,0.04);
  transition: box-shadow .25s, transform .25s;
}
.carousel-track.gallery-track > .tile:hover {
  box-shadow: 0 6px 18px rgba(45,37,32,0.14);
  transform: translateY(-2px);
}
.carousel-track.gallery-track > .tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.carousel-track.gallery-track > .tile:hover img { transform: scale(1.05); }
.carousel-track.blog-track > .post-card {
  width: clamp(280px, 32vw, 360px);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  padding: 0;
  font-family: var(--font-en);
}
.carousel-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.carousel-btn.prev { left: -8px; }
.carousel-btn.next { right: -8px; }
.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.carousel-btn:disabled:hover {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--line);
}
@media (max-width: 640px) {
  .carousel-btn { width: 36px; height: 36px; font-size: 20px; }
  .carousel-btn.prev { left: 0; }
  .carousel-btn.next { right: 0; }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
}
.gallery-grid .tile {
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(45,37,32,0.04);
  transition: box-shadow .25s, transform .25s;
}
.gallery-grid .tile:hover {
  box-shadow: 0 6px 18px rgba(45,37,32,0.14);
  transform: translateY(-2px);
}
.gallery-grid .tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-grid .tile:hover img { transform: scale(1.05); }
.gallery-grid .tile.tall { grid-row: span 2; aspect-ratio: 1 / 2; }
.gallery-grid .tile.wide { grid-column: span 2; aspect-ratio: 2 / 1; }

/* ---------- blog list ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  box-shadow: var(--shadow);
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 4px 8px rgba(45,37,32,0.06), 0 12px 24px rgba(45,37,32,0.10);
}
.post-card .thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-elev);
  overflow: hidden;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 24px; }
.post-card time {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.post-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0 12px;
  line-height: 1.4;
}
.post-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 24px 0 0;
}
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 10px; opacity: 0.5; }

/* ---------- post category & tags ---------- */
.cat-pill {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(194,133,29,0.12);
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  font-weight: 500;
}
.cat-pill + .cat-pill { margin-left: 6px; }

.post-tags {
  margin: 56px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  list-style: none;
}
.post-tags li {
  list-style: none;
  display: inline-flex;
  align-items: center;
}
.post-tags li::marker { content: ""; }
.post-tags .label {
  font-family: var(--font-en);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-right: 8px;
  padding: 5px 0;
}
.post-tags .tag {
  font-size: 13px;
  line-height: 1;
  color: var(--text-dim);
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all .2s;
}
.post-tags .tag:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- related posts ---------- */
.related {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.related h2 {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
  font-weight: 500;
}

/* ---------- post (article) ---------- */
.post-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.post-article .meta {
  font-family: var(--font-en);
  letter-spacing: 0.1em;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 16px;
}
.post-article h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 32px;
}
.post-article .lead-image {
  aspect-ratio: 16 / 10;
  margin: 0 0 40px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.post-article p { margin-bottom: 24px; font-size: 16px; }
.post-article h2 {
  font-size: 22px;
  margin: 48px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.post-article img.inline {
  margin: 32px 0;
  border-radius: var(--radius);
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 48px;
  margin-top: 96px;
  color: var(--text-dim);
  font-size: 13px;
  background: var(--bg-elev);
}
.site-footer .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer .copy { font-family: var(--font-en); letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 8px; }
.site-footer .copy::before {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  background: var(--accent);
  -webkit-mask: url("../images/paw.svg") center/contain no-repeat;
  mask: url("../images/paw.svg") center/contain no-repeat;
  opacity: 0.7;
}
.site-footer a { transition: color .2s; }
@media (max-width: 560px) {
  .site-footer .inner { flex-direction: column; text-align: center; }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(45, 37, 32, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox button {
  position: absolute;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox .close { top: 24px; right: 24px; }
.lightbox .prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 24px; top: 50%; transform: translateY(-50%); }
