/* ==========================================================================
   FONT IMPORTS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');
/* ==========================================================================
   COMMON STYLES - 全ページ共通
   ========================================================================== */
/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #444444;
  background-color: #ffffff;
  font-weight: 400;
}
/* Container */
.container {
  max-width: 1184px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
img {
  max-width: 100%;
  height: auto;
}
/* ==========================================================================
   HEADER - 全ページ共通
   ========================================================================== */
/* Provided CSS + Hamburger enhancements */
.header {
  position: relative;
  width: 100%;
  z-index: 1000;
  background: white;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  margin: 0 auto;
}
.logo-container h1 a {
  display: inline-block;
}
.logo-container img {
  /* Placeholder size for logo */
  width: 150px;
  height: auto;
}
/* --- DESKTOP NAVIGATION STYLES (Default for > 480px) --- */
.navigation {
  /* Default: Flex layout for desktop */
  display: flex;
  align-items: center;
  gap: 30px;
  transition: transform 0.4s ease-in-out;
}
.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.nav-link {
  color: #444444;
  text-decoration: none;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.8;
  transition: color 0.3s ease;
  padding: 10px 0;
  border-bottom: none; /* Desktop style */
}
.nav-link:hover, .nav-link.active {
  color: #ff3a4c;
}
.nav-side {
  display: flex;
  gap: 24px;
  align-items: center;
}
.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.language-option {
  color: #444444;
  font-size: 1rem;
  line-height: 1.8;
  cursor: pointer;
  transition: color 0.3s ease;
}
.language-option a {
  color: #444444;
  text-decoration: none;
}
.language-option:hover {
  color: #ff3a4c;
}
.language-divider {
  width: 1px;
  height: 12px;
  background-color: #444444;
  transform: rotate(0deg);
}
.contact-button {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%), linear-gradient(90deg, rgb(0, 144, 255) 0%, rgb(255, 57, 60) 99.99%);
  color: white;
  padding: 8px 25px;
  border-radius: 500px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 144, 255, 0.2);
  white-space: nowrap;
  text-decoration: none;
}
.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 144, 255, 0.3);
}
/* --- HAMBURGER MENU STYLES (HIDDEN BY DEFAULT) --- */
/* 1. Hide the checkbox */
#menu-toggle {
  display: none;
}
/* 2. Style the hamburger button (hidden on desktop) */
.menu-btn {
  display: none; /* Hide on desktop */
  width: 40px;
  height: auto;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1010;
  gap: 30px;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background-color: #444444;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}
.menu-icon::before {
  transform: translateY(-9px);
}
.menu-icon::after {
  transform: translateY(6px);
}
/* --- RESPONSIVE BREAKPOINT FOR SMALL PHONES (max-width: 480px) --- */
@media (max-width: 480px) {
  .header-content {
    padding: 15px 15px;
  }
  .logo-container img {
    width: 120px;
  }
  /* --- HAMBURGER ACTIVATION --- */
  /* Show hamburger button */
  .menu-btn {
    display: flex;
    align-items: center;
    width: 40px;
    height: 40px;
    position: fixed;
    right: 20px;
    top: 35px;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after {
    height: 2px;
  }
  .menu-icon::before {
    transform: translateY(-12px);
  }
  .menu-icon::after {
    transform: translateY(10px);
  }
  /* 3. Mobile Menu Panel (Hidden by default, starts here) */
  .navigation {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%; /* 画面の80%幅を使用 */
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 80px 20px 20px 20px; /* トップパディングを調整 */
    /* Mobile layout: stack elements vertically */
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 40px;
    transform: translateX(100%); /* Slide off-screen to the right */
  }
  /* Links and Side content stacked vertically */
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
  }
  .nav-link {
    font-size: 1rem;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #eee; /* リンク間に区切り線を追加 */
  }
  .nav-side {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    margin-top: 20px;
    width: 100%;
  }
  .language-switch {
    align-self: center;
  }
  .contact-button {
    width: 100%;
    text-align: center;
    padding: 12px 25px;
  }
  /* 4. Menu Toggle Logic: When checkbox is checked, slide the menu in */
  #menu-toggle:checked ~ .navigation {
    transform: translateX(0); /* Slide on-screen */
  }
  /* 5. Menu Close Button / X icon transition */
  #menu-toggle:checked + .menu-btn .menu-icon {
    transform: rotate(45deg); /* Rotate center line */
  }
  #menu-toggle:checked + .menu-btn .menu-icon::before {
    transform: rotate(90deg) translateX(-0px);
  }
  #menu-toggle:checked + .menu-btn .menu-icon::after {
    transform: rotate(-90deg) translateX(4px);
  }
}
/* ==========================================================================
   DROPDOWN MENU - PC / MOBILE 共通設定
   ========================================================================== */
.dropdown-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}
.dropdown-wrapper .nav-link {
  cursor: pointer; /* スマホでのタップを促すためpointer推奨 */
}
/* サブメニューの基本設定（PC用：絶対配置で浮かす） */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  z-index: 1100;
  border-top: 3px solid #ff3a4c;
  border-radius: 4px;
}
.dropdown-content a {
  color: #444444;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.3s;
}
.dropdown-content a:hover {
  background-color: #f9f9f9;
  color: #ff3a4c;
}
/* PC: ホバーで表示 */
.dropdown-wrapper:hover .dropdown-content {
  display: block;
}
/* ==========================================================================
   MOBILE HAMBURGER MENU ADJUSTMENTS (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  /* 1. ドロップダウンの親枠を縦並びのリストの一部として整形 */
  .dropdown-wrapper {
    display: block; /* 横並び解除 */
    width: 100%;
    border-bottom: 1px solid #eee; /* 他のリンクと同じ区切り線 */
    padding: 0;
    height: auto; /* 高さを自動調整 */
  }
  /* 2. "SERVICE" という文字のスタイル調整 */
  .dropdown-wrapper .nav-link {
    width: 100%;
    border-bottom: none; /* 親枠に線があるのでここは消す */
    padding: 10px 0; /* 他のメニューと余白を合わせる */
    display: block;
    position: relative;
  }
  /* 矢印アイコン（お好みで）: タップできることを示唆 */
  .dropdown-wrapper .nav-link::after {
    content: '▼';
    font-size: 0.7rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
  }
  /* 3. サブメニューを「浮かせず」に「埋め込む」 */
  .dropdown-content {
    position: static; /* 絶対配置を解除 */
    transform: none; /* 中央揃え解除 */
    box-shadow: none; /* 影を消す */
    border-top: none; /* 上の線を消す */
    width: 100%;
    background-color: #f5f5f5; /* 少しグレーにして階層を表現 */
    padding: 0;
  }
  /* 4. サブメニュー内のリンクスタイル */
  .dropdown-content a {
    padding: 12px 0 12px 20px; /* 左にインデントを入れて階層構造を見せる */
    border-top: 1px solid #ffffff; /* 白い線で区切る */
    font-size: 0.85rem; /* 少し小さく */
  }
  /* 
       スマホでの表示ロジック
       CSSのみで実装する場合、:hover は「タップ」として機能することが多いです。
       タップしている間（またはフォーカスされている間）メニューが開きます。
    */
  .dropdown-wrapper:hover .dropdown-content, .dropdown-wrapper:active .dropdown-content, .dropdown-wrapper:focus-within .dropdown-content {
    display: block;
  }
}
/* ==========================================================================
   CTA SECTION - 全ページ共通
   ========================================================================== */
.cta-section {
  position: relative;
  padding: 120px 0;
  background-image: url(../images/foot_bg.jpg);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.cta-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-bg-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, #ff5757, rgba(255, 87, 87, 0.8));
  mix-blend-mode: multiply;
}
.cta-content {
  position: relative;
  z-index: 1;
}
.cta-buttons {
  display: flex;
  gap: 80px;
  align-items: center;
  justify-content: center;
  max-width: 832px;
  margin: 0 auto;
}
.cta-button-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.cta-text {
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.8;
  color: white;
  text-align: center;
  white-space: nowrap;
  margin: 0;
}
.cta-button {
  width: 100%;
  height: 56px;
  border-radius: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.8;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.cta-button:hover {
  transform: translateY(-2px);
}
.cta-button.primary {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%), linear-gradient(90deg, rgb(0, 144, 255) 0%, rgb(255, 57, 60) 99.99%);
  border: 1px solid white;
  color: white;
  text-decoration: none;
}
.cta-button.secondary {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #444444;
  color: #444444;
  text-decoration: none;
}
/* ==========================================================================
   FOOTER - 全ページ共通
   ========================================================================== */
.footer {
  background-color: #ff5757;
  color: white;
  overflow: hidden;
  padding: 0px 32px 0px 32px;
}
.footer-content {
  max-width: 1124px;
  margin: 0 auto;
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding: 32px 0px;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  max-width: 320px;
  height: 58.947px;
}
.footer-logo-text {
  width: 128.507px;
  height: 15.216px;
  margin-left: 20px;
}
.footer-address {
  font-size: 1rem;
  line-height: 1.8;
  font-style: normal;
  white-space: nowrap;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: end;
}
.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.footer-link {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.8;
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.footer-link:hover {
  color: #ffcccc;
}
.footer-social {
  display: flex;
  gap: 5px;
  align-items: center;
}
.social-link {
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.8;
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.social-link:hover {
  color: #ffcccc;
}
.social-divider {
  color: white;
  font-size: 0.875rem;
  line-height: 1.8;
}
.footer-bottom {
  max-width: 1124px;
  margin: 0 auto;
  padding: 16px 0px 16px 0px;
  margin: 0px auto;
  display: flex;
  align-items: start;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.copyright {
  font-size: 0.75rem;
  line-height: 1.8;
  color: white;
  text-align: center;
  white-space: nowrap;
  margin: 0;
}
.footer-legal {
  display: flex;
  gap: 22px;
  align-items: center;
}
.legal-link {
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.8;
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.legal-link:hover {
  color: #ffcccc;
}
/* ==========================================================================
   COMMON RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .header-content {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  .navigation {
    flex-direction: column;
    gap: 20px;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .nav-link, .language-option {
    font-size: 1rem;
  }
  .cta-buttons {
    /*flex-direction: column;*/
    gap: 40px;
  }
  .cta-text {
    font-size: 1rem;
    white-space: normal;
  }
  .cta-button {
    font-size: 1rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }
  .footer-nav {
    align-items: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
  }
  .footer-address {
    text-align: center;
  }
}
@media (max-width: 480px) {
  .nav-link, .language-option {
    font-size: 0.875rem;
  }
  .header-content {
    flex-direction: row;
    gap: 20px;
    align-items: center;
  }
  .cta-text {
    font-size: 0.875rem;
  }
  .cta-button {
    font-size: 0.875rem;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 40px;
  }
  .cta-section {
    padding: 60px 0;
  }
  .cta-button-group {
    width: 100%;
  }
  .d-none {
    display: none;
  }
}
@media (min-width: 481px) {
  .d-md-none {
    display: none;
  }
}
/* ==================================== */
/* Cookie Consent Toaster Styles */
/* ==================================== */
.cookie-toaster {
  position: fixed;
  bottom: -100px; /* 初期位置: 画面外 */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background-color: rgba(30, 30, 30, 0.95);
  color: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1000; /* 最前面に表示 */
  opacity: 0;
  transition: bottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 14px;
}
.cookie-toaster.is-visible {
  bottom: 20px; /* 表示位置 */
  opacity: 1;
}
.cookie-toaster-text {
  flex-grow: 1;
  line-height: 1.6;
  margin-right: 15px; /* ボタンとの間隔 */
}
.cookie-toaster-button {
  flex-shrink: 0;
  background: linear-gradient(90deg, #ff4e50, #f9d423); /* グラデーションボタン */
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: opacity 0.3s ease, transform 0.1s ease;
  white-space: nowrap; /* ボタン内のテキストが折り返さないように */
}
.cookie-toaster-button:hover {
  opacity: 0.9;
}
/* スマートフォン向け調整 */
@media (max-width: 768px) {
  .cookie-toaster {
    width: calc(100% - 30px); /* 左右にマージン */
    flex-direction: column;
    text-align: center;
    bottom: -150px; /* 位置を調整 */
    padding: 15px 20px;
  }
  .cookie-toaster.is-visible {
    bottom: 15px;
  }
  .cookie-toaster-text {
    margin-right: 0;
    margin-bottom: 10px;
    font-size: 13px;
  }
}
/* --- 言語切り替えボタンのスタイル --- */
.language-option {
  cursor: pointer; /* クリック可能であることを示す */
  transition: color 0.3s ease;
  opacity: 0.7;
}
.language-option:hover {
  opacity: 1;
}
/* 現在選択されている言語のスタイル */
.language-option.active {
  font-weight: bold; /* 太字にする */
  opacity: 1;
  cursor: default; /* 選択中の言語はクリックできないように見せる */
  pointer-events: none; /* クリックイベント自体を無効化 */
}