@charset "utf-8";

/*Font Awesomeの読み込み
---------------------------------------------------------------------------*/
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

/* Noto Sans JP（ローカル読み込み）
---------------------------------------------------------------------------*/
@font-face {
  font-family: 'Noto Sans JP';
  src: url('/fonts/NotoSansJP-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans JP';
  src: url('/fonts/NotoSansJP-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/*CSSカスタムプロパティ
---------------------------------------------------------------------------*/
:root {
	--text-color: #333;
	--header-height: 130px;
	--primary-color: #59d5e0;
	--primary-inverse-color: #fff;
	--global-space: 5vw;
}

@media (max-width:768px){
  :root {
    --header-height: 90px;
  }
}

/*全体の設定
---------------------------------------------------------------------------*/
body * {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

html {
  font-size: 13px;
}

body {
  margin: 0;
  height: 100%;
  font-size: 1rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  body {
    line-height: 1.7;
  }
}

@media (min-width: 1024px) {
  html {
    font-size: 16px;
  }
}

/*メイン設定
---------------------------------------------------------------------------*/
body {
	margin: 0;
	padding: 0;

	font-family:
		"Hiragino Sans",
		"Hiragino Kaku Gothic ProN",
		"Meiryo",
		"Noto Sans JP",
		sans-serif;

	font-optical-sizing: auto;
	-webkit-text-size_adjust: none;

	background: #ffffff;
	color: var(--text-color);
	line-height: 2;

	font-synthesis: none;
        overflow-x: hidden;
}

/*main設定
---------------------------------------------------------------------------*/
.main_container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    padding: 40px 32px 0;
    box-sizing: border-box;
}

/* スマホ */
@media (max-width: 767px) {
    .main_container {
        padding: 24px 8px 0;
    }
}

/*要素被らないようにヘッダー分下げる
---------------------------------------------------------------------------*/
@media (max-width: 1100px) {

  main {
    padding-top: 50px;
  }

}

/*共通本文（p）
---------------------------------------------------------------------------*/
p {
    font-family: "Noto Sans JP", sans-serif;
    color: #000;
    line-height: 2;
}

/* PC */
@media (min-width: 769px) {
    p {
        font-size: 15px;
    }
}

/* スマホ */
@media (max-width: 768px) {
    p {
        font-size: 14px;
        line-height: 1.9;
    }
}

/*リセット
---------------------------------------------------------------------------*/
figure {
	margin: 0;
  }

dd {
	margin: 0;
  }

nav,ul,li,ol {
	margin: 0;padding: 0;
  }

nav ul {
	list-style: none;
  }

section li {
	margin-left: 1rem;
  }

/*リンクテキスト全般の設定
---------------------------------------------------------------------------*/
a {
	color: var(--text-color);
	transition: 0.3s;
}


/*コンテナー（サイト全体を囲むブロック）
---------------------------------------------------------------------------*/
body:not(.home) #container {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/*コンテナー（サイト全体を囲むブロック）
---------------------------------------------------------------------------*/
#container_common {
  max-width: 1400px;
  padding: 0 3vw;
  margin: 0 auto;
  box-sizing: border-box;
}

/*スクロールリンク(ヘッダー分降下)
---------------------------------------------------------------------------*/
/* PC */
[id] {
  scroll-margin-top: 160px;
}

/* スマホ */
@media (max-width: 768px) {
  [id] {
    scroll-margin-top: 80px;
  }
}


/*外部リンク
---------------------------------------------------------------------------*/
a[target="_blank"]::after {
  font-family: "Font Awesome 6 Free";
  content: "\f08e";
  font-weight: 900;
  margin: 0 0.25rem;
}

/*ヘッダー
---------------------------------------------------------------------------*/
/* =========================
   HEADER BASE
========================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

/* =========================
   HEADER INNER
========================= */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  position: relative;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
}

.logo a {
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.logo img {
  width: 350px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   MENU PC
========================= */
.menu {
  display: flex;
  gap: 30px;
}

.menu-item {
  position: relative;
}

.menu-item > a {
  text-decoration: none;
  color: #333;
  font-family: "Noto Sans JP", sans-serif;

  position: relative;
}

.menu-item > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #000;
  transition: 0.3s;
}

.menu-item:hover > a::after {
  width: 100%;
}

/* =========================
   SNS BAR (PC)
========================= */
.sns-bar {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  padding: 5px 20px;
  border-bottom: 1px solid #eee;
}

.sns-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f5;
  transition: 0.3s;
  text-decoration: none;
  overflow: hidden;
}

.sns-bar a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.sns-bar a:hover {
  transform: scale(1.1);
}

.sns-bar a.twitter:hover,
.sns-bar a.instagram:hover,
.sns-bar a.youtube:hover {
  opacity: 0.5;
}

/* =========================
   MEGA MENU
========================= */
.mega {
  position: fixed;
  top: 98px;
  left: 0;
  width: 100%;
  background: #f9f9f9;
  backdrop-filter: blur(10px);

  border-top: 2px solid #eee;
  border-bottom: 2px solid #eee;

  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;

  z-index: 999;
}

.menu-item:hover .mega {
  opacity: 1;
  visibility: visible;
}

/* MEGA HEADER */
.mega-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 40px 20px;
}

.mega-header h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #111;
  margin-bottom: 8px;
}

.mega-header p {
  font-size: 14px;
  color: #777;
}

/* MEGA INNER */
.mega-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 40px 80px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

/* COLUMN */
.column-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 18px;
}

.column a {
  position: relative;
  display: block;

  padding: 16px 0;
  color: #222;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;

  transition: .25s ease;
}

.column a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 1px;
  background: #e5e5e5;
}

.column a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 0;
  height: 1px;
  background: #111;

  transition: width .3s ease;
}

.column a:hover {
  color: #000;
  padding-left: 6px;
}

.column a:hover::after {
  width: 100%;
}

/* =========================
   HAMBURGER
========================= */
.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;

  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* =========================
   MOBILE MENU
========================= */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;

  width: 100%;
  height: 100%;
  background: #fff;

  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;

  padding: 80px 20px 20px;
  z-index: 10000;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
}

/* CLOSE */
.close {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 26px;
  cursor: pointer;
}

/* =========================
   MOBILE ITEM
========================= */
.mobile-item {
  margin: 18px 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.mobile-item button,
.mobile-item .mobile-link {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;
  font-size: 16px;
  background: none;
  border: none;
  padding: 12px 0;
  color: #333;
  text-decoration: none;
  cursor: pointer;
}

/* DROPDOWN */
.mobile-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-dropdown.active {
  max-height: 500px;
}

.mobile-dropdown a {
  display: block;
  padding: 8px 0;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  background: #ffffff;
}

/* =========================
   ＋ / − ICON
========================= */
.dropdown-toggle {
  position: relative;
}

.dropdown-toggle::before,
.dropdown-toggle::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 14px;
  height: 2px;
  background: #333;
  transition: 0.3s;
}

.dropdown-toggle::before {
  transform: translateY(-50%);
}

.dropdown-toggle::after {
  transform: translateY(-50%) rotate(90deg);
}

.dropdown-toggle.active::after {
  transform: translateY(-50%) rotate(0deg);
  opacity: 0;
}

/* =========================
   SNS MOBILE
========================= */
.mobile-sns {
  display: flex;
  justify-content: center;
  gap: 16px;

  margin-top: 40px;
  padding-top: 20px;

  border-top: 1px solid #eee;
}

.mobile-sns a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border-radius: 50%;
  background: #f5f5f5;
  transition: 0.25s ease;
}

.mobile-sns a img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.mobile-sns a:hover {
  transform: scale(1.08);
  opacity: 0.6;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {

  .menu,
  .sns-bar {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .logo img {
    width: 160px;
  }
}

@media (min-width: 1101px) {

  .sns-bar {
    padding: 3px 20px;
    gap: 10px;
  }

  .sns-bar a {
    width: 24px;
    height: 24px;
  }

  .sns-bar a img {
    width: 14px;
    height: 14px;
  }

  .header-inner {
    padding: 10px 20px;
  }

  .logo img {
    width: 280px;
  }

  .menu {
    gap: 24px;
  }

  .menu-item > a {
    font-size: 15px;
  }
}

@media (max-width: 1100px) and (min-width: 768px) {

  .header-inner {
    padding: 12px 18px;
  }

  .logo img {
    width: 200px;
  }

  .hamburger {
    right: 18px;
    font-size: 24px;
  }

  .menu {
    gap: 18px;
  }

  .menu-item > a {
    font-size: 14px;
  }

  .mega-inner {
    padding: 25px 30px 60px;
    gap: 30px;
  }

  .mega-header h2 {
    font-size: 24px;
  }

  .mega-header p {
    font-size: 13px;
  }

  .column a {
    padding: 14px 0;
    font-size: 14px;
  }

  .mobile-sns a {
    width: 30px;
    height: 30px;
  }

  .mobile-sns a img {
    width: 14px;
    height: 14px;
  }
}

/* =========================
   CONTACT BUTTON (PC)
========================= */
.sns-bar .contact-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  width: auto !important;
  height: 28px !important;
  padding: 0 12px;

  background: #0b4ea2;
  border: 1px solid #0b4ea2;
  border-radius: 0 !important;
  overflow: visible !important;

  color: #fff !important;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;

  transition:
    background-color .2s ease,
    color .2s ease,
    border-color .2s ease;

  transform: none !important;
  box-shadow: none;
}

/* 矢印 */
.sns-bar .contact-button::after {
  content: "→";
  margin-left: 5px;
  font-size: 11px;
}

/* hover：色反転だけ */
.sns-bar .contact-button:hover {
  background: #fff;
  color: #0b4ea2 !important;
  border-color: #0b4ea2;
  opacity: 1 !important;
  transform: none !important;
}

/* SNSアイコンとの高さバランス */
.sns-bar {
  gap: 10px;
  align-items: center;
}

/* =========================
   CONTACT BUTTON MOBILE
========================= */
.mobile-contact-button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  margin-top: 24px;
  padding: 16px 20px;

  border-radius: 14px;
  background: #0b4ea2;
  color: #fff;
  text-decoration: none;

  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;

  transition: 0.25s ease;
}

.mobile-contact-button:hover {
  background: #083a79;
}

/*パンくずリスト
---------------------------------------------------------------------------*/

/* =====================
   ROOT（ヘッダー連動）
===================== */
:root {
  --header-height: 110px;
  --breadcrumb-height: 44px;
}

/* =====================
   BREADCRUMB
===================== */
.breadcrumb {
  position: fixed;
  top: var(--header-height);
  margin-top: -1px;

  left: 0;
  width: 100%;

  background: #f3f3f3;
  z-index: 9998;

  border-bottom: 1px solid #e5e5e5;
}

/* 中身 */
.breadcrumb-inner {
  max-width: 1100px;
  margin-left: 0;
  margin-right: auto;

  padding: 10px 40px;

  display: flex;
  align-items: center;

  font-size: 12px;
  letter-spacing: 0.03em;
}

/* =====================
   LINK
===================== */
.breadcrumb a {
  color: #2f3b5c;
  text-decoration: none;

  position: relative;
  transition: 0.25s ease;
}

.breadcrumb a::after {
  content: "";
  position: absolute;

  left: 0;
  bottom: -3px;

  width: 100%;
  height: 1px;

  background: rgba(47, 59, 92, 0.35);
  transition: 0.25s ease;
}

.breadcrumb a:hover::after {
  opacity: 0;
}

.breadcrumb a:hover {
  color: #1f2740;
}

/* 区切り */
.divider {
  margin: 0 10px;
  color: #aaa;
  font-size: 12px;
}

/* 現在ページ */
.current {
  color: #111;
  letter-spacing: 0.02em;
}

/* =====================
   MAIN余白（重要修正）
===================== */
main {
  margin-top: calc(var(--header-height) + var(--breadcrumb-height));
}

/* =====================
   MOBILE
===================== */
@media (max-width: 1100px) {

  .breadcrumb {
    display: none;
  }

  /* モバイルはヘッダーだけ分 */
  main {
    margin-top: var(--header-height);
  }
}

/*フッター
---------------------------------------------------------------------------*/

/* =========================
   ROOT（全体統一）
========================= */
:root {
  --container-width: 1400px;
  --footer-gap: 140px;
}

/* =========================
   FOOTER BASE
========================= */
.footer {
  background: #ffffff;

  margin-top: var(--footer-gap);
  padding-top: 80px;

  position: relative;
  z-index: 10;
}

/* 上ライン（100vw事故防止） */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 1px;

  background: #e5dede;
}

/* =========================
   INNER
========================= */
.footer__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* =========================
   SITE MAP
========================= */
.footer__sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  justify-content: center;

  gap: 56px 72px;

  padding-bottom: 72px;
  border-bottom: 1px solid #ece3e3;
}

.footer__group {
  min-width: 180px;
  position: relative;
}

/* =========================
   TITLE
========================= */
.footer__ttl {
  display: flex;
  align-items: center;

  padding-bottom: 14px;
  margin-bottom: 24px;

  border-bottom: 1px solid #ddd2d2;

  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;

  color: #5f5f5f;
  text-decoration: none;
  transition: .3s;
}

.footer__ttl:hover {
  color: #a9a9a9;
}

.footer__ttl::before {
  content: "";
  width: 8px;
  height: 8px;

  border-radius: 50%;
  background: #1e90ff;

  margin-right: 12px;
}

/* =========================
   LINKS
========================= */
.footer__links {
  display: grid;
  gap: 14px;

  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a {
  font-size: 14px;
  color: #757575;

  text-decoration: none;
  position: relative;

  transition: .3s;
}

.footer__links a:hover {
  color: #444;
}

.footer__links a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;

  width: 0;
  height: 1px;

  background: #c9b1b1;
  transition: .3s;
}

.footer__links a:hover::before {
  width: 100%;
}

/* =========================
   BRAND
========================= */
.footer__brand {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 48px 0;
}

.footer__brandLeft {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__logo img {
  height: 42px;
}

/* ISO */
.footer__isoBlock {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__isoBlock img {
  height: 100px;
  width: auto;
  object-fit: contain;
}

.footer__isoText {
  font-size: 12px;
  color: #7d7d7d;
  margin: 0;
  white-space: nowrap;
}

/* =========================
   SNS
========================= */
.footer__sns {
  display: flex;
  gap: 18px;
}

.footer__sns a {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: #f3ebeb;

  transition: .25s ease;
  overflow: hidden;
}

.footer__sns a img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.footer__sns a:hover {
  background: #e7dede;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}

.footer__sns a:hover img {
  transform: scale(1.1);
  transition: .25s ease;
}

/* =========================
   COPYRIGHT
========================= */
.footer__copy {
  width: 100%;
  background: #ececec;

  text-align: center;

  padding: 22px 20px;

  font-size: 12px;
  letter-spacing: .08em;
  color: #7d7d7d;
}

/* =========================
   SP
========================= */
@media (max-width: 768px) {

  .footer__inner {
    padding: 0 20px;
  }

  .footer__sitemap {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 32px;
  }

  .footer__group {
    border-bottom: 1px solid #eee3e3;
    padding: 10px 0;
  }

  .footer__ttl {
    margin-bottom: 0;
    border-bottom: none;
    padding: 10px 0;
  }

  .footer__group::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 18px;

    font-size: 14px;
    color: #999;
    pointer-events: none;
  }

  .footer__group.is-open::after {
    content: "−";
  }

  .footer__group:not(:has(.footer__links))::after {
    display: none;
  }

  .footer__links {
    display: none;
    padding-top: 10px;
  }

  .footer__group.is-open .footer__links {
    display: grid;
    gap: 10px;
  }

  .footer__brand {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer__brandLeft {
    flex-direction: column;
    gap: 14px;
  }

  .footer__logo {
    display: flex;
    justify-content: center;
  }

  .footer__logo img {
    max-width: 220px;
    height: auto;
  }

  .footer__sns {
    justify-content: center;
  }

  .footer__copy {
    padding: 14px 16px;
    font-size: 10px;
    line-height: 1.6;
  }
}

/*見出し表示用のメイン画像設定
---------------------------------------------------------------------------*/
:root {
  --header-height: 98px; /* PC */
}

@media (max-width: 1100px) {
  :root {
    --header-height: 5px; /* スマホ */
  }
}

.main_banner {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  height: 400px;
  overflow: hidden;
  font-family: "Noto Sans JP", sans-serif;
  z-index: 200;
}

/* 画像 */
.main_banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 200;

  /* 少し映画風補正 */
  filter:
    brightness(0.75)
    contrast(1.08)
    saturate(0.95);
}

/* ===== 濃い青グラデーションフィルター ===== */
.main_banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(0, 18, 55, 0.92) 0%,
      rgba(0, 45, 120, 0.82) 45%,
      rgba(0, 95, 210, 0.68) 100%
    );
  z-index: 1;
}

/* ===== テキスト中央配置 ===== */
.banner_text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
  width: 90%;
  max-width: 800px;
}

/* 見出し */
.banner_text h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

/* サブテキスト */
.banner_text p {
  font-size: 18px;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  color: #fff;
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  .main_banner {
    height: 300px;
  }

  .banner_text h1 {
    font-size: 24px;
  }

  .banner_text p {
    font-size: 14px;
  }
}

/*全体見出し
---------------------------------------------------------------------------*/
.overall_headline {
    border-bottom: 8px solid #f2f2f2;
    margin-bottom: 2rem;
}

.overall_headline span {
    display: inline-block;
    position: relative;

    color: #333333;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: .015em;

    /* ボーダーとの距離 */
    padding: 0 1.1em .28em 0;

    /* スマホ基準 */
    font-size: clamp(1.5rem, 4vw, 2rem);

    margin-top: 40px;
}

.overall_headline span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;

    width: calc(100% + 26px);
    height: 8px;

    background: linear-gradient(
        90deg,
        rgba(0, 18, 55, 0.92) 0%,
        rgba(0, 45, 120, 0.82) 45%,
        rgba(0, 95, 210, 0.68) 100%
    );

    clip-path: polygon(
        0 0,
        92% 0,
        100% 100%,
        0 100%
    );
}

/* PC */
@media (min-width: 768px) {
    .overall_headline span {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .overall_headline {
        border-bottom-width: 6px;
        margin-bottom: 1.5rem;
    }

    .overall_headline span {
        padding-bottom: .22em;
        margin-top: 30px;
    }

    .overall_headline span::after {
        height: 6px;
        bottom: -6px;
    }
}


/* ===========================
   SUB HEADLINE（H3）
=========================== */

.sub_headline {
    border-bottom: 4px solid #f2f2f2;
    margin-bottom: 1.2rem;
}

.sub_headline span {
    display: inline-block;
    position: relative;

    color: #333333;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .015em;

    padding: 0 .9em .22em 0;

    /* スマホ基準 */
    font-size: clamp(1.05rem, 2.8vw, 1.3rem);
}

.sub_headline span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;

    width: calc(100% + 18px);
    height: 4px;

    background: linear-gradient(
        90deg,
        rgba(0, 18, 55, 0.92) 0%,
        rgba(0, 45, 120, 0.82) 45%,
        rgba(0, 95, 210, 0.68) 100%
    );

    clip-path: polygon(
        0 0,
        92% 0,
        100% 100%,
        0 100%
    );
}

/* PC */
@media (min-width: 768px) {
    .sub_headline span {
        font-size: 1.35rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .sub_headline {
        border-bottom-width: 3px;
    }

    .sub_headline span::after {
        height: 3px;
        bottom: -3px;
    }
}


/* =================================
   見出し位置 強制修正
================================= */

.main_container .overall_headline {
    display: block !important;
    width: 100% !important;

    margin: 0 0 24px 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
    border-bottom: 8px solid #f2f2f2 !important;

    position: relative !important;
    left: 0 !important;
    transform: none !important;
}

.main_container .overall_headline span {
    display: inline-block !important;
    position: relative !important;

    margin: 0 !important;
    padding: 0 1em .45em 0 !important;
}

.main_container .overall_headline::before,
.main_container .overall_headline::after {
    left: 0 !important;
}
/*サイトマップ用
---------------------------------------------------------------------------*/
.card_grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;

  max-width: 1000px;
  margin: 80px auto 0; /* 上 右左 下 */
}

/* タブレット */
@media screen and (max-width: 1024px){
  .card_grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* スマホ */
@media screen and (max-width: 767px){

  .card_grid{
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 20px; /* 左右余白追加 */
  }

}

/* =========================
   カード
========================= */

.card_link{
  text-decoration: none;
  color: inherit;
  display: block;
}

.card{
  background: #fff;
  overflow: hidden;
  border: 1px solid #ddd;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* =========================
   画像
========================= */

.card_image{
  overflow: hidden;
}

.card_image img{
  width: 100%;
  display: block;
  transition: transform .8s ease;
}

/* hoverで画像だけズーム */

.card_link:hover .card_image img{
  transform: scale(1.08);
}

/* =========================
   テキスト
========================= */

.card_body{
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* スマホ余白調整 */

@media screen and (max-width: 767px){

  .card_body{
    padding: 22px;
  }

}

.card_text{
  font-size: 15px;
  line-height: 2;
  margin-bottom: 32px;
}

/* スマホ文字サイズ */

@media screen and (max-width: 767px){

  .card_text{
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 24px;
  }

}

/* =========================
   ボタン
========================= */

.btn{
  color: #000;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-align: center;
  line-height: 48px;
  width: 210px;
  height: 48px;
  background: #FFF;
  border:1px solid #000;
  position: relative;
  overflow: hidden;
  transition: .5s;
  margin-top: auto;
}

/* スマホボタン */

@media screen and (max-width: 767px){

  .btn{
    width: 190px;
    height: 46px;
    line-height: 46px;
    font-size: 12px;
  }

}

/* =========================
   矢印
========================= */

.btn .icon{
  transition: all .45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
}

.btn .icon.arrow{
  left: 1.2rem;
  width: 1.125rem;
  height: 0.1rem;
  background: none;
}

.btn .icon.arrow::before{
  position: absolute;
  content: "";
  top: -0.3rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #000;
  border-right: 0.125rem solid #000;
  transform: rotate(45deg);
}

/* =========================
   Hover Animation
========================= */

.card_link:hover .btn{
  background: #f7f7f7;
}

.card_link:hover .btn .icon.arrow{
  background: #000;
  transform: translate(1rem, 0);
}

/*ボタン
---------------------------------------------------------------------------*/
.select_button{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  margin:10px 0;

  width:auto;
  height:28px;
  padding:0 12px;

  background:#0b4ea2;
  border:1px solid #0b4ea2;
  border-radius:0;

  color:#fff;
  text-decoration:none;
  font-size:11px;
  font-weight:700;
  letter-spacing:0.02em;
  white-space:nowrap;

  transition:
    background-color .2s ease,
    color .2s ease,
    border-color .2s ease;
}

/* 矢印 */
.select_button::after{
  content:"→";
  margin-left:5px;
  font-size:11px;
}

/* hover：色反転 */
.select_button:hover{
  background:#fff;
  color:#0b4ea2;
  border-color:#0b4ea2;
}