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

:root {
  --bg-base: #f4efe5;
  --bg-soft: #e7f1ee;
  --surface: #efe8d9;
  --text: #222026;
  --text-soft: #3a3733;
  --accent-warm: #e79a56;
  --accent-mint: #d6ebe6;
  --line: rgba(34, 32, 38, 0.14);
  --overlay: rgba(58, 54, 48, 0.26);

  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-72: 72px;

  --radius-12: 12px;
  --radius-16: 16px;
  --radius-20: 20px;

  --shadow-soft: 0 10px 30px rgba(32, 28, 21, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-base);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  line-height: 1.8;
}

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

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

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

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.3;
  letter-spacing: 0.04em;
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.35;
  letter-spacing: 0.06em;
}

h3 {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 239, 229, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 6px var(--space-12);
  font-size: 0.85rem;
  color: var(--text-soft);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  border-color: var(--line);
  background: rgba(239, 232, 217, 0.7);
}

.home-main {
  padding-bottom: var(--space-72);
}

.section {
  padding-block: clamp(var(--space-48), 8vw, var(--space-72));
}

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  background: center / cover no-repeat url("/assets/ref/hero-bg.png");
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(900px, 92vw);
  margin-inline: auto;
  margin-bottom: clamp(var(--space-24), 6vw, var(--space-72));
  text-align: center;
  color: #f8f0de;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

.hero-logo {
  width: min(560px, 70vw);
  aspect-ratio: 800 / 533;
  object-fit: contain;
  display: block;
  margin: 0 auto var(--space-24);
}

.hero-copy {
  max-width: 860px;
  margin: 0 auto;
}

.hero-copy h1 {
  margin-bottom: var(--space-8);
}

.about {
  background: center / cover no-repeat url("/assets/ref/about-bg.png");
}

.about-inner {
  position: relative;
}

.about h2 {
  text-align: center;
  margin-bottom: var(--space-32);
}

.about-card {
  width: min(860px, 92vw);
  margin: 0 auto;
  background: rgba(239, 232, 217, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-16);
  box-shadow: var(--shadow-soft);
  padding: clamp(var(--space-24), 4vw, var(--space-48));
  font-size: clamp(1.02rem, 1.9vw, 1.45rem);
  line-height: 1.95;
  color: var(--text-soft);
}

.about-card .spacer {
  height: var(--space-24);
}

.about-ornament {
  position: absolute;
  left: 2%;
  bottom: calc(var(--space-16) * -1);
  width: min(220px, 24vw);
  aspect-ratio: 799 / 721;
  object-fit: cover;
  pointer-events: none;
}

.services {
  background: linear-gradient(180deg, var(--surface) 0%, #f2ebdd 100%);
}

.services h2 {
  margin-bottom: var(--space-32);
}

.service-list {
  display: grid;
  gap: var(--space-24);
}

.service-card {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(var(--space-16), 3vw, var(--space-32));
  align-items: center;
  background: rgba(214, 235, 230, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius-16);
  padding: clamp(var(--space-24), 3vw, var(--space-32));
  min-height: 260px;
}

.service-card figure {
  margin: 0;
}

.service-image {
  width: 100%;
  display: block;
  border-radius: var(--radius-12);
  border: 1px solid rgba(34, 32, 38, 0.1);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.service-image.phone {
  aspect-ratio: 449 / 799;
}

.service-image.poster {
  aspect-ratio: 533 / 800;
}

.service-body {
  color: var(--text-soft);
}

.service-body h3 {
  margin-bottom: var(--space-12);
  color: var(--text);
}

.service-body p {
  line-height: 1.9;
}

.contact {
  position: relative;
  background: center / cover no-repeat url("/assets/ref/contact-bg.png");
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244, 239, 229, 0.5);
}

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact-card {
  background: rgba(239, 232, 217, 0.93);
  border: 1px solid var(--line);
  border-radius: var(--radius-16);
  box-shadow: var(--shadow-soft);
  padding: clamp(var(--space-24), 4.2vw, var(--space-48));
  max-width: 780px;
}

.contact-card h2 {
  margin-bottom: var(--space-16);
}

.contact-card p {
  line-height: 1.85;
  color: var(--text-soft);
}

.legal-main {
  padding-block: clamp(var(--space-48), 8vw, var(--space-72));
}

.page-hero {
  margin-bottom: var(--space-24);
}

.page-hero p {
  color: var(--text-soft);
  line-height: 1.85;
}

.content-card {
  background: rgba(239, 232, 217, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-16);
  box-shadow: var(--shadow-soft);
  padding: clamp(var(--space-24), 4vw, var(--space-48));
}

.content-card h2 {
  margin-top: var(--space-24);
  margin-bottom: var(--space-8);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  letter-spacing: 0.04em;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p,
.content-card li {
  color: var(--text-soft);
  line-height: 1.9;
}

.content-card ul {
  padding-left: 1.3em;
  margin: var(--space-8) 0 0;
}

.link-row {
  margin-top: var(--space-24);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.link-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px var(--space-16);
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-24);
}

.footer-inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-16);
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(8px);
  animation: fade-up 220ms ease-out forwards;
}

.delay-1 {
  animation-delay: 80ms;
}

.delay-2 {
  animation-delay: 140ms;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .service-card {
    grid-template-columns: 1fr;
  }

  .service-card figure {
    width: min(300px, 74vw);
    margin: 0 auto;
  }

  .service-body {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: auto;
    padding: var(--space-12) 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: 56vh;
  }

  .hero-logo {
    width: min(320px, 82vw);
    margin-bottom: var(--space-16);
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
    line-height: 1.35;
  }

  .hero-copy p {
    font-size: 1.12rem;
    line-height: 1.8;
  }

  .about h2,
  .services h2,
  .contact-card h2 {
    margin-bottom: var(--space-24);
  }

  .about-ornament {
    width: 130px;
    left: -12px;
    bottom: -24px;
  }

  .service-card {
    padding: var(--space-24);
  }

  .service-body p {
    font-size: 1rem;
    line-height: 1.85;
  }

  .content-card {
    padding: var(--space-24);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
