@charset "UTF-8";

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-style: normal;
	font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","游ゴシック Medium",YuGothic,YuGothicM,"Hiragino Kaku Gothic ProN",メイリオ,Meiryo,sans-serif;
}
h3{
	color:#182987;
}
h4{
	background:#182987;
	color:#FFF;
	font-size: 0.9rem;
	font-weight:400;
	padding: 0 0.8rem;
	display:inline-block;
	margin-left: 10%;
}

* { margin: 0; padding: 0; box-sizing:border-box;}
html {
	height: 100%;
	font-size:18px;
	 line-height:1.8;
	 color: #666;
}
a{
	text-decoration: none;
}
a:hover{
	opacity:0.6;
}
li{
	list-style:none;
}
img{max-width:100%;}
.pc{display: inherit;}
.sp{display: none;}
.full_contents{width:100%;}
.common_contents{display:block;width:100%;margin:0 auto;}
.center{text-align: center;}
.page-template-default .site-header + section,
.error404 .site-header + section{
	padding-top: 60px;
}
.preparation{
	height: 50vh;
	display:flex;
	align-items: center;
	justify-content: center;
}
body{
}
#loading_cover{
	position: fixed;
	width: 100%;
	height: 100%;
	background: #ffffffbd;
	z-index: 9999;
	display: grid;
	justify-content: center;
}
.loading_text{
	text-align:center;
	position:relative;
	top: 47vh;
}
  .loader{
  width: 100%;           /* ロゴサイズに合わせて調整 */
  margin: 0 auto;
  perspective: 300px;    /* 3D感の要 */
  display: flex;
  justify-content: center;
  align-items: center;
  }

  .loader img{
	  width: 50%;
	  display: block;
	  transform-style: preserve-3d;
	  animation: logoSpin 2s ease-in-out infinite;
  }

/* Y軸回転 */
@keyframes logoSpin {
  0% {
    transform: rotateY(0deg);
  }

  25% {
    transform: rotateY(90deg);
  }

  50% {
    transform: rotateY(180deg);
  }

  75% {
    transform: rotateY(270deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

/* ハンバーガーボタン */
.hamburger {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  display: grid;
  gap: 6px;
  align-content: center;
  justify-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 9999;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff; /* ヘッダーの色に合わせて */
  display: block;
  border-radius: 999px;
  transform-origin: center;
  transition: transform .35s ease, opacity .25s ease;
}

/* 押した時に“クルクル感” */
.hamburger.is-animating {
  animation: burgerSpin .55s ease-in-out 1;
}

@keyframes burgerSpin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(0.92); }
  100% { transform: rotate(360deg) scale(1); }
}

/* 開いてる状態：×に変形 */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ドロワーメニュー（既存 .menu をSPでは右から出す） */
.menu {
  /* SPだけドロワー化する前提なので、PC側で上書きされないよう sp_style.css に書く */
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 320px);
  height: 100dvh;
  margin: 0;
  padding: 14px 16px;
  list-style: none;
  background: rgba(0,0,0,0.92); /* 好みで調整 */
  backdrop-filter: blur(6px);
  transform: translateX(110%);
  transition: transform .28s ease;
  z-index: 999;
  overflow-y: auto;
}

.menu.is-open {
  transform: translateX(0);
}

.menu li {
  margin: 0;
  padding: 0;
}

.menu li a {
  display: block;
  padding: 12px 10px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* 先頭の閉じる行 */
.menu_head {
  display: flex;
  justify-content: flex-end;
  padding: 4px 0 10px;
  border-bottom: none;
}

.menu-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 44px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* 背景オーバーレイ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 9999;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* メニュー開いてる間のスクロール禁止 */
body.is-menu-open {
  overflow: hidden;
}

.site-header{
	width: 100%;
	height: 50px;
	background: #182987;
	position: fixed;
	z-index: 999;
}
.header_inner{
	width: 96%;
	height: 60%;
	position: relative;
	top: 8px;
	margin:0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.header_inner img,
.header_inner a{
	height:100%;
	color:#fff;
	font-size: 0.9rem;
}
.header_inner ul{
	display:flex;
	flex-direction: column;
	justify-content: center;
}
.header_inner li{
	margin: 0.5rem;
}
footer{
	background: linear-gradient(180deg, #ffffff 0%, #bfffef 100%);
}
.copyright{
	background:#182987;
	text-align:center;
	color:#fff;
	padding: 0.2rem;
	margin-top: 1rem;
}

.top{
	background: url(../img/top_img_bg.png);
	background-position: center;
	background-size: cover;
	padding-top: 30px;
}

#service{
	display:flex;
	flex-direction: column;
}
.service_block{
	padding: 1rem 2rem;
	margin: 1rem 0;
	border-right:1px solid #999;
	font-size:0.9rem;
}
.service_block:last-child{
	border:none;
}
.service_block img{
	height:100px;
	width:100%;
	object-fit:contain;
}

#concept{
	margin:3rem 0;
}

#reason h3{
	background:url(../img/bar_bg.png);
	background-size:cover;
	text-align:center;
	color:#fff;
	font-size: 1.8rem;
	margin-top: 5rem;
	padding: 0.5rem;
}
.reason_block{
}
.reason_block .content{
	margin:2rem;
	color:#0071bc;
}
.reason_block .content div,
.reason_block .content b{
	color:#182987;
}
.reason_block .content div{
	font-size:0.8rem;
}
.reason_block .content b{
	font-size:1.8rem;
}

#news {
	margin-top:5rem;
}
#news ul{
	background:#f2f2f2;
	margin:1rem 0;
	padding: 1rem;
	padding-left: 10%;
	font-size: 0.9rem;
}

#works{
	margin-top:3rem;
}

#service_info{
	margin-top:5rem;
}
#service_info .service_info_block{
	display: flex;
	align-items: center;
	flex-direction: column;
}
#service_info .service_info_block h3{
	text-align:center;
	color: #0071bc;
	font-size: 1.4rem;
	margin: 1rem;
}
#service_info .service_info_block p{margin: 1rem;}
#service_info .service_info_block a{
	text-align:center;
	background: url(../img/bar_bg.png);
	background-size: cover;
	background-position: center;
	border-radius: 5px;
	padding: 0.2rem 0;
	color: #fff;
	font-size: 1.6rem;
	margin: 1rem 0 3rem;
	width: 90%;
}

.com{
	display:flex;
	margin:1rem auto;
	justify-content: center;
	font-size:1.2rem;
	line-height:1.2;
	align-items: center;
}
.com img{
	width: 50px;
	height: auto;
	margin-right: 5px;
}
.com span{
	display:block;
	font-size: 0.95rem;
}

.site-map{
	border-top:1px solid #666;
	padding:1rem;
	display: flex;
	justify-content: flex-start;
	font-size: 0.8rem;
	flex-wrap: wrap;
}
.site-map ul{
	color:#000;
	font-weight:700;
	margin: 5%;
}
.site-map a{
	color:#666;
	font-weight:400;
}

.about-table {
  margin: 0.5rem;
}
.about-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  border: 1px solid #182987;
}
.about-table th, .about-table td {
  padding: 8px 7px;
  text-align: left;
  vertical-align: top;
}
.about-table th {
  background: #182987;
  color: #fff;
  width: 110px;
  font-weight: bold;
}
.about-table tr:not(:last-child) td, .about-table tr:not(:last-child) th {
}
.about-table td {
  color: #0e2255;
}

/* =========================
  Form UI (SP) for CF7 + ACF
  - palette: #182987 / #0071bc
========================= */

/* フォーム全体の箱 */
.form-wrap,
.wpcf7,
.acf-form {
  background: #f7f9ff;
  border: 1px solid #e3e9ff;
  border-radius: 8px;
  padding: 24px;
}

/* ラベル */
form label,
.wpcf7 label,
.acf-field .acf-label label {
  display: block;
  font-weight: 700;
  color: #182987;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

/* 補足テキスト（CF7の説明文があればこれで整う） */
form .help,
.wpcf7 .help,
.acf-field .description,
.acf-field .acf-input .acf-description {
  color: #667;
  font-size: 0.85rem;
  margin-top: 6px;
}

/* 1項目ごとの余白（CF7はspanで包まれがちなのでそれもケア） */
form .field,
.wpcf7 .wpcf7-form p,
.wpcf7 .wpcf7-form-control-wrap,
.acf-field {
  margin: 0 0 18px;
}

/* 入力共通（CF7は .wpcf7-form-control が付く） */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="password"],
select,
textarea,

/* ACF */
.acf-input input[type="text"],
.acf-input input[type="email"],
.acf-input input[type="tel"],
.acf-input input[type="url"],
.acf-input input[type="number"],
.acf-input input[type="date"],
.acf-input input[type="password"],
.acf-input select,
.acf-input textarea,

/* CF7 */
.wpcf7 .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance):not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  border: 1px solid #cfd8ff;
  background: #fff;
  color: #333;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1rem;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

/* テキストエリア */
textarea,
.acf-input textarea,
.wpcf7 textarea.wpcf7-form-control {
  min-height: 140px;
  resize: vertical;
}

/* フォーカス時 */
input:focus,
select:focus,
textarea:focus,
.acf-input input:focus,
.acf-input select:focus,
.acf-input textarea:focus,
.wpcf7 .wpcf7-form-control:focus {
  border-color: #0071bc;
  box-shadow: 0 0 0 4px rgba(0,113,188,0.15);
}

/* プレースホルダー */
::placeholder {
  color: #a0a8c0;
}

/* チェック/ラジオ（CF7） */
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"],
input[type="checkbox"],
input[type="radio"] {
  transform: translateY(1px);
}

/* 必須マーク（CF7は自前で付けるケースが多いのでクラス対応） */
.required,
.acf-required,
.wpcf7 .required {
  color: #d12b2b;
  font-weight: 700;
  margin-left: 4px;
}

/* 送信ボタン（CF7は input.wpcf7-submit） */
button,
input[type="submit"],
.acf-form-submit .acf-button,
.acf-form-submit input[type="submit"],
.wpcf7 input.wpcf7-submit {
  appearance: none;
  border: 0;
  width: 100%;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 1rem;
  cursor: pointer;
  background: #182987;
  color: #fff;
  transition: transform .12s ease, opacity .15s ease;
}

button:hover,
input[type="submit"]:hover,
.acf-form-submit .acf-button:hover,
.wpcf7 input.wpcf7-submit:hover {
  opacity: .9;
  transform: translateY(-1px);
}

button:active,
input[type="submit"]:active,
.acf-form-submit .acf-button:active,
.wpcf7 input.wpcf7-submit:active {
  transform: translateY(0);
}

/* CF7: バリデーションエラー枠（inputのエラー） */
.wpcf7 .wpcf7-not-valid {
  border-color: #ff6b6b !important;
  box-shadow: 0 0 0 4px rgba(255,107,107,0.12);
}

/* CF7: エラーメッセージ（項目下の赤文字） */
.wpcf7 .wpcf7-not-valid-tip {
  color: #a40000;
  font-size: 0.85rem;
  margin-top: 6px;
}

/* CF7: フォーム全体のエラー枠 */
.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-response-output {
  background: #fff1f1;
  border: 1px solid #ffcccc;
  color: #a40000;
  padding: 12px 14px;
  border-radius: 8px;
  margin: 12px 0 0;
}

/* CF7: 成功メッセージ（送信完了時） */
.wpcf7 form.sent .wpcf7-response-output {
  background: #f0fff8;
  border: 1px solid #b7f0da;
  color: #0d6b43;
}

/* 2カラム用ユーティリティ（必要なら） */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
