@charset "utf-8";
/*
Theme Name: 有限会社カシヤマ総合保険
Theme URI: https://ks-hoken.com
Description: あなたの未来に安心という備えを。有限会社カシヤマ総合保険は、自動車・火災・生命など幅広い保険で人生のもしもに対応し、信頼でつなぐパートナーを目指します。
Version: 202511

*/
/* ***************************************************************** 
*	共通設定
* ***************************************************************** */
*, *:before, *:after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  list-style: none;
  line-height: 1em;
  text-decoration: none;
}
:root {
  --c-main: #0056a6; /* メインカラー */
  --c-sub: #007baa; /* サブカラー */
  --c-text: #000000; /* テキストカラー */
  --c-text-sub: #736357; /* サブテキストカラー */
  --c-bg: #f4f6f8; /* バックグラウンドカラー */
  --btn-radius: 9999px; /* pill 型 */
}
@media (min-width: 751px) {
  a[href*="tel:"] {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
  }
}
.br-sp {
  display: inline;
}
.br-pc {
  display: none;
}
@media screen and (min-width: 751px) {
  .br-sp {
    display: none;
  }
  .br-pc {
    display: inline;
  }
}
/* 初期状態ではSP非表示（PC用表示） */
.slider-pc {
  display: block;
}
.slider-sp {
  display: none;
}

/* 750px以下（スマホ）では反転 */
@media screen and (max-width: 750px) {
  .slider-pc {
    display: none;
  }
  .slider-sp {
    display: block;
  }
}

/* ***************************************************************** 
*	基本設定
* ***************************************************************** */
body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  font-size: 18px;
  background: var(--c-bg);
  color: #000;
  line-height: 190%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.en-text {
  font-family: "Josefin Sans", sans-serif;
}
/* リンク
---------------------------------------------------- */
a {
  text-decoration: none;
  transition: 0.5s;
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -o-transition: 0.5s;
  -ms-transition: 0.5s;
}
/* 画像
---------------------------------------------------- */
img {
  border: 0;
  padding: 0px;
  margin: 0px
}
ul {
  margin: 0;
  padding: 0;
  list-style: disc;
}
li {
  margin: 0;
  padding: 0;
}
li a {
  color: #45AAB8;
  transition: 0.5s;
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -o-transition: 0.5s;
  -ms-transition: 0.5s;
}
/* *****************************************************************
*	全体Wrapper
* ***************************************************************** */
.wrapper {
  margin: auto;
}
/* 既存 */
/* すべてのページのデフォルト：sticky */
#header {
  position: sticky;
  top: 0; /* stickyはtopが必須 */
  z-index: 999;
  width: 100%;
  background: transparent;
  transition: background-color .3s ease, padding .3s ease;
}
/* トップページ（home）だけfixedに切り替え */
.home #header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
/* スクロール後 */
#header.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
}
/* ヘッダー内側の上下余白も少し締めると高さが自然に下がる */
.header-inner {
  max-width: 1920px;
  overflow: hidden;
  margin: 0 auto;
  padding: 10px 0; /* ← 初期 */
  display: flex;
  align-items: center;
  transition: padding 0.3s ease;
}
#header.scrolled .header-inner {
  padding: 6px 0; /* ← スクロール後に少し薄く */
}
/* ロゴ：初期は最大480px */
.logo {
  text-align: left;
  margin: 0;
  padding: 0;
  max-width: clamp(350px, 14.38vw, 480px);
  width: 100%;
}
/* 画像自体にもトランジションを付けると綺麗に縮む */
.logo img {
  display: block;
  transition: max-width 0.25s ease, transform 0.25s ease;
}
/* スクロール後：ロゴを最大300pxに */
#header.scrolled .logo {
  max-width: 300px;
}
#header.scrolled .logo img {
  max-width: 300px;
}
/* トップナビゲーション
---------------------------------------------------- */
#nav {
  width: 100%;
  margin: 0 auto;
  z-index: 9999;
  padding: 0;
  text-align: right;
}
#nav ul {
  list-style: none;
  margin: auto;
}
.main-navigation {
  clear: both;
  margin: 0 auto;
  position: relative;
}
ul.nav-menu, div.nav-menu > ul {
  margin: 0;
  padding: 0;
}
.nav-menu li {
  display: inline-block;
  position: relative;
  margin: 0 -2px 0 -2px;
}
.nav-menu li a {
  position: relative;
  color: #333;
  display: block;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 30px;
  overflow: hidden;
  transition: color 0.3s ease;
  z-index: 0;
}
/* 擬似要素：初期は中央で高さゼロの状態 */
.nav-menu li a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--c-main);
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  transition: transform 0.4s ease;
  z-index: -1;
}
/* ホバー時：中央から上下へ広がる */
.nav-menu li a:hover::before {
  transform: translateY(-50%) scaleY(1);
  height: 100%;
}
/* テキストカラー変更 */
.nav-menu li a:hover {
  color: #fff;
}

.nav-menu li a:active { color: #fff; }

/* サブメニューにも同様の効果を適用 */
.nav-menu .sub-menu a::before, .nav-menu .children a::before {
  background: var(--c-main);
}
.nav-menu .sub-menu a:hover, .nav-menu .children a:hover {
  color: #fff;
}
.toggle {
  display: none;
}
.menu-toggle {
  width: 40px;
  height: 40px;
}
.hamburger {
  display: none;
}
/* ハンバーガーメニュー
---------------------------------------------------- */
/*!
* Hamburgers
* @description Tasty CSS-animated hamburgers
* @author Jonathan Suh @jonsuh
* @site https://jonsuh.com/hamburgers
* @link https://github.com/jonsuh/hamburgers
*/
.hamburger {
  padding: 10px 2px;
  display: inline-block;
  cursor: pointer;
  transition-property: opacity, -webkit-filter;
  transition-property: opacity, filter;
  transition-property: opacity, filter, -webkit-filter;
  transition-duration: 0.15s;
  transition-timing-function: linear;
  font: inherit;
  color: inherit;
  text-transform: none;
  background-color: transparent;
  border: 0;
  margin: 0;
  overflow: visible;
}
.hamburger:hover {
  opacity: 0.7;
}
.hamburger-box {
  width: 40px;
  height: 24px;
  display: inline-block;
  position: relative;
}
.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
  width: 35px;
  height: 3px;
  background-color: #000;
  border-radius: 4px;
  position: absolute;
  transition-property: -webkit-transform;
  transition-property: transform;
  transition-property: transform, -webkit-transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}
.hamburger-inner::before, .hamburger-inner::after {
  content: "";
  display: block;
}
.hamburger-inner::before {
  top: -10px;
}
.hamburger-inner::after {
  bottom: -10px;
}
/*
* Spin
*/
.hamburger--spin .hamburger-inner {
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
.hamburger--spin .hamburger-inner::before {
  transition: top 0.1s 0.34s ease-in, opacity 0.1s ease-in;
}
.hamburger--spin .hamburger-inner::after {
  transition: bottom 0.1s 0.34s ease-in, -webkit-transform 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19);
  transition: bottom 0.1s 0.34s ease-in, transform 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19);
  transition: bottom 0.1s 0.34s ease-in, transform 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19), -webkit-transform 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
.hamburger--spin.is-active .hamburger-inner {
  -webkit-transform: rotate(225deg);
  transform: rotate(225deg);
  transition-delay: 0.14s;
  transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}
.hamburger--spin.is-active .hamburger-inner::before {
  top: 0;
  opacity: 0;
  transition: top 0.1s ease-out, opacity 0.1s 0.14s ease-out;
}
.hamburger--spin.is-active .hamburger-inner::after {
  bottom: 0;
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
  transition: bottom 0.1s ease-out, -webkit-transform 0.3s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1);
  transition: bottom 0.1s ease-out, transform 0.3s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1);
  transition: bottom 0.1s ease-out, transform 0.3s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 0.3s 0.14s cubic-bezier(0.215, 0.61, 0.355, 1);
}
/* 見出し
---------------------------------------------------- */
h1 {
  font-size: 24px;
}
h2 {
  font-size: 42px;
  margin: 0;
  padding: 0;
  font-weight: 500;
  line-height: 1.5em;
}
h3 {
  font-size: 36px;
  margin: 0;
  padding: 0;
  font-weight: 500
}
/* テキスト
---------------------------------------------------- */
p {
  font-size: 20px;
  color: #000;
  line-height: 2em;
  padding: 15px 0px;
}
/* パンくずリスト
---------------------------------------------------- */
.breadcrumb {
  margin: 10px 0 0px 0;
  line-height: 120%;
}
.breadcrumb div {
  display: inline;
  font-size: 11px;
  color: #999;
}
.breadcrumb span, .breadcrumb span a {
  color: #45aab8;
}
.breadcrumb ol {
  margin: 0px;
}
.breadcrumb li {
  margin: 0px;
  display: inline;
}
/* WP必須
---------------------------------------------------- */
.wp-caption {
  max-width: 100%;
}
.wp-caption-text {
  font-size: 90%;
  text-align: center;
}
.sticky {}
.gallery-caption {}
.bypostauthor {}
/* Text meant only for screen readers. */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000; /* Above WP toolbar. */
}
/* トップヘッダー画像
---------------------------------------------------- */
.top-header {
  width: 100%;
  position: relative;
}
.ksh_logo {
  position: absolute;
  top: 50%;
  right: 0%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}
.ksh_logo img {
  width: clamp(800px, 62vw, 1160px);
  height: auto;
}
.heading {
  position: absolute;
  top: 50%;
  right: 100px;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}
.heading h2 {
  font-size: clamp(60px, 5.625vw, 90px);
  color: var(--c-main);
  margin-bottom: 25px;
  font-weight: 900;
}
.heading h3 {
  font-size: clamp(30px, 3.125vw, 50px);
}
.heading p {
  font-size: clamp(20px, calc(1.25vw + 3.999px), 26px);
  margin-top: 25px;
  line-height: 1.5em;
}
/* サブヘッダー画像
---------------------------------------------------- */
.sub-header {
  width: 100%;
  height: 250px;
  position: relative;
}
.sub_title {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}
.sub_title h2 {
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(50px, calc(3.125vw + 10px), 90px);
  color: var(--c-main);
  /* 1280pxで50px、1920pxで90px */
}
.sub_title h3 {
  font-size: clamp(18px, calc(0.625vw + 10px), 24px);
  /* 1280pxで18px、1920pxで24px */
}
.sub_logo {
  position: absolute;
  top: 50%;
  right: 0%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}
.sub_logo img {
  width: clamp(350px, calc(12.5vw + 190px), 430px);
  height: auto;
}
.identity {
  width: 100%;
  min-height: 100vh;
  background-image: url(images/home/identity_bg.png);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.identity_cont {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}
.service {
  width: 100%;
  min-height: 100vh;
  background-image: url(images/home/service_bg.png);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.service_box {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex; /* ← 追加：右寄せを安定させる */
  justify-content: flex-end; /* ← 子要素を右側に寄せる */
}
.service_cont {
  width: 100%;
  max-width: 680px;
  text-align: center;
}
.home_il {
  width: 100%;
  margin-bottom: 15px;
}
.identity h2, .service h2 {
  color: rgba(0, 86, 166, 0.5);
  font-size: clamp(50px, calc(50px + (30 * ((100vw - 1280px) / 640))), 80px);
  font-weight: 900;
  line-height: 1em;
}
.identity h3, .service h3 {
  font-size: clamp(28px, 2.5vw, 40px);
  color: var(--c-text-sub);
  margin: 30px 0 10px;
  font-family: "Zen Old Mincho", serif;
  line-height: 1em;
}
.identity h3 span, .service h3 span {
  font-size: clamp(22px, 1.7vw, 32px);
  color: var(--c-text-sub);
  margin: 30px 0 10px;
  font-family: "Zen Old Mincho", serif;
}
.identity p, .service p {
  color: var(--c-main);
  text-align: left;
}
.insurance {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 0;
  text-align: center;
}
.insurance h2 {
  display: inline-block;
  color: var(--c-main);
  border-bottom: 3px solid;
  padding-bottom: 5px;
  margin-bottom: 10px;
  font-size: clamp(24px, calc(1.333vw + 7px), 32px);
}
.insurance h3 {
  font-size: clamp(18px, calc(1vw + 6.8px), 24px);
  color: var(--c-text-sub);
}
.insurance-list {
  display: flex;
  max-width: 1100px;
  margin: 30px auto 0;
}
.insurance-list_bn {
  width: calc(100% / 4);
}
.contact {
  width: 100%;
  height: 650px;
  background-image: url(images/home/contact_bg_l.png), url(images/home/contact_bg_r.png);
  background-repeat: no-repeat, no-repeat;
  background-position: left center, right center;
  background-size: auto 100%, auto 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact_cont {
  margin-bottom: 50px;
}
.contact_head {
  color: var(--c-text-sub);
  font-size: clamp(18px, calc(1vw + 6.8px), 24px);
}
.contact_img {
  max-width: 450px;
  margin: 10px auto;
}
.contact_time {
  font-size: 18px;
}
.contact_car_title {
  position: relative;
  font-size: clamp(28px, calc(1.25vw + 3px), 32px);
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}
.contact_car_title::before {
  content: "";
  display: inline-block;
  width: 85px;
  height: 85px;
  background-image: url(images/common/car_trouble.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  margin-right: 10px;
  vertical-align: middle;
}
.contact_car_tel {
  max-width: 1100px;
  display: flex;
  margin: 15px auto;
}
.contact_car_tel_box {
  width: calc(100% / 2);
}
.contact_car_tel_box img {
  background: #FFF;
  border-radius: 15px;
  padding: 50px;
}
/* 会社概要 */
.message, .aboutus {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.mb {
  margin-bottom: 80px !important;
}
.section_title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}
.section_title h2 {
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(42px, 2.8vw, 54px);
  color: #0056a6;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  white-space: nowrap;
}
.section_title h2 span {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(22px, 1.5vw, 28px);
  color: #0056a6;
  letter-spacing: 0.05em;
}
/* 英字の右にグラデーションライン */
.section_title::after {
  content: "";
  flex: 1;
  height: 5px;
  background: linear-gradient(to right, rgba(0, 86, 166, 0), #0056a6);
  margin-left: 15px;
}
.president {
  display: flex;
  justify-content: flex-end;
  position: relative;
  height: 530px;
  margin-bottom: 30px;
}
.president_message {
  max-width: clamp(650px, calc(5vw + 700px), 780px);
}
.president_message h2 {
  font-size: clamp(32px, 2.2vw, 42px);
  color: var(--c-sub);
}
.president_message p, .message_part p, .mission p {
  line-height: 2em;
  font-size: 18px;
}
.name {
  display: inline-block; /* 要素幅を内容に合わせて右端に配置 */
  text-align: left; /* 子要素を左寄せに */
  float: right; /* 全体を右側へ寄せる */
}
.company_name {
  color: var(--c-main);
  font-size: 20px;
}
.president_name {
  color: var(--c-main);
  font-size: 28px;
  margin-top: 10px;
}
.president_name span {
  font-size: 20px;
  margin-right: 10px;
}
.president_img {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}
.president_img img {
  display: block;
  width: 100%;
  height: auto;
  /* 右に向かって透明にするマスク */
  -webkit-mask-image: linear-gradient(to right, #000 80%, transparent 100%);
  mask-image: linear-gradient(to right, #000 80%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.plaque {
  position: absolute;
  bottom: 0;
  right: 100px;
  ;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
}
.message_part {
  width: 100%;
}
.message_part h2 {
  color: var(--c-main);
  font-size: 36px;
  margin-bottom: 15px;
}
.message_part h3 {
  color: var(--c-sub);
  font-size: 22px;
}
.message_part p {
  margin-bottom: 30px;
}
.section-divider {
  max-width: 1920px;
}
.mission {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: url("images/about/mission_logo.png");
  background-repeat: no-repeat;
  background-position: center center; /* ← 上下左右センター */
  background-size: contain; /* ← 画像を縦横比を保って全体に収める */
}
.mission h2 {
  font-size: clamp(30px, 1.9vw, 36px);
  color: var(--c-sub);
  text-align: center;
}
.creed {
  text-align: center;
}
.creed__list {
  margin: 0 auto;
  padding-left: 0;
  width: fit-content;
  list-style: none;
  counter-reset: creedNum;
}
.creed__list > li {
  counter-increment: creedNum;
  position: relative;
  padding-left: 2.5em;
  font-size: 18px;
  line-height: 2;
  text-align: left;
}
.creed__list > li::before {
  content: counter(creedNum) ".";
  position: absolute;
  top: 50%; /* 親要素の中央に配置 */
  left: 0;
  transform: translateY(-50%); /* 上下中央に補正 */
  color: #333;
  font-weight: 600;
  width: 2em;
  text-align: right;
  line-height: 1; /* 不要なズレ防止 */
}
.profile {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.profile table {
  width: 100%;
}
.profile table th, .profile table td {
  padding: 30px;
  line-height: 2em;
  border-bottom: 1px solid var(--c-main);
}
.profile table th {
  color: var(--c-main);
  text-align: center;
  width: 20%;
  vertical-align: middle;
}
.profile_photo {
  width: 100%;
  display: flex;
}
.profile_photobox {
  width: calc(100% / 2);
  padding: 0 10px;
}
/* サービス紹介 */
.insurance_plans, .customer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.customer {
  text-align: center;
}
.customer h2 {
  font-size: clamp(30px, 2vw, 38px);
  color: var(--c-main);
  border-bottom: 3px solid;
  padding: 0 20px 10px;
  margin-bottom: 30px;
  display: inline-block;
}
.customer p {
  text-align: left;
}
.customer_img {
  width: 100%;
}
.item_list {
  display: flex; /* ← これが重要 */
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px; /* アイコン間の余白を確保 */
  margin: 0 auto 30px;
}
.item_icon, .c_item_icon {
  flex: 0 1 auto; /* 幅を固定せず自動調整 */
  text-align: center;
  padding: 15px 30px;
}
.c_item_icon {
  width: calc(25% - 10px); /* 4つ並んだら自動で折り返し */
  box-sizing: border-box;
  text-align: center;
}
.c_item_icon:nth-child(6) {
  width: 40%;
}
.item_name {
  font-size: 24px;
  margin: 10px 0;
  color: var(--c-main);
  font-weight: 500;
}
.item_list ul {
  margin: 10px 0 0;
  display: inline-block;
}
.item_list ul li {
  font-size: 18px;
  list-style: disc;
  text-align: left;
  color: var(--c-main);
  line-height: 1.5em;
}
.flow {
  max-width: 1200px;
  margin: 0 auto;
}
.flow_cont {
  max-width: 1100px;
  margin: 0 auto;
}
.flow_item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 50px;
}
/* 左側のタイトルブロック */
.flow_title {
  display: flex;
  flex-direction: column; /* アイコンの下にラベルを配置 */
  align-items: center; /* アイコンを中央揃え */
  min-width: 280px;
  text-align: left; /* ラベル部分は左寄せ */
}
/* アイコン */
.flow_icon {
  width: 60px; /* アイコンサイズ（調整可） */
  height: auto;
  margin-bottom: 5px;
}
/* 番号＋タイトル部分 */
.flow_label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-direction: column;
}
/* 番号 */
.flow_label .num {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-sub);
  margin-bottom: 10px;
}
/* タイトル */
.flow_label h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-sub);
  margin: 0;
}
/* 右側の本文 */
.flow_text {
  flex: 1;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}
.flow_text p {
  padding: 0;
  margin: 0 0 10px;
}
.flow_text .note {
  color: #d00;
  margin-top: 10px;
}
/* フッター contact の軽いハイライト */
#contact.contact-flash {
  animation: contactFlash 0.8s ease-out;
}
@keyframes contactFlash {
  0% {
    background-color: rgba(0, 123, 170, 0.1);
    box-shadow: 0 0 0 0 rgba(0, 123, 170, 0.3);
  }
  100% {
    background-color: transparent;
    box-shadow: none;
  }
}
/* ポリシー */
.policy {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.policy h2 {
  font-size: 28px;
  color: var(--c-main);
}
.policy p {
  font-size: 16px;
  padding: 10px 0 10px 25px;
}
.policy ul {
  margin-left: 25px;
}
.policy ul li {
  font-size: 16px;
  line-height: 2em;
  list-style: disc;
  list-style-position: outside;
}
.policy ul li a {
  color: #000;
}
.policy ul li a:hover {
  color: #666;
}
.policy_se {
  margin: 30px auto;
}
.policy p.policy_note {
  color: var(--c-main);
  font-size: 20px;
  font-weight: 600;
}
.policy_de {
  margin: 30px auto;
}
.policy_de h2 {
  font-size: 20px;
  color: #000;
}
.policy_de p {
  margin-bottom: 20px;
}
.policy-updated, .note-end {
  width: 100%;
  text-align: right;
}
.note-end {
  margin-bottom: 30px;
}
/* 自動連番用カウンターリセット（policy内で管理） */
.policy {
  counter-reset: sale-counter;
}
/* 各項目ごとにカウントアップ */
.policy p.sale_note {
  position: relative;
  color: var(--c-main);
  font-size: 20px;
  font-weight: 600;
  padding-left: 2.4em;
  line-height: 1.8;
  counter-increment: sale-counter;
}
/* beforeで番号を表示 */
.policy p.sale_note::before {
  content: counter(sale-counter) ".";
  position: absolute;
  left: 30px;
  top: 18px;
  font-weight: 600;
  color: var(--c-main);
}
/* 共通リンクボタン */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: auto;
  margin: 0 auto;
  padding: 15px 50px;
  overflow: hidden;
  border: 1px solid var(--c-sub);
  border-radius: 5px;
  background-color: #fff;
  color: var(--c-sub);
  font-size: 28px;
  text-decoration: none;
  line-height: 1;
}
/* 背景スライド用：上に重ねる（背景の上／テキストの下） */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 0; /* 0→100% にアニメーション */
  height: 100%;
  background-color: var(--c-sub);
  z-index: -1; /* ここがポイント：-1にしない！ */
  transition: width .3s ease;
}
.btn::after {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 10px;
  display: inline-block;
  font-size: 25px;
  color: currentColor;
  transition: transform .3s ease;
  padding-top: 5px;
}
.btn:hover::after {
  transform: translateX(4px);
}
/* ホバー：背景を広げて、文字色を白に */
.btn:hover {
  color: #fff;
}
.btn:hover::before {
  width: 100%;
}
/* テキストを最前面に（背景の上に） */
.btn {
  z-index: 0;
}
.btn, .btn * {
  position: relative;
  z-index: 1;
}
/* Google Mapボタン */
.btn-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  margin-top: 8px;
  background-color: var(--c-sub, #007baa);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}
/* アイコン矢印 */
.btn-map::after {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.9em;
  margin-left: 6px;
  transition: transform 0.3s ease;
}
/* ホバー時 */
.btn-map:hover {
  background-color: #005f82; /* 少し濃いトーン */
  transform: translateY(-2px);
  color: #FFF;
}
.btn-map:hover::after {
  transform: translateX(4px);
}
/* *****************************************************************
*	フッター
* ***************************************************************** */
#footer {
  background: #F5F5F5;
  clear: both;
  width: 100%;
  font-size: 80%;
  margin: 0px auto 0px auto;
}
.footer-inner {
  margin: 0 auto;
  padding: 100px 0px 20px;
  max-width: 960px;
  text-align: center;
}
.f_logo {
  width: 100%;
}
.f_c_name {
  max-width: clamp(500px, calc(0.156vw + 498px), 600px);
  margin: 15px auto;
}
.footer-menu {
  margin: 15px auto;
}
.footer-menu ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em; /* リンク間の余白 */
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-menu ul li {
  border-right: 1px solid #ccc; /* 区切り線 */
  padding-right: 1em;
}
.footer-menu ul li:last-child {
  border-right: none; /* 最後は線を消す */
  padding-right: 0;
}
.footer-menu a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  transition: color 0.3s;
}
.footer-menu a:hover {
  color: var(--c-sub, #007baa); /* サブカラーなどに変更可能 */
}
#copyright {
  font-size: 16px;
  color: #FFF;
  text-align: left;
  position: relative;
  margin: 0;
  padding: 15px;
  background: var(--c-main);
}
/* *****************************************************************
*	CSS3アニメーション
* ***************************************************************** */
.img-anime2 img {
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}
.img-anime2:hover img {
  -webkit-transform: scale(1.3);
  transform: scale(1.3);
}
/* *****************************************************************
*   レスポンシブ（メディアクエリ）
* ***************************************************************** */
/* Tablet (Portrait) 画面の横幅が〜1280pxまで
---------------------------------------------------- */
@media only screen and (max-width: 1280px) {
  .wrapper {
    width: 100%;
    padding: 0 20px;
  }
  .header-inner {
    width: 100%;
    padding: 10px 20px;
  }
  #nav {
    float: none;
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }
  .nav-menu li a {
    font-size: 16px;
    padding: 10px 15px;
  }
  .heading {
    right: 30px;
  }
  .identity {
    min-height: 80vh;
  }
  .service {
    min-height: 90vh;
  }
  .insurance-list_bn {
    padding: 0 10px;
  }
  .contact {
    height: 80vh;
  }
  .contact_car_tel_box {
    padding: 0 25px;
  }
  .president_img {
    left: -80px;
  }
  .plaque {
    bottom: 40px;
    right: 200px;
    max-width: 200px;
  }
  .footer-inner {
    width: 100%;
    padding: 50px 0px;
  }
}
@media only screen and (max-width: 870px) {
  .header-inner {
    padding: 10px 5px;
  }
  .logo {
    max-width: 300px;
  }
  .nav-menu li a {
    padding: 10px 10px;
  }
  .ksh_logo {
    max-width: 600px;
  }
  .heading {
    right: 0;
    width: 65%;
  }
  .heading h2 {
    font-size: 46px;
    margin-bottom: 5px;
  }
  .heading h3 {
    font-size: 24px;
  }
  .identity {
    min-height: 65vh;
  }
  .service {
    min-height: 70vh;
  }
  .contact {
    height: 60vh;
  }
  .contact_cont {
    margin-bottom: 10px;
  }
  .contact_car_tel_box {
    padding: 0px 20px;
  }
  .contact_car_tel_box img {
    padding: 40px 20px;
  }
  .president {
    height: auto;
    flex-direction: column;
  }
  .president_img {
    left: 0;
    position: relative;
    top: unset;
    bottom: 70px;
    transform: unset;
    width: 500px;
  }
  .plaque {
    bottom: 70px;
    right: 40px;
    max-width: 200px;
    -webkit-transform: unset;
  }
  .item_list {
    gap: 0;
  }
  .item_icon, .c_item_icon {
    width: calc(100% / 3);
  }
  .c_item_icon:nth-child(6) {
    width: calc(100% / 3);
  }
  .item_name {
    line-height: 1.5em;
  }
}
/* Mobile (Portrait) 画面の横幅が300px~750pxまで（基本）
---------------------------------------------------- */
@media only screen and (max-width: 750px) {
  .mb {
    padding: 0 20px;
    margin-bottom: 40px !important;
  }
  h3 {
    line-height: 1.5em;
  }
  .wrapper {
    width: 100%;
    padding: 0;
  }
  .header-inner {
    padding: 0;
  }
  #nav {
    display: none;
    position: absolute;
    top: 0;
    float: none;
    text-align: center;
    width: 100%;
    background: #fefefe;
    margin: 0 auto 40px auto;
    padding: 0;
  }
  .nav-menu li a {
    color: #333;
    display: block;
    font-size: 15px;
    padding: 20px 10px;
    text-decoration: none;
  }
  .nav-menu li {
    display: block;
    float: none;
    border-bottom: 1px solid #ededed;
  }
  .toggle {
    display: block;
    float: right;
    position: fixed;
    top: 15px;
    right: 10px;
    z-index: 10000;
  }
  .top-header {
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate; /* ← これで .top-header 内に独立した重なり順の世界を作る */
  }
  /* スライダー（Smart Slider）の層＝一番下 */
  .top-header .n2-section-smartslider {
    position: relative;
    z-index: 0;
  }
  /* 黒マスク：スライダーの上・テキストの下 */
  .top-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .5);
    z-index: 1;
    pointer-events: none;
  }
  /* ロゴと見出しは最上面に固定（位置は元の指定でOK） */
  .ksh_logo, .heading {
    z-index: 2; /* ← マスクより上に */
  }
  .heading {
    width: 100%;
    top: unset;
    transform: none;
    position: relative;
    text-align: center;
    padding: 20px;
  }
  .ksh_logo {
    max-width: 200px;
    top: 60px;
    transform: none;
  }
  .heading h2 {
    font-size: 34px;
  }
  .heading h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }
  .heading p {
    font-size: 14px;
    margin: 0;
    text-align: left;
    line-height: 2em;
  }
  .identity, .service, .contact {
    min-height: 100vh;
    padding: 100px 20px;
    position: relative;
  }
  /* 背景を50％透過させるレイヤー */
  .identity::before, .service::before, .contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7); /* 白の50%透過レイヤー */
    z-index: 0;
  }
  /* テキストや要素を前面に表示 */
  .identity > *, .service > *, .contact > * {
    position: relative;
    z-index: 1;
  }
  .identity h2, .service h2 {
    font-size: 70px;
  }
  .identity h3, .service h3 {
    margin: 30px 0;
    line-height: 1.5em;
  }
  .punct {
    display: inline-block;
    transform: translateX(0.2em); /* ←0.1〜0.3emくらいで調整 */
  }
  .identity p, .service p {
    margin-bottom: 50px;
  }
  .identity {
    background-position: center;
  }
  .service {
    background-position: 15% center;
  }
  .insurance h2 {
    padding: 0 20px 5px;
  }
  .insurance-list {
    flex-wrap: wrap;
    padding: 0 20px;
  }
  .insurance-list_bn {
    width: calc(100% / 2);
    padding: 5px;
  }
  .home_il {
    width: 100%;
    max-width: 150px;
    margin: 0 auto 15px;
  }
  .service .home_il {
    max-width: 220px;
  }
  .btn {
    padding: 10px 50px;
    font-size: 22px;
  }
  .contact_car_title {
    font-size: 20px;
    line-height: 1.5em;
    display: block; /* ← inline-flex を解除 */
    text-align: center; /* 中央寄せ（任意） */
  }
  .contact_car_title::before {
    display: block; /* アイコンを上に配置 */
    margin: 20px auto 0; /* 中央寄せ＋下余白 */
    width: 55px;
    height: 55px;
  }
  .nowarp {
    white-space: nowrap; /* このままでOK。1行保持 */
  }
  .contact_car_tel {
    flex-direction: column;
  }
  .contact_car_tel_box {
    width: 100%;
    padding: 10px 0;
  }
  .contact_car_tel_box img {
    padding: 25px 15px;
  }
  p {
    font-size: 14px;
    padding: 0;
  }
  .footer-inner {
    padding: 50px 0px;
  }
  .f_logo {
    max-width: 100px;
    margin: 0 auto;
  }
  .f_c_name {
    margin: 5px auto;
    padding: 0 30px;
  }
  .footer-menu {
    margin: 16px auto;
    padding: 0 5vw;
  }
  .footer-menu ul {
    display: flex;
    flex-direction: column; /* ← 縦並びに変更 */
    gap: 10px; /* 各ボタンの間隔 */
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .footer-menu ul li {
    border: 0;
    padding: 0;
  }
  /* ボタンデザイン */
  .footer-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px; /* タップしやすい高さ */
    padding: 12px;
    font-size: clamp(14px, 3.8vw, 16px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px; /* ピル型 */
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: #333;
    transition: transform 0.15s ease, color 0.25s ease, border-color 0.25s ease;
    gap: 0.4em;
  }
  /* 右矢印 */
  .footer-menu a::after {
    content: "›";
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    transform: translateY(-1px);
    opacity: 0.5;
  }
  .footer-menu a:hover {
    color: var(--c-sub, #007baa);
    border-color: currentColor;
  }
  .footer-menu a:active {
    transform: scale(0.98);
  }
  .footer-menu a:focus-visible {
    outline: 2px solid var(--c-sub, #007baa);
    outline-offset: 2px;
  }
  #copyright {
    font-size: 14px;
    line-height: 1.5em;
  }
  .sub-header {
    height: 150px;
  }
  .sub_title h2 {
    line-height: 1em;
  }
  .sub_logo {
    width: 40%;
  }
  .section_title h2 {
    font-size: 30px;
  }
  .section_title h2 span {
    font-size: 18px;
    line-height: 1.5em;
  }
  .president {
    margin-bottom: 0;
  }
  .president_message h2 {
    font-size: 24px;
  }
  .president_message p, .message_part p, .mission p {
    font-size: 16px;
  }
  .company_name {
    font-size: 16px;
  }
  .president_name {
    font-size: 20px;
  }
  .president_name span {
    font-size: 16px;
  }
  .president_img {
    left: -75px;
    bottom: 65px;
    width: 430px;
  }
  .plaque {
    display: none;
  }
  .message_part h2 {
    font-size: 30px;
  }
  .message_part h3 {
    font-size: 18px;
  }
  .mission h2 {
    font-size: 22px;
  }
  .creed__list > li {
    font-size: 16px;
    margin-bottom: 15px;
  }
  .creed__list > li::before {
    top: 15px;
  }
  .profile table th, .profile table td {
    width: 100%;
    display: block;
    padding: 10px;
    font-size: 16px;
  }
  .customer h2 {
    font-size: 24px;
    padding: 0 20px 5px;
    margin-bottom: 20px;
  }
  .item_icon {
    width: calc(100% / 3);
    padding: 10px;
  }
  .c_item_icon {
    width: calc(100% / 2);
    padding: 10px;
  }
  .c_item_icon:nth-child(n+5) {
    width: calc(100% / 1); /* または width: 100%; でもOK */
  }
  .item_icon img, .c_item_icon img {
    width: 50%;
    margin: 0 auto;
  }
  .c_item_icon:nth-child(n+5) img {
    width: auto;
  }
  .item_name {
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .item_list ul li {
    font-size: 14px;
  }
  .flow_item {
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
  }
  .flow_title {
    min-width: 100%;
    margin-bottom: 50px;
  }
  .policy_se {
    margin: 15px auto;
  }
  .policy h2 {
    font-size: 20px;
  }
  .policy_de h2 {
    font-size: 18px;
  }
  .policy p {
    font-size: 14px;
    padding: 10px 0 10px 5px;
  }
  .policy ul li {
    font-size: 14px;
  }
  .policy-updated, .note-end {
    font-size: 16px;
  }
  .policy p.sale_note {
    font-size: 16px;
    padding-left: 20px;
  }
  .policy p.sale_note::before {
    left: 5px;
    top: 15px;
  }
  @media only screen and (max-width: 750px) {
    p {}
    /* 幅がかなり狭い端末は1カラムに落とす */
    @media (max-width: 360px) {
      .footer-menu ul {
        grid-template-columns: 1fr;
      }
    }
    /* アニメ苦手設定に配慮（任意） */
    @media (prefers-reduced-motion: reduce) {
      .footer-menu a {
        transition: none;
      }
    }