/* フォント定義 */
@font-face {
  font-family: 'Zen Maru Gothic';
  src: url('../font/Noto_Sans_JP,Zen_Maru_Gothic/Zen_Maru_Gothic/ZenMaruGothic-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Zen Maru Gothic';
  src: url('../font/Noto_Sans_JP,Zen_Maru_Gothic/Zen_Maru_Gothic/ZenMaruGothic-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Corporate Logo Rounded';
  src: url('../font/Corporate-Logo-Rounded-Bold-ver3/Corporate-Logo-Rounded-Bold-ver3.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基本スタイル */
body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-image: url("../images/page-top.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

a {
  color: #0052cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Page-specific backgrounds */
body.page-news {
  background-image: url("../images/news.png");
}

body.page-news-post {
  background-image: url("../images/news.png");
}

body.page-club {
  background-image: url("../images/bukatu.png");
}

body.page-vlog {
  background-image: url("../images/bukatu.png");
}

body.page-office-doc {
  background-image: url("../images/office.png");
}

/* ヘッダー */
.header {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.header-container {
  position: relative;
}

/* Header / submenu font (uses local font named 'KHドット秋葉原' if installed) */
.header, .nav-list, .nav-list a, .submenu, .submenu a {
  font-family: 'Baloo 2', "KHドット秋葉原", "KH Dot Akihabara", 'Poppins', sans-serif;
  font-size: 1.05rem;
}

.logo h1 {
  font-size: 1.5rem;
  color: #0052cc;
  margin: 0;
}

.logo .confidential-notice {
  font-size: 0.75rem;
  color: #ff0000;
  margin: 0.25rem 0 0 0;
  font-weight: bold;
}

.navbar {
  flex: 1;
  margin: 0 2rem;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  list-style: none;
  padding: 0.75rem 0;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  z-index: 200;
  justify-content: flex-start;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.submenu li {
  display: inline-block;
}

.submenu a {
  display: inline-block;
  padding: 0.6rem 1rem;
  color: #333;
}

.submenu a:hover {
  background: #f5f5f5;
}

.has-submenu.open > .submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-list a {
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: #0052cc;
  text-decoration: none;
}

.contact-btn {
  background-color: #ff6600;
  color: white !important;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
  margin-left: auto;
}

.contact-btn:hover {
  background-color: #e55a00;
  text-decoration: none;
}

/* ヒーロー/イメージセクション */
.hero-section {
  background-color: rgba(0, 0, 0, 0.25);
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 3rem;
  color: white;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.hero-section {
  background-color: rgba(0, 0, 0, 0.12);
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 3rem;
  color: white;
}
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.30);
  z-index: 1;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 700;
}

.hero-title {
  font-size: clamp(3.5rem, 6vw, 6rem);
  color: white;
  margin-bottom: 1.5rem;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 680px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  display: none;
}

.hero-top-image {
  display: none;
}

/* メインコンテンツ */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1200px;
  padding: 0 1.5rem;
  z-index: 2;
  position: relative;
  background: transparent;
}

.section h2 {
  color: #0052cc;
  font-size: 2rem;
  margin-bottom: 2rem;
  border-bottom: 3px solid #ff6600;
  padding-bottom: 0.75rem;
}

.latest-popup {
  position: relative;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  max-width: 720px;
  margin: 0 auto 2rem auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.popup-label {
  display: inline-flex;
  padding: 0.5rem 1rem;
  background: #0052cc;
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 999px;
}

.popup-date {
  color: #666;
  font-size: 0.95rem;
}

.popup-body h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: #111;
}

.popup-body p {
  color: #444;
  line-height: 1.8;
  font-size: 1rem;
}

.news-list {
  display: grid;
  gap: 1.5rem;
}

.hero-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 700;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(4.5rem, 10vw, 9.5rem);
  color: white;
  margin-bottom: 1.25rem;
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}

.hero-description {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 760px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
}

.top-latest-news-banner {
  position: fixed !important;
  right: max(2.25rem, env(safe-area-inset-right));
  bottom: max(2.25rem, env(safe-area-inset-bottom));
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: min(460px, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 31, 58, 0.15);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  pointer-events: auto;
}

.top-latest-news-label {
  font-size: 0.8rem;
  line-height: 1;
  font-weight: 700;
  color: #0052cc;
}

.top-latest-news-title {
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 600;
  color: #1e1e1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-latest-news-banner.is-empty {
  opacity: 0.85;
}

.top-latest-news-banner:hover {
  transform: translateY(-1px);
}

.links-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.link-card {
  display: block;
  padding: 2rem;
  background: linear-gradient(135deg, #fff5f0 0%, #fff9f5 100%);
  border: 2px solid #ffe6d5;
  border-radius: 12px;
  transition: all 0.3s ease;
  color: #333;
}

.link-card:hover {
  border-color: #ff6600;
  background: linear-gradient(135deg, #fff0e6 0%, #fff5f0 100%);
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(255, 102, 0, 0.2);
  text-decoration: none;
}

.link-card h3 {
  color: #0052cc;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.link-card p {
  font-size: 0.95rem;
  color: #666;
}

/* 社内情報セクション */
.info-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.info-box {
  padding: 2rem;
  background: linear-gradient(135deg, #e8f0f9 0%, #f0f5fc 100%);
  border-radius: 12px;
  border-left: 4px solid #0052cc;
  transition: transform 0.3s ease;
}

.info-box:hover {
  transform: translateY(-2px);
}

.info-box h3 {
  color: #0052cc;
  margin-bottom: 0.75rem;
}

/* お問い合わせセクション */
.contact-info {
  background: linear-gradient(135deg, #fff5f0 0%, #fffcfa 100%);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid #ff6600;
  margin-top: 1.5rem;
}

.contact-info p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

/* News posts section */
.news-posts {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.news-post {
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
}

.news-post-inner {
  position: relative;
  padding: 2.5rem 2rem;
  background: #ffffff;
  min-height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e5e5;
}

.news-post::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 120%;
  background: transparent;
  pointer-events: none;
}

.news-post-date {
  font-size: 0.95rem;
  color: #999;
  margin-bottom: 1rem;
  font-weight: 600;
}

.news-post-category-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.news-post-category {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #eaf4ff;
  color: #0052cc;
  font-size: 0.82rem;
  font-weight: 700;
}

.news-latest-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #ff6b6b;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
}

.news-post-title {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 800;
}

.news-post-content {
  color: #555;
  line-height: 1.9;
  font-size: 1.05rem;
}

.news-title-banner {
  display: inline-block;
  background: #ffffff;
  padding: 0.9rem 2.2rem;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.news-page-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  color: #0f1f3a;
  letter-spacing: 0.02em;
  font-family: 'Corporate Logo Rounded', sans-serif;
  font-weight: bold;
}

/* Page title section: full-width white banner for all subpages */
.page-title-section {
  width: 100%;
  padding: 0;
}

.page-title-section .hero-content {
  width: 100%;
  max-width: none;
  padding: 0;
}

.page-title-section .title-banner {
  display: block;
  width: 100%;
  border-radius: 0;
  padding: clamp(1.5rem, 3.5vw, 2.6rem) clamp(1.2rem, 8vw, 10rem);
  box-shadow: none;
  background: #ffffff;
}

.page-title-section .page-title {
  margin: 0;
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: 1.05;
  color: #0f1f3a;
  letter-spacing: 0.02em;
  font-family: 'Corporate Logo Rounded', sans-serif;
  font-weight: bold;
}

/* News page title banner: full-width like a page banner */
body.page-news .news-title-section {
  width: 100%;
  padding: 0;
}

body.page-news .news-title-section .hero-content {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.page-news .news-title-section .news-title-banner {
  display: block;
  width: 100%;
  border-radius: 0;
  padding: clamp(1.5rem, 3.5vw, 2.6rem) clamp(1.2rem, 8vw, 10rem);
  box-shadow: none;
  background: #ffffff;
}

body.page-news .news-title-section .news-page-title {
  font-size: clamp(3rem, 8vw, 6.2rem);
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: bold;
}

.news-post-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.news-form-label {
  font-weight: 700;
  color: #222;
}

.news-form-input,
.news-form-select,
.news-form-textarea {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

.news-form-textarea {
  resize: vertical;
  min-height: 180px;
}

.news-form-input:focus,
.news-form-select:focus,
.news-form-textarea:focus {
  outline: none;
  border-color: #0052cc;
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.15);
}

.news-post-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.8rem;
}

.news-post-submit-btn {
  background: #ff6600;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
}

.news-post-submit-btn:hover {
  background: #e55a00;
}

/* 社内報ページ */
.newsletter-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.newsletter-content h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #0f1f3a;
  font-weight: 700;
}

.newsletter-list {
  width: 100%;
}

.newsletter-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.newsletter-item {
  display: flex;
  gap: 1.5rem;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.8rem;
  transition: all 0.3s ease;
}

.newsletter-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: #0052cc;
}

.newsletter-item-preview {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 140px;
  min-height: 180px;
  background: white;
  border-radius: 8px;
  border: 1px solid #ddd;
  overflow: hidden;
}

.newsletter-item-canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.newsletter-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.newsletter-item-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.newsletter-item-title {
  font-size: 1.5rem;
  color: #0f1f3a;
  margin: 0;
  font-weight: 700;
}

.newsletter-item-date {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: #0052cc;
  color: white;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.newsletter-item-description {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.newsletter-item-link {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background: #0052cc;
  color: white;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease;
}

.newsletter-item-link:hover {
  background: #0041a1;
}

/* フッター */
.footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .hero-text {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    padding: 1rem 1rem;
    gap: 1rem;
  }

  .logo h1 {
    font-size: 1.2rem;
    flex: 1 1 100%;
  }

  .navbar {
    flex: 1 1 100%;
    margin: 0;
  }

  .nav-list {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .contact-btn {
    flex: 1 1 100%;
    text-align: center;
  }

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

  .section {
    padding: 1.5rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

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

  .info-container {
    grid-template-columns: 1fr;
  }

  .newsletter-content {
    padding: 2rem 1rem;
  }

  .newsletter-content h2 {
    font-size: 1.5rem;
  }

  .newsletter-item {
    flex-direction: column;
    gap: 1rem;
  }

  .newsletter-item-preview {
    width: 100%;
    min-height: 200px;
  }

  .newsletter-item-title {
    font-size: 1.2rem;
  }

  .newsletter-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .top-latest-news-banner {
    right: 0.75rem;
    left: 0.75rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    max-width: none;
    padding: 0.75rem 0.9rem;
  }
}

