/*
  湘南タイド（05-media）
  ジャンル：動画背景と大胆なタイポ。文字が画像より強い。
  白地に黒文字が基本。ヒーローと編集部だけ黒地に白文字。赤はカテゴリと下線だけに使う。
  角丸なし・影なし・グラデーションなし。罫線は黒か、無いか。
*/

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --accent: #e8412f;
  --font-en: "Archivo Black", sans-serif;
  --font-jp-bold: "Noto Sans JP", sans-serif;
  --font-jp: "Noto Sans JP", sans-serif;
  --content-max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-jp);
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-jp-bold);
  font-weight: 900;
  line-height: 0.95;
  margin: 0;
}

p {
  margin: 0;
}

.button {
  display: inline-block;
  padding: 14px 28px;
  min-height: 44px;
  font-family: var(--font-jp-bold);
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid currentColor;
}

.button--primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.button--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}

.text-link {
  display: inline-block;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

/* ===== ヘッダー ===== */
/* ヒーローの上では透明・白文字。.header--solid が付くと黒地固定（script.js が IntersectionObserver で切り替える） */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  color: var(--paper);
  transition: background-color 0.2s ease;
}

.header--solid {
  background: var(--ink);
}

.header__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-decoration: none;
  color: inherit;
}

.logo__en {
  font-family: var(--font-en);
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: inherit;
}

.nav {
  display: none;
}

.nav__list {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav__list a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--paper);
}

.hero__media {
  position: absolute;
  inset: 0;
  background: var(--ink);
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 動画が読めない・reduced-motion のときは script.js が video を非表示にし、
   poster と同じ静止画を background-image で敷く（部品④） */
.hero__media--fallback .hero__video {
  display: none;
}

.hero__media--fallback {
  background-image: var(--poster-url, none);
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 16px;
  padding-bottom: 32px;
}

.hero__eyebrow {
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(44px, 13vw, 160px);
  line-height: 0.95;
  margin-bottom: 20px;
}

.hero__lead {
  font-size: 15px;
  line-height: 1.7;
  max-width: 34em;
  margin-bottom: 24px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero__scroll {
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* ===== 特集 ===== */
.feature {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 48px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature__media img {
  width: 100%;
  height: auto;
}

.feature__label {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.feature__title {
  font-size: clamp(28px, 5vw, 56px);
  margin-bottom: 20px;
}

.feature__text {
  font-size: 16px;
  margin-bottom: 16px;
}

.feature__meta {
  font-size: 13px;
  color: #4a4a4a;
  margin-bottom: 16px;
}

/* ===== 海の音 ===== */
.sound {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 48px 16px;
  border-top: 1px solid var(--ink);
}

.sound__title {
  font-size: clamp(28px, 5vw, 56px);
  margin-bottom: 16px;
}

.sound__text {
  font-size: 16px;
  margin-bottom: 24px;
}

.sound__button {
  font-family: var(--font-jp-bold);
  font-weight: 900;
  font-size: 15px;
  padding: 14px 28px;
  min-height: 44px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
}

.sound__button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
}

.sound__status {
  min-height: 1.6em;
  margin-top: 12px;
  font-size: 14px;
  color: var(--accent);
}

.sound__note {
  margin-top: 8px;
  font-size: 13px;
  color: #4a4a4a;
}

/* ===== 最新の記事 ===== */
.latest {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 48px 16px;
  border-top: 1px solid var(--ink);
}

.latest__title {
  font-size: clamp(28px, 5vw, 56px);
  margin-bottom: 24px;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.article-card__link {
  text-decoration: none;
  display: block;
}

.article-card__image {
  width: 100%;
  height: auto;
  margin-bottom: 12px;
}

.article-card__category {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.article-card__title {
  font-size: 19px;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: transparent;
}

.article-card__link:hover .article-card__title {
  text-decoration-color: var(--accent);
}

.article-card__excerpt {
  font-size: 14px;
  color: #333;
  margin-top: 10px;
}

.article-card__date {
  font-size: 12px;
  color: #767676;
  margin-top: 8px;
}

/* ===== カテゴリ ===== */
.categories {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 48px 16px;
  border-top: 1px solid var(--ink);
}

.categories__title {
  font-size: clamp(28px, 5vw, 56px);
  margin-bottom: 24px;
}

.categories__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.categories__list a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border: 1px solid var(--ink);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

.categories__count {
  font-size: 12px;
  color: var(--accent);
}

/* ===== 編集部について ===== */
.about {
  background: var(--ink);
  color: var(--paper);
  padding: 48px 16px;
}

.about__title {
  font-size: clamp(28px, 5vw, 56px);
  margin-bottom: 24px;
  max-width: var(--content-max);
  margin-inline: auto;
}

.about__text {
  max-width: var(--content-max);
  margin-inline: auto;
  font-size: 16px;
  margin-bottom: 16px;
}

.about__mail {
  max-width: var(--content-max);
  margin-inline: auto;
  margin-top: 16px;
}

.about__mail a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

/* ===== フッター ===== */
.footer {
  padding: 32px 16px 48px;
  border-top: 1px solid var(--ink);
  font-size: 13px;
}

.footer p {
  margin-bottom: 8px;
}

.footer__mail a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.footer__nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.footer__note {
  color: #767676;
  margin-top: 16px;
}

/* ===== prefers-reduced-motion：動画は script.js が再生自体を止める。ここでは smooth scroll だけ切る ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ===== 600px 以上：記事一覧2列 ===== */
@media (min-width: 600px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== 1024px 以上：ヘッダーにナビ・記事3列・特集2カラム ===== */
@media (min-width: 1024px) {
  .nav {
    display: block;
  }

  .article-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature {
    flex-direction: row;
    align-items: center;
  }

  .feature__media {
    flex: 0 0 60%;
  }

  .feature__body {
    flex: 0 0 40%;
    padding-left: 16px;
  }

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