@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

/* 共通リセット */
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body, h2, p, ul, li, nav, header, section, footer, button, form, input, textarea {
  margin: 0;
  padding: 0;
}
body {
  font-family: "メイリオ", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  border-top: 4px solid #90D7EC;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  animation: pageFadeIn 1.2s ease-out both;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }

  .section.section-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .online-shop-images a {
    transition: none;
  }

  .online-shop-images a:hover,
  .online-shop-images a:focus-visible,
  .online-shop-images a:active {
    transform: none;
  }

  .scroll-btn:active,
  #hero-header .scroll-btn:active,
  #contact-form button:active {
    transform: none;
  }

  #hero-header .logo {
    animation: none;
  }

  #footer a {
    transition: color 0.3s ease;
  }

  #footer a:hover {
    transform: none;
  }

  .fixed-nav .menu ul li {
    opacity: 1;
    animation: none;
    filter: none;
  }
}

h1,
h2,
h3,
h4,
.news-title,
.nav-logo,
.fixed-nav .menu {
  font-family: "Zen Maru Gothic", "メイリオ", sans-serif;
  font-weight: 700;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #90D7EC, #FFFF00);
  z-index: 10002;
  pointer-events: none;
  transition: width 0.12s linear;
}

/* 画像とiframeのレスポンシブ対応 */
img {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

iframe {
  max-width: 100%;
  box-sizing: border-box;
}

/* 各セクション */
.section {
  padding: 60px 20px;
  border-bottom: 1px solid #C0C0C0;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.section.section-fade {
  opacity: 0;
  transition: opacity 0.9s ease;
}

.section.section-fade.is-visible {
  opacity: 1;
}

/* 固定ナビゲーションバー */
.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 9999;
  transition: all 0.4s ease;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-sizing: border-box;
  overflow: visible;
}

.fixed-nav.scrolled {
  background-color: rgba(144, 215, 236, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative; /* ハンバーガーメニューの基準点にする */
  box-sizing: border-box;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-logo > a:first-child {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.fixed-nav.scrolled .nav-logo > a:first-child {
  color: #333;
}

.nav-logo > a:first-child:hover {
  color: #FFFF00;
}

.nav-logo .x-icon-link,
.nav-logo .youtube-icon-link {
  display: flex;
  align-items: center;
  color: #fff;
  transition: opacity 0.3s ease;
}

.fixed-nav.scrolled .nav-logo .x-icon-link,
.fixed-nav.scrolled .nav-logo .youtube-icon-link {
  color: #333;
}

.nav-logo .x-icon-link:hover,
.nav-logo .youtube-icon-link:hover {
  opacity: 0.7;
}

.nav-logo .x-icon,
.nav-logo .youtube-icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.fixed-nav .menu ul li {
  opacity: 0;
  animation: navSmokeIn 0.8s ease-out forwards;
}

.fixed-nav .menu ul li:nth-child(1) {
  animation-delay: 0.08s;
}

.fixed-nav .menu ul li:nth-child(2) {
  animation-delay: 0.16s;
}

.fixed-nav .menu ul li:nth-child(3) {
  animation-delay: 0.24s;
}

.fixed-nav .menu ul li:nth-child(4) {
  animation-delay: 0.32s;
}

.fixed-nav .menu ul li:nth-child(5) {
  animation-delay: 0.4s;
}

.fixed-nav .menu ul li:nth-child(6) {
  animation-delay: 0.48s;
}

@keyframes navSmokeIn {
  from {
    opacity: 0;
    filter: blur(8px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* ハンバーガーメニューアイコン（デフォルトは非表示） */
.hamburger-menu {
  display: none;
  width: 30px;
  height: 25px;
  cursor: pointer;
  position: relative;
  z-index: 10001;
}

.hamburger-menu span {
  display: block;
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.4s ease;
}

.hamburger-menu span:nth-child(1) {
  top: 0;
}

.hamburger-menu span:nth-child(2) {
  top: 11px;
}

.hamburger-menu span:nth-child(3) {
  bottom: 0;
}

/* ハンバーガーメニューがアクティブな際のXマーク表示 */
.hamburger-menu.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* ヒーローヘッダー */
#hero-header {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  transition: background-image 1s ease-in-out;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ヒーロー画像用コンテナ */
.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 個々のヒーロー画像 */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* フェードアニメーション */
.fade-animation {
  animation: fadeIn 1s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* スライドアニメーション */
.slide-animation {
  animation: slideIn 1s ease forwards;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ロゴ画像（中央配置、サイズ250×183px） */
#hero-header .logo {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 183px;
  z-index: 3;
  animation: heroLogoFloat 4.5s ease-in-out infinite;
}

@keyframes heroLogoFloat {
  0%, 100% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, calc(-50% - 8px));
  }
}

#hero-header .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#hero-header .hero-logo-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#hero-header .hero-logo-button:focus {
  outline: none;
}

#hero-header .hero-logo-button:focus-visible {
  outline: 2px solid #FFFF00;
  outline-offset: 4px;
  border-radius: 4px;
}

/* サブテキスト（ヘッダー左上、メニュー下、左寄せ） */
#hero-header .sub-text {
  display: none !important;
  position: absolute;
  top: 120px; /* 60pxから120pxに変更して一段下げる */
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: #fff;
  font-size: 1.8rem; /* 2.0remから1.8remにサイズダウン */
  text-align: center;
  transition: opacity 1s ease;
  white-space: nowrap; /* テキストを一行に表示 */
  width: 90%;
  max-width: 600px;
}

/* ヒーロー画像用オーバーレイ */
#hero-header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2;
}

/* 社訓テキスト（位置：top: calc(50% + 250px)） */
#hero-header .hero-text {
  position: absolute;
  top: calc(50% + 50px);
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  max-width: 90%;
  height: auto;
  object-fit: contain;
  transition: opacity 1s ease;
}

/* ヘッダー内スクロールボタン（右寄せに配置） */
#hero-header .scroll-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 4;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 1.05rem;
  line-height: 1;
  background-color: #90D7EC;
  color: #333;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#hero-header .scroll-btn:active {
  background-color: #FFFF00;
  color: #333;
  transform: translateY(2px) scale(0.98);
  box-shadow: none;
}

/* 一般のスクロールボタン（ヘッダー以外）：右寄せ */
.scroll-btn {
  display: block;
  margin: 20px 20px 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  background-color: #90D7EC;
  color: #333;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.scroll-btn:focus {
  outline: none;
}
.scroll-btn:focus-visible {
  outline: 2px solid #FFFF00;
  outline-offset: 4px;
}
.scroll-btn:active {
  background-color: #FFFF00;
  color: #333;
  transform: translateY(2px) scale(0.98);
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  #hero-header .scroll-btn:hover,
  .scroll-btn:hover {
    background-color: #FFFF00;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
}

/* 各セクション見出し */
.section > h2,
.data-visualization-container h3 {
  position: relative;
  display: table;
  margin: 0 auto 34px;
  padding-bottom: 12px;
  color: #333;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0;
}

.section > h2 {
  font-size: calc(1.7rem + 2pt);
}

.data-visualization-container h3 {
  font-size: 1.6rem;
}

.section > h2::after,
.data-visualization-container h3::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 64px;
  height: 2px;
  background-color: #90D7EC;
  transform: translateX(-50%);
}

/* 各セクション本文（企業情報以外は中央揃え） */
#news p,
#service p,
#company-message p,
#contact p {
  text-align: center;
}

.section > p,
.service-description,
.data-visualization-container > p,
#footer p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.service-overview {
  max-width: 960px;
  margin: 0 auto;
}

.service-block {
  padding: 28px 0 34px;
  border-top: 1px solid rgba(144, 215, 236, 0.45);
}

.service-block:first-child {
  padding-top: 0;
  border-top: none;
}

.service-block:last-child {
  padding-bottom: 0;
}

.service-lead {
  font-size: calc(1rem + 4pt);
  font-weight: 700;
  margin-bottom: 8px;
}

.service-description {
  max-width: 720px;
  margin: 0 auto;
}

.service-description a {
  color: #007FA3;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.service-description a:hover {
  color: #005F7A;
}

#company-info ul,
#company-info p,
#company-info dl {
  text-align: left;
}

/* 企業情報コンテナ */
.company-info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.company-details {
  flex: 1;
  min-width: 300px;
}

.company-map {
  flex: 1;
  min-width: 300px;
  min-height: 300px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.company-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
}

/* 企業情報リストのスタイル調整 */
.company-profile {
  margin: 0;
}

.company-profile-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(192, 192, 192, 0.55);
}

.company-profile-row:first-child {
  border-top: 1px solid rgba(192, 192, 192, 0.55);
}

.company-profile dt,
.company-profile dd {
  margin: 0;
  line-height: 1.7;
}

.company-profile dt {
  color: #007FA3;
  font-family: "Zen Maru Gothic", "メイリオ", sans-serif;
  font-weight: 700;
}

.company-profile dd {
  color: #333;
}

/* ダミーお知らせテーブル */
.news-table {
  width: 80%;
  margin: 20px auto;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(144, 215, 236, 0.45);
}
.news-table th {
  border: none;
  border-bottom: 1px solid rgba(144, 215, 236, 0.45);
  padding: 12px 8px;
  text-align: center;
  background-color: #90D7EC;
  color: #333;
}
.news-table th:nth-child(1) {
  width: 20%; /* 日付の列は全体の20%（2:8の比率） */
}
.news-table th:nth-child(2) {
  width: 80%; /* タイトルの列は全体の80% */
}
.news-table td {
  border: none;
  border-bottom: 1px solid rgba(192, 192, 192, 0.35);
  padding: 12px 10px;
  text-align: left;
  background-color: #fff;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.news-table tr:last-child td {
  border-bottom: none;
}
.news-table tr:hover {
  transform: translateY(-1px);
}
.news-table tr:hover td {
  background-color: rgba(144, 215, 236, 0.12);
}
.news-table tbody td:first-child {
  color: #007FA3;
  font-weight: 700;
  white-space: nowrap;
}

/* ご挨拶テーブル：枠線非表示、最下段は右寄せ */
.greeting-table {
  width: 80%;
  max-width: 820px;
  margin: 20px auto;
  border-collapse: collapse;
}
.greeting-table, 
.greeting-table th, 
.greeting-table td {
  border: none;
}
.greeting-table td {
  padding: 8px;
  text-align: left;
}
.greeting-table tr:last-child td {
  text-align: right;
}

/* サービス内アイコンコンテナ */
.service-icons {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin-top: 24px;
}

/* 各アイコンとテーブルを含むコンテナ（幅150px固定） */
.service-icon-container {
  width: 150px;
  text-align: center;
}

/* アイコン画像 */
.service-icon-container img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

/* サービス情報テーブル：文字サイズを0.7remに設定 */
.service-info-table {
  width: 100%;
  margin-top: 5px;
  border-collapse: collapse;
}
.service-info-table td {
  font-size: 0.7rem;
  padding: 2px;
  text-align: center;
  word-wrap: break-word;
}

/* オンラインショップ運営の画像コンテナ */
.online-shop-images {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 24px auto 0;
  max-width: 900px;
}

.online-shop-images a {
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.online-shop-images img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.online-shop-images a:hover,
.online-shop-images a:focus-visible {
  transform: translateY(-4px) scale(1.03);
  filter: brightness(1.06);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.online-shop-images a:active {
  transform: translateY(-1px) scale(1.01);
}

.service-video-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 30px auto 0;
  width: 100%;
}

.service-video {
  display: block;
  width: min(100%, 720px);
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: 8px;
}

.service-video-sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #333;
  font-size: 0.95rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.service-video-sound-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #90D7EC;
  cursor: pointer;
}

/* お問い合わせフォーム */
#contact-form {
  max-width: 600px;
  margin: 0 auto;
}
#contact-form label {
  display: block;
  margin-bottom: 5px;
}
#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #C0C0C0;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: #90D7EC;
  box-shadow: 0 0 3px rgba(144, 215, 236, 0.5);
}
#contact-form button {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #90D7EC;
  color: #333;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
#contact-form button:hover {
  background-color: #FFFF00;
  color: #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#contact-form button:active {
  transform: translateY(2px) scale(0.99);
  box-shadow: none;
}
#contact-form button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
#contact-form button:disabled:hover {
  background-color: #ccc;
  box-shadow: none;
}
#contact-form button:disabled:active {
  transform: none;
}

/* お問い合わせメッセージ */
.contact-message {
  max-width: 600px;
  margin: 0 auto 20px;
  padding: 15px;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
}

.contact-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.contact-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* フッター */
#footer {
  background-color: rgba(144, 215, 236, 0.1);
  text-align: center;
  padding: 36px 20px 30px;
  border-top: 2px solid #90D7EC;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

#footer .footer-brand {
  margin-bottom: 18px;
}

#footer .footer-logo {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto 8px;
}

#footer .footer-tagline {
  color: #666;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 18px;
  margin: 0 auto 18px;
}

#footer p {
  margin-bottom: 0;
}
#footer a {
  color: #333;
  position: relative;
  align-items: center;
  display: inline-block;
  padding: 2px 3px;
  transition: color 0.3s ease, transform 0.3s ease;
}
#footer a:hover {
  color: #007FA3;
  transform: translateY(-2px);
}

#footer a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #FFFF00;
  transition: width 0.3s ease, background-color 0.3s ease;
}

#footer a:hover::after {
  width: 100%;
}

#footer .footer-social-link {
  display: inline-flex;
  gap: 6px;
}

#footer .footer-social-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

#footer .copyright {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(144, 215, 236, 0.35);
}

/* データビジュアライゼーションコンテナ */
.data-visualization-container {
  margin: 40px auto 20px;
  max-width: 900px;
  padding: 20px;
  background-color: transparent;
  border-top: 1px solid rgba(144, 215, 236, 0.45);
  border-radius: 0;
  box-shadow: none;
}

.data-visualization-container p {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* チャートセクション */
.chart-section {
  margin-bottom: 40px;
  padding: 20px;
  background-color: rgba(144, 215, 236, 0.04);
  border-radius: 4px;
  box-shadow: none;
  border: 1px solid rgba(144, 215, 236, 0.18);
}

/* チャートヘッダー */
.chart-header {
  margin-bottom: 20px;
}

.chart-header h4 {
  font-size: 1.2rem;
  color: #333;
  margin: 0;
  padding: 0 0 0 12px;
  border-left: 3px solid #90D7EC;
  line-height: 1.5;
  letter-spacing: 0;
}

/* チャートコンテナ */
.chart-container {
  height: 400px;
  position: relative;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

/* チャート説明テキスト */
.chart-note {
  font-size: 0.85rem;
  color: #666;
  text-align: right;
  margin-top: 5px;
  font-style: italic;
}

/* レスポンシブ対応：画面幅950px以上の場合 */
@media screen and (min-width: 950px) {
  /* 769px以上の場合、メニューを通常表示（横並び） */
  .fixed-nav .menu {
    display: flex;
    position: relative;
    transform: none;
    visibility: visible;
    opacity: 1;
    width: auto;
    height: auto;
    background-color: transparent;
    padding-top: 0;
    right: auto;
    top: auto;
  }
  
  .fixed-nav .menu ul {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    flex-direction: row;
  }
  
  .fixed-nav .menu ul li {
    list-style: none;
    border-bottom: none;
  }
  
  .fixed-nav .menu ul li a {
    color: #fff;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.35s ease, background-color 0.35s ease;
  }
  
  .fixed-nav.scrolled .menu ul li a {
    color: #333;
  }
  
  .fixed-nav .menu ul li a:hover,
  .fixed-nav .menu ul li a.active {
    color: #FFFF00;
  }
  
  .fixed-nav .menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FFFF00;
    transition: width 0.35s ease, opacity 0.35s ease;
    opacity: 0;
  }
  
  .fixed-nav .menu ul li a:hover::after,
  .fixed-nav .menu ul li a.active::after {
    width: 100%;
    opacity: 1;
  }
  
  /* ハンバーガーメニューは非表示 */
  .hamburger-menu {
    display: none !important;
  }
}

/* レスポンシブ対応：画面幅949px以下の場合（タブレット・スマートフォンサイズ） */
@media screen and (max-width: 949px) {
  /* 固定ナビゲーションバーのレスポンシブ対応 */
  .nav-container {
    padding: 10px 20px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  /* ハンバーガーメニューを表示 */
  .fixed-nav .hamburger-menu {
    display: block !important;
    z-index: 100000;
    pointer-events: auto;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
  }
  
  /* タップ領域を拡大 */
  .fixed-nav .hamburger-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
  }
  
  .fixed-nav.scrolled .hamburger-menu span {
    background-color: #333;
  }
  
  .fixed-nav .hamburger-menu.active span {
    background-color: #fff !important;
  }
  
  /* メニューを画面外に配置（初期状態） */
  .fixed-nav .menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.98);
    padding-top: 60px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    overflow-y: hidden;
    z-index: 10000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
  }
  
  /* メニューをアクティブにした時の表示 */
  .fixed-nav .menu.active {
    transform: translateX(0);
    overflow-y: auto;
  }
  
  .fixed-nav .menu ul {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .fixed-nav .menu ul li {
    display: block;
    margin: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .fixed-nav .menu ul li a {
    display: block;
    padding: 15px 20px;
    text-align: left;
    color: #fff !important;
    transition: background-color 0.35s ease, color 0.35s ease;
  }
  
  .fixed-nav .menu ul li a:hover,
  .fixed-nav .menu ul li a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFF00 !important;
  }
  
  /* ロゴのサイズ調整 */
  #hero-header .logo {
    width: 190px;
    height: 139px;
  }
  
  /* 社訓テキストの調整 */
  #hero-header .hero-text {
    width: 90%;
    max-width: 500px;
    height: auto;
  }
  
  /* サブテキストの調整 */
  #hero-header .sub-text {
    display: none !important;
    font-size: 1.4rem;
    max-width: 90%;
  }
  
  /* 各セクションのパディング調整 */
  .section {
    padding: 40px 15px;
  }

  .service-overview {
    max-width: 620px;
  }

  .service-block {
    padding: 24px 0 30px;
  }
  
  /* お知らせテーブルのサイズ調整 */
  .news-table {
    width: 95%;
    max-width: 600px;
    margin: 20px auto;
  }
  
  /* タブレットサイズでのテーブル列幅調整 */
  .news-table th:nth-child(1),
  .news-table td:nth-child(1) {
    width: 25%;
    min-width: 90px;
    white-space: nowrap;
  }
  
  .news-table th:nth-child(2),
  .news-table td:nth-child(2) {
    width: 75%;
  }
  
  /* 企業情報と地図の縦並び */
  .company-info-container {
    flex-direction: column;
  }
  
  .company-details, .company-map {
    width: 100%;
  }

  .company-profile-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 13px 0;
  }

  .online-shop-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 420px;
    gap: 16px;
  }

  .chart-container {
    height: auto;
    min-height: 370px;
    padding-bottom: 0;
  }

  .chart-container canvas {
    display: block;
    width: 100% !important;
    height: 300px !important;
    max-height: 300px;
  }

  .chart-note {
    font-size: calc(0.85rem - 2pt);
    line-height: 1.5;
    text-align: left;
    margin: 8px 0 0;
    overflow-wrap: break-word;
  }
}

/* レスポンシブ対応：画面幅600px以下の場合（スマートフォンサイズ） */
@media screen and (max-width: 600px) {
  .nav-container {
    padding: 10px 15px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .section {
    padding: 36px 15px;
  }

  .section > h2,
  .data-visualization-container h3 {
    margin-bottom: 26px;
    padding-bottom: 10px;
  }

  .section > h2 {
    font-size: calc(1.5rem + 2pt);
  }

  .data-visualization-container h3 {
    font-size: 1.4rem;
  }
  
  #hero-header .hero-text {
    max-width: 85%;
  }
  
  #hero-header .sub-text {
    display: none !important;
    font-size: 1.4rem;
  }
  
  .greeting-table td, .news-table td, .news-table th {
    font-size: 0.9rem;
  }
  
  /* お知らせテーブルの幅をお問い合わせフォームと同じに調整 */
  .news-table {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    /* スマートフォンでの読みやすさを向上 */
    border-radius: 8px;
  }
  
  /* スマートフォンでのテーブル列幅を日付:3, タイトル:7の比率に調整 */
  .news-table th:nth-child(1),
  .news-table td:nth-child(1) {
    width: 30%;
    min-width: 100px; /* 2025年12月31日が一行で表示される最低幅 */
    white-space: nowrap; /* 日付を一行で表示 */
    font-size: 0.85rem; /* 日付列のフォントサイズを少し小さく */
  }
  
  .news-table th:nth-child(2),
  .news-table td:nth-child(2) {
    width: 70%;
  }
  
  /* スマートフォンでのテーブルセルのパディング調整 */
  .news-table td, .news-table th {
    padding: 8px 6px;
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  /* サービス情報テーブルの文字サイズをさらに小さく */
  .service-info-table td {
    font-size: 0.6rem;
  }

  .online-shop-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 420px;
    gap: 14px;
    margin-top: 18px;
  }

  .service-video-container {
    margin-top: 22px;
  }

  .service-block {
    padding: 20px 0 26px;
  }

  .service-description {
    max-width: 100%;
  }

  .service-icons {
    margin-top: 18px;
    gap: 16px;
  }
  
  /* データビジュアライゼーションのレスポンシブ調整 */
  .chart-container {
    height: auto;
    min-height: 370px;
    padding-bottom: 0;
  }

  .chart-container canvas {
    height: 300px !important;
    max-height: 300px;
  }

  .chart-note {
    font-size: calc(0.85rem - 2pt);
    line-height: 1.5;
    text-align: left;
    overflow-wrap: break-word;
  }
  
  .chart-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .chart-header h4 {
    margin-bottom: 10px;
  }
  
  .toggle-button {
    align-self: flex-end;
  }
  
  .data-visualization-container {
    margin-top: 30px;
    padding: 18px 6px 0;
  }

  .data-visualization-container p {
    margin-bottom: 22px;
  }
  
  .chart-section {
    margin-bottom: 28px;
    padding: 14px 10px;
  }

  .greeting-table {
    margin: 12px auto;
  }

  #contact-form input,
  #contact-form textarea {
    margin-bottom: 12px;
  }

  .company-info-container {
    gap: 22px;
    margin-top: 22px;
  }

  #footer {
    padding: 30px 15px 26px;
  }

  #footer .footer-brand {
    margin-bottom: 16px;
  }

  #footer .footer-logo {
    width: 104px;
  }

  .footer-links {
    gap: 8px 14px;
    margin-bottom: 16px;
  }

  #footer .copyright {
    font-size: calc(0.9rem - 2pt);
  }
}
