/* ===========================
   JAPAN MARINE RADIO ASSOCIATION
   Design: Maritime Professional — Deep Navy & Signal Orange
   =========================== */

:root {
  --navy:       #0a1628;
  --navy-mid:   #102040;
  --navy-light: #1a3560;
  --ocean:      #0d4f8c;
  --sky:        #1e7abf;
  --horizon:    #4fa3d1;
  --signal:     #e85c0d;
  --signal-lt:  #ff7a30;
  --sand:       #f5efe6;
  --white:      #ffffff;
  --text:       #1a2940;
  --text-muted: #5a6a80;
  --border:     #d0dae8;
  --font-display: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  --font-heading: 'Noto Serif JP', serif;
  --font-body:    'Noto Sans JP', sans-serif;
  --radius:     4px;
  --shadow:     0 4px 24px rgba(10,22,40,0.12);
  --shadow-lg:  0 8px 48px rgba(10,22,40,0.20);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,22,40,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.4); }

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark {
  font-size: 26px;
  color: var(--signal);
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-ja {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1;
}
.logo-en {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--horizon);
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); }

.lang-toggle {
  background: var(--signal);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: var(--radius);
  margin-left: 8px;
  transition: background 0.2s;
}
.lang-toggle:hover { background: var(--signal-lt); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  padding-top: 68px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(13,79,140,0.5) 0%, transparent 70%),
    linear-gradient(160deg, var(--navy) 40%, var(--navy-mid) 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e7abf' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.wave-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(79,163,209,0.3), transparent);
  animation: waveDrift 8s ease-in-out infinite;
}
.w1 { top: 35%; animation-delay: 0s; }
.w2 { top: 55%; animation-delay: 2s; opacity: 0.6; }
.w3 { top: 72%; animation-delay: 4s; opacity: 0.3; }

@keyframes waveDrift {
  0%, 100% { transform: translateX(-5%) scaleX(1.1); opacity: 0.4; }
  50%       { transform: translateX(5%) scaleX(0.9); opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 24px;
  max-width: 640px;
  padding-left: 80px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--signal);
  border: 1px solid var(--signal);
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease both;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 28px;
}
.hero-title .line1,
.hero-title .line2 {
  display: block;
  animation: fadeInUp 0.8s ease both;
}
.hero-title .line2 { animation-delay: 0.15s; }

.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s 0.25s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.35s ease both;
}

.hero-radio-icon {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  animation: fadeIn 1.2s 0.5s ease both;
}
.radio-display {
  font-family: var(--font-display);
  font-size: 120px;
  color: rgba(30,122,191,0.25);
  line-height: 1;
  text-shadow: 0 0 60px rgba(30,122,191,0.3);
}
.radio-blink {
  width: 10px; height: 10px;
  background: var(--signal);
  border-radius: 50%;
  margin: 8px auto 0;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--signal); }
  50%       { opacity: 0.2; box-shadow: none; }
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--signal);
  color: var(--white);
  border-color: var(--signal);
}
.btn-primary:hover {
  background: var(--signal-lt);
  border-color: var(--signal-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,92,13,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
  font-size: 14px;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
}

/* ===========================
   NOTICE SECTION
   =========================== */
.notice-section {
  background: var(--sand);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.notice-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.notice-icon { font-size: 18px; }
.notice-header h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}
.notice-all {
  margin-left: auto;
  font-size: 13px;
  color: var(--ocean);
  font-weight: 500;
}
.notice-all:hover { text-decoration: underline; }

.notice-list { display: flex; flex-direction: column; gap: 12px; }
.notice-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.notice-date { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.notice-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 2px;
  white-space: nowrap;
}
.tag-info { background: rgba(13,79,140,0.1); color: var(--ocean); }
.tag-event { background: rgba(232,92,13,0.1); color: var(--signal); }

/* ===========================
   SERVICES
   =========================== */
.services-section {
  padding: 96px 0;
  background: var(--white);
}
.section-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--signal);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 48px;
  line-height: 1.3;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sky);
}
.service-card--highlight {
  background: var(--navy);
  border-color: var(--navy);
}
.service-card--highlight h3,
.service-card--highlight p { color: var(--white); }
.service-card--highlight .card-link { color: var(--signal-lt); }

.service-icon { font-size: 32px; margin-bottom: 16px; }
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}
.service-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.card-link {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ocean);
  margin-top: 20px;
}

/* ===========================
   ABOUT STRIP
   =========================== */
.about-strip {
  background: var(--sand);
  padding: 96px 0;
}
.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.3;
}
.about-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 32px;
}
.ship-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}
.ship-icon { font-size: 64px; opacity: 0.8; }
.ship-label {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5);
}

/* ===========================
   CHANNEL 16
   =========================== */
.ch16-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--ocean) 100%);
  padding: 56px 0;
}
.ch16-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.ch16-radio {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 16px 28px;
  flex-shrink: 0;
}
.ch16-display {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--signal-lt);
  line-height: 1;
  text-shadow: 0 0 20px var(--signal);
}
.ch16-label {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.ch16-text { flex: 1; }
.ch16-text h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 8px;
}
.ch16-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo .logo-mark { font-size: 24px; color: var(--signal); }
.footer-logo-ja {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
.footer-logo-en {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--horizon);
}
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.5); }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-strip-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .hero-content { padding: 60px 24px 60px; }
  .hero-radio-icon { display: none; }
  .main-nav { display: none; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: var(--navy); padding: 24px; gap: 8px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; border-radius: var(--radius); font-size: 15px; }
  .hamburger { display: flex; }
  .service-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .ch16-inner { flex-direction: column; text-align: center; }
}
