@charset "UTF-8";

/* --- 昼（通常）：目に優しい生成りペーパーの配色 --- */
:root {
  --bg: #f5f4f0;             /* 刺激のない落ち着いた生成り色 */
  --text: #22201e;           /* 柔らかく濃い墨色 */
  --muted: #787571;          /* 控えめなグレー */
  --border: rgba(0, 0, 0, 0.08);
  --btn-bg: rgba(0, 0, 0, 0.04);
  --btn-text: #55524e;
  --line-color: rgba(34, 32, 30, 0.18); /* 極薄のリンク下線（昼） */
  --line-hover: rgba(34, 32, 30, 0.45);
}

/* --- 夜間（OS設定 or 手動切り替え）：静寂な暗室の配色 --- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;           /* 完全な黒ではない深いチャコール */
    --text: #e2e0dc;         /* 眩しくない柔らかなオフホワイト */
    --muted: #8c8984;        /* 落ち着いたグレー */
    --border: rgba(255, 255, 255, 0.1);
    --btn-bg: rgba(255, 255, 255, 0.06);
    --btn-text: #aaa7a2;
    --line-color: rgba(226, 224, 220, 0.15); /* 極薄のリンク下線（夜） */
    --line-hover: rgba(226, 224, 220, 0.45);
  }
}

/* 手動切り替え用のオーバーライド設定 */
[data-theme="light"] {
  --bg: #f5f4f0;
  --text: #22201e;
  --muted: #787571;
  --border: rgba(0, 0, 0, 0.08);
  --btn-bg: rgba(0, 0, 0, 0.04);
  --btn-text: #55524e;
  --line-color: rgba(34, 32, 30, 0.18);
  --line-hover: rgba(34, 32, 30, 0.45);
}

[data-theme="dark"] {
  --bg: #161616;
  --text: #e2e0dc;
  --muted: #8c8984;
  --border: rgba(255, 255, 255, 0.1);
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-text: #aaa7a2;
  --line-color: rgba(226, 224, 220, 0.15);
  --line-hover: rgba(226, 224, 220, 0.45);
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Cormorant Garamond", "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  line-height: 2.3;
  letter-spacing: 0.12em;
  padding: 140px 24px;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s ease, color 0.5s ease;
}

main {
  max-width: 560px;
  margin: 0 auto;
}

/* 右上の控えめな切り替えボタン */
.theme-btn {
  position: fixed;
  top: 32px;
  right: 32px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.theme-btn:hover {
  opacity: 0.7;
}

/* ヘッダー */
header {
  margin-bottom: 100px;
}

h1 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  font-weight: 500;
}

/* セクション */
section {
  margin-bottom: 90px;
}

h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-bottom: 32px;
  text-transform: uppercase;
}

p {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 24px;
}

/* 情報テーブル風グリッド */
.info-group {
  margin-top: 24px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.info-label {
  color: var(--muted);
}

.info-value {
  text-align: right;
  color: var(--text);
}

/* ------------------------------------------
   リンク（限界まで薄い下線と右上矢印）
   ------------------------------------------ */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px; /* 文字の「はね・はらい」を避ける隙間 */
  text-decoration-color: var(--line-color);
  transition: text-decoration-color 0.4s ease, opacity 0.4s ease;
}

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

/* 外部リンク用クラス（自動で右上がりの矢印を追加） */
a.external-link {
  position: relative;
}

a.external-link::after {
  content: "↗";
  display: inline-block;
  text-decoration: none !important; /* 矢印自体に下線を引かない */
  font-family: system-ui, -apple-system, sans-serif; /* 矢印記号が崩れない標準フォント */
  font-size: 0.75em;    /* 文字より小さくして繊細に */
  vertical-align: middle;
  margin-left: 0.25em;   /* 文字との余白 */
  opacity: 0.55;        /* 控えめな薄さ */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ホバー時に矢印だけが微かに右上へ動く */
a.external-link:hover::after {
  opacity: 0.9;
  transform: translate(2px, -2px);
}

/* ------------------------------------------
   お問い合わせフォーム（下線だけの静かな見た目）
   ------------------------------------------ */
.contact-form {
  margin-top: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 8px 0;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--text); /* フォーカス時に線が静かに濃くなる */
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* 送信ボタン（控えめなボタン） */
.submit-btn {
  background: var(--btn-bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 28px;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.submit-btn:hover {
  background: var(--text);
  color: var(--bg);
}

/* ------------------------------------------
   ユーティリティ・完了ページ（thanks.html）用
   ------------------------------------------ */
.text-muted {
  color: var(--muted);
}

.thanks-note {
  margin-top: 40px;
  font-size: 0.85rem;
}

.back-link-section {
  margin-top: 80px;
}

/* フッター */
footer {
  margin-top: 120px;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.15em;
}

/* モバイル調整 */
@media (max-width: 600px) {
  body {
    padding: 90px 24px 60px;
  }
  .theme-btn {
    top: 20px;
    right: 20px;
  }
  header {
    margin-bottom: 70px;
  }
  section {
    margin-bottom: 70px;
  }
  .info-row {
    flex-direction: column;
    gap: 4px;
  }
  .info-value {
    text-align: left;
  }
}
