/* ============================================
   TONE — style.css
   GQ系エディトリアルデザイン: 白ベース/余白/タイポで見せる
   ============================================ */

:root {
  --black: #111111;
  --white: #ffffff;
  --gray: #767676;
  --light-gray: #f2f2f2;
  --accent: #c8102e; /* カテゴリタグの赤 */
  --serif: "Georgia", "Times New Roman", "Yu Mincho", "游明朝", serif;
  --sans: "Helvetica Neue", Arial, "Yu Gothic", "游ゴシック", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

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

body {
  font-family: var(--sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- ヘッダー ---------- */
.site-header {
  border-bottom: 1px solid var(--black);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.35em;
  margin-right: -0.35em; /* 字間ぶんの右寄り補正 */
}

.global-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

.global-nav a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.global-nav a:hover,
.global-nav a.active {
  border-bottom-color: var(--black);
}

/* ---------- ヘッダー検索 ---------- */
.header-search {
  display: flex;
  align-items: center;
  border: 1px solid #d0d0d0;
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  background: var(--white);
}

.header-search input {
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: 13px;
  width: 120px;
  background: transparent;
  color: var(--black);
}

.header-search button {
  border: none;
  background: var(--black);
  color: var(--white);
  border-radius: 999px;
  width: 26px;
  height: 26px;
  font-size: 13px;
  cursor: pointer;
  flex: none;
}

/* ---------- 記事下: シェア・関連 ---------- */
.share-buttons {
  max-width: 680px;
  margin: 0 auto 24px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-buttons .share-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray);
}

.share-buttons a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid #d0d0d0;
  border-radius: 999px;
  padding: 8px 18px;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.share-buttons a:hover { color: var(--black); border-color: var(--black); }

.related-section {
  border-top: 3px solid var(--black);
  margin: 40px auto 0;
  max-width: 1200px;
  padding: 40px 24px 0;
}

.related-section h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.related-section .article-grid { margin-bottom: 60px; }

/* ---------- アーカイブ / 検索ページ ---------- */
.archive-tools {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.archive-search-box {
  display: flex;
  align-items: center;
  border: 1px solid #cccccc;
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  flex: 1;
  max-width: 420px;
}

.archive-search-box input {
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: 15px;
  width: 100%;
  background: transparent;
}

#archive-count { font-size: 12px; color: var(--gray); letter-spacing: 0.08em; white-space: nowrap; }

.archive-empty { color: var(--gray); padding: 20px 0; }

/* ---------- ヒーロー ---------- */
.hero {
  margin: 40px 0 64px;
}

.hero a { display: block; }

.hero-visual {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--light-gray);
}

.hero-visual .ph {
  width: 100%;
  height: 100%;
}

.hero-body {
  max-width: 780px;
  margin: 28px auto 0;
  text-align: center;
}

.hero-title {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.35;
  font-weight: 700;
  margin: 12px 0 10px;
}

.hero-excerpt {
  color: var(--gray);
  font-size: 15px;
}

/* ---------- ヒーローカルーセル ---------- */
.hero-visual { position: relative; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slow-zoom 8s ease-out forwards; /* ゆっくりズームで「生きてる感」 */
}

@keyframes slow-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* ---------- スクロール出現アニメーション ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- カテゴリタグ・日付 ---------- */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.date {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.05em;
}

/* ---------- セクション見出し ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 3px solid var(--black);
  padding-top: 14px;
  margin-bottom: 32px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-more {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.1em;
}
.section-more:hover { color: var(--black); }

/* ---------- 記事グリッド ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  margin-bottom: 80px;
}

.card .card-visual {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--light-gray);
  margin-bottom: 14px;
}

.card .ph {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.card:hover .ph { transform: scale(1.04); }

.card-title {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 700;
  margin: 6px 0 8px;
}

.card-excerpt {
  font-size: 13px;
  color: var(--gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- プレースホルダー画像（あとで<img>に差し替え） ---------- */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.3em;
}

.ph-1 { background: linear-gradient(135deg, #2b2b2b, #5a5a5a); }
.ph-2 { background: linear-gradient(135deg, #3d3d50, #7a7a96); }
.ph-3 { background: linear-gradient(135deg, #503d3d, #967a7a); }
.ph-4 { background: linear-gradient(135deg, #3d503f, #7a967e); }
.ph-5 { background: linear-gradient(135deg, #50483d, #96907a); }
.ph-6 { background: linear-gradient(135deg, #26323e, #5c7186); }

/* ---------- 画像 ---------- */
.hero-visual img,
.card-visual img,
.article-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-visual img { transition: transform 0.4s ease; }
.card:hover .card-visual img { transform: scale(1.04); }

/* ---------- カテゴリページ ---------- */
.category-header {
  text-align: center;
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--black);
  margin-bottom: 48px;
}

.category-header h1 {
  font-family: var(--serif);
  font-size: 44px;
  letter-spacing: 0.25em;
  margin-right: -0.25em;
  text-transform: uppercase;
}

.category-header p {
  color: var(--gray);
  font-size: 13px;
  margin-top: 8px;
  letter-spacing: 0.08em;
}

/* ---------- 記事ページ ---------- */
.article-page {
  max-width: 720px;
  margin: 56px auto 0;
  padding: 0 24px;
}

.article-page .article-header { text-align: center; margin-bottom: 32px; }

.article-page h1 {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.4;
  margin: 14px 0 12px;
}

.article-meta {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.05em;
}

.article-visual {
  max-width: 1000px;
  margin: 0 auto 48px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--light-gray);
}
.article-visual .ph { width: 100%; height: 100%; }

.article-body {
  max-width: 680px;
  margin: 0 auto 80px;
  padding: 0 24px;
  font-size: 16px;
  line-height: 2.0;
}

.article-body p { margin-bottom: 1.8em; }

.article-body ul {
  margin: 0 0 1.8em 1.4em;
  line-height: 2.0;
}

.article-body h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 2.2em 0 0.9em;
  padding-top: 0.9em;
  border-top: 1px solid var(--black);
}

.article-body blockquote {
  border-left: 3px solid var(--black);
  padding-left: 20px;
  margin: 2em 0;
  color: var(--gray);
  font-size: 14px;
}

.article-body .source {
  font-size: 12px;
  color: var(--gray);
}

/* 記事本文中の図版 */
.article-body figure {
  margin: 2.6em 0;
}

.article-body figure img {
  width: 100%;
  border-radius: 2px;
}

.article-body figcaption {
  font-size: 12px;
  color: var(--gray);
  margin-top: 8px;
  text-align: center;
  letter-spacing: 0.03em;
}

/* ---------- 問い合わせフォーム ---------- */
.form-wrap {
  max-width: 640px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.form-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--black);
  margin-bottom: 40px;
}

.form-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 16px 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gray);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}

.form-tab:hover { color: var(--black); }

.form-tab.is-active {
  color: var(--black);
  border-bottom-color: var(--accent);
}

.form-tab small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--gray);
  margin-top: 4px;
  letter-spacing: 0;
}

.form-panel { display: none; }
.form-panel.is-active { display: block; }

.form-lead {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 32px;
}

.field { margin-bottom: 24px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.field .req {
  color: var(--accent);
  font-size: 11px;
  margin-left: 6px;
}

.field .opt {
  color: var(--gray);
  font-size: 11px;
  font-weight: 400;
  margin-left: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cccccc;
  border-radius: 2px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--black);
}

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

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  cursor: pointer;
}

.checkbox-group input { width: auto; }

.form-note {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.8;
  margin: 20px 0 28px;
}

.form-note a { text-decoration: underline; }

.btn-submit {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 15px 48px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-submit:hover { opacity: 0.8; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- フッター ---------- */
.site-footer {
  border-top: 1px solid var(--black);
  padding: 40px 0 56px;
  text-align: center;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.35em;
  margin-right: -0.35em;
  margin-bottom: 10px;
}

.footer-links {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 8px;
}
.footer-links a:hover { color: var(--black); }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-social a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gray);
  border: 1px solid #dddddd;
  border-radius: 999px;
  padding: 7px 18px;
  transition: color 0.2s, border-color 0.2s;
}

.footer-social a:hover {
  color: var(--black);
  border-color: var(--black);
}

.copyright {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.1em;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 28px; }
}

@media (max-width: 600px) {
  .header-inner { flex-direction: column; height: auto; padding: 14px 0 10px; gap: 10px; }
  .global-nav ul { gap: 20px; }
  .article-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 4 / 3; }
  .hero-title { font-size: 24px; }
  .article-page h1 { font-size: 26px; }
}
