@charset "UTF-8";

/*--------------------------------------------------

  = Base

--------------------------------------------------*/
html {
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  position: relative;
  width: 100%;
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
  font-style: normal;
  font-weight: 400;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
}
a {
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
strong {
  font-weight: bold;
}
em {
  font-style: normal;
}
h1 { font-family: "Noto Serif JP", serif; }
:root {
  --base_line_height: 1.6;
  --base_line_height_sp: 1.6;
}
/* 共通インナー設定 */
.inner-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}
/* カスタムカラー */
.text-main { color: #004D9A; }
.bg-main { background-color: #004D9A; }
.bg-cta { background-color: #FF6000; }
.border-main { border-color: #004D9A; }

/* = PC (768px以上)
----------------------------------------------- */
@media print, screen and (min-width: 768px) {
  body {
    min-width: 1140px;
    line-height: var(--base_line_height);
    font-size: 16px;
  }
  a[href*="tel:"] {
    /* pointer-events: none; */
    cursor: default;
  }
  .pc {
    display: block !important;
  }
  .sp {
    display: none !important;
  }
}
/* = SP (767px以下)
----------------------------------------------- */
@media screen and (max-width: 767px) {
  body {
    min-width: 300px;
    line-height: var(--base_line_height_sp);
    font-size: 15px;
  }
  .pc {
    display: none !important;
  }
  .sp {
    display: block !important;
  }
}

/*--------------------------------------------------
  = 見出し
--------------------------------------------------*/
h2 {
  position: relative;
  padding-bottom: 45px;
  background: url(../img/h2_line_white.webp) no-repeat center bottom/100%;
}
.bg_blue h2 {
  background: url(../img/h2_line.webp) no-repeat center bottom/100%;
}
/* = PC (768px以上)
----------------------------------------------- */
@media print, screen and (min-width: 768px) {

}
/* = SP (767px以下)
----------------------------------------------- */
@media screen and (max-width: 767px) {
  h2 {
    padding-bottom: 25px;
    background-size: 200%;
  }
  .bg_blue h2 {
    background-size: 200%;
  }
}

/*--------------------------------------------------
  = box
--------------------------------------------------*/
.box01 {
  position: relative;
  border: 1px solid #004D9A;
  background: #FFF;
  box-shadow: 6px 6px 0 rgba(0, 77, 154, 0.20);
}
.box02 {
  background: #004D9A;
}
/* = PC (768px以上)
----------------------------------------------- */
@media print, screen and (min-width: 768px) {

}
/* = SP (767px以下)
----------------------------------------------- */
@media screen and (max-width: 767px) {

}

/*--------------------------------------------------
  = 吹き出し
--------------------------------------------------*/
.balloon01 {
  position: relative;
  display: inline-block;
  margin-bottom: 2em;
  padding: 15px 15px;
  min-width: 120px;
  max-width: 100%;
  color: #fff;
  font-size: 15px;
  background: #004D9A;
}
.balloon01::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -15px;
  border: 15px solid transparent;
  border-top: 15px solid #004D9A;
}
.balloon01 p {
  display: inline-block;
}
/* = PC (768px以上)
----------------------------------------------- */
@media print, screen and (min-width: 768px) {

}
/* = SP (767px以下)
----------------------------------------------- */
@media screen and (max-width: 767px) {

}

/*--------------------------------------------------
  =  シミュレーション
--------------------------------------------------*/
.section-title { text-align: center; font-size: 28px; margin-bottom: 50px; position: relative; padding-bottom: 15px; }
.section-title::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: #004D9A; }

/* 画像エリアの共通スタイル */
.tab-icon-wrap { display: flex; justify-content: center; align-items: center; margin-bottom: 10px; overflow: hidden; }
.tab-icon-wrap img { max-width: 100%; height: auto; object-fit: contain; }

/* --- 内部コンテンツデザイン (共通) --- */
.sim-content-inner { display: flex; flex-wrap: wrap; gap: 30px; }
.sim-info { flex: 1; min-width: 280px; }
.sim-visual { flex: 1; min-width: 280px; background: #f0f7ff; padding: 30px; border-radius: 10px; text-align: center; }

.label-blue { display: inline-block; color: #004D9A; font-weight: bold; font-size: 14px; margin-bottom: 10px; }
.sim-description { color: #555; font-size: 12px; margin-bottom: 20px; }

.result-box { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.result-box.transparent { background-color: transparent; }
.result-title { font-size: 14px; color: #666; margin-bottom: 5px; }
.result-price { color: #D32F2F; font-size: 20px; font-weight: bold; }
.result-price span { font-size: 38px; letter-spacing: -1px; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* = PC (768px以上)
----------------------------------------------- */
@media print, screen and (min-width: 768px) {
  .tab-group { display: flex; list-style: none; justify-content: center; gap: 10px; margin-bottom: 0; }
  .tab-item {
      flex: 1; padding: 25px 15px; background: #e9ecef; cursor: pointer;
      text-align: center; border-radius: 12px 12px 0 0;
      transition: all 0.3s ease; color: #666; font-size: 16px;
      display: flex; flex-direction: column; align-items: center; /* 縦並び・中央揃え */
  }
  .tab-item:hover { background: #dee2e6; }
  .tab-item.active { background: #004D9A; color: #fff; }

  /* PC用画像サイズ調整 */
  .tab-icon-wrap { width: 80px; height: 80px; }
  .tab-item.active .tab-icon-wrap img { filter: brightness(0) invert(1); } /* アクティブ時は白にする（画像による） */

  .tab-text { font-weight: bold; }

  /* アコーディオン用の見出しはPCでは消す */
  .acc-header { display: none; }

  /* コンテンツエリア */
  .content-group { background: #fff; border: 2px solid #004D9A; border-radius: 0 0 12px 12px; padding: 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
  .sim-item { display: none; }
  .sim-item.active { display: block; animation: fadeIn 0.5s ease; }
}
/* = SP (767px以下)
----------------------------------------------- */
@media screen and (max-width: 767px) {
  .tab-group { display: none; } /* タブを隠す */
  .section-title { font-size: 22px; margin-bottom: 30px; }

  .sim-item { margin-bottom: 15px; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; background: #fff; }
  .acc-header {
      padding: 15px 20px; background: #f8f9fa; color: #333; font-weight: bold;
      cursor: pointer; position: relative; display: flex; align-items: center;
      transition: background 0.3s;
  }
  .sim-content-inner {
    gap:10px;
  }
  .sim-visual {
    padding: 10px;
  }
  .result-box.transparent {
    padding: 0;
  }
  
  /* SP用画像サイズ調整 */
  .acc-header .tab-icon-wrap { width: 40px; height: 40px; margin-bottom: 0; margin-right: 15px; }

  .acc-header::before { content: "CASE"; font-size: 10px; background: #004D9A; color: #fff; padding: 2px 6px; border-radius: 3px; margin-right: 10px; }
  
  /* 矢印アイコン */
  .acc-header::after {
      content: ""; position: absolute; right: 20px; width: 10px; height: 10px;
      border-right: 2px solid #999; border-bottom: 2px solid #999;
      transform: rotate(45deg); transition: 0.3s;
  }
  
  /* 開いている時のスタイル */
  .sim-item.active { border-color: #004D9A; }
  .sim-item.active .acc-header { background: #eef6ff; color: #004D9A; }
  .sim-item.active .acc-header::after { transform: rotate(-135deg); border-color: #004D9A; }

  .acc-body { display: none; padding: 25px 20px; border-top: 1px solid #eee; }
}

/*--------------------------------------------------
  = 郵便番号判定
--------------------------------------------------*/
.form-container { 
  max-width: 530px;
  margin: 0 auto;
  border-radius: 6px;
  border: 1px solid #004D9A;
  background: #FFF;
  box-shadow: 0 0 25px 0 rgba(0, 77, 154, 0.20);
  padding: 40px;
  border-radius: 12px;
}
label { display: block; margin-bottom: 10px; font-weight: bold; color: #444; }
.form-container input[type="text"] {
    width: 100%; padding: 16px; border: 2px solid #e0e6ed; border-radius: 8px;
    box-sizing: border-box; font-size: 18px; outline: none; transition: border-color 0.3s, box-shadow 0.3s;
}
.form-container input[type="text"]:focus { border-color: #a0aec0; box-shadow: 0 0 0 3px rgba(160, 174, 192, 0.2); }
.form-container input.is-valid { border-color: #38c172; box-shadow: 0 0 0 3px rgba(56, 193, 114, 0.15); }
.form-container input.is-invalid { border-color: #e3342f; box-shadow: 0 0 0 3px rgba(227, 52, 47, 0.15); }
#status-msg-area { min-height: 60px; margin-top: 15px; display: flex; align-items: center; justify-content: flex-start; }
.check-icon { display: none; width: 40px; height: 40px; margin-right: 12px; }
.check-icon path {
    fill: none; stroke: #38c172; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 100; stroke-dashoffset: 100;
}
.is-valid + #status-msg-area .check-icon { display: block; }
.is-valid + #status-msg-area .check-icon path { animation: drawCheck 0.6s ease-in-out forwards; }

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

#status-msg-text { font-size: 16px; font-weight: 500; }
.msg-error { color: #e3342f; }
.msg-success { color: #38c172; animation: fadeInText 0.5s ease-in-out forwards; opacity: 0; }
.loading { color: #718096; font-style: italic; }

@keyframes fadeInText {
    to { opacity: 1; }
}
/* = PC (768px以上)
----------------------------------------------- */
@media print, screen and (min-width: 768px) {

}
/* = SP (767px以下)
----------------------------------------------- */
@media screen and (max-width: 767px) {

}

/*--------------------------------------------------
  = Contact Form 7
--------------------------------------------------*/
/* Contact Form 7 全体のスタイル */
.cf7-custom-form {
    text-align: left;
    color: #333;
}
.form-item {
    margin-bottom: 24px;
}
/* ラベルのスタイル（メインカラー適用） */
.form-item label {
    display: block;
    font-weight: bold;
    color: #004D9A; /* メインカラー */
    margin-bottom: 8px;
}
/* 必須マーク */
.form-item .required {
    background: #ff0000;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}
/* 入力フィールドのスタイル */
.cf7-custom-form input[type="text"],
.cf7-custom-form input[type="email"],
.cf7-custom-form input[type="tel"],
.cf7-custom-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
    transition: border-color 0.3s;
}
.cf7-custom-form input:focus,
.cf7-custom-form textarea:focus {
    border-color: #004D9A;
    outline: none;
}
/* ラジオボタンのスタイル */
.wpcf7-list-item {
    display: inline-block;
    margin: 0 15px 5px 0;
}
/* 送信ボタン（CTAカラー #FF6000） */
.form-submit {
    text-align: center;
    margin-top: 40px;
}
.wpcf7-submit {
    background-color: #FF6000 !important;
    color: #fff !important;
    font-size: 20px !important;
    font-weight: bold !important;
    padding: 15px 60px !important;
    border: none !important;
    border-radius: 9999px !important;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(255, 96, 0, 0.3);
}
/* = SP (767px以下)
----------------------------------------------- */
@media screen and (max-width: 767px) {
  .wpcf7-submit {
    width: 100%;
    display: block;
  }
}
.wpcf7-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
/* エラーメッセージの装飾 */
.wpcf7-not-valid-tip {
    color: #ff0000;
    font-size: 14px;
    margin-top: 5px;
}
.wpcf7-response-output {
    border-radius: 8px !important;
    margin-top: 20px !important;
}
/* プライバシーポリシーのボックス */
.privacy-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 15px;
    height: 150px;
    overflow-y: scroll;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    border-radius: 4px;
}

.privacy-box h4 {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.privacy-box ul {
    margin: 10px 0 10px 18px;
    list-style: disc;
}

/* 同意チェックボックスの装飾 */
.privacy-check {
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
}

.privacy-check .wpcf7-list-item {
    margin: 0;
}

/* 未チェック時の送信ボタン（Contact Form 7標準機能でボタンが無効化されます） */
.wpcf7-submit:disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
    box-shadow: none;
}


/*--------------------------------------------------
  = CTA
--------------------------------------------------*/
.cta-section {
  background: linear-gradient(103deg, #FFAF24 17.08%, #CCE7FF 80.86%);
}

.fixed-bottom-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0px 10px calc(4px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}
.fixed-bottom-cta.is-show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cta-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    display: block;
}
@media (min-width: 768px) {
    .fixed-bottom-cta {
        display: none;
    }
}
/* = PC (768px以上)
----------------------------------------------- */
@media print, screen and (min-width: 768px) {

}
/* = SP (767px以下)
----------------------------------------------- */
@media screen and (max-width: 767px) {

}

/*--------------------------------------------------
  = 
--------------------------------------------------*/

/* = PC (768px以上)
----------------------------------------------- */
@media print, screen and (min-width: 768px) {

}
/* = SP (767px以下)
----------------------------------------------- */
@media screen and (max-width: 767px) {

}

/*--------------------------------------------------
  = 
--------------------------------------------------*/

/* = PC (768px以上)
----------------------------------------------- */
@media print, screen and (min-width: 768px) {

}
/* = SP (767px以下)
----------------------------------------------- */
@media screen and (max-width: 767px) {

}

/*--------------------------------------------------
  = 
--------------------------------------------------*/

/* = PC (768px以上)
----------------------------------------------- */
@media print, screen and (min-width: 768px) {

}
/* = SP (767px以下)
----------------------------------------------- */
@media screen and (max-width: 767px) {

}


/*--------------------------------------------------

  = Print

--------------------------------------------------*/
@media print {
  html {
    width: 100%;
    zoom: 95%;
  }
  body {
    max-width: 1400px;
    margin: 0 auto;
  }
  .ly_header {
    position: relative;
  }
}
