/* ベース設定 */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-size: 18px;
  scroll-behavior: smooth;
}
/* グラデ背景 */
.top-header {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  box-sizing: border-box;
}
.logo-area img {
  height: 100px;
  width: auto;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
  margin-bottom: 10px !important;
}
.contact-area {
  color: white;
  font-size: 1em;
  font-weight: bold;
}
.hero-slider {
  width: 100%;
  height: 100vh; /* ← ここ重要！ */
  position: relative;
  overflow: hidden;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-caption {
  position: absolute;
  bottom: 80px;
  left: 50px;
  z-index: 5;
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}
.caption-jp {
  font-size: 1.2em;
  margin-bottom: 10px;
}
.caption-en {
  font-size: 3.8em;
  font-weight: bold;
  margin: 0;
}
/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .hero-slider {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%; /* 16:9比率 → (9 ÷ 16) × 100 */
    overflow: hidden;
  }
  .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
  }
  .hero-caption {
    bottom: 40px;
    left: 20px;
  }
  .caption-jp {
    font-size: 1em;
  }
  .caption-en {
    font-size: 2em;
  }
}
.caption {
  position: absolute;
  bottom: 50px;
  left: 50px;
  color: white;
  z-index: 5;
}
.caption-small {
  font-size: 1.2em;
  margin: 0;
}
.caption-large {
  font-size: 3em;
  font-weight: bold;
  margin: 0;
}
.static-image img {
  width: 100%;
  display: block;
}
* {
  box-sizing: border-box;
}
.fixed-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  color: white;
}
.logo img {
  height: 45px;
}
.tel {
  font-size: 1.2em;
  font-weight: bold;
}
.strength-section {
  background: linear-gradient(to bottom, #82aae5, #d1e1fa);
  padding: 60px 20px;
}
.strength-content {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.strength-image {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.strength-image img {
  width: 100%;
  height: auto;
  display: block;
}
.strength-textmax {
  width: 100%;
  height: auto;
  display: block;
}
/* ==== フッターを縦積みで安定させる（即効上書き） ==== */
.footer {
  display: block !important; /* flex だったら無効化して縦積みに */
  box-sizing: border-box !important;
}
/* ロゴとカラムを同じ中央ラッパーに収める */
.footer-top, .footer-main {
  max-width: 1400px; /* 全体幅（必要ならこの数値を上げる） */
  margin: 0 auto !important;
  box-sizing: border-box;
  width: 100%;
}
/* ロゴを確実に中央に、かつ横にデカくなりすぎないように制限 */
.footer-top {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 18px 16px 8px !important;
  text-align: center !important;
}
.footer-top .footer-logo, .footer-top img.footer-logo {
  display: block !important;
  margin: 0 auto !important;
  max-width: 520px !important; /* ← ロゴの最大横幅（好みで調整） */
  width: 100% !important;
  height: auto !important;
}
/* 下段：3カラムは柔軟グリッド（横に並ぶ。横幅があれば折り返さない） */
.footer-main {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
  gap: 36px !important;
  padding: 12px 24px 30px !important;
  align-items: start !important;
  justify-items: center !important;
}
/* 各カラム中身を中央寄せ */
.footer-main .col {
  text-align: center !important;
  max-width: 420px;
}
/* コピーライトを中央揃え */
.footer-copy {
  text-align: center !important;
  font-size: 0.7rem;
  opacity: 0.85;
  padding: 6px 10px;
   !important;
  color: #13358f !important;
}
/* レスポンシブ：狭い画面では1列に戻す */
@media screen and (max-width: 768px) {
  .footer-top, .footer-main {
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .footer-main {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .footer-top .footer-logo, .footer-top img.footer-logo {
    max-width: 280px !important;
    height: auto !important;
  }
}
/* ここから media の外（通常通り） */
.caption {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  z-index: 5;
  width: 100%;
  padding: 0 20px;
}
.caption-small {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}
.caption-large {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
}
@media screen and (min-width: 769px) {
  .hero-slider {
    height: 100vh;
    padding-top: 0;
  }
}
/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .caption-large {
    font-size: 3.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
  }
  .caption-small {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
  }
  .logo-area {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .logo-area img {
    height: 70px;
  }
}

/* 会社概要用テーブルレイアウト */
/* ウィンドウ幅が769px以上の場合に適用するCSS */
@media screen and (min-width :769px) {
  .d-table {
    width: 100%;
    display: table;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #c6c4cc;
    border-left-width: 1px;
    border-left-style: solid;
    border-left-color: #c6c4cc;
  }
  .d-table .row {
    display: table-row;
  }
  .d-table .th {
    padding: 10px;
    display: table-cell;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #c6c4cc;
    border-right-width: 1px;
    border-right-style: solid;
    border-right-color: #c6c4cc;
    width: 20%;
    font-weight: bold;
    background-color: #0066cc;
    vertical-align: top;
	color: #ffffff;
  }
  .d-table .td {
    padding: 10px;
    display: table-cell;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #c6c4cc;
    border-right-width: 1px;
    border-right-style: solid;
    border-right-color: #c6c4cc;
	background-color: #FFFFFF;
  }
  .d-table .td ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
  }
  .d-table .td ul li {
    margin-right: 20px;
    padding-left: 5px;
  }
  .d-table .td ul li::before {
    content: "・";
  }
}
/* ウィンドウ幅が0〜768pxの場合に適用するCSS */
@media screen and (max-width:768px) {
  .d-table {
    width: 100%;
    display: table;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #CCC;
    border-left-width: 1px;
    border-left-style: solid;
    border-left-color: #CCC;
  }
  .d-table .row {
    display: table-row;
  }
  .d-table .th {
    padding: 10px;
    display: block;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #CCC;
    border-right-width: 1px;
    border-right-style: solid;
    border-right-color: #CCC;
    width: 100%;
    font-weight: bold;
    background-color: #0066cc;
 	color: #ffffff;
 }
  .d-table .td {
    padding: 10px;
    display: block;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #CCC;
    border-right-width: 1px;
    border-right-style: solid;
    border-right-color: #CCC;
    width: 100%;
	background-color: #FFFFFF;
  }
  .d-table .td ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .d-table .td ul li {
    margin-right: 20px;
    padding-left: 5px;
  }
  .d-table .td ul li::before {
    content: "・";
  }
}
/* --- shn-new three-column cards --- */
.shn-new-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
  margin: 2rem 0;
  box-sizing: border-box;
}
/* card */
.shn-new-card {
  background: transparent;
}
/* image wrapper (position context for ribbon) */
.shn-new-figure {
  position: relative;
  margin: 0;
  overflow: visible;
}
.shn-new-figure img {
  width: 100%;
  height: 240px; /* お好みで調整 */
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
/* ribbon (figcaption) */
.shn-new-ribbon {
  font-size: 23px;
  letter-spacing: 5px !important;
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -20px;
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #13358f;
  text-align: center;
  padding: 12px 10px;
  font-weight: 700;
  border-bottom: solid 5px #f50000;
  letter-spacing: .06em;
  border-radius: 2px;
  z-index: 2;
  display: block; /* figcaption を block に */
}
/* body text */
.shn-new-body {
  padding-top: 34px; /* ribbon の被り分を確保 */
  text-align: center;
  color: #222;
  font-size: 0.95rem;
  line-height: 1.7;
  min-height: 64px;
}
/* responsive */
@media (max-width: 900px) {
  .shn-new-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .shn-new-figure img {
    height: 200px;
  }
}
@media (max-width: 600px) {
  .shn-new-grid {
    grid-template-columns: 1fr;
  }
  .shn-new-figure img {
    height: 180px;
  }
  .shn-new-ribbon {
    left: 16px;
    right: 16px;
    bottom: -18px;
  }
}
/* ===== .strength-content 用レスポンシブCSS ===== */
/* ========== QUICK FIX: 強制上書き（末尾に貼るだけ） ========== */
/* .strength-content をレスポンシブで安定化 */
.strength-content {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
  align-items: flex-start !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}
.strength-content > * {
  min-width: 0 !important;
}
/* 画像／テキストの幅バランス（調整可） */
.strength-image {
  flex: 0 0 42% !important;
  min-width: 220px !important;
  box-sizing: border-box !important;
}
.strength-texts {
  display: flex !important;
  flex-direction: column;
  justify-content: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.strength-image img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}
/* h2 の見た目を確実に統一（既存の上書き） */
.strength-box h2 {
  color: #13358f;
  font-size: 2.5rem;
  margin-bottom: 5px;
  letter-spacing: 0.1em;
  border-bottom: solid 3px #13358f;
  position: relative;
}
h2:after {
  position: absolute;
  content: " ";
  display: block;
  border-bottom: solid 3px #f50000;
  ;
  bottom: -3px;
  width: 30%;
}
.strength-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #222;
  line-height: 1.3;
  margin-bottom: 20px !important;
}
/* モバイル時は縦積みに */
@media (max-width: 900px) {
  .strength-image, .strength-texts {
    flex-basis: 100% !important;
    min-width: 0 !important;
  }
  .strength-box h2 {
    text-align: center !important;
  }
  .strength-box h3 {
    text-align: center !important;
  }
}
/* コピー（安全に上書きしておく） */
.footer-copy {
  text-align: center !important;
  font-size: 0.8rem !important;
  color: #13358f !important;
}
/* ================================
   グローバルナビ（PC＋スマホ）
   ================================ */
/* PCレイアウト */
.fixed-header {
  /* ここは上書きというより「確認」用。
     既存とほぼ同じ指定なので、そのまま重なってOKです。 */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  color: #ffffff;
}
/* ロゴの横にメニューを並べる想定 */
.global-nav {
  margin-left: auto;
}
.global-nav > ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.global-nav > ul > li {
  font-size: 0.95rem;
}
.global-nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 8px 0;
  display: block;
  letter-spacing: 0.1em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.global-nav a:hover {
  border-bottom-color: #f50000;
  opacity: 0.9;
}
/* ハンバーガーボタン（PCでは非表示） */
.nav-toggle {
  display: none;
  position: relative;
  width: 34px;
  height: 26px;
  border: none;
  background: transparent;
  padding: 0;
  margin-left: 16px;
  cursor: pointer;
  z-index: 30;
}
.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span:nth-child(1) {
  top: 0;
}
.nav-toggle span:nth-child(2) {
  top: 11px;
}
.nav-toggle span:nth-child(3) {
  top: 22px;
}
.nav-toggle.is-open span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}
/* ================================
   スマホ用レイアウト
   ================================ */
@media screen and (max-width: 768px) {
  /* ヘッダーの余白ちょっとコンパクトに */
  .fixed-header {
    padding: 10px 16px;
  }
  /* さっきの .logo-area の「中央寄せ」を上書きして、
     左ロゴ・右ハンバーガーにする */
  .logo-area {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: auto;
  }
  /* ハンバーガーを表示 */
  .nav-toggle {
    display: block;
  }
  /* メニューはヘッダーの下に隠しておく（ドロワー風） */
  .global-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(19, 53, 143, 0.97);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .global-nav.is-open {
    max-height: 260px; /* 項目数に応じて調整可 */
  }
  .global-nav > ul {
    flex-direction: column;
    gap: 0;
  }
  .global-nav > ul > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .global-nav a {
    padding: 10px 18px;
  }
}
/* ヘッダーに半透明の黒背景をつける（上書き用） */
.fixed-header {
  background: rgba(0, 0, 0, 0.45); /* 透け具合は 0.3〜0.6 くらいで調整可 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); /* 下にうっすら影をつける */
}
/* メニュー文字に輪郭っぽい影をつける */
.global-nav a {
  font-weight: 700;
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.8), 0 0 6px rgba(0, 0, 0, 0.6);
}
/* ================================
   ページトップへ戻るボタン
   ================================ */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(19, 53, 143, 0.45); /* ← 0.9 から 0.45 にして半透明に */
  color: #ffffff;
  font-size: 22px;
  line-height: 46px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); /* ← 影も弱める */
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(10px);
} 
/* 表示状態 */
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
/* ホバー時（PC） */
.back-to-top:hover {
  background: rgba(245, 0, 0, 0.6); /* 0.95 → 0.6 にして、赤も少し控えめに */
} 
/* スマホでは少し小さく＆内側に */
@media screen and (max-width: 768px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
  }
}
/* ===== スクロールしても追従するヘッダーに変更（上書き） ===== */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}
/* 見出し位置がヘッダーに隠れないように、アンカー位置を少し下げる */
section[id],
h2[id] {
  scroll-margin-top: 180px;  /* ヘッダーの高さに合わせて微調整。90〜130pxくらいで調整可 */
}
/* ==============================
   ACCESS セクションレイアウト
   ============================== */

.access-wrapper {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.access-block {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 18px 20px;
}

.access-block h4 {
  font-size: 1.2rem;
  margin: 0 0 6px;
  color: #13358f;
  letter-spacing: 0.08em;
}

.access-address {
  margin: 0 0 12px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.access-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}

.access-photo {
  flex: 0 0 38%;
  min-width: 220px;
}

.access-photo img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.access-map {
  flex: 1;
  min-width: 260px;
}

.access-map iframe {
  width: 100%;
  height: 260px;
  border-radius: 6px;
}

/* スマホ時は縦積み */
@media screen and (max-width: 768px) {
  .access-block {
    padding: 14px 12px;
  }
  .access-flex {
    flex-direction: column;
  }
  .access-photo,
  .access-map {
    flex: 1 1 100%;
    min-width: 0;
  }
}
