﻿/*
Theme Name: DG-Index
Description: Minimal starter theme for DG-Index
Version: 1.0
Author: 田村俊之
Text Domain: dgindex
*/

/* ===========================
   レイアウト共通
   =========================== */

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
		"Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN",
		"メイリオ", Meiryo, sans-serif;
	color: #333;
	background: #ffffff;
}

.site-bg {
	background: #ffffff;
	min-height: 100vh;
}

.site-frame {
	max-width: 1340px;          /* ★指定のMAX幅 */
	padding: 40px 20px 80px;
	display: flex;
	align-items: flex-start;
	gap: 60px;
	box-sizing: border-box;
	margin:0 auto;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* デフォルトではPC表示時に非表示 */
.sp-only {
  display: none;
}

/* スマホのみ表示 */
@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }
}

/* ===========================
   左の縦メニュー
   =========================== */

.site-sidebar {
	width: 260px;
	min-width: 260px;
	position: relative;
	/*flex: 0 0 260px;*/
	z-index: 30;   /* 適当な大きめの値（10とかでもOK） */
}

.site-sidebar__inner {
	background: #ffffff;
	border: 1px solid #d3d7de;      /* 枠線 */
	border-radius: 12px;
	padding: 20px 0px;
	box-sizing: border-box;
	box-shadow: 0 10px 20px rgba(0,0,0,0.04);
	min-height: 480px;
	display: flex;
	flex-direction: column;
	text-align: center;
}

/* DGロゴ部分 */
.site-logo {
	text-align: center;
	margin-bottom: 40px;
}

/* ========= ロゴ画像 ========= */

.site-logo__link {
    display: inline-block;
}

.site-logo__img {
    display: block;
    width: 64px;        /* ラフではロゴは結構小さめ */
    height: auto;
}

/* 下の小タイトル「DGインデックス」 */
.site-logo__name {
    font-size: 14px;
    color: #000;
    letter-spacing: .04em;
}


/* メニュー */
.site-nav {
	flex: 1 1 auto;
}

/* メニューリストのポチを消す */
.site-menu,
.site-menu ul,
.site-menu li {
	list-style: none !important;
}

/* PCでは縦に並ぶ */
.site-menu {
	display: flex;
	flex-direction: column;
	gap: 4px;

	/* ★ この2行を追加：左右に均等な余白をつくる */
	padding-left: 10px;
	padding-right: 10px;
	box-sizing: border-box;
}
/* メニュー項目（フラット＋全体色変化） */
/* 各項目のベース */
.site-menu li > a {
	display: block;
	position: relative;

	padding: 10px 14px;
	text-decoration: none;
	color: #0a2747;
	font-size: 16px;

	border: none;
	border-radius: 6px;
	background: #f7f9fb;

	transition:
		background .22s ease,
		color .18s ease;
	font-weight: 500;
}

/* ホバー時の色 */
.site-menu li > a:hover {
	background: #0a2747;
	color: #ffffff;
}

/* 子メニューを持つ項目に小さな矢印を付ける（任意） */
.site-menu .menu-item-has-children > a::after {
	  content: "";
	  display: inline-block;
	  width: 6px;
	  height: 6px;
	  border-top: 2px solid currentColor;
	  border-right: 2px solid currentColor;
	  transform: rotate(45deg);
	  position: absolute;
	  right: 10px;
	  top: 50%;
	  transform-origin: center;
	  transform: translateY(-50%) rotate(45deg);
	  opacity: .6;
}

/* ===========================
   PC用：フライアウト式サブメニュー
   =========================== */
@media (min-width: 960px) {

	/* 親 li を相対配置にして、sub-menu をその右側に出すための基準にする */
	.site-menu li {
		position: relative;
	}

	/* サブメニュー共通（1階層目・2階層目どちらも） */
/* サブメニュー共通（1階層目・2階層目どちらも） */
.site-menu .sub-menu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 180px; /* ←最低幅を決めておく（調整可） */
    max-width: 260px; /* ←これ以上は広がらないようにする */
    width: max-content; /* ←文字に合わせて自然に広がる */
    white-space: nowrap; /* ←折り返し防止 */

    background: #ffffff;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 12px 30px rgba(15,23,42,0.12);

    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility 0s linear .18s;
    z-index: 50;
}

	/* 下層メニュー内の li */
	.site-menu .sub-menu li > a {
		background: transparent;
		border-radius: 6px;
		padding: 8px 4px;
		font-size: 14px;
		color: #0a2747;
	}

	.site-menu .sub-menu li > a:hover {
		background: #e5eff9;
		color: #0a2747;
	}

	/* hoverしたらフェードイン＋ちょっとスライド */
	.site-menu li:hover > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateX(0);
		transition:
			opacity .18s ease,
			transform .18s ease,
			visibility 0s;
	}

	/* さらにその中の .menu-item-has-children も同じルールで右に伸びる */
	.site-menu .sub-menu .menu-item-has-children > .sub-menu {
		top: 0;
		left: 100%;
	}


}


/* 項目間の余白 */
.site-menu ul > li + li {
	margin-top: 8px;
}


/* 下部 お問い合わせボタン */
.site-sidebar__bottom {
	margin-top: 24px;
}

.sidebar-mail {
	padding: 10px 12px;
	border-radius: 6px;
	border: 1px solid #d3d7de;
	text-decoration: none;
	color: #0077c8;
	font-size: 14px;
}

.sidebar-mail__icon {
	font-size: 16px;
}

.sidebar-mail:hover {
	background: #0077c8;
	color: #ffffff;
}

/* ===========================
   メイン側
   =========================== */

.site-main {
	/*max-width:940px;*/
	flex: 1 1 auto;
	margin-top: 50px;
}

/* ===========================
   ヒーローエリア
   =========================== */

.main_area{
	min-height: 360px;
	max-width: 1100px;
	
}



/* ===========================
   ヒーローエリア 文字が出る
=========================== */

.hero {
	/*min-height: 360px;*/
	display: flex;
	align-items: center;
	text-align: center;
	max-width: 1100px;
	padding: 80px 0 40px 0;
}

.hero__inner {
	width: 100%;
}

.hero-title {
	margin: 0 0 28px;
	font-size: clamp(34px, 6vw, 66px);
	line-height: 1.1;
	font-weight: 900;
	color: #cbdce1;

	/* ★ 角度を強める */
	transform: rotate(-7deg);

	/* ★ 青いアウトライン */
	text-shadow:
		2px  2px 0 #0a6fbb,
	   -2px  2px 0 #0a6fbb,
		2px -2px 0 #0a6fbb,
	   -2px -2px 0 #0a6fbb;
	letter-spacing: 0.5px;
}

/* デフォルト：狭い幅（スマホ・タブレット）は <br> を無視する */
/* デフォルト：<br> は「なかったこと」にする */
.hero-title__br {
  display: none;
}

.hero-lead--below{
  max-width: 1100px;   /* サイトのコンテンツ幅に合わせる */
  margin: 40px auto 0; /* ヒーローとの距離 */
  padding: 0 16px;     /* 端末余白 */
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}
@media (max-width: 768px){
  .hero-lead--below{ font-size: 14px; }
}


.service-next__link{
  margin-left: 6px;
  color: inherit;                /* テキストになじませる */
  text-decoration: none;         /* 通常は下線なし */
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}

.service-next__link:hover{
  border-bottom-color: currentColor;
  color: #2563eb;                /* 少しだけ色を出す */
}

/* ある程度狭くなったら、ここで改行させる */
@media (max-width: 1259px) {
  .hero-title__br {
    display: block; /* br 自体が改行になる */
  }
}

@media (max-width: 990px) {
  .hero-title {
    font-size: clamp(42px, 7vw, 46px);
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: clamp(46px, 8vw, 36px);
  }
}

.hero-title span {
	display: inline-block;
	transform: translateY(40px);
	opacity: 0;
	transition:
		transform .55s cubic-bezier(0.19, 1, 0.22, 1),
		opacity .55s ease-out;
	white-space: pre;
}

.hero-title.is-visible span {
	transform: translateY(0);
	opacity: 1;
}

/* 帯エリア */
.hero-banner {
	position: relative;
	margin-top: 4px;
	margin-bottom: 14px;
}

.hero-banner__text {
	background: #0077c8;
	color: #ffffff;
	padding: 20px 22px;
	width: 80%;
	margin: 80px 0 0 auto;
	text-align: right;
}

.hero-banner__q {
	margin: 0 0 4px;
	font-size: 24px;
}

.hero-banner__a {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
}

/* 丸いボタン */
.hero-banner__circle {
	position: absolute;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	background: #002f57;
	color: #ffffff;
	text-decoration: none;
	font-size: 13px;
	text-align: center;
	line-height: 1.6;
	margin-left: auto;
	z-index: 100;
  	top: -120px;
  	right: 0;
}

.hero-banner__circle span {
	display: block;
}

.hero-banner__circle:hover {
	filter: brightness(1.1);
}

/* サブコピー */
.hero-sub {
	margin: 0;
	font-size: 20px;
  	color: #151515;
  	text-align: right;;

}



/* ===========================
   下のコンテンツセクション
   =========================== */

.section {
	padding: 80px 0 10px;
}

.section__inner {
	text-align: center;
}

.section-title {
	margin: 0 0 16px;
	font-size: 26px;
	font-weight: 600;
}

.section-text {
	margin: 0 0 12px;
	line-height: 2;
	font-size: 18px;
}




.service-switcher {
  max-width: 990px;
  /*margin: 0 auto;*/
  padding: 60px 20px;
}

.service-switcher__header {
  text-align: left;
  margin-bottom: 32px;
}

.service-switcher__title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
  text-align: center;	
    position: relative; /* ← afterを絶対配置するので必要 */
    padding-bottom: 10px; /* 文字とラインの距離調整 */
}

.service-switcher__title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 200px;  /* アンダーラインの長さ */
    height: 4px;   /* ラインの太さはお好みで */
    background-color: #9bc4e5; /* ブルーのブランドカラー */
    border-radius: 4px; /* 少し丸みをつけると上品に */
}

.service-switcher__lead {
  color: #252424;
  font-size: 18px;
  font-weight: 500;
  max-width: 700px; /* テキスト幅を制限（お好みで） */
  margin: 40px auto; /* 中央に配置 */
  text-align: left; /* 文章は左寄せ */
  line-height: 1.8;
  background-color: aliceblue;
  padding: 30px;
}

/* タブ（カード）部分 */
.service-switcher__tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.service-tab {
  border: none;
  background: #f4f4f6;
  padding: 14px 16px;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-tab__icon {
  display: inline-block;
  margin-bottom: 6px;
}

.service-tab__icon i {
  font-size: 60px;      /* ← ここで「結構大きく」を調整 */
  line-height: 1;
}

.service-tab__label {
  font-size: 14px;
  font-weight: 600;
}

.service-tab__sub {
font-size: 14px;
    color: #000000;
}

.service-tab:hover {
  transform: translateY(-2px);
  /*box-shadow: 0 5px 15px rgba(0,0,0,0.08);*/
}

.service-tab.is-active {
  background: #a1b1bd;
  color: #fff;
  /*box-shadow: 0 8px 20px rgba(15,23,42,0.35);*/
}


/* パネル部分 */
/* パネルのラッパー：高さアニメさせる */
.service-switcher__panels {
  position: relative;
  margin-top: 24px;
  transition: height 0.35s ease;
}

/* パネル本体：重ねてフェード＆スライド */
.service-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.service-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.service-panel__inner {
  background: #fff;
  border-radius: 18px;
  padding: 26px 24px 22px;
  border: 1px solid #e5e7eb;
  /*box-shadow: 0 12px 30px rgba(15,23,42,0.04);*/
}

.service-panel__title {
  font-size: 22px;
  margin: 0 0 8px;
  border-bottom: 1px solid #a1b1bd;	
}

.service-panel__subtitle {
  font-size: 16px;
  margin: 16px 0 6px;
  font-weight: 600;
  color: #0b4cb5;
}

.service-panel__text {
  font-size: 17px;
  color: #000;
  line-height: 1.8;
  margin-bottom: 8px;
}

.service-panel__list {
  margin: 0 0 14px;
  padding-left: 18px;
    font-size: 16px;
    color: #000000;
}

/* フッター行（ボタンを下＆右に寄せる役） */
.service-panel__footer {
  margin-top: auto;            /* 上のコンテンツを押し上げる */
  display: flex;
  justify-content: flex-end;   /* 右端に寄せる */
}

.service-panel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;

  background: #111827;
  color: #fff;
  text-decoration: none;

  border-radius: 999px;
  border: 1px solid transparent;

  transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.service-panel__btn:hover {
  background: #1f2937;
  opacity: 0.95;
  transform: translateY(-1px);
}
/* スマホ対応 */
@media (max-width: 1024px) {
  .service-switcher__tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .service-switcher {
    padding: 40px 0px;
  }

  .service-switcher__tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .service-tab {
    min-width: 220px;
    flex: 0 0 auto;
    padding: 12px 10px;
	max-width: 120px;
  }

  .service-panel__inner {
    padding: 20px 16px 18px;
  }
}

@media (max-width: 480px) {
  .service-switcher__title {
    font-size: 22px;
  }
}



.service-next {
  max-width: 990px;
  margin: 48px 0;  /* ← 上48px、左右auto、下0 */
  padding: 0 24px 60px; /* 下に少し余白を取るイメージ */
}

.service-next__header {
  text-align: left;
  margin-bottom: 80px;
  margin-top: 50px;
}

.service-next__title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 16px;
    text-align: center;
    position: relative; /* ← afterを絶対配置するので必要 */
    padding-bottom: 10px; /* 文字とラインの距離調整 */
}

.service-next__title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 200px;  /* アンダーラインの長さ */
    height: 4px;   /* ラインの太さはお好みで */
    background-color: #9bc4e5; /* ブルーのブランドカラー */
    border-radius: 4px; /* 少し丸みをつけると上品に */
}

.service-next__lead {
  color: #252424;
  font-size: 18px;
  font-weight: 500;
  max-width: 700px; /* テキスト幅を制限（お好みで） */
  margin: 40px auto 20px auto;
  text-align: left; /* 文章は左寄せ */
  line-height: 1.8;
  background-color: aliceblue;
  padding: 30px;  
}

.service-next {
  max-width: 990px;
  margin: 48px 0;  /* ← 上48px、左右auto、下0 */
  padding: 0 24px 60px; /* 下に少し余白を取るイメージ */
}


.service-block01 {
  max-width: 990px;
  margin: 48px 0;  /* ← 上48px、左右auto、下0 */
  padding: 0 24px 60px; /* 下に少し余白を取るイメージ */
}

.service-block01__header {
  text-align: left;
  margin-bottom: 50px;
  margin-top: 100px;
}

.service-block01__title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
  text-align: center;
  position: relative; /* ← afterを絶対配置するので必要 */
  padding-bottom: 10px; /* 文字とラインの距離調整 */
}

.service-block01__title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 200px;  /* アンダーラインの長さ */
    height: 4px;   /* ラインの太さはお好みで */
    background-color: #9bc4e5; /* ブルーのブランドカラー */
    border-radius: 4px; /* 少し丸みをつけると上品に */
}

.service-block01__lead {
  color: #252424;
  font-size: 18px;
  font-weight: 500;
  max-width: 700px; /* テキスト幅を制限（お好みで） */
  margin: 40px auto; /* 中央に配置 */
  text-align: left; /* 文章は左寄せ */
  line-height: 1.8;
  background-color: aliceblue;
  padding: 30px;  
}

/* ===========================
   ハンバーガー 共通
   =========================== */

.sp-toggle {
  border: none;
  background: transparent;
  padding: 4px;
  margin-left: auto;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

/* 3本線 */
.sp-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #333;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ハンバーガー → X */
.sp-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.sp-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.sp-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===========================
   SPメニュー本体 共通
   =========================== */

/* 閉じている状態 */
.sp-nav {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}

/* 開いた状態 */
.sp-nav.is-open {
  max-height: 500px; /* メニュー高さに応じて調整 */
  opacity: 1;
  pointer-events: auto;
}

/* メニューリスト */
.sp-nav__menu,
.sp-nav__menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-nav__menu > li > a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #111827;
  font-size: 15px;
  border-top: 1px solid #f3f4f6;
  background: #ffffff;
}

.sp-nav__menu > li > a:hover {
  background: #f3f4f6;
}

.sp-nav__menu .sub-menu a {
  padding: 8px 22px;
  font-size: 14px;
}


/* PCではSPヘッダー非表示 */
.site-header-sp {
  display: none;
}

/* PCナビを開閉できるように */
/*.sub-header__nav {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}*/

/* 開く */
.sub-header__nav.is-open {
  max-height: 500px; /* メニューの高さに応じて調整OK */
  opacity: 1;
  pointer-events: auto;
}



/* 960px以下でSPヘッダー有効化 */
@media (max-width: 960px) {
  .site-header-sp {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;

  }

  .site-header-sp__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
  }

  .site-header-sp__logo img {
    height: 34px;
    width: auto;
  }

  /* PC用の左ナビなどを消したい場合はここで */
  .site-sidebar, .sub-header__nav {
    display: none;
  }

  /* ★ ハンバーガーで is-open が付いたら表示する */
  .sub-header__nav.is-open {
    display: block;
  }
	
  /* ▼ ここからSP用レイアウト上書き ---------------------- */


	
}
/* ========= ハンバーガー共通 ========= */

.sp-toggle {
  border: none;
  background: transparent;
  padding: 4px;
  cursor: pointer;

  display: none; /* PCでは非表示 → SPで表示 */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.sp-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #333;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ハンバーガー → X */
.sp-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.sp-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.sp-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========= モーダルメニュー ========= */

/* ========= モーダルメニュー ========= */
/* ベース：最初は非表示（フェード＋スライド用） */
.sp-menu-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* 開いたとき：ふわっと表示 */
.sp-menu-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 背景の透過オーバーレイ */
.sp-menu-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* ふわっと暗く */
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* 開いたときだけオーバーレイを表示 */
.sp-menu-modal.is-open .sp-menu-modal__overlay {
  opacity: 1;
}

/* 右からスライドインするパネル本体 */
.sp-menu-modal__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 80%;
  max-width: 320px;
  background: #ffffff;

  /* ★ 下を広めに：ここを変えました */
  padding: 16px 16px 80px;

  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  transform: translateX(40px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

  .sp-menu-modal__list::after {
    content: "";
    display: block;
    height: 70px;  /* ここもお好みで */
  }

/* 開いたとき：スッと出てくる */
.sp-menu-modal.is-open .sp-menu-modal__panel {
  transform: translateX(0);
  opacity: 1;
}

/* 閉じるボタン（×） */
.sp-menu-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #111827;
}

/* “×”が背景に溶けて見えないとき用（任意で少し太くしてもOK） */
.sp-menu-modal__close:hover {
  opacity: 0.7;
}

/* メニューリスト */
.sp-menu-modal__list,
.sp-menu-modal__list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 1階層目 */
.sp-menu-modal__list > li > a {
  display: block;
  padding: 12px 8px;
  text-decoration: none;
  color: #111827;
  font-size: 15px;
  border-bottom: 1px solid #e5e7eb;
}

/* 子メニュー */
.sp-menu-modal__list .sub-menu a {
  padding: 10px 20px;
  font-size: 14px;
  border-bottom: 1px solid #f3f4f6;
}

/* 孫メニューがあればさらにインデント */
.sp-menu-modal__list .sub-menu .sub-menu a {
  padding-left: 32px;
}

/* 閉じるアニメーション中 */
.sp-menu-modal.closing .sp-menu-modal__overlay {
  opacity: 0;
}

.sp-menu-modal.closing .sp-menu-modal__panel {
  transform: translateX(40px); /* 右へスッと戻る */
  opacity: 0; /* フェードアウト */
}

/* 背景スクロールロック用 */
body.is-sp-menu-open {
  overflow: hidden;
}

/* ========= ブレイクポイント ========= */

/* SP時：ハンバーガー表示、PCナビ非表示 */
@media (max-width: 959px) {
  .sp-toggle {
    display: inline-flex;
  }

  .sub-header__nav {
    display: none; /* PCメニューは隠す */
  }

  /* メニューOPEN中は、ハンバーガー(X)を右上に浮かせておく */
  body.is-sp-menu-open .sp-toggle {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 10001;          /* モーダル(z-index:9999)より前に出す */

    background: #ffffff;
    border-radius: 999px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }	
	
}

/* PC時：モーダルは必ず非表示（念のため） */
@media (min-width: 960px) {
  .sp-menu-modal {
    display: none !important;
  }
}

/* ========= SPメニュー フォント拡大 ========= */

@media (max-width: 959px) {
  /* 第一階層 */
  .sp-menu-modal__list > li > a {
    font-size: 17px;
    padding: 14px 12px; /* タップ領域も少し広げる */
  }

  /* 第二階層（子メニュー） */
  .sp-menu-modal__list .sub-menu a {
    font-size: 15px;
    padding: 12px 28px; /* インデントそのまま少し広げる */
  }

  /* 孫メニュー */
  .sp-menu-modal__list .sub-menu .sub-menu a {
    padding-left: 40px;
  }
	
  /* 第一階層：上下ゆったり122%くらいに */
  .sp-menu-modal__list > li > a {
    padding: 16px 14px; /* (上下16px, 左右14px) → 押しやすさUP */
  }

  /* 第二階層：インデント＋余白 */
  .sp-menu-modal__list .sub-menu a {
    padding: 14px 28px;
  }

  /* 孫メニューも少し余裕 */
  .sp-menu-modal__list .sub-menu .sub-menu a {
    padding-left: 42px;
    padding-top: 12px;
    padding-bottom: 12px;
  }	

  /* PCのナビ CSS を無効化 */
  .sp-menu-modal__panel nav,
  .sp-menu-modal__panel .sub-header__nav,
  .sp-menu-modal__panel .sub-header__menu {
    all: unset; /* ← PC用の余計なスタイル完全リセット */
    display: block;
    width: 100%;
  }

  /* 表示構造の再定義 */
  .sp-menu-modal__list,
  .sp-menu-modal__list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .sp-menu-modal__list li {
    width: 100%;
  }

  /* ——— フォント＆カラー確定 ——— */
  .sp-menu-modal__list > li > a {
    display: block;
    padding: 18px 16px;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    color: #111827; /* 濃いめの視認性高い黒 */
    border-bottom: 1px solid #e5e7eb;
  }

  /* 子メニュー */
  .sp-menu-modal__list .sub-menu a {
    padding: 10px 28px;
    font-size: 16px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    display: inline-block;
  }

  /* 孫メニューのインデント */
  .sp-menu-modal__list .sub-menu .sub-menu a {
    padding-left: 42px;
    font-size: 14px;
  }

  /* hover：さりげなく背景 */
  .sp-menu-modal__list a:hover {
    background: #f3f4f6;
  }




}



@media (max-width: 960px) {
  .site-sidebar {
    display: none;
  }

  .site-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
  }
	
  .site-main_sub {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2px;
  }	

  .site-frame {
    display: block;   /* ★ flex を無効化 */
	padding: 0;
  }
}


/* セクション全体の余白（必要に応じて調整） */
.service-next {
  padding: 60px 20px 80px;
}

.panel__inner {
  background: #2a95af;
  border-radius: 18px;
  padding: 26px 24px 22px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15,23,42,0.04);
  margin-bottom: 20px;
}

.panel__title {
  font-size: 22px;
  margin: 0 0 8px;
  border-bottom: 1px solid #ffffff;	
  color: #fff;
}

.panel__subtitle {
  font-size: 16px;
  margin: 16px 0 6px;
  font-weight: 600;
  color: #ffffff;
}

.panel__text {
  font-size: 17px;
  color: #ffffff;
  line-height: 1.8;
  margin-bottom: 8px;
}

.panel__list {
  margin: 0 0 14px;
  padding-left: 18px;
    font-size: 16px;
    color: #ffffff;
}

/* フッター行（ボタンを下＆右に寄せる役） */
.panel__footer {
  margin-top: auto;            /* 上のコンテンツを押し上げる */
  display: flex;
  justify-content: flex-end;   /* 右端に寄せる */
}

.panel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  background: #f3cf5a;
  color: #252525;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.panel_th{
  margin: 100px 0 50px auto;
}

.panel_th p{
	font-size: 18px;
}


/* ====== セクション全体 ====== */
.company-info {
  padding: 60px 0;
  max-width: 990px;
}
.company-info__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px 0 0;
}

/* ====== 左：画像 ====== */
.company-info__img-wrap {
  flex: 1;
}
.company-info__img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* ====== 右：テキスト＆ボタン ====== */
.company-info__content {
  flex: 1;
}
.company-info__title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.company-info__lead {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* アイコンの位置・余白 */
.section-company__icon {
  display: inline-block;
  margin-left: 0.6em; /* 文字との間隔 */
}

/* アイコン画像のサイズ調整 */
.section-company__icon img {
    width: 60px;
    height: auto;
    vertical-align: middle;
}

/* スマホでは少し小さくする例 */
@media (max-width: 767px) {
  .section-company__icon img {
    width: 40px;
  }
}

/* ====== ボタン ====== */
.company-info__btns {
  display: flex;
  gap: 16px;
}
.btn {
  display: inline-block;
  padding: 14px 32px; /* 横方向を広くしてゆとりを出す */
  min-width: 180px;   /* ボタンの最小幅を指定して揃える */
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn--outline {
  border: 2px solid #1f3a56;
  color: #1f3a56;
}
.btn--outline:hover {
  background: #1f3a56;
  color: #fff;
}

/* ====== スマホ対応 ====== */
@media (max-width: 768px) {
  .company-info__inner {
    flex-direction: column;
    text-align: center;
  }

  .company-info__btns {
    flex-direction: column;  /*縦積みに*/
    width: 100%;             /*親を画面幅に合わせる*/
    max-width: 100%;
    gap: 12px;               /*SP向けに隙間少し狭く*/
    padding: 0 10px;         /*画面端に当たらないよう余白*/
    box-sizing: border-box;
  }
	
	.company-info__lead {
		text-align: left;
	}	

  .btn {
    width: 100%;             /*ボタンを横いっぱいに*/
    box-sizing: border-box;  /*padding含めて収める*/
  }
	
	
   .panel__btn {
	font-size:13px;
	margin: 0 auto;
	padding: 6px 10px;
   }
	
}


.simple-cta {
  padding: 20px 0;
    max-width: 990px;
    /* margin: 0 auto; */
    /*padding: 60px 20px;*/
}

.simple-cta__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px;
  text-align: center;
  border: 1px solid #ddd; /* 淡い枠 */
  border-radius: 12px;
  background: #fff;
}

.simple-cta__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1f3a56;
  margin-bottom: 24px;
}

.simple-cta__text {
  font-size: 1.0rem;
  text-align: center;
}

/* ボタン横並び（PC） */
.simple-cta__btns {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/*アイコン*/
.section-contact__icon {
  font-size: 48px;          /* 大きさ（もう少し調整可能） */
  color: #004278;           /* ブランドネイビー（仮） */
  margin-right: 12px;       /* テキストとの距離 */
  vertical-align: middle;   /* 見出し中央揃え */
  position: relative;
  top: -4px;                /* 少し上に持ち上げる */
}

/* ボタン内アイコンの統一調整 */
.btn i {
  font-size: 20px;          /* ← アイコン少し大きく */
  margin-right: 8px;        /* ← 文字との間に余白を作る */
  vertical-align: middle;   /* ← テキスト中央揃え */
  position: relative;
  top: -1px;                /* ← 微妙に持ち上げて自然に */
}

/* スマホで縦並びに */
@media (max-width: 768px) {
  .simple-cta__btns {
    flex-direction: column;
    gap: 12px;
  }
  .btn {
    width: 100%;
  }

.simple-cta__text {
  font-size: 1.0rem;
  text-align: left;
}
}

/* 共通 */
.section {
  padding: 40px 0;
  max-width: 990px;
}

.section__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0px;
}

.section-header {
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  text-align: left;
}

.section-subtitle {
  font-size: 14px;
  color: #666;
}

.section-footer {
  margin-top: 24px;
}

.section-footer--right {
  text-align: right;
}

/* アーカイブボタン（ボタン化） */
.btn-archive {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background-color: #0066cc;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color .25s, transform .15s;
}

.btn-archive i {
  font-size: 16px;
}

.btn-archive {
  background-color: #1b5166;
}

/* ホバー/アクティブ */
.btn-archive:hover {
  background-color: #004fa3;
}




/* 右寄せ配置 */
.section-footer--right {
  text-align: right;
}

/* Blog list 横並び */
.blog-list {
  display: flex;
  gap: 24px;

  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;

  padding-bottom: 12px; /* スクロールバー分の余白 */
  scroll-snap-type: x mandatory;
}

/* 横スクロール時は折り返さない */
.blog-list{
  flex-wrap: nowrap;
}

.blog-card {
  /* ここを変更 */
  flex: 0 0 calc(25% - 24px);  /* grow:0, shrink:0, basis:25% */
  max-width: calc(25% - 24px);
  min-width: 220px;
}

.blog-card{
  position: relative;
}

.blog-card + .blog-card::before{
  content: "";
  position: absolute;
  left: -12px;     /* gap(24px)の半分に置く */
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: rgba(15,23,42,.08);
}

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

.blog-card__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 8px;
}

.blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__thumb--noimg {
  width: 100%;
  height: 100%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  color: #999;
}

.blog-card__date {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.blog-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.blog-card__excerpt {
  font-size: 13px;
  color: #555;
  text-align: left;
}

/* SPでは縦並び */
@media (max-width: 768px) {
  .blog-card {
    flex: 1 1 100%;
  }
}

/* Information（シンプル＆下線付き） */
.info-list {
  border-top: 1px solid #eee;
}

.info-item {
  border-bottom: 1px solid #eee;
}

.info-item__link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
}

.info-item__date {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}

.info-item__title {
  font-size: 14px;
}

/* === Tool CTA (test) === */
.tool-cta { max-width: 990px; }
.section-lead { margin-top: 8px; opacity: .85; }

.tool-cta__box{
  display:flex;
  gap:24px;
  align-items:center;
  justify-content:space-between;
  padding:20px;
  border:1px solid rgba(15,23,42,.12);
  border-radius:16px;
  /*box-shadow:0 10px 24px rgba(15,23,42,.06);*/
}

.tool-cta__name{ margin:0 0 8px; font-size:1.2rem; }
.tool-cta__list{ margin:0; padding-left:1.2em; }
.tool-cta__action{ text-align:right; min-width:240px; }
.tool-cta__note{ margin:8px 0 0; font-size:.9rem; opacity:.7; }

.dg-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5em;
  padding:12px 16px;
  border-radius:12px;
  text-decoration:none;
  border:1px solid rgba(15,23,42,.18);
  font-weight:700;
}

@media (max-width: 768px){
  .tool-cta__box{ flex-direction:column; align-items:stretch; }
  .tool-cta__action{ text-align:left; min-width:auto; }
  .dg-btn{ width:100%;box-sizing: border-box; }
}

/* CTA 全体 */
.tool-cta__action {
  margin-top: 32px;
  text-align: center;
}

/* メインボタン */
.dg-btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 26px;
  border-radius: 9999px;

  background: linear-gradient(
    135deg,
    #1f3c88,
    #2563eb
  );

  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;

  text-decoration: none;
  box-shadow:
    0 6px 16px rgba(37, 99, 235, 0.25);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

/* アイコン */
.dg-btn--primary i {
  font-size: 18px;
  line-height: 1;
}

/* hover */
.dg-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 24px rgba(37, 99, 235, 0.35);
  opacity: 0.95;
}

/* active */
.dg-btn--primary:active {
  transform: translateY(0);
  box-shadow:
    0 6px 16px rgba(37, 99, 235, 0.25);
}

/* 注釈 */
.tool-cta__note {
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
}

/*403ページ用*/
.error-page {
  padding: 80px 20px;
  text-align: center;
}

.error-code {
  font-size: 96px;
  font-weight: 800;
  color: #e5e7eb;
}

.error-title {
  font-size: 24px;
  margin-bottom: 16px;
}

.error-text {
  color: #555;
  margin-bottom: 32px;
}

/* =========================
   Single Post (info/blog) layout
========================= */

.entry {
  max-width: 860px;         /* 読みやすい幅 */
  margin: 0 auto;
  padding: 28px 0 60px;
}

.entry-header {
  margin-bottom: 18px;
  text-align: left;         /* 中央寄せを避ける */
}

.entry-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  margin: 0 0 10px;
}

.entry--info .entry-label {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.entry-title {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.25;
  margin: 8px 0 0;
  letter-spacing: .01em;
}

.entry-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
}

.entry-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
}

/* アイキャッチを「どーん」をやめて、読みやすい比率で */
.entry-thumb {
  margin: 18px 0 22px;
}

.entry-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  /* 画像の縦伸び/バラつき対策 */
  max-height: 440px;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

/* コンテンツの読みやすさ（行間・余白） */
.entry-content {
  font-size: 18px;
  line-height: 1.9;
  color: #0f172a;
}

.entry-content p {
  margin: 0 0 1.1em;
  font-size: 18px;
}

.entry-content h2 {
  margin: 2.0em 0 0.8em;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.35;
  padding-left: 12px;
  border-left: 4px solid rgba(59, 130, 246, 0.6);
}

.entry-content h3 {
  margin: 1.6em 0 0.6em;
  font-size: 18px;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.2em 1.2em;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}


/* タグ */
.entry-tags ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.entry-tags a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.entry-tags a:hover {
  background: #e2e8f0;
}

/* 前後ナビ */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 26px 0 18px;
}

.post-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
}

.post-nav a:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.post-nav__next {
  text-align: right;
}

/* 戻るボタンを「ボタン化」 */
.entry-back {
  margin: 16px 0 0;
}

.entry-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.entry-back a:hover {
  opacity: .9;
}

/* ブログ記事ページだけ padding を狭くする */
.single-post .site-main {
  padding-left: 0px;
  padding-right: 0px;
}

/* SP調整 */
@media (max-width: 768px) {
  .entry {
    padding: 18px 0 44px;
  }
  .entry-thumb img {
    max-height: 300px;
    border-radius: 14px;
  }
  .post-nav {
    grid-template-columns: 1fr;
  }
  .post-nav__next {
    text-align: left;
  }
}

.entry-back a i {
  font-size: 18px;
  line-height: 1;
}

/* =========================
   Tool CTA（AI爆速Webスターターキット）リリース前
========================= */

.tool-cta {
  margin: 1rem 0;
}

.tool-cta .section-header {
  margin-bottom: 2.5rem;
}

.tool-cta .section-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.tool-cta .section-lead {
  color: #000;
  margin: 0 auto;
  font-size: 1.2rem;
}

/* ボックス本体 */
.tool-cta__box {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

/* テキスト側 */
.tool-cta__name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.tool-cta__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tool-cta__list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  color: #061320;
}

.tool-cta__list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #2563eb; /* ブランドに合わせて調整OK */
  font-size: 0.9rem;
}

/* アクション側 */
.tool-cta__action {
  text-align: center;
}

/* リリース前タグ */
.tool-cta__note {
display: block;
  padding: 0.4rem 0.9rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  background: #ff9309;
  border-radius: 999px;
  letter-spacing: 0.04em;
  margin: 0 auto;
  text-align: center;
}

/* =========================
   レスポンシブ
========================= */
@media (max-width: 768px) {
  .tool-cta__box {
    grid-template-columns: 1fr;
    padding: 1.75rem;
    text-align: left;
  }

  .tool-cta .section-header {
    text-align: left;
  }

  .tool-cta__action {
    margin-top: 1rem;
    text-align: left;
  }
}

.alert_font{
	color: #f00;
}

.under_sec{
	height:100px;
}

/*トップページに滋賀ホームページ対策用ページにリンク*/
.service-next__link-inline {
  display: block;
  margin-top: 0.4em;
  text-align: right;
}

.service-next__link-inline a {
  font-size: 0.9rem;
  color: #555;
  text-decoration: underline;
}