/* ================================================
   日本医療DX 共通スタイル - 100% Figmaデザイン準拠
   ================================================ */

/* リセットとベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #374151;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Bootstrap Container Override */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* ================================================
   Header スタイル
   ================================================ */
.main-header {
  height: 104px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-container {
  max-width: 1440px;
  padding: 0 120px;
  height: 100%;
  margin: 0 auto;
}

.navbar {
  padding: 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 230px;
}

/* ナビゲーションリンク */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.navbar-nav .nav-item {
  margin-right: 40px;
}

.navbar-nav .nav-item:last-child {
  margin-right: 0;
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: #374151;
  font-size: 16px;
  line-height: 19.2px;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #013E88;
}

/* ヘッダーボタン */
.header-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 24px;
}
.item-image{
  max-width: 100%;
  height: auto;
}
.btn-header-outline,
.btn-header-primary {
  height: 48px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 20px;
  transition: all 0.3s ease;
  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.1), 0px 1px 1px rgba(0, 0, 0, 0.09), 0px 2px 1px rgba(0, 0, 0, 0.05), 0px 4px 2px rgba(0, 0, 0, 0.01), 0px 6px 2px rgba(0, 0, 0, 0);
  border: none;
  text-decoration: none;
}

.btn-header-outline {
  width: 130px;
  border: 1px solid #013E88;
  background-color: #FFFFFF;
  color: #013E88;
}

.btn-header-outline:hover {
  background-color: #013E88;
  color: #FFFFFF;
}

.btn-header-primary {
  width: 164px;
  background-color: #013E88;
  color: #FFFFFF;
}

.btn-header-primary:hover {
  background-color: #012D6A;
  color: #FFFFFF;
}

.btn-header-outline img,
.btn-header-primary img {
  width: 15px;
  height: 15px;
}

/* モバイルメニュー */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

/* ================================================
   Footer スタイル
   ================================================ */
.main-footer {
  background-color: #123861;
  color: #FFFFFF;
  padding-top: 80px;
}

.footer-container {
  max-width: 1440px;
  padding: 0 120px;
  margin: 0 auto;
}

.footer-logo-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-logo {
  width: 132px;
  height: 128px;
  object-fit: contain;
  display: block;
}

.social-icons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.social-icons a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
  border-radius: 50%;
  transition: opacity 0.3s ease;
}

.social-icons a:hover {
  opacity: 0.8;
}

.social-icons img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.footer-links-wrapper {
  padding-bottom: 0;
}

.footer-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-title  a {
  color: #FFFFFF;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links li:last-child {
  margin-bottom: 0;
}

.footer-links li a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  transition: opacity 0.3s ease;
}

.footer-links li a:hover {
  opacity: 0.7;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 56px 0 32px;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 8px;
  gap: 24px;
}

.footer-legal-links a {
  color: #FFFFFF;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-legal-links a:hover {
  opacity: 0.7;
}

.copyright {
  font-size: 12px;
  text-align: center;
  padding-bottom: 24px;
  margin: 0;
  color: #FFFFFF;
}




/* ドロップダウンメニュー */
.navbar .nav-link.dropdown-toggle.split-toggle::after{content:none!important;display:none!important;}
.navbar .nav-link.dropdown-toggle.split-toggle{position:relative;padding-right:42px;}
.navbar .nav-link.dropdown-toggle.split-toggle .caret-toggle{position:absolute;top:0;right:0;width:36px;height:100%;display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-tap-highlight-color:transparent;}
.navbar .nav-link.dropdown-toggle.split-toggle .caret-toggle::after{content:"";display:inline-block;border-style:solid;border-width:5px 4px 0 4px;border-color:currentColor transparent transparent transparent;transition:transform .2s ease;}
.nav-item.dropdown.show>.nav-link.split-toggle .caret-toggle::after{transform:rotate(180deg);}

.navbar-nav .dropdown-menu {
    border: none;
}
.dropdown-item:focus, .dropdown-item:hover {
    background-color: #fff;
}

.nav-link:focus-visible{
  box-shadow: none;
}
.nav-link:focus-visible{
  box-shadow: none;
}
.navbar .dropdown-menu{margin-top:0;}


/* ================================================
   レスポンシブ対応（Mobile First）
   ================================================ */

/* タブレット対応 (768px未満) */
@media (max-width: 991px) {
  .header-container {
    padding: 0;
  }
  .navbar-brand {
    margin-left: 15px;
  }
  .navbar-toggler:hover {
    text-decoration: none;
    height: 100%;
}

  .navbar-collapse {
    background-color: #ffffff;
    padding: 20px 20px;
    margin-top: 0px;
    border: 1px solid #E5E7EB;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .navbar-nav .nav-item {
    margin-right: 0;
    width: 100%;
  }


  .header-buttons {
    flex-direction: column;
    margin-left: 0;
    width: 100%;
    gap: 12px;
  }

  .btn-header-outline,
  .btn-header-primary {
    width: 100%;
  }

  .footer-container {
    padding: 0 40px;
  }

  .footer-legal-links {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-divider {
    margin: 40px 0 24px;
  }

}

/* スマートフォン対応 (576px未満) */
@media (max-width: 575px) {
  .main-header {
    height: 80px;
  }

  .navbar-brand img {
    width: 100%;
    height: auto;
    max-width: 220px;
  }

  .footer-container {
    padding: 0 20px;
  }

  .footer-logo {
    width: 100px;
    height: 96px;
  }

  .footer-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .footer-links li a {
    font-size: 16px;
  }

  .footer-divider {
    margin: 32px 0 20px;
  }

  .footer-legal-links a {
    font-size: 13px;
  }
}

/* ================================================
   汎用ユーティリティクラス
   ================================================ */
.text-primary {
  color: #013E88 !important;
}

.bg-primary {
  background-color: #013E88 !important;
}

.text-secondary {
  color: #374151 !important;
}

.bg-light-gray {
  background-color: #F8FAFC !important;
}

.bg-dark-blue {
  background-color: #123861 !important;
}


.haveto, .any {
    font-size: 13px;
    padding: 5px;
    background: #ff9393;
    color: #fff;
    border-radius: 2px;
    margin-right: 5px;
    font-weight: normal;
}

.wpcf7 .wpcf7-submit:disabled {
    cursor: not-allowed;
}
.wpcf7-submit {
    display: block;
    margin: 10px auto;
    padding: 1em 0;
    width: 80%;
    background: #00318E;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    border: none;
}
.wpcf7-form-control {
    width: 100%;
}
.wpcf7-submit {
    display: block;
    margin: 10px auto;
    padding: 1em 0;
    width: 80%;
    background: #00318E;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    border: none;
}
.wpcf7-form-control {
    width: 100%;
}
