:root {
  --text: #333;
  --bg: #fff;
  --accent: #eee;
}

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

/* フォント読み込み完了までボディを隠し、揃ってからフェードイン(FOUT対策) */
body {
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.loaded {
  opacity: 1;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}

a {
  color: var(--text);
  text-decoration: none;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  padding: 0 24px;
  z-index: 100;
}

.header-inner {
  max-width: 1200px; /* Studio と同じヘッダーのコンテンツ幅 */
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴ画像ができたら .brand 内に <img> を追加する想定 */
.site-header .brand {
  font-family: "Playfair Display", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header nav {
  display: flex;
  gap: 26px;
}

.site-header nav a {
  font-family: "Playfair Display", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.site-header nav a:hover {
  opacity: 0.6;
}

/* ---------- hero ---------- */
.hero {
  /* 細ウェイトの大きな文字だけ滑らかに。本文に効かせると読みにくくなる */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin-top: 60px;
  height: 60vh;
  background-image: url("/images/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
}

.hero h1 {
  /* 画面幅に追従(スマホでのはみ出し防止)。上限は元の52px */
  font-size: clamp(26px, 6vw, 52px);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-indent: 0.3em; /* letter-spacing の右余白ぶんを補正して中央に見せる */
  text-align: center;
  margin-bottom: 20px;
}

.hero .subtitle {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-align: center;
}

/* ---------- section heading (共通) ---------- */
.section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 48px;
}

/* ---------- intro (リード文) ---------- */
.intro {
  padding: 48px 24px 0;
}

.intro .lead {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 2.5;
  text-align: center;
}

/* ---------- gallery ---------- */
.gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 0; /* リード文→ギャラリー */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

/* ---------- services ---------- */
.services {
  padding: 96px 24px 80px;
}

.services .items {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
}

.services h3 {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.services p {
  font-size: 14px;
}

/* ---------- profile ---------- */
.profile {
  /* 薄紫のベタ塗りの上に、写真を透過で重ねる */
  position: relative;
  background: #e2d9f0;
  padding: 80px 24px;
  text-align: center;
}

.profile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/profile-bg.jpg") center 20% / cover;
  opacity: 0.25;
}

.profile > * {
  position: relative; /* 写真レイヤーより手前に */
}

.profile-icon {
  border-radius: 50%;
  display: block;
  margin: 0 auto 16px;
}

.profile-name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.profile-bio {
  font-size: 14px;
}

.profile-links {
  margin-top: 12px;
  font-size: 14px;
}

.zenn-link {
  display: inline-flex;
  align-items: center;
  color: #333; /* ロゴタイプの文字部分(currentColor)の色 */
}

.zenn-link:hover {
  opacity: 0.6;
}

/* ---------- price ---------- */
.price {
  background: #fff;
  padding: 80px 24px;
  scroll-margin-top: 60px; /* 固定ヘッダーの高さぶん #price アンカーをずらす */
}

.price-inner {
  max-width: 880px;
  margin: 0 auto;
}

.price h3 {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 48px 0 16px;
}

.price h3:first-of-type {
  margin-top: 0;
}

.price table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

.price th,
.price td {
  border: 1px solid #e3e3e0;
  padding: 12px 16px;
  text-align: left;
  font-weight: 400;
  vertical-align: top;
}

.price th {
  background: #efefed;
  font-weight: 500;
  white-space: nowrap;
}

.price td:first-child {
  white-space: nowrap;
}

.price td:last-child {
  white-space: nowrap;
}

.price .custom-note {
  font-size: 14px;
}

.price .notes {
  margin-top: 40px;
  font-size: 13px;
  color: #555;
}

.price .notes p {
  margin-bottom: 4px;
}

/* ---------- contact ---------- */
.contact {
  /* 白のオーバーレイで背景写真を白っぽく */
  background-image: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
    url("/images/contact-bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 80px 24px;
}

.contact-card {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.55); /* 透過白のカード */
  padding: 48px 32px;
}

.contact-card h2 {
  margin-bottom: 24px;
}

.contact-card .note {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 2.4;
  text-align: center;
  margin: 24px 0 48px;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.field .required {
  display: inline-block;
  background: #9c8fb3; /* ロゴの紫と同色 */
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 0 4px;
  margin-left: 8px;
  border-radius: 2px;
  vertical-align: 1px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #ddd;
  background: #fff;
  padding: 10px;
  font-size: 16px;
  font-family: inherit;
}

.field input:focus,
.field textarea:focus {
  outline: 1px solid #999;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-card button {
  display: block;
  margin: 0 auto;
  min-width: 240px;
  border: 0;
  background: #9c8fb3; /* ロゴの紫と同色 */
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  letter-spacing: 0.1em;
  padding: 15px 40px;
  cursor: pointer;
}

.contact-card button:hover {
  background: #8b7da6;
}

.contact-card button:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-status {
  font-size: 13px;
  text-align: center;
  margin-top: 16px;
  display: none;
}

.form-status.show {
  display: block;
}

/* ---------- scroll animation (sample_site と同じ動き) ---------- */
.fade_up {
  opacity: 0;
  transform: perspective(1000px) translate3d(0, 50px, -10px);
  transition: all 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.fade_up.animated {
  opacity: 1;
  transform: perspective(1000px) translate3d(0, 0, 0);
}

.fade_in {
  opacity: 0;
  transition: all 1.3s 0.1s;
}

.fade_in.animated {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .fade_up,
  .fade_in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- footer ---------- */
.site-footer {
  padding: 32px 24px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}

.footer-nav a {
  font-size: 12px;
}

.footer-nav a:hover {
  opacity: 0.6;
}

/* ---------- legal pages (terms / privacy) ---------- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal h1 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 48px;
}

.legal h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  font-size: 14px;
  margin-bottom: 12px;
}

.legal ol {
  padding-left: 1.5em;
}

.legal ul {
  list-style: none;
}

.legal ul li::before {
  content: "・";
}

.legal .enacted {
  margin-top: 48px;
  text-align: right;
  font-size: 13px;
}

/* ---------- tablet / mobile ---------- */
@media screen and (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- mobile ---------- */
@media screen and (max-width: 480px) {
  .hero {
    height: 40vh;
  }

  /* スマホでは流し込みの文章を両端揃えに */
  .services p,
  .price .custom-note,
  .price .notes p,
  .legal p,
  .legal li,
  .intro .lead,
  .profile-bio,
  .contact-card .note {
    text-align: justify;
  }

  /* 中央揃え用の改行はスマホでは解除して流し込みに */
  .intro .lead br,
  .profile-bio br,
  .contact-card .note br {
    display: none;
  }

  .hero .subtitle {
    font-size: 13px;
  }

  /* スマホのヘッダーはロゴとサイト名のみ(ナビはフッターへ) */
  .site-header nav {
    display: none;
  }

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

  .gallery {
    grid-template-columns: 1fr 1fr;
    padding: 48px 16px 0;
  }

  .services {
    padding-top: 48px;
  }

  .price th,
  .price td {
    padding: 10px;
  }

  .price td:nth-child(2) {
    white-space: normal;
  }

  .contact-card {
    padding: 32px 20px;
  }
}
