/* Base styles */
:root {
  --primary: #f87d08;
  --secondary: #44b349;
  --text-dark: #333;
  --text-light: #777;
  --bg-light: #f8f8f8;
  --bg-dark: #333;
  --max-width: 1200px;
  --header-height: 100px;
  --header-height-shrink: 70px;
  --breakpoint-tablet: 768px;
  --breakpoint-mobile: 576px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "m-plus-rounded-1c", tondo;
  color: var(--text-dark);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: var(--max-width);
  width: 90%;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn.outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.section-title {
  font-size: 5.5rem;
  margin-bottom: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.jp-title {
  font-size: 1rem;
  color: var(--text-light);
  position: relative;
  bottom: 20px;
  margin-left: 10px;
}

/* Header styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  height: var(--header-height);
  border-radius: 0;
  pointer-events: auto;
}

/* 縮小時のヘッダー */
.header.compact {
  top: 16px;
  max-width: 113.5rem;
  width: 94%;
  margin: 0 auto;
  border-radius: 16px;
  height: var(--header-height-compact, 60px);
}

/* スマホ用センター領域はデフォルト非表示（PC/タブレット） */
.header-center,
.logo--mobile {
  display: none;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 0;
  gap: 0px;
  /* 要素間の間隔 */
}

/* 縮小時のヘッダーコンテナ */
.header.compact .header-container {
  max-width: 113.5rem;
  width: 94%;
  margin: 0 auto;
  padding: 0.625rem 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  /* ロゴと言語切替の間隔 */
  padding-left: 40px;
  background-color: transparent;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 40px;
  background-color: transparent;
  position: relative;
  z-index: 1;
}

.header.shrink {
  height: var(--header-height-shrink);
}

.logo {
  display: flex;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  /* ロゴサイズを固定 */
}

.logo img {
  height: 60px;
  transition: height 0.3s ease;
}

.header.compact .logo img {
  height: 52px;
  /* 縮小時のサイズ */
}

.header.shrink .logo img {
  height: 50px;
}

/* 追加するCSS - 画像の切り替え用 */
.normal-logo,
.compact-logo {
  transition: opacity 0.3s ease;
}

/* ロゴ画像のデバイス別表示制御 */
.normal-logo.desktop-logo {
  display: block;
}

.mobile-logo {
  display: none;
}

/* コンパクトモード時の画像表示切り替え */
.header:not(.compact) .compact-logo {
  display: none;
}

.header.compact .normal-logo {
  display: none;
}

.header.compact .compact-logo {
  display: none;
}

.tagline {
  margin-left: 10px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.main-nav {
  display: flex;
  align-items: center;
  margin-left: 0;
}

.main-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.125rem;
  /* メニュー項目間の間隔 */
}

/* メニュー項目の基本スタイル */
.main-nav li {
  display: flex;
  align-items: center;
}

/* メニューリンクのスタイル - 幅を固定 */
.main-nav a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px 15px;
  width: 130px;
  /* 固定幅 */
  min-width: 120px;
  /* 最小幅 - 言語によって必要なスペースの最大値に基づいて調整 */
  position: relative;
  color: var(--text-dark);
  font-weight: bold;
  text-decoration: none;
}

/* 現在のページや選択中の項目のスタイル */
.main-nav a.active,
.main-nav a:hover {
  color: var(--primary);
}

/* 下線の装飾 */
.main-nav a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.main-nav a:hover:after,
.main-nav a.active:after {
  width: 100%;
}

.hamburger-menu {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  margin: 4px 0;
  border-radius: 2px;
}

.menu-close {
  display: none;
}

/* サイト内検索ボックス */
.search-box {
  margin-left: 1.25rem;
  flex-shrink: 0;
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 2.25rem;
}

.search-box form {
  display: flex;
  align-items: center;
  position: relative;
  height: 100%;
  width: 100%;
}

/* 検索アイコン（コンパクトモード時のみ表示） */
.search-compact-icon {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background-color: #5d5d5d;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 11;
  min-width: 2.25rem;
  flex-shrink: 0;
  flex-basis: 2.25rem;
  box-sizing: border-box;
  padding: 0;
}

/* コンパクト時のみ検索アイコンを表示 */
.header.compact .search-compact-icon {
  display: flex;
}

/* ホバー時のスタイル */
.search-compact-icon:hover {
  background-color: #5d5d5d;
  transform: scale(1.05);
}

/* 検索入力ラッパー - 通常時 */
.search-input-wrapper {
  width: 220px;
  height: 36px;
  border-radius: 8px;
  background-color: #ececec;
  overflow: hidden;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  padding-right: 0.25rem !important;
  box-sizing: border-box;
}

/* コンパクトモード時の入力ラッパー - 初期状態 */
.header.compact .search-input-wrapper {
  position: absolute;
  right: 36px;
  top: 0;
  width: 0;
  height: 36px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translateX(20px);
  transition: width 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  border-radius: 8px;
  padding-right: 0 !important;
  /* コンパクトモードではパディングなし */
}

/* コンパクトモード時の入力ラッパー - 表示状態 */
.header.compact .search-input-wrapper.show {
  width: 14.375rem;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* 検索入力フィールド */
.search-box input[type="text"] {
  flex: 1;
  height: 100%;
  padding: 0 0 0 15px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
}

.search-box input[type="text"]::placeholder {
  color: #5d5d5d;
}

/* 検索ボタン - 通常時 */
.search-input-wrapper .search-button {
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 11;
  padding: 0;
  margin-right: 0.25rem;
  min-width: 2rem;
}

/* 検索アイコン画像 */
.search-icon-img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* コンパクトモード時の検索ボタンを非表示 */
.header.compact .search-input-wrapper .search-button {
  display: none !important;
  /* 強制的に非表示 */
}

/* フォーカス時のスタイル */
.search-input-wrapper:focus-within {
  box-shadow: 0 0 0 2px rgba(68, 179, 73, 0.2);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .search-input-wrapper {
    width: 200px;
  }

  .header.compact .search-input-wrapper.show {
    width: 200px;
  }
}

@media (max-width: 576px) {

  /* 小さい画面では常に表示 */
  .header.compact .search-input-wrapper {
    position: static;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    padding-right: 10px !important;
  }

  /* 小さい画面ではボタンを表示（通常モードと同様） */
  .header.compact .search-input-wrapper .search-button {
    display: flex !important;
  }

  .header.compact .search-compact-icon {
    display: none;
  }
}

/* レスポンシブ対応 */
/* 大画面（4K）対応 */
@media screen and (min-width: 2560px) {
  .header.compact {
    width: 90%;
    /* 大画面では画面幅の80%に制限 */
    max-width: 2560px;
    /* より大きな最大幅を設定 */
  }
}

/* さらに大きな画面（5K以上）対応 */
@media screen and (min-width: 5120px) {
  .header.compact {
    width: 90%;
    /* 超大画面では画面幅の70%に制限 */
    max-width: 3840px;
    /* さらに大きな最大幅 */
  }
}

@media (max-width: 768px) {
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .main-nav li {
    margin: 5px;
  }

  .main-nav a {
    min-width: 100px;
    /* 小さい画面では幅を縮小 */
    font-size: 16px;
    /* フォントサイズも調整 */
  }
}

.lang-switch {
  display: flex;
  align-items: center;
  margin-right: 0;
  margin-left: 15px;
  flex-shrink: 0;
  /* サイズを固定 */
}

.lang-switch__item {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Tondo", sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-light);
  padding: 5px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.lang-switch__item.is-active {
  font-weight: bold;
  color: var(--text-dark);
}

.lang-switch__item:hover {
  color: var(--primary);
}

.lang-switch__separator {
  margin: 0 5px;
  color: var(--text-light);
}

/* PC・タブレット表示とスマホ表示で言語切替の表示制御 */
.lang-switch.desktop-only {
  display: flex;
}

.lang-switch.mobile-first {
  display: none;
}

@media screen and (min-width: 1921px) {
  .container {
    max-width: 1440px;
    margin: 0 auto;
  }

  .header.compact {
    width: 90%;
    max-width: 1920px;
  }

  /* 比率を維持しつつ拡大 */
  body {
    font-size: calc(16px + 0.2vw);
  }
}

@media (max-width: 1024px) {
  .header-left {
    padding-left: 20px;
  }

  .header-right {
    padding-right: 20px;
  }

  .main-nav ul {
    gap: 20px;
  }

  .header.compact {
    width: 96%;
  }

  .header.compact .header-container {
    width: 96%;
  }

  .search-input-wrapper {
    width: 200px;
  }
}

/* タブレットレスポンシブ調整（768px～1023px） */
@media (max-width: 1023px) and (min-width: 768px) {
  .header-container {
    padding: 0.8rem 0;
  }

  .main-nav a {
    width: 110px;
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .search-input-wrapper {
    width: 180px;
  }
}

@media (max-width: 768px) {
  .header.compact {
    width: 96%;
  }

  .header.compact .header-container {
    width: 98%;
  }

  .logo {
    flex-shrink: 0;
    margin-right: auto;
  }

  .main-nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* 縮小時の検索ボックス */
  .search-box {
    transform: scale(0.9);
    transition: all 0.3s ease;
  }
}

/* スマホレイアウト（767px以下） */
@media (max-width: 767px) {

  /* ヘッダーレイアウト変更 */
  .header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }


  .header-left {
    grid-column: 1 / 2;
    display: flex;
    align-items: center;
  }

  .header-center {
    grid-column: 2 / 3;
    display: flex;
    justify-content: center;
  }

  .header-right {
    grid-column: 3 / 4;
    display: flex;
    justify-content: flex-end;
    padding-right: 0;
  }

  .logo--mobile {
    display: block;
  }

  .header__logo-image--mobile {
    height: 24px;
    /* 必要に応じて調整 */
  }

  /* PC/タブレット用ロゴはスマホでは非表示 */
  .logo--desktop {
    display: none !important;
  }

  .lang-switch {
    margin-left: 0;
  }

  /* ハンバーガーメニューを表示 */
  .hamburger-menu {
    display: inline-block;
    position: relative;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    background-image: none;
    line-height: 0;
    cursor: pointer;
    z-index: 3001;
  }

  .hamburger-menu::before,
  .hamburger-menu::after {
    content: none;
  }

  .hamburger-menu .hamburger-bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
  }

  /* ハンバーガーメニュー開閉時のアニメーション */
  .hamburger-menu .hamburger-bar:nth-child(1) {
    top: 0;
  }

  .hamburger-menu .hamburger-bar:nth-child(2) {
    top: 9.5px;
  }

  .hamburger-menu .hamburger-bar:nth-child(3) {
    top: 19px;
  }

  /* 開閉アニメーション（X形） */
  .hamburger-menu.active .hamburger-bar:nth-child(1) {
    top: 9.5px;
    transform: rotate(45deg);
  }

  .hamburger-menu.active .hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active .hamburger-bar:nth-child(3) {
    top: 9.5px;
    transform: rotate(-45deg);
  }

  /* ナビゲーションをオーバーレイ表示に変更 */
  .main-nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    transform: translateY(-8%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 2000;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    pointer-events: none;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* 縦並び */
  .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
    padding: 0;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 15px;
    justify-content: flex-start;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
  }

  .menu-close {
    display: block;
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: 0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }

  /* メニュー項目の縦並び */
  .header__nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .header__nav-link {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
  }

  /* ヘッダーの高さ調整 */
  .header,
  .header.compact {
    height: var(--header-height-compact);
  }

  /* 検索ボックスは非表示に */
  .search-box {
    display: none;
  }
}

@media (max-width: 576px) {
  .search-box {
    width: 100%;
    margin-left: 0;
    margin-top: 15px;
    order: 4;
  }

  .main-nav {
    order: 3;
  }

  .search-input-wrapper {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 12px 16px;
    /* 小さい画面ではパディングを小さく */
  }
}

/* Hero section */
.hero {
  position: relative;
  padding-top: 0;
  padding-bottom: 80px;
  background-color: var(--bg-light);
  text-align: center;
  z-index: 0;
}

.hero-logo {
  max-width: 300px;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-dark);
  font-family: "Tondo", sans-serif;
}

/* メインビジュアルスライダーのスタイル */
.hero-slider {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  margin: calc(var(--header-height) + 1rem) auto 0;
  max-width: 94%;
  background-color: #fff;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
  margin: 0;
  padding: 0;
  border: none;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

/* 動画とその最終フレームに共通のスタイル */
#main-video,
.video-end-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02) translateY(-1px);
  transform-origin: center center;
}

/* その他のスライド画像のスタイル */
.image-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-slide {
  background-color: #fff;
  padding-bottom: 1px;
}

.video-end-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.video-fix {
  transform: scale(1.02) !important;
}

/* スライダー上のコンテンツ - 既存のhero-contentを拡張 */
.hero-slider .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 3;
  width: 90%;
}

.hero-slider .hero-logo {
  max-width: 300px;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  /* ロゴが見やすいようにシャドウ追加 */
}

.hero-slider .hero-tagline {
  font-size: 1.2rem;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  /* テキストが見やすいようにシャドウ追加 */
}

/* スライダーナビゲーション */
.slider-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
  padding: 6px 10px;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.nav-dot {
  width: 30px;
  height: 6px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.nav-dot.active {
  background-color: white;
  width: 40px;
}

/* 必要になったらONにしてください
スライドに薄暗いオーバーレイを追加（テキストの視認性向上）
.slide::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.3);
z-index: 1;
}
*/

/* マウスホバー時のエフェクト */
.nav-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.nav-dot.active {
  background-color: white;
  width: 40px;
}

/* SNS ナビゲーション */
.sns-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 3;
  padding: 6px 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* JavaScriptで可視化する際に追加するクラス */
.sns-nav.visible {
  opacity: 1;
  visibility: visible;
}

/* SNS アイコン画像のスタイル */
.sns-icon img {
  object-fit: contain;
  /* 画像の縦横比を保持 */
}

.sns-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.sns-icon:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* SNSアイコン個別スタイル */
.sns-icon.youtube:hover {
  color: #ff0000;
}

.sns-icon.line:hover {
  color: #06c755;
}

.sns-icon.instagram:hover {
  color: #e4405f;
}

.sns-icon.twitter:hover {
  color: #1da1f2;
}

/* 表示状態のクラス */
.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* レスポンシブ対応 */
@media (max-width: 113rem) {
  .hero-slider {
    height: calc(44.5 / 113 * 100vw);
    /* 113:44.5の比率を維持 */
  }
}

@media (max-width: 120rem) {

  /* 1920px相当 */
  .hero-slider {
    width: 94%;
    /* コンテナと同じ幅の割合 */
    height: calc((44.5 / 113) * 94vw);
    /* アスペクト比を維持 */
  }
}

@media (max-width: 768px) {
  .hero-slider {
    height: auto;
    min-height: 350px;
    max-height: 450px;
    margin-top: calc(var(--header-height) + 15px);
    /* モバイル用にマージン調整 */
  }
}

@media (max-width: 576px) {
  .hero-slider {
    min-height: 300px;
  }

  .hero-slider .hero-logo {
    max-width: 220px;
  }

  .hero-slider .hero-tagline {
    font-size: 1rem;
  }
}

/* About section */
.about {
  padding: 120px 0 100px;
  background-color: var(--bg-light);
  position: relative;
}

.about .section-title {
  margin-bottom: 32px;
  color: var(--primary);
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
  position: relative;
}

.about-content {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  position: relative;
}

.about-image {
  flex: 1;
  position: relative;
  padding-top: 20px;
}

.about-image img {
  width: 100%;
  display: block;
}

.about-text {
  flex: 2;
  position: relative;
}

.about-text-inner {
  padding: 20px 0;
}

.highlight {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 30px;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding-left: 0px;
}

.melhe {
  color: var(--primary);
  font-weight: bold;
  font-size: 1.6rem;
}

.highlight-text {
  font-family: "Tondo", sans-serif;
  color: var(--primary);
  font-weight: 600;
}

.about-paragraphs {
  margin-bottom: 30px;
}

.about-paragraphs p {
  margin-bottom: 15px;
  font-size: 1.125rem;
  line-height: 1.8;
}

.about-paragraphs p:last-child {
  margin-bottom: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #c2c2c2;
}

.quote {
  position: relative;
  display: inline-block;
  font-weight: bold;
  color: #c2c2c2;
}

.quote::before,
.quote::after {
  content: '"';
  color: #c2c2c2;
  font-size: 1.2em;
  font-weight: bold;
}

.about-cta {
  margin-top: 30px;
  display: flex;
  justify-content: flex-end;
}

.about-cta .btn {
  padding: 0;
  font-size: 0.875rem;
  border-radius: 30px;
  width: 10rem;
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary);
  color: white;
  box-shadow: none;
  transition: all 0.3s ease;
}

.about-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: none;
}

/* レスポンシブデザイン */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }

  .about-image {
    width: 80%;
    margin: 0 auto 40px;
  }

  .section-title {
    font-size: 4rem;
  }

  .highlight {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .about {
    padding: 80px 0;
  }

  .section-title {
    font-size: 3.5rem;
  }

  .about-image {
    width: 100%;
  }

  .about-cta .btn {
    width: 9rem;
    height: 2.8rem;
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .about-content {
    gap: 16px;
  }

  .about-image {
    margin: 0 auto 10px;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 2.8rem;
  }

  .jp-title {
    font-size: 0.9rem;
    bottom: 15px;
  }

  .highlight {
    font-size: 1.1rem;
    padding-left: 15px;
  }

  .melhe {
    font-size: 1.3rem;
  }

  .about-paragraphs p {
    font-size: 1rem;
  }

  .about-paragraphs p:last-child {
    font-size: 1.1rem;
  }
}

/* Service section */
.service {
  padding: 2.25rem 0 0;
  background-color: var(--bg-light);
  position: relative;
}

.service-header {
  margin-bottom: 60px;
}

.service .section-title {
  margin-bottom: 0;
  color: var(--primary);
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
  position: relative;
}

.service .jp-title {
  font-size: 1rem;
  color: var(--text-light);
  position: relative;
  bottom: 20px;
  margin-left: 10px;
}

/* 全幅表示のグリッド */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin: 0;
  padding: 0;
}

/* 各サービス項目 */
.service-item {
  position: relative;
  min-height: 32rem;
  padding: 0;
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
}


.service-item * {
  pointer-events: none;
}


/* 背景画像スタイル */
.service-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  z-index: 1;
}

/* 背景オーバーレイ - テキストを読みやすくする */
.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

/* ホバー時の背景ズーム効果 */
.service-item:hover .service-bg {
  transform: scale(1.05);
}

/* ホバー時の変形効果 */
.service-item:hover {
  transform: translateY(-5px);
}

/* ハイライト用のオーバーレイ */
.service-highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 165, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.service-item:hover .service-highlight {
  opacity: 1;
}

/* サービスコンテンツの内部パディング */
.service-content {
  height: 100%;
  width: 100%;
  padding: 60px;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 4;
}

/* 左・中央・右のカラム用パディング調整 */
.service-item:first-child .service-content {
  padding-left: max(60px, calc((100% - 1200px) / 2 + 60px));
}

.service-item:last-child .service-content {
  padding-right: max(60px, calc((100% - 1200px) / 2 + 60px));
}

/* テキストブロック */
.service-text {
  text-align: left;
}

.service-item h3 {
  margin-bottom: 15px;
  color: white;
  font-size: 1.8rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-item p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 矢印アイコン - 右下に配置 */
.arrow-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 50%;
  color: var(--primary);
  font-weight: bold;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  position: absolute;
  bottom: 60px;
  right: 60px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service-content,
.arrow-link {
  pointer-events: auto;
}


/* サービスアイテムホバー時の矢印アニメーション */
.service-item:hover .arrow-link {
  transform: translateX(5px);
  background-color: var(--primary);
  color: white;
}

/* 左・中央・右のカラム用矢印位置調整 */
.service-item:first-child .arrow-link {
  right: 60px;
}

.service-item:last-child .arrow-link {
  right: max(60px, calc((100% - 1200px) / 2 + 60px));
}

/* レスポンシブデザイン */
@media (max-width: 1200px) {

  .service-item:first-child .service-content,
  .service-item:last-child .service-content {
    padding-left: 60px;
    padding-right: 60px;
  }

  .service-item:last-child .arrow-link {
    right: 60px;
  }
}

@media (max-width: 992px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-item {
    min-height: 250px;
  }

  .service-content {
    padding: 50px 60px;
  }

  .service-item:first-child .service-content,
  .service-item:last-child .service-content {
    padding: 50px 60px;
  }

  .arrow-link,
  .service-item:first-child .arrow-link,
  .service-item:last-child .arrow-link {
    bottom: 50px;
    right: 60px;
  }
}

@media (max-width: 768px) {
  .service {
    padding: 50px 0 0;
  }

  .service-content,
  .service-item:first-child .service-content,
  .service-item:last-child .service-content {
    padding: 40px 30px;
  }

  .arrow-link,
  .service-item:first-child .arrow-link,
  .service-item:last-child .arrow-link {
    bottom: 40px;
    right: 30px;
  }
}

@media (max-width: 576px) {
  .service {
    padding: 40px 0 0;
  }

  .service .jp-title {
    font-size: 0.9rem;
    bottom: 15px;
  }

  .service-content,
  .service-item:first-child .service-content,
  .service-item:last-child .service-content {
    padding: 30px 20px;
  }

  .service-item h3 {
    font-size: 1.5rem;
  }

  .service-item p {
    font-size: 1rem;
  }

  .arrow-link,
  .service-item:first-child .arrow-link,
  .service-item:last-child .arrow-link {
    bottom: 30px;
    right: 20px;
  }
}

/* Updates section */
.updates {
  padding: 200px 0 220px;
  background-color: white;
  position: relative;
}

/* セクションタイトル */
.updates .section-title {
  margin-bottom: 50px;
  color: var(--primary);
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
  position: relative;
}

.updates .jp-title {
  font-size: 1rem;
  color: var(--text-light);
  position: relative;
  bottom: 20px;
  margin-left: 10px;
}

.updates-list {
  margin-bottom: 60px;
  border-top: 1px solid #eee;
}

.update-item {
  display: flex;
  align-items: center;
  padding: 30px 20px;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
  position: relative;
}

.update-item:hover {
  background-color: rgba(248, 125, 8, 0.03);
}

/* メタ情報（日付とタグ）のコンテナ */
.update-meta {
  width: 280px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.update-date {
  width: 120px;
  font-family: "Tondo", sans-serif;
  font-weight: 500;
  color: var(--text-light);
  flex-shrink: 0;
}

.tag {
  padding: 3px 12px;
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  display: inline-block;
  min-width: 80px;
  text-align: center;
}

.tag.notice {
  background-color: var(--primary);
}

.tag.news {
  background-color: var(--secondary);
}

.tag.event {
  background-color: #3498db;
}

.update-title {
  flex: 1;
  padding-right: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.update-item:hover .update-title {
  color: var(--primary);
}

/* 矢印アイコン */
.arrow-icon {
  margin-left: auto;
  font-weight: bold;
  color: var(--primary);
  transition: all 0.3s ease;
  padding: 0 10px;
  opacity: 0;
  transform: translateX(-10px);
}

.update-item:hover .arrow-icon {
  opacity: 1;
  transform: translateX(0);
}

/* 「もっと見る」ボタン */
.view-all-container {
  text-align: right;
}

.view-all {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 40px;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: all 0.3s ease;
  display: inline-block;
}

.view-all:hover {
  background-color: var(--primary);
  color: white;
}

.btn-arrow {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.view-all:hover .btn-arrow {
  transform: translateX(5px);
}

/* レスポンシブデザイン */
@media (max-width: 992px) {
  .updates {
    padding: 80px 0;
  }

  .updates .section-title {
    margin-bottom: 40px;
    font-size: 4.5rem;
  }
}

@media (max-width: 768px) {
  .update-item {
    padding: 25px 15px;
    flex-wrap: wrap;
  }

  .update-meta {
    width: 100%;
    margin-bottom: 10px;
  }

  .update-date {
    width: auto;
    margin-right: 15px;
  }

  .update-title {
    width: calc(100% - 30px);
    padding-right: 0;
  }

  .arrow-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
  }

  .update-item:hover .arrow-icon {
    opacity: 1;
    transform: translateY(-50%);
  }

  .view-all-container {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .updates {
    padding: 60px 0;
  }

  .updates .section-title {
    font-size: 2.8rem;
    margin-bottom: 30px;
  }

  .updates .jp-title {
    font-size: 0.9rem;
    bottom: 15px;
  }

  .update-item {
    padding: 20px 15px;
  }

  .tag {
    min-width: 70px;
    padding: 2px 8px;
  }

  .view-all {
    padding: 10px 30px;
  }
}

/* フッターの基本スタイル */
.footer {
  background-color: #3c3c3c;
  color: #ffffff;
  padding: 60px 0 30px;
  font-size: 14px;
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* メインコンテンツエリア */
.footer-content {
  display: flex;
  margin-bottom: 40px;
}

/* 左側エリア（会社情報） */
.footer-company {
  width: 45%;
  display: flex;
}

/* 会社ロゴ・名称 */
.company-info {
  width: 30%;
  padding-right: 20px;
}

.company-logo {
  margin-bottom: 15px;
}

.company-name {
  font-weight: 600;
  font-size: 14px;
}

.company-name-en {
  font-size: 12px;
  color: #cccccc;
  margin-top: 3px;
}

/* 会社住所情報 */
.company-address {
  width: 70%;
}

.office {
  margin-bottom: 20px;
}

.office-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.office-postal,
.office-address,
.office-tel {
  color: #cccccc;
  font-size: 13px;
  margin-bottom: 2px;
}

/* 右側エリア（メニューとSNS） - 間隔調整の中心箇所 */
.footer-right {
  width: 55%;
  display: flex;
  flex-direction: column;
  /* ⭐️ ここで上下の間隔を調整 ⭐️ */
  gap: 40px;
  /* この値を変更して間隔を調整（30px~60pxが一般的） */
  /* justify-content も必要に応じて変更可能 */
  justify-content: flex-start;
  /* flex-start/center/flex-end/space-between */
}

/* 上段：メニューとボタン */
.footer-menu-area {
  display: flex;
  justify-content: space-between;
}

/* メニュー共通スタイル */
.footer-menu {
  width: 30%;
}

.menu-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 5px;
}

.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  color: #cccccc;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-menu a:hover {
  color: #ffffff;
}

/* ボタンエリア */
.footer-buttons {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-contact,
.btn-download {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s;
}

.btn-contact {
  background-color: #ffffff;
  color: #333333;
}

.btn-contact:hover {
  background-color: #f0f0f0;
}

.btn-download {
  background-color: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
}

.btn-download:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 下段：SNSアイコン - 右詰め */
.footer-sns {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  /* 必要に応じて追加の余白調整 */
  /* margin-top: 10px; */
  /* gapに加えて微調整したい場合 */
}

.sns-icon {
  width: 40px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s;
  background-color: transparent;
}

.sns-icon img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.sns-icon:hover {
  transform: translateY(-3px);
  background-color: transparent !important;
}

/* 各SNSアイコンの:hover疑似クラス */
.sns-icon.youtube:hover,
.sns-icon.line:hover,
.sns-icon.instagram:hover,
.sns-icon.twitter:hover {
  background-color: transparent !important;
}

/* もしホバー時に画像自体にエフェクトが適用されている場合 */
.sns-icon:hover img {
  opacity: 1 !important;
  /* 透明度を100%に維持 */
}

/* フッターロゴ */
.footer-logo {
  text-align: right;
  margin-bottom: 30px;
}

.footer-logo img {
  max-width: 306px;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  /* Webkit browsers */
  image-rendering: crisp-edges;
  /* Firefox */
  -ms-interpolation-mode: nearest-neighbor;
}

/* 区切り線 */
.footer-separator {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 20px 0;
}

/* フッターボ[first_name] */
.footer-bottom {
  display: flex;
  justify-content: flex-end;
  font-size: 12px;
}

.policy-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.policy-links a {
  color: #cccccc;
  text-decoration: none;
}

.policy-links a:hover {
  color: #ffffff;
}

.divider {
  color: #666666;
}

.copyright {
  color: #999999;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .footer-company,
  .footer-right {
    width: 100%;
  }

  .footer-right {
    gap: 30px;
    /* モバイル表示での上下間隔を調整 */
  }

  .footer-logo {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .footer-company {
    flex-direction: column;
    gap: 30px;
  }

  .company-info,
  .company-address {
    width: 100%;
  }

  .footer-menu-area {
    flex-wrap: wrap;
    gap: 30px;
  }

  .footer-menu {
    width: 45%;
  }

  .footer-buttons {
    width: 100%;
    margin-top: 20px;
  }

  .footer-sns {
    justify-content: center;
  }

  .footer-bottom {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .footer-menu-area {
    flex-direction: column;
  }

  .footer-menu {
    width: 100%;
    margin-bottom: 20px;
  }

  .policy-links {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .divider {
    display: none;
  }

  .copyright {
    margin-top: 10px;
  }
}

/* Responsive styles */
@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-cta {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .update-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .update-date {
    margin-bottom: 10px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-cta {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .jp-title {
    margin-left: 0;
  }
}

#loader-overlay {
position: fixed;
inset: 0;
z-index: 9999;
background: #fff; /* サイトに合わせて変更可 */
display: flex;
align-items: center;
justify-content: center;
opacity: 1;
pointer-events: auto;
transition: opacity .4s ease;
}
#loader-overlay.is-hide {
opacity: 0;
pointer-events: none;
}
.loader-spinner {
width: 48px;
height: 48px;
border: 3px solid #ddd;
border-top-color: #333;
border-radius: 50%;
animation: loader-spin 1s linear infinite;
}
@keyframes loader-spin { to { transform: rotate(360deg); } }
