:root {
  --bg-color: #080A11; /* Deep navy almost black */
  --surface-color: #111827;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --accent-color: #D5C396; /* Elegant Champagne Gold */
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Zen Kaku Gothic New', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-serif);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: all 0.4s ease;
}
.header.scrolled {
  background: rgba(8, 10, 17, 0.85);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  text-decoration: none;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 48px;
  width: auto;
}

.nav a {
  color: var(--text-primary);
  text-decoration: none;
  margin-left: 2rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.nav a:hover {
  opacity: 1;
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(to bottom, rgba(8, 10, 17, 0.35) 0%, var(--bg-color) 100%), var(--teppen-hero-img, none);
  background-size: auto, cover;
  background-position: center, center;
  background-attachment: scroll, fixed;
  background-color: #121826;
  z-index: -2;
  transform: scale(1.05);
  transition: transform 10s ease-out;
}

body.loaded .hero::before {
  transform: scale(1);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(8, 10, 17, 0.3) 0%, var(--bg-color) 100%);
  z-index: -1;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  color: var(--accent-color);
  letter-spacing: 0.1em;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.6;
}

.scroll-indicator span {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.scroll-indicator .line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent-color), transparent);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Articles Section */
.articles-section {
  padding: 8rem 0;
  background: var(--bg-color);
  position: relative;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin-left: 1.5rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

/* マガジン型: ①全幅ヒーロー ②記事|広告|記事 ③横長枠 */
.articles-grid--magazine {
  grid-template-areas:
    "hero hero hero hero hero hero hero hero hero hero hero hero"
    "artL artL artL artL admid admid admid admid artR artR artR artR"
    "infeed infeed infeed infeed infeed infeed infeed infeed infeed infeed infeed infeed";
  align-items: stretch;
}

/* Base Article Card */
.article-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.article-card:hover {
  transform: translateY(-6px);
}

.article-link {
  display: block;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

.article-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.article-image-wrapper--placeholder {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 45%, #1a1528 100%);
}

.article-image-wrapper--placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 25% 15%, rgba(213, 195, 150, 0.12), transparent 55%);
  pointer-events: none;
}

.article-card--placeholder .article-title {
  color: var(--text-secondary);
  font-size: 1rem;
}

.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.article-card:hover .article-image {
  transform: scale(1.05);
}

.article-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(8,10,17,0.9) 100%);
}

.article-text-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 2.5rem;
  width: 100%;
}

.article-card--tile .article-text-content {
  padding: 1.5rem 1.25rem 1.75rem;
}

.article-category {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--accent-color);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.article-card--tile .article-category {
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
}

.article-title {
  color: var(--text-primary);
  font-size: 1.6rem;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.article-card--hero {
  grid-area: hero;
}

.article-card--hero .article-image-wrapper {
  aspect-ratio: 21 / 9;
  min-height: 220px;
}

.article-card--hero .article-title {
  font-size: clamp(1.35rem, 3.5vw, 2.15rem);
}

.article-card--tile {
  grid-area: artL;
}

.article-card--tile + .ad-space + .article-card--tile {
  grid-area: artR;
}

.article-card--tile .article-image-wrapper {
  aspect-ratio: 3 / 4;
}

.article-card--tile .article-title {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.45;
}

/* Ad Space (AdSense 用) */
.ad-space {
  background: var(--surface-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  border-radius: 4px;
}

.ad-space--mid {
  grid-area: admid;
  padding: 1.25rem 1rem 1.5rem;
  justify-content: center;
  align-self: stretch;
  box-shadow: inset 0 0 0 1px rgba(213, 195, 150, 0.06);
}

.ad-space--infeed {
  grid-area: infeed;
  padding: 1rem 1.25rem 1.25rem;
  margin-top: 0.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, var(--surface-color) 40%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ad-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.ad-label--block {
  margin-bottom: 1rem;
}

/* AdSense スロット: 最小サイズでレイアウトシフトを抑える */
.adsense-slot {
  width: 100%;
  min-width: 300px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.adsense-slot--sidebar {
  min-height: 280px;
}

/* トップ: 3カラム中央の矩形枠 */
.adsense-slot--tile {
  min-width: 0;
  min-height: 250px;
  max-width: 336px;
  margin-left: auto;
  margin-right: auto;
}

/* トップ: 一覧下の横長枠 */
.adsense-slot--leader {
  min-height: 100px;
  max-width: min(970px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.adsense-slot--in-article {
  min-height: 280px;
  max-width: 100%;
}

.adsense-slot .adsbygoogle {
  display: block !important;
  margin: 0 auto;
}

/* Footer */
.footer {
  background: #05070A;
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
  font-size: 1.5rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-nav {
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--accent-color);
}

.footer-text {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #475569;
}

/* Legal / Privacy page */
.legal-main {
  padding-top: 80px;
  padding-bottom: 2rem;
}

.legal-page-header {
  max-width: 740px;
  margin: 0 auto;
  padding: 2.5rem 2rem 0;
}

.legal-page-title {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.legal-updated {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.legal-body {
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.legal-body h2:first-of-type {
  margin-top: 2.5rem;
}

.legal-list {
  margin: 0 0 2.5rem 1.25rem;
  padding: 0;
  color: #CBD5E1;
  line-height: 1.9;
}

.legal-list li {
  margin-bottom: 0.75rem;
}

.legal-body a {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal-body a:hover {
  opacity: 0.9;
}

.legal-note {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Contact form */
.contact-page .legal-updated {
  margin-top: 0.5rem;
}

.contact-layout {
  max-width: 740px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.contact-lead {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #CBD5E1;
  margin-bottom: 2.5rem;
}

.contact-form {
  text-align: left;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.form-required {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.7rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #64748b;
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: rgba(213, 195, 150, 0.35);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.06);
}

.form-textarea {
  resize: vertical;
  min-height: 12rem;
  line-height: 1.7;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-note {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.form-note a {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.form-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--bg-color);
  background: var(--accent-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.form-submit:hover {
  opacity: 0.92;
}

.form-submit:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

.contact-error {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.25);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 4px;
}

.contact-success {
  padding: 2.5rem 1.75rem;
  text-align: center;
  background: var(--surface-color);
  border: 1px solid rgba(213, 195, 150, 0.25);
  border-radius: 4px;
}

.contact-success-title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.contact-success-text {
  font-size: 1rem;
  line-height: 1.85;
  color: #CBD5E1;
  margin-bottom: 1rem;
}

.contact-success-text:last-child {
  margin-bottom: 0;
}

.contact-success-text a {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-nav-sep {
  margin: 0 0.75rem;
  color: #475569;
  font-weight: 300;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Article Page Styles */
.article-page-header {
  margin-top: 80px;
  position: relative;
  height: 60vh;
  display: flex;
  align-items: flex-end;
  background-color: var(--surface-color);
  overflow: hidden;
}

.article-page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(to bottom, rgba(8, 10, 17, 0.25) 0%, transparent 40%), var(--teppen-article-hero-img, none);
  background-size: auto, cover;
  background-position: center, center 30%;
  background-color: var(--surface-color);
  z-index: 1;
}

.article-page-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(8, 10, 17, 0.3) 0%, var(--bg-color) 100%);
  z-index: 2;
}

.article-hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
}

.article-meta {
  font-family: var(--font-sans);
  color: var(--accent-color);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-main-title {
  font-size: 2.2rem;
  line-height: 1.4;
  color: var(--text-primary);
  text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.article-body-container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 2rem;
  font-size: 1.15rem;
  line-height: 2;
  color: #CBD5E1;
}

.article-body-container p {
  margin-bottom: 2.5rem;
}

.article-body-container h2 {
  font-size: 1.6rem;
  color: var(--accent-color);
  margin: 4rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(213, 195, 150, 0.2);
}

.article-quote {
  border-left: 2px solid var(--accent-color);
  padding: 2rem 2.5rem;
  margin: 4rem 0;
  background: rgba(255, 255, 255, 0.02);
  font-style: normal;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.8;
  color: #fff;
}

.article-ad {
  margin: 5rem 0;
  background: var(--surface-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 2.5rem; }
  .articles-grid--magazine {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "artL"
      "admid"
      "artR"
      "infeed";
  }

  .article-card--hero .article-image-wrapper {
    aspect-ratio: 16 / 9;
    min-height: 200px;
  }

  .article-card--tile .article-image-wrapper {
    aspect-ratio: 4 / 5;
  }

  .article-title { font-size: 1.2rem; }
  .adsense-slot {
    min-width: 0;
  }
}
