/* ===== CSS Variables ===== */
:root {
  --color-bg: #fafaf8;
  --color-bg-tinted: #f3f1ed;
  --color-text: #1a1a1a;
  --color-text-muted: #666;
  --color-accent: #1a2f5e;
  --color-accent-light: #2e4a8a;
  --color-border: #ddd;
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  --max-width: 1000px;
  --narrow-width: 680px;
  --spacing-section: 80px;
}

/* ===== 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);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.5;
}

p {
  margin-bottom: 1.2em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent-light);
}

ul {
  list-style: none;
}

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

.container--narrow {
  max-width: var(--narrow-width);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo a {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.site-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}

.site-nav a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

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

.site-nav .nav-contact {
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 6px 16px;
  border-radius: 2px;
  transition: background-color 0.2s, color 0.2s;
}

.site-nav .nav-contact:hover {
  background-color: var(--color-accent);
  color: #fff;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--color-border);
}

.hero-copy {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--color-text);
}

.hero-sub {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* ===== Sections ===== */
.section {
  padding: var(--spacing-section) 0;
}

.section--tinted {
  background-color: var(--color-bg-tinted);
}

.section-heading {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 32px;
}

.section-subheading {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--color-text);
}

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  margin-top: 8px;
}

.service-card {
  background-color: var(--color-bg);
  padding: 32px 28px;
}

.service-card__title {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--color-text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.service-card__list li {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  padding: 4px 0;
}

.service-card__list li::before {
  content: "—";
  margin-right: 8px;
  color: var(--color-accent);
  font-size: 0.75rem;
}

/* ===== Profile ===== */
.profile-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  color: var(--color-text);
}

/* ===== Contact CTA ===== */
.section--contact {
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.contact-cta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 40px;
  background-color: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  border-radius: 2px;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: var(--color-accent-light);
  color: #fff;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
  background-color: var(--color-bg);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer nav ul {
  display: flex;
  gap: 24px;
}

.site-footer nav a {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

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

.copyright {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  :root {
    --spacing-section: 56px;
  }

  .site-nav ul {
    gap: 16px;
  }

  .site-nav a {
    font-size: 0.78rem;
  }

  .hero {
    padding: 56px 0 48px;
  }

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

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Logo ===== */
.logo-img {
  margin-top: 8px;
  height: 48px;
  width: auto;
  display: block;
  filter: invert(0);
}

/* ===== Hero with image ===== */
.hero {
  padding: 0;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  max-width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 48px 64px 48px;
  max-width: 540px;
  margin: 0 auto;
}

.hero-image {
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===== Profile with photo ===== */
.profile-wrap {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.profile-photo {
  flex-shrink: 0;
}

.profile-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.profile-body {
  flex: 1;
}

/* ===== Hero responsive ===== */
@media (max-width: 640px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-image {
    height: 200px;
    order: -1;
  }

  .hero-text {
    padding: 40px 24px;
  }

  .profile-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ===== Hamburger Menu ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px 24px;
    z-index: 100;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul li {
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav a {
    display: block;
    padding: 14px 0;
    font-size: 0.9rem;
  }

  .site-nav .nav-contact {
    border: none;
    padding: 14px 0;
    color: var(--color-accent);
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 150;
  }
}

/* ===== Google Form iframe ===== */
.form-wrap iframe {
  max-width: 100%;
  overflow: hidden;
}
