/* カスタム調整用 */
/* メニューリンクの色を黒にする */
.primary-menu a {
  color: #000 !important;
  text-decoration: none;
  display: inline-block; /* transformを効かせるため */
  transition: transform 0.3s ease, color 0.3s ease;
}

/* ホバー時に少し拡大 */
.primary-menu a:hover {
  transform: scale(1.1);
  color: #333; /* ホバー時に色を少し濃くする（好みで） */
}

/* メニューリンクの下線をなくす */
.primary-menu a {
  text-decoration: none !important;
}

.primary-menu a:hover {
  text-decoration: none !important;
}

.link-buttons {
  display: none !important;
}


/* 中のスライド画像を絶対配置 */
.slider-container {
  position: relative;
  width: 100%;
}

/* 画像をブロックで積む */
.slider-item {
  display: none;
  width: 100%;
}

/* 表示するスライドだけ表示 */
.slider-item.active {
  display: block;
}

/* 画像のレスポンシブ */
.slider-item img {
  width: 100%;
  height: auto;
  object-fit: cover; /* もしくはcontain, なしでもOK */
}

/* スライダーのラッパーにアスペクト比で高さを持たせる */
.hero-slider {
    position: relative;
    width: 100%;
    padding-top: 24.7%; /* 高さの比率を指定 (16:5くらいに調整) */
    background-color: #004aad;
}

@media (max-width: 480px) {
.hero-slider {
        padding-top: 30%;
        width: 120%;
}

}


.main-content {
    padding-top: 0;
}

.intro-text {
    text-align: center;
    padding: 2em 1em;
    background: #fff;
    margin-top: 2em;
}

@media (min-width: 1200px) {
    .intro-text {
        margin-top: 3em;
        padding: 3em 1em;
    }
}

@media (max-width: 768px) {
    .intro-text {
        margin-top: 1.5em;
        padding: 2em 1em;
    }
}

@media (max-width: 480px) {
    .intro-text {
        margin-top: 1em;
        padding: 1.5em 1em;
    }
}

.hero-slider .slider-item img {
width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    max-height: 400px;
}

@media (min-width: 1200px) {
    .hero-slider .slider-item img {
        max-height: 550px;
    }
}

body {
    background: #fff;
}

@media (max-width: 768px) {
  .hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  .hero-slider .slider-container {
    width: 100%;
    overflow: hidden;
  }

  .hero-slider .slider-item {
    width: 100%;
    height: auto;
  }

  .hero-slider .slider-item img {
    width: 160%;              /* 拡大表示 */
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;  /* 画像を中央に固定 */
  }
}


.main-content {
    background: #fff;
}
/* 全てのsectionのパディング・マージンをリセット */
section {
    padding: 0 !important;
    margin: 0 !important;
}

/* Twenty Twentyの .section-inner クラスもリセット */
.section-inner {
    padding: 0 !important;
    margin: 0 !important;
}

#site-header {
    margin: 0.8rem 0;;
}

@media (min-width: 1220px) {
    h1, .heading-size-1 {
        font-size: 4.4rem;
    }
}


/* デフォルトはPC表示用のメニュー */
.desktop-menu {
  display: flex;
  gap: 1.5em;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* スマホは固定メニューを非表示 */
@media (max-width: 768px) {
  .desktop-menu {
    display: none;
  }
}

/* ロゴとテキストの並び */
.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-left: 2em; /* デフォルトは左に余白 */
}

/* ロゴ画像 */
.site-logo {
    height: 70px;
    width: auto;
}

/* テキスト */
.site-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #000;
}

/* スマホサイズで調整 */
@media (max-width: 768px) {
    .logo-area {
        margin-left: 1em;
    }
    .site-logo {
        height: 40px;
    }
    .site-title {
        font-size: 1em;
    }
}

/* さらに小さいスマホ */
@media (max-width: 480px) {
    .logo-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3em;
        margin-left: 1em;
    }
    .site-logo {
        height: 50px;
    }
    .site-title {
        font-size: 0.95em;
    }
}

@media (max-width: 768px) {
  .logo-area {
    margin-left: 0; /* 左の余白をなくす */
  }
  .site-title {
    display: none; /* 会社名を非表示 */
  }
}

@media (max-width: 768px) {
  .header-titles-wrapper {
    justify-content: flex-start !important;
  }

  .header-titles-wrapper {
    margin-left: -28px;
  }

}

/* header（デモの参考値） */
.demobox-header{
	background: #ddd;
	height: 64px;
	padding: 1em;
}
.demobox-sitename{
	font-weight: 700;
	font-size: 18px;
}
/* 全体調整CSS */
.hamburger-demo-menubox *{
	font-size: 16px;
}
.hamburger-demo-menubox li{
	font-size: 14px;
}
/* hamburgerここから */
.input-hidden{
	display: none;
}
.hamburger-demo-switch{
	cursor: pointer;
	position: absolute;
	right: 3%;
	top: 0;
	z-index: 9999;
}
#hamburger-demo6:checked ~ .hamburger-demo-switch{
	position: fixed;
}
.hamburger-demo-switch6:before, .hamburger-switch-slide:before, .hamburger-switch-slide:after{
	width: 25px;
	height: 3px;
	background: #333;
	position: absolute;
	top: 50%;
	left: 50%;
	transition: .3s;
	content: "";
}
.hamburger-demo-switch6:before{
	transform: translate(-50%, -50%);
}
.hamburger-switch-slide:before{
	transform: translate(-50%, -300%);
}
.hamburger-switch-slide:after{
	transform: translate(-50%, 200%);
}
.hamburger-demo-menuwrap{
	position: fixed;
	height: 100%;
	background: #fafafa;
	padding: 5em 3% 2em;
	z-index: 9998;
	transition: .3s;
	overflow-y: scroll;
	top: 0;
	left: 100%;
	width: 70%;
}
.hamburger-demo-menulist{
	margin-right: 3%;
	padding-left: 5% !important;
	list-style: none;
}
.hamburger-demo-menulist li a{
	text-decoration: none;
	color: #333;
	display: block;
	padding: .5em 0;
}
#hamburger-demo6:checked ~ .hamburger-demo-menuwrap{
	left: 30%;
}
#hamburger-demo6:checked ~ .hamburger-demo-cover{
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 9997;
	background: rgba(3,3,3,.5);
	display: block;
}
.hamburger-demo-switch6{
  top: -4px;
	width: 3em;
	height: 3em;
	transform: translate(0%,15%);
	border: 1px solid #333;
	overflow: hidden;
}
.hamburger-demo-switch6:before, .hamburger-switch-slide:before, .hamburger-switch-slide:after{
	transition: .2s;
}
.hamburger-switch-slide:before{
	transition-delay: 0;
}
.hamburger-demo-switch6:before{
	transition-delay: .1s;
}
.hamburger-switch-slide:after{
	transition-delay: .2s;
}
#hamburger-demo6:checked ~ .hamburger-demo-switch6:before,
#hamburger-demo6:checked ~ .hamburger-demo-switch .hamburger-switch-slide:before,
#hamburger-demo6:checked ~ .hamburger-demo-switch6 .hamburger-switch-slide:after{
	left: 500%;
}
.hamburger-demo-switch6:after{
	content: "×";
	font-size: 2.5em;
	position: absolute;
	top: 50%;
	left: -500%;
	transform: translate(-50%, -50%);
	transition: .3s;
}
#hamburger-demo6:checked ~ .hamburger-demo-switch6:after{
	left: 50%;
}
.hamburger-menulist-slide li{
	position: relative;
}
.hamburger-menulist-slide a:before{
	content: "";
	position: absolute;
	width: 100%;
	height: 1em;
	border: 1.5px solid;
	border-color: transparent #333 #333 transparent;
	left: 50%;
	bottom: 0;
	transform: skewx(45deg) translate(-50%, -50%);
}
/* PCではハンバーガー非表示 */
@media (min-width: 992px) {
  .hamburger-demo-menubox {
    display: none;
  }
}

/* スマホではPCメニュー非表示 */
@media (max-width: 991px) {
  .pc-menu {
    display: none;
  }

  .header-navigation-wrapper {
    display: block !important;
  }

  #hamburger-demo6 {
display: none;
  }

  #hamburger-demo6:checked ~ .hamburger-demo-switch {
    position: absolute !important;
  }

}
/* 元のmenu-modalは非表示に */
.menu-modal,
.menu-toggle,
.mobile-nav-toggle,
.desktop-nav-toggle {
    display: none !important;
}


/* 本文 */

.br-sp {
    display: none;
}

@media (max-width: 600px) {
    .br-sp {
        display: block;
    }
}

.container h1{
font-size: 3.8rem;
}

.business-introduction{
  font-size: 2rem;
}

@media (max-width: 600px) {
.container h1{
font-size: 2.8rem;
}

.business-introduction{
font-size: 1.5rem;
margin-top: 40px;
}

}

.button-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  max-width: 1000px;
  margin: 5em auto;
}

/* 全カード共通スタイル */
.button-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  box-sizing: border-box;
}

.button-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.button-label {
  margin-top: -5px;
  background: linear-gradient(180deg, #0072c6);
  color: #fff;
  text-align: center;
  padding: 0.6em 0.5em;
  border-radius: 0 0 12px 12px;
  font-weight: bold;
  font-size: 0.95em;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background 0.3s;
}

.button-label span {
  font-size: 0.8em;
  opacity: 0.85;
}

.button-card:hover img {
  transform: scale(1.05);
}

.button-card:hover .button-label {
  background: linear-gradient(180deg, #0072c6);
}

/* 全て同じサイズ：33.333% */
.button-card {
  width: calc(33.333% - 1em);
}

/* タブレット・スマホ：2列 */
@media (max-width: 768px) {
  .button-card {
    width: calc(50% - 1em);
  }
}

/* ボタン全体 */
.button-card {
  display: block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  border-radius: 8px;
  overflow: hidden; /* ここ重要: はみ出しを切る */
  transition: transform 0.5s;
  -webkit-tap-highlight-color: transparent;
}

/* ホバーで全体拡大 */
.button-card:hover {
  transform: scale(1.05);
}

/* ホバーで白くならない */
.button-card:active,
.button-card:focus,
.button-card:hover {
  opacity: 1 !important;
  filter: none !important;
}

/* 画像 */
.button-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 0; /* ここ: 画像は角丸なし */
}

/* ラベル */
.button-label {
  background: #0072c6;
  color: #fff;
  padding: 0.8em;
  text-align: center;
  font-weight: bold;
  font-size: 0.95em;
}

/* スマホ用 */
@media (max-width: 600px) {
  .button-card img {
    height: 120px;
  }
  .button-label {
    font-size: 1em;
    padding: 1em;
  }
}


/* スマホのタップハイライトを消す */
.button-card {
  -webkit-tap-highlight-color: transparent;
}

/* hover/active/focusで白くならないように（背景は消さない） */
.button-card:active,
.button-card:focus,
.button-card:hover {
  opacity: 1 !important;
  filter: none !important;
}

/* 画像だけ白くならないようにする */
.button-card img {
  opacity: 1 !important;
  filter: none !important;
}



/* カスタムフッター */
.custom-footer {
  background: #004aad;
  color: #fff;
  padding: 20px 5%;
  font-size: 14px;
}
.custom-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.custom-footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.custom-footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.custom-footer .footer-logo img {
  height: 40px;
}
.custom-footer .footer-logo span {
  font-weight: bold;
  font-size: 16px;
}
.custom-footer .footer-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}
.custom-footer .footer-nav ul li a {
  color: #fff;
  text-decoration: none;
}
.custom-footer .footer-nav ul li a:hover {
  text-decoration: underline;
}
.custom-footer .footer-bottom {
  text-align: center;
  margin-top: 15px;
  font-size: 13px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .custom-footer .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .custom-footer .footer-nav ul {
    flex-direction: column;
    gap: 10px;
  }
}


/* シンプルフッター */
.simple-footer {
  background: #004aad !important;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}



#cf7-area {
  width: 100%;
  margin: 0 auto;
  font-family: "游ゴシック", "ヒラギノ角ゴ", "メイリオ", "MS Pゴシック", sans-serif;
}

.cf7-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.75em;
  flex-wrap: wrap;
}

.cf7-q {
  width: 30%;
  font-weight: bold;
  padding-top: 0.5em;
}

.cf7-a {
  width: 65%;
}

.cf7-req {
  font-size: 0.8em;
  padding: 2px 6px;
  background: #eb2a2a;
  color: #ffffff;
  border-radius: 4px;
  margin-left: 0.5em;
}

.cf7-optional {
  font-size: 0.8em;
  padding: 2px 6px;
  background: #999999;
  color: #ffffff;
  border-radius: 4px;
  margin-left: 0.5em;
}

#cf7-area input[type="text"],
#cf7-area input[type="email"],
#cf7-area input[type="tel"],
#cf7-area textarea {
  width: 100%;
  background: #f0f8ff;
  padding: 0.6em;
  border: 1px solid #ccc;
  font-size: 1em;
  box-sizing: border-box;
}

#cf7-area textarea {
  height: 160px;
}

#cf7-area input:focus,
#cf7-area textarea:focus {
  background: #ffe4e1;
  border: 2px solid #ff1493;
  outline: none;
}

.cf7-submit {
  text-align: center;
  margin-top: 2em;
}

#cf7-area input[type="submit"] {
  background-color: #191970;
  color: #ffffff;
  border-radius: 5px;
  font-size: 1.2em;
  padding: 1em 3em;
  border: none;
  cursor: pointer;
}

#cf7-area input[type="submit"]:hover {
  background-color: #ffffff;
  border: 2px solid #191970;
  color: #191970;
}

@media screen and (max-width: 768px) {
  .cf7-item {
    display: block;
  }

  .cf7-q,
  .cf7-a {
    width: 100%;
    margin-bottom: 0.5em;
  }
}
