/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth; /* スムーズスクロールでUX/SEOに寄与 */
}
body {
  font-family: 'Inter', 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  color: #333333;
  background-color: #ffffff;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

.desktop-logo {
  max-width: 100%;
}

/* ==========================================================================
   MOBILE HEADER (For Smart Phone & Tablet)
   ========================================================================== */
.mobile-header {
  display: none; /* デスクトップ：非表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}
.mobile-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 20px;
}
.mobile-logo {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Hamburger Menu Button */
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  z-index: 1100;
}
.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: #1a2d42;
  transition: all 0.3s ease;
}

/* Hamburger Active Animation */
.hamburger-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   LAYOUT STRUCTURE (2 Column Layout for Desktop)
   ========================================================================== */
.site-container {
  display: flex;
  min-height: 100vh;
}

/* Left Sidebar Navigation */
.sidebar {
  width: 260px;
  background-color: #f4f3ef;
  padding: 50px 30px;
  position: relative;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
  z-index: 900;
}
.sidebar-inner {
  height: auto;
  position: -webkit-sticky;
  position: sticky;
  top: 50px;
  transition: all 0.3s ease;
}

.main-nav {
  height: 100%;
  margin-block: 100%;
}

.side-nav li {
  margin-bottom: 25px;
}
.side-nav a {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #1a2d42;
  display: block;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}
.side-nav a:hover,
.side-nav a.active {
  color: #1a2d42;
  transform: translateX(5px);
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ==========================================================================
   HERO SECTION (Animated Background)
   ========================================================================== */
.hero {
  height: 75vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgb(56, 57, 59); /* Your tint color */
  mix-blend-mode: multiply;
  z-index: 2;
}

.hero-bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.15);
  transition:
    opacity 2s ease-in-out,
    transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}
.hero-bg.active {
  opacity: 1;
  transform: scale(1);
}
.hero-title {
  position: relative;
  z-index: 3;
  color: #ffffff;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 8px;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.35);
  text-align: center;
}

/* ==========================================================================
   NEWS SECTION
   ========================================================================== */
.news-section {
  padding-block: 60px;
  padding-inline: 40px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.section-title-line {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  border-bottom: 2px solid #1a2d42;
  padding-bottom: 8px;
  margin-bottom: 50px;
  display: inline-block;
  text-transform: uppercase;
  color: #1a2d42;
}

.news-list {
  border-top: 1px solid #e0e0e0;
  overflow-y: scroll;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  max-height: 230px;
  scrollbar-width: thin;
  scrollbar-color: #1a2d42 #fff;
}

.news-item {
  display: flex;
  padding: 25px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
}
.news-date {
  width: 150px;
  color: #777777;
  font-weight: 700;
}
.news-text {
  flex: 1;
  color: #333333;
}

/* ==========================================================================
   GRID SECTIONS (MISSION, VISION, VALUE)
   ========================================================================== */

.grid-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
}

.grid-section:nth-last-child(even) .grid-content {
  order: 2;
}

.grid-section.reverse {
  flex-direction: row-reverse;
}

.grid-content {
  width: 100%;
  height: auto;
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: left;
}
.bg-dark {
  background-color: #1a2d42;
  color: #ffffff;
}
.bg-light {
  background-color: #fbfbfa;
  color: #333333;
}
.grid-image {
  width: 100%;
  image-rendering: optimizeSpeed;
  height: 100%;
  object-fit: cover;
  background-position: center;
  aspect-ratio: 1 / 1;
}

.grid-label {
  font-size: clamp(1.2rem, 4vw + 1rem, 1rem);
  letter-spacing: 4px;
  margin-bottom: 40px;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.8;
  text-align: left;
}
.grid-title {
  font-size: clamp(1rem, 2vw + 1rem, 1rem);
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
}
.grid-desc {
  font-size: clamp(0.5em, 4vw + 0.9rem, 0.7rem);
  line-height: 2;
  max-width: 500px;
  opacity: 0.9;
}

/* VALUEの箇条書きスタイル */
.value-list {
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}
.value-item {
  margin-bottom: 30px;
}
.value-item:last-child {
  margin-bottom: 0;
}
.value-item h4 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 700;
}
.value-item p {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.8;
}

/* ==========================================================================
   CONTACT CTA SECTION
   ========================================================================== */
.contact-cta {
  padding: 100px 0;
  text-align: center;
  background-color: #ffffff;
}
.btn-contact {
  display: inline-block;
  background-color: #1a2d42;
  color: #ffffff;
  padding: 20px 70px;
  border-radius: 35px;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(26, 45, 66, 0.25);
  transition:
    background-color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
}
.btn-contact:hover {
  background-color: #243e5a;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26, 45, 66, 0.35);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #111e2d;
  color: #ffffff;
  padding: 60px 80px 30px 80px;
  font-size: 13px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
  margin-bottom: 30px;
}
.footer-logo {
  width: 150px;
  margin-bottom: 20px;
}
.footer-address {
  font-style: normal;
  line-height: 2;
  color: #cccccc;
}
.footer-nav {
  display: flex;
  gap: 30px;
}
.footer-nav a {
  font-weight: bold;
  letter-spacing: 1px;
  color: #ffffff;
  transition: opacity 0.3s;
}
.footer-nav a:hover {
  opacity: 0.7;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  color: #888888;
}
.footer-bottom a {
  color: #888888;
  transition: color 0.3s;
}
.footer-bottom a:hover {
  color: #ffffff;
}

/* ==========================================================================
   ANIMATION (Scroll Reveal & Interactions)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1),
    transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Smart Phones)
   ========================================================================== */

/* 1. タブレット・中〜小画面用 (max-width: 1024px) */
@media (max-width: 1087px) {
  .desktop-logo {
    max-width: 100px;
  }

  .mobile-header {
    display: block; /* モバイルヘッダーを表示 */
  }

  .site-container {
    flex-direction: column;
    padding-top: 60px; /* 上部ヘッダーの高さ分の余白 */
  }

  /* 左側のサイドバーを全画面スライドメニュー（ハンバーガー裏側）に変化 */
  .sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: #f4f3ef;
    padding: 40px 30px;
    transform: translateX(-100%); /* 初期状態：画面外左へ隠す */
    opacity: 0;
    pointer-events: none;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
  }

  .sidebar.open {
    transform: translateX(0); /* メニュー展開時 */
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-inner {
    position: relative;
    top: 0;
    width: 100%;
    text-align: center;
  }

  .logo {
    display: none; /* メニュー内のロゴは非表示（上部固定バーにあるため） */
  }

  .main-nav {
    margin-block-start: 50px;
  }

  .side-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-block: 0;
  }

  .side-nav li {
    margin-bottom: 0;
  }

  .side-nav a {
    font-size: 18px;
    padding: 12px 0;
  }

  /* グリッドレイアウトの縦スタック化 */

  .grid-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .grid-image {
    height: 350px;
    width: 100%;
  }

  .grid-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }
  .news-section {
    padding: 80px 40px;
  }
  .site-footer {
    padding: 40px 40px 30px 40px;
  }
}

/* 2. スマートフォン極小画面用 (max-width: 768px) */
@media (max-width: 828px) {
  .main-nav {
    margin-block-start: 50px;
  }

  .side-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-block: 5;
  }

  .desktop-logo {
    max-width: 100px;
  }

  .hero-title {
    letter-spacing: 5px;
  }
  .news-item {
    flex-direction: column;
    gap: 8px;
  }

  .news-section {
    padding: 50px 20px;
  }

  .news-date {
    width: auto;
  }

  .grid-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
  }

  .grid-section:nth-last-child(odd) .grid-content {
    order: 1;
  }
  .grid-title {
    font-size: 20px;
  }
  .grid-content {
    padding: 50px 20px;
    aspect-ratio: 1/1;
  }
  .grid-image {
    aspect-ratio: 1/1;
  }

  .site-footer {
    padding: 50px 20px;
  }

  .footer-top {
    flex-direction: column;
    gap: 30px;
  }
  .footer-nav {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 15px 20px;
  }
}
