/*
Theme Name: TokyoBay Online
Theme URI: https://tokyobayonline.com
Author: TokyoBay Online
Author URI: https://tokyobayonline.com
Description: 東京ベイエリアの総合情報サイト - A comprehensive information portal for the Tokyo Bay area featuring sightseeing, gourmet, shopping, events, access, and area guides.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tokyobay-online
Tags: japanese, bay-area, tourism, information, blue, clean
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --color-primary:       #1a3f5c;
  --color-primary-mid:   #2c6490;
  --color-accent:        #3a8fc7;
  --color-accent-light:  #5ab4e0;
  --color-accent-pale:   #c8e6f5;
  --color-sky:           #dceeff;
  --color-water:         #eaf6fd;
  --color-text:          #1a2a38;
  --color-text-mid:      #4a6070;
  --color-text-light:    #7a9ab0;
  --color-white:         #ffffff;
  --color-border:        #c8dde8;
  --color-bg:            #f4f9fc;
  --color-bg-section:    #eaf5fb;

  --font-heading:        'Noto Sans JP', 'Hiragino Kaku Gothic Pro', 'Yu Gothic', sans-serif;
  --font-body:           'Noto Sans JP', 'Hiragino Kaku Gothic Pro', 'Yu Gothic', sans-serif;
  --font-logo:           Georgia, 'Times New Roman', serif;

  --radius-sm:           4px;
  --radius-md:           8px;
  --radius-lg:           16px;
  --radius-xl:           24px;

  --shadow-sm:           0 2px 8px rgba(42, 96, 140, 0.08);
  --shadow-md:           0 4px 20px rgba(42, 96, 140, 0.12);
  --shadow-lg:           0 8px 40px rgba(42, 96, 140, 0.18);

  --transition:          all 0.3s ease;
  --max-width:           1200px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary);
}

ul, ol {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  margin-bottom: 1em;
  color: var(--color-text-mid);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 60px 0;
}

.section--bg {
  background: var(--color-bg-section);
}

.section__title {
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  margin: 12px auto 0;
  border-radius: 2px;
}

.section__subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo img {
  height: 52px;
  width: auto;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
}

.site-logo__name {
  font-family: var(--font-logo);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  line-height: 1;
}

.site-logo__name span {
  color: var(--color-accent);
}

.site-logo__tagline {
  font-size: 0.65rem;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  margin-top: 3px;
}

/* Main Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-navigation .menu {
  display: flex;
  gap: 4px;
}

.main-navigation .menu-item > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
  white-space: nowrap;
  transition: var(--transition);
}

.main-navigation .menu-item > a:hover,
.main-navigation .menu-item.current-menu-item > a {
  background: var(--color-sky);
  color: var(--color-accent);
}

.main-navigation .menu-item > a .nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-primary);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO / BANNER SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a3f5c 0%, #2c6490 40%, #3a8fc7 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--color-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 24px 120px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero__logo-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero__logo-badge img {
  height: 44px;
  filter: brightness(0) invert(1);
  width: auto;
}

.hero__logo-badge .badge-text {
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.hero__heading {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero__subtext {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 0;
}

/* ============================================
   CATEGORY ICONS BAR
   ============================================ */
.category-bar {
  background: var(--color-white);
  border-bottom: 2px solid var(--color-border);
  position: relative;
  z-index: 10;
}

.category-bar__inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.category-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 28px;
  text-decoration: none;
  color: var(--color-primary);
  border-right: 1px solid var(--color-border);
  flex: 1;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.category-bar__item:first-child {
  border-left: 1px solid var(--color-border);
}

.category-bar__item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.category-bar__item:hover::before {
  transform: scaleX(1);
}

.category-bar__item:hover {
  background: var(--color-water);
  color: var(--color-accent);
}

.category-bar__icon {
  width: 32px;
  height: 32px;
}

.category-bar__icon img {
  width: 100%;
  height: 100%;
}

.category-bar__label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.category-bar__label-en {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  font-weight: 400;
  text-transform: uppercase;
}

/* ============================================
   POSTS GRID
   ============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-card__thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-sky);
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card__thumb img {
  transform: scale(1.06);
}

.post-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  text-transform: uppercase;
  background: var(--color-sky);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  width: fit-content;
}

.post-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.5;
  margin-bottom: 8px;
  flex: 1;
}

.post-card__title a {
  color: inherit;
}

.post-card__title a:hover {
  color: var(--color-accent);
}

.post-card__meta {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

/* ============================================
   FEATURED / PICKUP SECTION
   ============================================ */
.featured-section {
  background: linear-gradient(180deg, var(--color-sky) 0%, var(--color-white) 100%);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.featured-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-md);
}

.featured-card__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(26,63,92,0.85) 100%);
  z-index: 1;
}

.featured-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card__content {
  position: relative;
  z-index: 2;
  padding: 24px;
  color: var(--color-white);
}

.featured-card__cat {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--color-accent-light);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}

.featured-card__title {
  font-size: 1.2rem;
  color: var(--color-white);
  font-weight: 700;
}

/* ============================================
   SIDEBAR
   ============================================ */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.widget {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.widget__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-sky);
  margin-bottom: 16px;
}

.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--color-text-mid);
}

.widget ul li a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 0;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent-light), var(--color-accent), var(--color-primary-mid));
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60'%3E%3Cpath d='M0,30 Q150,0 300,30 Q450,60 600,30 Q750,0 900,30 Q1050,60 1200,30 L1200,60 L0,60Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {}

.footer-brand__logo {
  filter: brightness(0) invert(1);
  opacity: 0.9;
  height: 50px;
  margin-bottom: 16px;
}

.footer-brand__desc {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
}

.footer-col__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-accent-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-primary-mid);
  border-color: var(--color-primary-mid);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
}

.btn--more {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn--more:hover {
  background: var(--color-sky);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--color-primary);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* ============================================
   SINGLE POST
   ============================================ */
.post-header {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, var(--color-sky) 0%, var(--color-white) 100%);
}

.post-header__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent);
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.post-header__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.35;
  margin-bottom: 16px;
}

.post-header__meta {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.post-content {
  max-width: 760px;
  padding: 40px 0 60px;
}

.post-content p, .post-content li {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text-mid);
  margin-bottom: 1.2em;
}

.post-content h2 {
  font-size: 1.4rem;
  margin: 2em 0 0.8em;
  padding-left: 14px;
  border-left: 4px solid var(--color-accent);
}

.post-content h3 {
  font-size: 1.15rem;
  margin: 1.6em 0 0.6em;
  color: var(--color-primary-mid);
}

.post-content img {
  border-radius: var(--radius-md);
  margin: 1.5em 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-sidebar-wrap {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .category-bar__item {
    padding: 14px 16px;
  }

  .category-bar__label {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 8px;
  }

  .main-navigation .menu.is-open {
    display: flex;
  }

  .main-navigation .menu-item > a {
    padding: 12px 16px;
    border-radius: var(--radius-md);
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .category-bar__inner {
    flex-wrap: wrap;
  }

  .category-bar__item {
    flex: 1 1 calc(33.333% - 1px);
    padding: 14px 8px;
  }

  .category-bar__label-en {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero__heading {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .category-bar__item {
    flex: 1 1 calc(50% - 1px);
  }

  .site-header__inner {
    padding: 10px 16px;
  }
}

/* ============================================
   WORDPRESS CORE CLASSES
   ============================================ */
.wp-block-image img {
  border-radius: var(--radius-md);
}

.wp-caption {
  max-width: 100%;
}

.alignleft {
  float: left;
  margin: 0.5em 1.5em 1em 0;
}

.alignright {
  float: right;
  margin: 0.5em 0 1em 1.5em;
}

.aligncenter {
  display: block;
  margin: 1em auto;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.2s; }
.fade-in-up:nth-child(4) { animation-delay: 0.3s; }
.fade-in-up:nth-child(5) { animation-delay: 0.4s; }
.fade-in-up:nth-child(6) { animation-delay: 0.5s; }

/* Wave dots decoration */
.wave-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.wave-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.wave-dots span:nth-child(1) { background: #e8a87c; }
.wave-dots span:nth-child(2) { background: #7bc67e; }
.wave-dots span:nth-child(3) { background: var(--color-accent); }
.wave-dots span:nth-child(4) { background: #e87c7c; }
