/* =========================================
   MIHO DRESS ホームページのデザイン
   色やサイズはこのファイルで変更できます
   ========================================= */

/* --- 色の設定（ここを変えると全体の色が変わります） --- */
:root {
  --ivory: #faf8f1;        /* ページ全体の背景（生成り） */
  --ivory-deep: #f3efe3;   /* 少し濃い生成り（帯の背景） */
  --brown: #5c5243;        /* 文字の色（こげ茶） */
  --brown-soft: #8a7f6c;   /* 薄めの文字色 */
  --green: #8a9b7a;        /* アクセントの草色 */
  --gold: #b3a284;         /* 飾り線などの淡い金茶 */
}

/* --- 全体の基本設定 --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* メニューを押すとするっと移動 */
}

body {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  background: var(--ivory);
  color: var(--brown);
  line-height: 1.9;
  letter-spacing: 0.06em;
}

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

/* =========================================
   上部メニュー
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(250, 248, 241, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(179, 162, 132, 0.35);
}

.header-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  letter-spacing: 0.22em;
  color: var(--brown);
  text-decoration: none;
}

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

.header-nav a {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--brown-soft);
  text-decoration: none;
  transition: color 0.3s;
}

.header-nav a:hover {
  color: var(--green);
}

/* スマホ用メニューボタン（パソコンでは非表示） */
.menu-toggle {
  display: none;
  position: relative;
  width: 48px;   /* 指で押しやすい大きさ */
  height: 48px;
  border: none;
  background: none;
  cursor: pointer;
}

/* 三本線 */
.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 2px;
  background: var(--brown);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle span:nth-child(3) { top: 30px; }

/* メニューが開いたら三本線を✕に変える */
.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   トップ（ロゴとキャッチコピー）
   ========================================= */
.hero {
  text-align: center;
  padding: 40px 20px 70px;
}

.hero-logo {
  width: min(640px, 88%);
  margin: 0 auto;
}

.hero-copy {
  font-size: clamp(1.25rem, 3.2vw, 1.7rem);
  letter-spacing: 0.18em;
  margin-top: 6px;
}

/* キャッチコピーは読点の位置で自然に折り返す */
.hero-copy span {
  display: inline-block;
}

.hero-sub {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--brown-soft);
}

/* =========================================
   各セクション共通
   ========================================= */
.section {
  padding: 80px 24px;
  max-width: 1040px;
  margin: 0 auto;
}

/* 薄い色の帯を敷くセクション */
.section--tint {
  max-width: none;
  background: var(--ivory-deep);
}

.section--tint > * {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  letter-spacing: 0.16em;
  text-align: center;
}

/* タイトル下の飾り線 */
.section-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 1px;
  background: var(--gold);
  margin: 16px auto 0;
}

.section-lead {
  text-align: center;
  margin: 26px auto 0;
  font-size: 0.95rem;
  color: var(--brown-soft);
}

/* =========================================
   ドレス紹介
   ========================================= */
.dress-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 46px 40px;
  margin-top: 56px;
}

.dress-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(92, 82, 67, 0.14);
  transition: transform 0.4s ease;
}

.dress-card:hover img {
  transform: translateY(-4px);
}

.dress-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  margin-top: 22px;
}

.dress-card h3 span {
  font-family: "Shippori Mincho", serif;
  font-size: 0.85rem;
  color: var(--brown-soft);
  margin-left: 10px;
}

.dress-desc {
  font-size: 0.92rem;
  color: var(--brown-soft);
  margin-top: 8px;
}

.dress-price {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dotted var(--gold);
  font-size: 1rem;
}

.dress-price small {
  color: var(--brown-soft);
}

/* =========================================
   料金
   ========================================= */
.price-box {
  margin-top: 48px;
  background: var(--ivory);
  border: 1px solid rgba(179, 162, 132, 0.45);
  border-radius: 6px;
  padding: 36px 40px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 14px 8px;
  border-bottom: 1px dotted var(--gold);
  font-weight: 400;
  font-size: 0.98rem;
}

.price-table th {
  text-align: left;
  width: 55%;
}

.price-table td {
  text-align: right;
}

.price-notes {
  margin-top: 22px;
  padding-left: 1.3em;
  font-size: 0.88rem;
  color: var(--brown-soft);
}

/* =========================================
   プロフィール
   ========================================= */
.about {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: center;
  margin-top: 56px;
}

.about-photo {
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(92, 82, 67, 0.14);
}

.about-text p + p {
  margin-top: 1em;
}

.about-text {
  font-size: 0.98rem;
}

.making {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 44px;
}

.making img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

/* =========================================
   問い合わせ
   ========================================= */
#contact {
  text-align: center;
}

.insta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding: 16px 44px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 1rem;
  letter-spacing: 0.1em;
  transition: opacity 0.3s;
}

.insta-button:hover {
  opacity: 0.85;
}

.contact-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--brown-soft);
}

/* =========================================
   フッター
   ========================================= */
.site-footer {
  text-align: center;
  padding: 40px 20px 30px;
  border-top: 1px solid rgba(179, 162, 132, 0.35);
}

.footer-logo {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.22em;
  font-size: 1.1rem;
}

.footer-copy {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--brown-soft);
}

/* =========================================
   スマホ用の調整（画面幅 640px 以下）
   ========================================= */
@media (max-width: 640px) {
  /* --- ヘッダー：ロゴ左＋メニューボタン右 --- */
  .site-header {
    padding: 8px 8px 8px 20px;
  }

  .menu-toggle {
    display: block; /* スマホでだけボタンを表示 */
  }

  /* メニューは普段は隠しておき、ボタンで開く */
  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(250, 248, 241, 0.98);
    border-bottom: 1px solid rgba(179, 162, 132, 0.35);
    box-shadow: 0 12px 24px rgba(92, 82, 67, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  }

  .menu-open .header-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* メニューの項目：1行ずつ大きく、指で押しやすく */
  .header-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    font-size: 1.1rem;
    border-top: 1px dotted rgba(179, 162, 132, 0.4);
  }

  /* --- 文字サイズ：本文は16px以上を確保 --- */
  .hero-sub,
  .section-lead,
  .dress-desc,
  .price-table th,
  .price-table td,
  .price-notes,
  .about-text,
  .contact-note {
    font-size: 1rem; /* = 16px */
  }

  .dress-price {
    font-size: 1.05rem;
  }

  /* --- レイアウト --- */
  .section {
    padding: 60px 20px;
  }

  .dress-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .making {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* --- 写真：切り取らず、全体をそのまま見せる --- */
  .dress-card img,
  .making img {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
  }

  /* --- 料金表 --- */
  .price-box {
    padding: 24px 20px;
  }

  .price-table th {
    width: auto;
  }

  /* 表の項目名と金額を縦に並べて、窮屈にならないように */
  .price-table tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px dotted var(--gold);
  }

  .price-table th,
  .price-table td {
    display: block;
    border-bottom: none;
    padding: 0;
    text-align: left;
  }

  .price-table td {
    color: var(--brown-soft);
    margin-top: 2px;
  }
}
