:root {
  --ink: #20150f;
  --text: #4b3528;
  --muted: #776255;
  --paper: #fbf4e8;
  --paper-deep: #efe0c7;
  --cream: #f1e4ca;
  --cream-strong: #fff3d7;
  --rust: #774326;
  --rust-dark: #54301e;
  --steel: #3d332c;
  --green: #774326;
  --blue: #a7683c;
  --line: #dfc7a8;
  --white: #ffffff;
  --shadow: 0 20px 48px rgba(84, 48, 30, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(251, 244, 232, 0.93), rgba(251, 244, 232, 0.99)),
    repeating-linear-gradient(90deg, rgba(119, 67, 38, 0.045) 0 1px, transparent 1px 88px);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.8;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 18px;
  border: 1px solid rgba(223, 199, 168, 0.9);
  border-radius: 0;
  background: rgba(251, 244, 232, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 32px rgba(84, 48, 30, 0.09);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity 220ms ease, transform 220ms ease;
}

.site-header.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.subpage .site-header {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.header-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px 7px 10px;
  color: #fff;
  background: #7a4a2a;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 150ms ease, transform 150ms ease;
  text-decoration: none;
}

.header-instagram::after {
  content: "Instagram";
}

.header-instagram:hover {
  background: #4a2810;
  transform: translateY(-1px);
}

.header-instagram svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  opacity: 0.75;
  transition: opacity 150ms ease;
  margin-bottom: 12px;
}

.footer-instagram:hover {
  opacity: 1;
}

.footer-instagram svg {
  width: 22px;
  height: 22px;
}

.brand-mark {
  display: block;
  width: 210px;
  overflow: hidden;
  padding: 0;
  background: var(--rust-dark);
  line-height: 0;
  box-shadow: inset 0 0 0 1px rgba(241, 228, 202, 0.18);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 3.7vw, 48px);
  color: var(--ink);
  font-weight: 800;
}

.site-nav a {
  padding: 8px 0;
}

.site-nav a[aria-current="page"] {
  color: var(--rust);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: clamp(8px, 1.6vw, 16px);
  width: 100%;
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  padding: 0 0 64px;
}

.hero-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: clamp(500px, 48vw, 680px);
  aspect-ratio: 16 / 9.2;
  border-radius: 0;
  background: var(--rust-dark);
  box-shadow: var(--shadow);
}

.hero-media::after {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(32, 21, 15, 0.4), transparent 16%, transparent 84%, rgba(32, 21, 15, 0.4)),
    linear-gradient(180deg, transparent 58%, rgba(32, 21, 15, 0.46));
  content: "";
}

.hero-scroll {
  position: relative;
  height: 100%;
  min-height: clamp(500px, 48vw, 680px);
}

.hero-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(500px, 48vw, 680px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: clamp(500px, 48vw, 680px);
  margin: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 1200ms ease-in-out;
}

.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  min-height: clamp(500px, 48vw, 680px);
  object-fit: cover;
}

.hero-slide[aria-hidden="true"] {
  display: none;
}

.hero-slide:first-child,
.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-track.is-ready .hero-slide:first-child:not(.is-active):not(.is-entering) {
  opacity: 0;
  z-index: 0;
}

.hero-slide.is-entering {
  opacity: 1;
  z-index: 2;
}

.subpage main {
  padding-top: 96px;
}

.subpage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 42px;
}

.subpage-hero-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--rust-dark);
  box-shadow: var(--shadow);
}

.subpage-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.subpage-hero-copy p:not(.eyebrow) {
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }

  .hero-slide:first-child {
    opacity: 1;
  }
}

.hero-copy {
  width: min(1120px, calc(100% - 24px));
  padding: 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-copy h1 {
  white-space: nowrap;
  color: #4a2810;
  font-family: "Klee One", cursive;
}

.hero-copy > p:not(.eyebrow) {
  margin-top: 26px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-actions {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 170px;
  padding: 12px 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 900;
}

.button.primary {
  color: var(--white);
  border-color: var(--rust);
  background: var(--rust);
  box-shadow: 0 14px 26px rgba(119, 67, 38, 0.24);
}

.button.secondary {
  color: var(--rust-dark);
  background: rgba(255, 255, 255, 0.66);
}

.button.line {
  color: var(--white);
  border-color: var(--rust-dark);
  background: var(--rust-dark);
}

.button.disabled {
  cursor: not-allowed;
  opacity: 0.82;
}

.section {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0;
}

.section-title {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 14px;
  margin-bottom: 30px;
}

.section-index {
  position: relative;
  color: var(--blue);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}

.section-index::after {
  display: inline-block;
  width: 38px;
  height: 1px;
  margin-left: 8px;
  background: currentColor;
  content: "";
  transform: rotate(-45deg) translateY(-6px);
  transform-origin: left center;
}

h2 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0;
}

h3 {
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 900;
  line-height: 1.35;
}

.warm-panel {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 248, 235, 0.78);
  box-shadow: 0 12px 28px rgba(84, 48, 30, 0.07);
}

.warm-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.warm-panel p + p {
  margin-top: 1em;
}

.works-section {
  padding-top: 34px;
}

.works-section .section-title {
  margin-bottom: 10px;
}

.work-category {
  padding: clamp(46px, 7vw, 82px) 0;
  border-top: 1px solid var(--line);
}

.work-category:first-of-type {
  border-top: 0;
}

.works-section .work-category:first-of-type {
  padding-top: 12px;
}

.category-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 32px;
}

.category-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--white);
  background: var(--rust);
  font-size: 1.35rem;
  font-weight: 900;
}

.category-lead,
.category-note {
  max-width: 860px;
  margin-top: 14px;
  font-weight: 700;
}

.plain-list {
  display: grid;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

.plain-list li {
  position: relative;
  padding-left: 1.35em;
}

.plain-list li::before {
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.58em;
  height: 0.58em;
  border: 1px solid var(--rust);
  border-radius: 50%;
  content: "";
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 248, 235, 0.82);
  box-shadow: 0 12px 24px rgba(84, 48, 30, 0.07);
}

.photo-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 20px;
  color: var(--rust-dark);
  background:
    linear-gradient(135deg, rgba(84, 48, 30, 0.13), rgba(241, 228, 202, 0.72)),
    repeating-linear-gradient(135deg, transparent 0 13px, rgba(255, 255, 255, 0.44) 13px 14px);
  font-weight: 900;
}

.case-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case-card figcaption {
  padding: 18px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
}

.latest-section {
  padding-top: 42px;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.latest-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 248, 235, 0.82);
  box-shadow: 0 12px 24px rgba(84, 48, 30, 0.07);
}

.latest-card-featured {
  grid-column: span 3;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  grid-template-rows: auto;
}

.latest-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.latest-card:not(.latest-card-featured) img {
  aspect-ratio: 4 / 3;
}

.latest-card-body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(20px, 3vw, 32px);
}

.latest-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.latest-card p {
  color: var(--text);
  font-weight: 700;
}

.latest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--rust-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.latest-meta span,
.latest-meta time {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
}

.latest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.latest-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 10px;
  border: 1px solid rgba(119, 67, 38, 0.28);
  border-radius: 999px;
  color: var(--rust-dark);
  background: rgba(241, 228, 202, 0.7);
  font-size: 0.82rem;
  font-weight: 900;
}

.latest-contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto 88px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 248, 235, 0.82);
  box-shadow: 0 12px 28px rgba(84, 48, 30, 0.07);
}

.latest-contact-band h2 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.latest-contact-band p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--text);
  font-weight: 700;
}

.latest-empty {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 248, 235, 0.78);
  color: var(--muted);
  font-weight: 800;
}

.info-table {
  margin: 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
}

.info-table div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.info-table-wide {
  grid-column: 1 / -1;
  max-width: 720px;
}

.info-table dt {
  color: var(--rust-dark);
  font-weight: 900;
}

.info-table dd {
  margin: 0;
  font-weight: 700;
}

.info-table a {
  color: inherit;
  text-decoration: none;
}

.missing-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 2px 12px;
  border: 1px dashed var(--rust);
  border-radius: 999px;
  color: var(--rust-dark);
  background: rgba(241, 228, 202, 0.56);
  font-weight: 900;
}

.contact-section {
  width: 100%;
  max-width: none;
  padding: 92px max(20px, calc((100vw - 1080px) / 2));
  background:
    linear-gradient(180deg, rgba(251, 244, 232, 0.94), rgba(239, 224, 199, 0.98)),
    var(--paper-deep);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: start;
  width: min(1080px, 100%);
  margin: 0 auto;
  color: var(--ink);
}

.contact-copy {
  position: sticky;
  top: 110px;
}

.contact-copy h2 {
  margin-top: 10px;
}

.contact-lead {
  margin: 22px 0 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 30px;
  padding: 10px 18px;
  border: 1px solid var(--rust);
  border-radius: 999px;
  color: var(--white);
  background: var(--rust);
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(119, 67, 38, 0.22);
}

.contact-form {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 248, 235, 0.82);
  box-shadow: 0 16px 34px rgba(84, 48, 30, 0.08);
  text-align: left;
}

.form-field {
  display: grid;
  gap: 10px;
}

.form-field label {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
}

.form-field label span {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--white);
  background: var(--rust-dark);
  font-size: 0.72rem;
  line-height: 1;
  vertical-align: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(119, 67, 38, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--rust);
  outline: 3px solid rgba(119, 67, 38, 0.16);
}

.form-field input,
.form-field select {
  min-height: 52px;
  padding: 10px 14px;
}

.form-field textarea {
  min-height: 230px;
  padding: 14px;
  resize: vertical;
}

.form-privacy {
  display: grid;
  gap: 14px;
  color: var(--text);
  font-weight: 800;
}

.form-privacy a {
  width: fit-content;
  color: var(--rust-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-privacy label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.form-privacy input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.form-submit {
  justify-self: center;
  min-width: 190px;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--rust);
  box-shadow: 0 14px 26px rgba(119, 67, 38, 0.24);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
}

.form-submit:hover {
  background: var(--rust-dark);
}

.admin-page {
  background:
    linear-gradient(180deg, rgba(251, 244, 232, 0.96), rgba(239, 224, 199, 0.98)),
    var(--paper-deep);
}

.admin-header {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.admin-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 124px 0 78px;
}

.admin-hero {
  max-width: 860px;
  padding-bottom: 28px;
}

.admin-hero p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  font-weight: 700;
}

.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 248, 235, 0.82);
}

.admin-status {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: start;
}

.admin-form,
.admin-side > * {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 248, 235, 0.84);
  box-shadow: 0 12px 28px rgba(84, 48, 30, 0.07);
}

.admin-form {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 3vw, 34px);
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-dropzone {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 2px dashed rgba(119, 67, 38, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.admin-dropzone:focus {
  outline: 3px solid rgba(119, 67, 38, 0.16);
}

.admin-dropzone.is-dragging {
  border-color: var(--rust);
  background: rgba(241, 228, 202, 0.72);
}

.admin-dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-dropzone-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 220px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(84, 48, 30, 0.1), rgba(241, 228, 202, 0.7)),
    repeating-linear-gradient(135deg, transparent 0 13px, rgba(255, 255, 255, 0.46) 13px 14px);
  color: var(--rust-dark);
  font-weight: 900;
}

.admin-dropzone-preview img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.admin-dropzone-name {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-checkbox {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-weight: 900;
}

.admin-checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-actions .form-submit {
  justify-self: start;
}

.admin-side {
  display: grid;
  gap: 24px;
}

.admin-preview {
  padding: 18px;
}

.admin-preview .latest-card {
  box-shadow: none;
}

.admin-draft-label {
  color: var(--rust);
}

.admin-list-wrap {
  padding: clamp(20px, 3vw, 28px);
}

.admin-list-wrap h2 {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-list-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(119, 67, 38, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.48);
}

.admin-list-item img {
  width: 92px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
}

.admin-list-item p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-list-item h3 {
  font-size: 1rem;
}

.admin-list-item span {
  color: var(--rust-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-item-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--rust-dark);
  background: var(--white);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 28px;
  padding: 56px 20px 32px;
  color: var(--white);
  background: var(--rust-dark);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 4vw, 44px);
  font-weight: 900;
}

.footer-brand {
  margin: 4px 0;
}

.copyright {
  font-size: 0.82rem;
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 14px;
  }

  .brand-mark {
    width: 184px;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    justify-content: stretch;
    gap: 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    padding: 11px 2px;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-top: 0;
    padding-top: 0;
  }

  .hero-media,
  .hero-scroll,
  .hero-track,
  .hero-slide,
  .hero-slide img,
  .hero-slide video {
    min-height: 430px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .admin-layout,
  .admin-form-row,
  .subpage-hero,
  .latest-card-featured,
  .latest-contact-band,
  .case-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .subpage main {
    padding-top: 80px;
  }

  .subpage-hero {
    padding-top: 34px;
  }

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

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

  .latest-contact-band .button {
    width: fit-content;
  }

  .admin-list-item {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .admin-item-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 560px) {
  .section {
    width: min(100% - 28px, 1080px);
  }

  .site-header,
  .hero {
    width: 100%;
  }

  .hero-copy {
    width: min(100% - 28px, 880px);
  }

  .subpage-hero,
  .latest-contact-band,
  .admin-main {
    width: min(100% - 28px, 1080px);
  }

  .hero-copy h1 {
    white-space: normal;
  }

  .site-header {
    margin-top: 0;
    padding: 10px;
  }

  .brand-mark {
    width: 162px;
  }

  .hero-media,
  .hero-scroll,
  .hero-track,
  .hero-slide,
  .hero-slide img,
  .hero-slide video {
    min-height: 360px;
  }

  .hero-actions,
  .button,
  .contact-actions {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .contact-section {
    padding: 64px 14px;
  }

  .contact-form {
    gap: 24px;
    padding: 22px 18px;
  }

  .admin-main {
    padding-top: 104px;
  }

  .admin-tools,
  .admin-actions,
  .admin-tools .button {
    width: 100%;
  }

  .admin-list-item {
    grid-template-columns: 1fr;
  }

  .admin-list-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .latest-contact-band .button {
    width: 100%;
  }

  .form-field textarea {
    min-height: 190px;
  }

  .info-table {
    grid-template-columns: 1fr;
  }

  .section-title,
  .category-head,
  .info-table div {
    grid-template-columns: 1fr;
  }

  .category-head {
    gap: 14px;
  }

  .info-table div {
    gap: 4px;
  }
}

/* ── お問い合わせフォーム 送信結果 ───────────────────────────────────────── */

.form-result {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 8px;
}

.form-result:empty {
  display: none;
}

.form-result--success {
  background: #ecf5ec;
  color: #2a6b2a;
  border: 1px solid #b6d8b6;
}

.form-result--error {
  background: #fdf0f0;
  color: #a02020;
  border: 1px solid #f0c0c0;
}

/* ── 管理画面 タブ ─────────────────────────────────────────────────────────── */

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.admin-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.admin-tab:hover {
  background: #faf5f2;
  border-color: var(--rust);
}

.admin-tab.is-active {
  background: var(--rust);
  color: #fff;
  border-color: var(--rust);
}

.admin-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: #e53935;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.admin-tab.is-active .admin-tab-badge {
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* ── お問い合わせ一覧 ─────────────────────────────────────────────────────── */

.inquiry-list {
  display: grid;
  gap: 10px;
}

.inquiry-item {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  transition: border-color 0.15s;
}

.inquiry-item.is-selected {
  border-color: var(--rust);
  background: #fdf8f5;
}

.inquiry-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inquiry-item-head time {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: auto;
}

.inquiry-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.inquiry-status--unread {
  background: #fff3e0;
  color: #d84315;
}

.inquiry-status--read {
  background: #e3f2fd;
  color: #1565c0;
}

.inquiry-status--replied {
  background: #e8f5e9;
  color: #2e7d32;
}

.inquiry-item-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.inquiry-item-preview {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ── お問い合わせ 詳細パネル ──────────────────────────────────────────────── */

.inquiry-detail-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.inquiry-detail-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inquiry-detail-header time {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: auto;
}

.inquiry-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.inquiry-dl {
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
}

.inquiry-dl div {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 8px;
}

.inquiry-dl dt {
  color: var(--muted);
  font-weight: 500;
}

.inquiry-dl dd {
  margin: 0;
  word-break: break-all;
}

.inquiry-dl a {
  color: var(--rust);
}

.inquiry-message-wrap {
  display: grid;
  gap: 6px;
}

.inquiry-message-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.inquiry-message {
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 12px;
  background: var(--bg, #faf8f5);
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* ── 返信履歴 ─────────────────────────────────────────────────────────────── */

.reply-history {
  display: grid;
  gap: 10px;
}

.reply-history h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}

.reply-item {
  padding: 10px 12px;
  background: #f0f4f8;
  border-radius: 6px;
  display: grid;
  gap: 4px;
}

.reply-item-date {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

.reply-item-message {
  font-size: 0.875rem;
  white-space: pre-wrap;
  margin: 0;
}

/* ── 返信フォーム ─────────────────────────────────────────────────────────── */

.reply-form {
  display: grid;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
