/* =========================================
   Area73 Online Magazine — Main Stylesheet
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Noto+Sans+JP:wght@300;400;500;700&family=DM+Mono:wght@400;500&display=swap');

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #1a1814;
  --ink-mid:    #4a4540;
  --ink-light:  #8a8278;
  --paper:      #faf8f3;
  --paper-warm: #f2ede3;
  --white:      #ffffff;
  --accent:     #c8602a;
  --accent-dk:  #a04820;
  --accent-lt:  #e8a882;
  --navy:       #1a2a3a;
  --rule:       #d8d0c0;
  --rule-lt:    #ece7dc;
  --shadow:     rgba(26,24,20,.08);
  --header-h:   72px;
  --content-w:  1100px;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Noto Sans JP', sans-serif;
  --mono:       'DM Mono', 'Courier New', monospace;
  --ease-out:   cubic-bezier(.22,.61,.36,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ----- Utility ----- */
.wrap { max-width: var(--content-w); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }

/* ========================
   HEADER
======================== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 2px 16px var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding: 0 24px;
  max-width: var(--content-w); margin: 0 auto;
}
.logo-block { display: flex; flex-direction: column; gap: 2px; }
.logo {
  font-family: var(--serif); font-size: 30px; font-weight: 700;
  color: var(--ink); letter-spacing: -1px; line-height: 1;
  transition: color .2s;
}
.logo:hover { color: var(--accent); }
.logo span { color: var(--accent); }
.logo-tagline {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--ink-light);
}
.header-nav { display: flex; align-items: stretch; height: var(--header-h); }
.header-nav a {
  display: flex; align-items: center;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink); padding: 0 16px;
  border-left: 1px solid var(--rule-lt);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.header-nav a:last-child { border-right: 1px solid var(--rule-lt); }
.header-nav a:hover { background: var(--ink); color: var(--white); }
.header-nav a.active { background: var(--accent); color: var(--white); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: all .3s; }

/* ========================
   HERO
======================== */
.hero {
  position: relative; overflow: hidden;
  min-height: 520px;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--navy);
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .85;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,20,30,.7) 40%, rgba(10,20,30,.2) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 80px 24px; max-width: var(--content-w); margin: 0 auto; width: 100%;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--accent-lt); margin-bottom: 20px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .6s var(--ease-out) .1s forwards;
}
.hero-title {
  font-family: var(--serif); font-size: clamp(40px, 6vw, 76px);
  line-height: 1.08; font-weight: 700; color: var(--white);
  max-width: 680px; margin-bottom: 28px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .7s var(--ease-out) .25s forwards;
}
.hero-title em { font-style: italic; color: var(--accent-lt); }
.hero-body {
  font-size: 15px; color: rgba(255,255,255,.7); max-width: 480px; line-height: 1.8;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .7s var(--ease-out) .4s forwards;
}
.hero-actions {
  margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .7s var(--ease-out) .55s forwards;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 14px 28px; cursor: pointer; transition: all .25s;
  border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dk); }
.btn-outline { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #333; }

/* Hero Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,.4);
  animation: bounce 2s ease-in-out infinite;
}
.scroll-indicator::after {
  content: ''; display: block; width: 1px; height: 40px;
  background: rgba(255,255,255,.3);
}

/* ========================
   BREAKING NEWS TICKER
======================== */
.ticker-bar {
  background: var(--accent); color: var(--white);
  overflow: hidden; height: 36px; display: flex; align-items: center;
}
.ticker-label {
  flex-shrink: 0; background: var(--ink); color: var(--white);
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; padding: 0 16px; height: 100%;
  display: flex; align-items: center; white-space: nowrap;
}
.ticker-track {
  flex: 1; overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, black 40px, black calc(100% - 40px), transparent);
}
.ticker-inner {
  display: flex; gap: 48px; white-space: nowrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px;
  animation: ticker 28s linear infinite;
}
.ticker-inner span::before { content: '◆ '; opacity: .6; font-size: 8px; }

/* ========================
   LAYOUT
======================== */
.page-body { padding: 56px 0 80px; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  max-width: var(--content-w); margin: 0 auto; padding: 0 24px;
}

/* Section Label */
.sec-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent);
  border-top: 2px solid var(--accent); padding-top: 8px;
  margin-bottom: 28px;
}

/* ========================
   NEWS / ARTICLES
======================== */
.news-list { border-top: 2px solid var(--ink); }
.news-item {
  display: grid; grid-template-columns: 96px 1fr;
  gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--rule);
  transition: background .2s;
}
.news-item:hover { background: var(--paper-warm); margin: 0 -16px; padding: 24px 16px; }
.news-date {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-light); line-height: 1.5; padding-top: 3px;
}
.news-date .year { display: block; color: var(--rule); font-size: 10px; }
.news-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.badge {
  display: inline-block; font-family: var(--mono); font-size: 9px;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 8px; font-weight: 500;
}
.badge-news    { background: var(--navy);   color: var(--white); }
.badge-pr      { background: var(--accent); color: var(--white); }
.badge-new     { background: #2a6a40;       color: var(--white); }
.badge-campaign{ background: #2a4a8a;       color: var(--white); }
.badge-info    { background: #6a4a20;       color: var(--white); }
.news-title {
  font-size: 15px; font-weight: 500; color: var(--ink);
  line-height: 1.5; display: block; margin-bottom: 6px;
  transition: color .2s;
}
.news-item:hover .news-title { color: var(--accent); }
.news-text { font-size: 13px; color: var(--ink-mid); line-height: 1.7; }
.read-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent);
  border-bottom: 1px solid var(--accent-lt); padding-bottom: 2px;
  transition: gap .2s, color .2s;
}
.read-more:hover { gap: 10px; color: var(--accent-dk); }

/* ========================
   FEATURED ARTICLE
======================== */
.featured-article {
  background: var(--white); border: 1px solid var(--rule);
  padding: 32px; margin-top: 48px; position: relative; overflow: hidden;
}
.featured-article::before {
  content: 'FEATURED'; position: absolute; top: 20px; right: -28px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 3px;
  background: var(--accent); color: var(--white); padding: 4px 40px;
  transform: rotate(45deg); transform-origin: center;
}
.featured-article .article-eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.featured-article h3 {
  font-family: var(--serif); font-size: 26px; font-weight: 700;
  line-height: 1.3; margin-bottom: 16px;
}
.featured-article p { font-size: 14px; color: var(--ink-mid); line-height: 1.8; }

/* ========================
   VIDEO SECTION
======================== */
.video-section { margin-top: 56px; }
.video-thumb-wrap {
  position: relative; cursor: pointer; overflow: hidden;
  border: 1px solid var(--rule);
}
.video-thumb-wrap img { width: 100%; display: block; transition: transform .4s var(--ease-out); }
.video-thumb-wrap:hover img { transform: scale(1.03); }
.video-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(0,0,0,.5); border: 3px solid white;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.video-play-btn::after {
  content: ''; border-left: 26px solid white;
  border-top: 16px solid transparent; border-bottom: 16px solid transparent;
  margin-left: 6px;
}
.video-thumb-wrap:hover .video-play-btn { background: var(--accent); transform: translate(-50%,-50%) scale(1.08); }
.video-caption {
  background: var(--navy); color: var(--white);
  padding: 16px 20px; font-size: 13px; line-height: 1.6;
}
.video-caption strong {
  display: block; font-family: var(--serif); font-size: 16px;
  font-weight: 700; margin-bottom: 4px;
}
.video-caption span {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 2px; color: rgba(255,255,255,.5);
}

/* ========================
   RANKING
======================== */
.ranking-section { margin-top: 56px; }
.rank-list { border-top: 2px solid var(--ink); }
.rank-item {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--rule);
  align-items: start;
}
.rank-item.compact { grid-template-columns: 1fr; }
.rank-thumb {
  position: relative; background: var(--paper-warm);
  border: 1px solid var(--rule); overflow: hidden;
  aspect-ratio: 1;
}
.rank-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.rank-medal {
  position: absolute; top: 8px; left: 8px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 1px;
  background: var(--ink); color: var(--white); padding: 3px 7px;
}
.rank-medal.gold   { background: #b8960a; }
.rank-medal.silver { background: #808090; }
.rank-medal.bronze { background: #9a6030; }
.rank-body { display: flex; flex-direction: column; gap: 8px; }
.rank-name {
  font-family: var(--serif); font-size: 20px; font-weight: 700;
  color: var(--accent);
}
.rank-price {
  font-family: var(--mono); font-size: 18px; font-weight: 500;
  color: var(--ink);
}
.rank-price small { font-size: 11px; color: var(--ink-light); }
.rank-desc { font-size: 13px; color: var(--ink-mid); line-height: 1.75; }
.rank-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1px;
  color: var(--ink-light); border-bottom: 1px solid var(--rule);
  padding-bottom: 2px; transition: color .2s, border-color .2s;
}
.rank-link:hover { color: var(--accent); border-color: var(--accent-lt); }

/* ========================
   TEXT AREA / CTA
======================== */
.text-area {
  background: var(--white); border: 1px solid var(--rule);
  padding: 32px; margin-top: 48px;
}
.text-area h3 {
  font-family: var(--serif); font-size: 20px; font-weight: 700;
  margin-bottom: 12px;
}
.text-area p { font-size: 14px; color: var(--ink-mid); line-height: 1.85; }
.text-area .cta-row { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ========================
   SIDEBAR
======================== */
.sidebar { display: flex; flex-direction: column; gap: 36px; }
.sidebar-block { }
.sidebar-block-title {
  font-family: var(--serif); font-size: 16px; font-weight: 700;
  border-top: 2px solid var(--ink); padding-top: 12px; margin-bottom: 16px;
}

/* Profile */
.profile-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 2px solid var(--rule); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-family: var(--serif); font-size: 16px; font-weight: 700; }
.profile-role { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--accent); }
.profile-text { font-size: 13px; color: var(--ink-mid); line-height: 1.75; }

/* Contact */
.contact-btn {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--paper-warm); border: 1px solid var(--rule);
  padding: 16px; font-size: 13px; color: var(--ink);
  transition: background .2s, border-color .2s; cursor: pointer;
}
.contact-btn:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.contact-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }

/* Side Menu */
.side-menu { border-top: 1px solid var(--rule-lt); }
.side-menu-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink); padding: 11px 0;
  border-bottom: 1px solid var(--rule-lt);
  transition: color .2s, padding-left .2s;
}
.side-menu-item:hover { color: var(--accent); padding-left: 6px; }
.side-menu-item::before { content: '→'; color: var(--accent); font-size: 11px; flex-shrink: 0; }
.side-menu-sub {
  font-size: 12px; color: var(--ink-mid); padding: 8px 0 8px 24px;
  border-bottom: 1px solid var(--rule-lt); display: block;
  transition: color .2s;
}
.side-menu-sub::before { content: '·  '; color: var(--rule); }
.side-menu-sub:hover { color: var(--accent); }

/* Calendar */
.mini-cal { width: 100%; }
.cal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.cal-month { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; }
.cal-nav-btn {
  font-family: var(--mono); font-size: 10px; color: var(--accent);
  cursor: pointer; padding: 2px 4px; transition: color .2s;
}
.cal-nav-btn:hover { color: var(--accent-dk); }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  text-align: center;
}
.cal-head { font-family: var(--mono); font-size: 9px; color: var(--ink-light); padding: 4px 0; }
.cal-head.sun { color: #c84040; }
.cal-head.sat { color: #4060a0; }
.cal-day-cell { font-size: 11px; padding: 5px 2px; color: var(--ink-mid); border-radius: 3px; cursor: pointer; }
.cal-day-cell:hover { background: var(--paper-warm); }
.cal-day-cell.today { background: var(--accent); color: var(--white); font-weight: 500; }
.cal-day-cell.has-post { background: var(--paper-warm); color: var(--accent); font-weight: 500; }
.cal-day-cell.sun { color: #c84040; }
.cal-day-cell.sat { color: #4060a0; }
.cal-day-cell.other-month { color: var(--rule); }

/* Banners */
.banner-wrap { display: flex; flex-direction: column; gap: 10px; }
.banner-img { display: block; width: 100%; border: 1px solid var(--rule); transition: opacity .2s; }
.banner-img:hover { opacity: .85; }

/* ========================
   FOOTER
======================== */
.site-footer { background: var(--ink); color: var(--white); margin-top: 80px; }
.footer-top { padding: 56px 24px 48px; }
.footer-grid {
  max-width: var(--content-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px;
}
.footer-block-title {
  font-family: var(--mono); font-size: 9px; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,.35);
  border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 10px; margin-bottom: 16px;
}
.footer-logo { font-family: var(--serif); font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.footer-logo span { color: var(--accent-lt); }
.footer-tagline { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: rgba(255,255,255,.3); margin-bottom: 16px; }
.footer-address { font-size: 13px; color: rgba(255,255,255,.55); line-height: 2; }
.footer-map-img { display: block; width: 100%; border: 1px solid rgba(255,255,255,.1); margin-top: 12px; border-radius: 4px; opacity: .8; }
.footer-nav-list { display: flex; flex-direction: column; gap: 0; }
.footer-nav-link {
  font-size: 13px; color: rgba(255,255,255,.55); padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; gap: 8px;
  transition: color .2s, padding-left .2s;
}
.footer-nav-link::before { content: '—'; color: rgba(255,255,255,.2); font-size: 10px; }
.footer-nav-link:hover { color: var(--white); padding-left: 6px; }
.footer-nav-sub { font-size: 12px; color: rgba(255,255,255,.35); padding: 7px 0 7px 28px; display: block; border-bottom: 1px solid rgba(255,255,255,.05); }
.footer-nav-sub::before { content: '· '; }
.footer-nav-sub:hover { color: rgba(255,255,255,.7); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
  max-width: var(--content-w); margin: 0 auto;
}
.footer-copy { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,.25); letter-spacing: 1px; }
.back-top {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,.4); cursor: pointer;
  display: flex; align-items: center; gap: 6px; transition: color .2s;
}
.back-top:hover { color: var(--white); }
.back-top::before { content: '↑'; }

/* ========================
   PAGE TRANSITIONS / ANIMATIONS
======================== */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .sidebar { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .header-nav { display: none; }
  .header-nav.open { display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--ink); z-index: 200; }
  .header-nav.open a { height: 48px; border-left: none; border-bottom: 1px solid var(--rule-lt); padding: 0 24px; }
  .hamburger { display: flex; }
  .hero-title { font-size: 36px; }
  .rank-item { grid-template-columns: 1fr; }
  .rank-thumb { max-width: 160px; }
  .news-item { grid-template-columns: 72px 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .two-col { padding: 0 16px; }
  .wrap { padding: 0 16px; }
}
