/*
Theme Name: 浜松経済クラブ
Theme URI:
Author: 浜松経済クラブ
Description: 浜松経済クラブ公式サイト カスタムテーマ
Version: 1.0.0
Text Domain: hamamatsu-keizai-club
*/

/* ============================================
   浜松経済クラブ 公式サイト スタイルシート
   ============================================ */

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

:root {
  --color-primary: #b43b3b;
  --color-primary-dark: #8e2e2e;
  --color-primary-light: rgba(180, 59, 59, 0.08);
  --color-accent: #1a1a1a;
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-light: #f8f6f4;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #e0e0e0;
  --color-gold: #c4a265;
  --font-family: "Noto Sans JP", sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Scroll Animation --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s;
}

.header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  white-space: nowrap;
  position: relative;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s;
  white-space: nowrap;
  position: relative;
}

.header-nav a:not(.nav-members)::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.header-nav a:not(.nav-members):hover::after {
  width: 100%;
}

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

.nav-members {
  background-color: var(--color-primary);
  color: var(--color-white) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(180, 59, 59, 0.3);
}

.nav-members:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(180, 59, 59, 0.4);
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  letter-spacing: 0.03em;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(180, 59, 59, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(180, 59, 59, 0.4);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(180, 59, 59, 0.3);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
  border-radius: 8px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-accent);
  margin: 5px 0;
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  margin-top: var(--header-height);
  position: relative;
  height: 640px;
  max-height: calc(80vh - var(--header-height));
  overflow: hidden;
  background: var(--color-bg-light);
}

.hero-track {
  display: flex;
  height: 100%;
  gap: 30px;
  transform: translateX(calc((100% - 60%) / 2 - 60% - 30px));
}

.hero-slide {
  flex: 0 0 60%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  line-height: 1.4;
}

.hero-subtitle {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 2;
  max-width: 680px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

.hero .btn {
  font-size: 1rem;
  padding: 16px 48px;
}

/* --- Section common --- */
.section {
  padding: 96px 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  color: var(--color-accent);
}

.section-title-en {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  text-align: center;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-lead {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9375rem;
  margin-bottom: 48px;
  margin-top: 24px;
}

/* --- About --- */
.about-content {
  display: flex;
  align-items: center;
  gap: 56px;
  max-width: 960px;
  margin: 40px auto 0;
}

.about-image {
  flex: 0 0 45%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-body {
  flex: 1;
}

.about-body p {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 2.2;
  margin-bottom: 16px;
}

.about-link {
  margin-top: 28px;
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    gap: 24px;
  }

  .about-image {
    flex: none;
    width: 100%;
  }
}

/* --- News --- */
.news {
  background-color: var(--color-bg-light);
}

.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--color-border);
  border-radius: 8px;
  transition: background-color 0.2s, transform 0.2s;
}

.news-item:hover {
  background-color: rgba(255, 255, 255, 0.7);
  transform: translateX(4px);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  white-space: nowrap;
  min-width: 100px;
  padding-top: 2px;
}

.news-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 4px;
  background-color: var(--color-primary);
  color: var(--color-white);
  white-space: nowrap;
  min-width: 64px;
  text-align: center;
}

.news-tag.tag-event {
  background-color: #3b6fb4;
}

.news-tag.tag-info {
  background-color: #4a9b6e;
}

.news-title {
  font-size: 0.9375rem;
  font-weight: 500;
  flex: 1;
}

.news-title a {
  transition: color 0.2s;
}

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

.news-more {
  text-align: center;
  margin-top: 36px;
}

.news-more a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 2px;
  transition: opacity 0.2s, letter-spacing 0.3s;
}

.news-more a:hover {
  opacity: 0.7;
  letter-spacing: 0.05em;
}

/* --- Bento Grid --- */
.bento-section {
  background-color: var(--color-bg-light);
}

.bento-grid {
  display: flex;
  gap: 32px;
  min-height: 520px;
}

.bento-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.bento-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.bento-main {
  flex: 0 0 55%;
}

.bento-main .bento-card-image {
  flex: none;
  height: 480px;
  overflow: hidden;
}

.bento-main .bento-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.6s ease;
}

.bento-card:hover .bento-card-image img,
.bento-card:hover .bento-sub-image img {
  transform: scale(1.05);
}

.bento-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.bento-sub {
  flex: 1;
}

.bento-sub-image {
  height: 160px;
  overflow: hidden;
}

.bento-sub-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.bento-card-body {
  padding: 24px 28px;
}

.bento-card-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.bento-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.bento-card-desc {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

.bento-card-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: letter-spacing 0.3s;
}

.bento-card:hover .bento-card-link {
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .bento-grid {
    flex-direction: column;
    min-height: auto;
  }

  .bento-main {
    flex: none;
  }

  .bento-main .bento-card-image {
    height: 240px;
  }

  .bento-sub {
    flex-direction: column;
  }

  .bento-sub-image {
    flex: none;
    height: 160px;
  }

  .bento-card-body {
    padding: 24px;
  }
}

/* --- Photo Gallery --- */
.photo-gallery-section {
  background-color: var(--color-bg-light);
}

.gallery-scroll-wrapper {
  overflow: hidden;
  width: 100%;
}

.gallery-track {
  display: flex;
  gap: 16px;
  animation: gallery-scroll 40s linear infinite;
  width: max-content;
}

.gallery-track:hover {
  animation-play-state: paused;
}

@keyframes gallery-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 8px));
  }
}

.gallery-item {
  flex: 0 0 calc((var(--max-width) - 24px * 2 - 16px * 3) / 4);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-more {
  text-align: center;
  margin-top: 36px;
}

.gallery-more-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 2px;
  transition: opacity 0.2s, letter-spacing 0.3s;
}

.gallery-more-link:hover {
  opacity: 0.7;
  letter-spacing: 0.05em;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #8e2e2e 50%, #6b2222 100%);
  color: var(--color-white);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.cta-text {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 44px;
  line-height: 2;
}

/* --- Side Banner --- */
.side-banner {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 24px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-decoration: none;
  border-radius: 10px 0 0 10px;
  z-index: 900;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s;
  box-shadow: -2px 0 12px rgba(180, 59, 59, 0.25);
}

.side-banner:hover {
  color: var(--color-white);
  transform: translateY(-50%) translateX(-4px);
  box-shadow: -4px 0 20px rgba(180, 59, 59, 0.35);
}

@media (max-width: 768px) {
  .side-banner {
    padding: 16px 10px;
    font-size: 0.75rem;
  }
}

/* --- Footer --- */
.footer {
  background-color: var(--color-accent);
  color: #cccccc;
  padding: 56px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  max-height: 48px;
  width: auto;
  margin-bottom: 12px;
  display: block;
}

.footer-info h3 {
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.footer-info p {
  font-size: 0.8125rem;
  line-height: 2;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: 0.8125rem;
  color: #cccccc;
  transition: color 0.2s, padding-left 0.3s;
}

.footer-nav a:hover {
  color: var(--color-white);
  padding-left: 4px;
}

.footer-sns {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #444;
  color: #cccccc;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-sns a:hover {
  border-color: var(--color-primary);
  color: var(--color-white);
  background-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(180, 59, 59, 0.3);
}

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 24px;
  text-align: center;
}

.footer-copyright {
  font-size: 0.75rem;
  color: #666;
}

/* --- Page Hero (shared across sub pages) --- */
.page-hero {
  margin-top: var(--header-height);
  background: var(--color-bg-light);
  padding: 64px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-hero-en {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.page-hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.page-hero-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* パンくず */
.breadcrumb {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-text-light);
  transition: color 0.2s;
}

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

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--color-border);
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
  .header-nav {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .header-nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 80px 0;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
  }

  .news-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .news-date {
    min-width: auto;
  }

  .news-title {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.375rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .cta-title {
    font-size: 1.375rem;
  }

  .page-hero {
    padding: 48px 0 36px;
  }

  .page-hero-title {
    font-size: 1.5rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .btn-lg {
    padding: 14px 32px;
    font-size: 0.9375rem;
  }
}
