img {
    max-width: 100%;
}

.full-width-picture img {
    width: 100%;
    height: 350px; /* ここで高さを指定 */
    object-fit: cover; /* 画像のアスペクト比を維持しつつ、指定した高さに収める */
}

@media (max-width: 768px) {
    .full-width-picture img {
        width: 100%;
        height: 250px; /* ここで高さを指定 */
        object-fit: cover; /* 画像のアスペクト比を維持しつつ、指定した高さに収める */
        object-position: 10% 80%; 
    }
}


.full-width-picture-news img {
    width: 100%;
    height: 350px; /* ここで高さを指定 */
    object-fit: cover; /* 画像のアスペクト比を維持しつつ、指定した高さに収める */
    object-position: 100% 80%; 
}
@media (max-width: 768px) {
    .full-width-picture-news img {
        width: 100%;
        height: 250px; /* ここで高さを指定 */
        object-fit: cover; /* 画像のアスペクト比を維持しつつ、指定した高さに収める */
        object-position: 10% 80%; 
    }
}

.full-width-picture-simulation img {
    width: 100%;
    height: 350px; /* ここで高さを指定 */
    object-fit: cover; /* 画像のアスペクト比を維持しつつ、指定した高さに収める */
    object-position: 100% 80%;
}

@media (max-width: 768px) {
    .full-width-picture-simulation img {
        width: 100%;
        height: 250px; /* ここで高さを指定 */
        object-fit: cover; /* 画像のアスペクト比を維持しつつ、指定した高さに収める */
        object-position: 50% 80%; 
    }
}

.full-width-picture-simulation img {
    width: 100%;
    height: 350px; /* ここで高さを指定 */
    object-fit: cover; /* 画像のアスペクト比を維持しつつ、指定した高さに収める */
    object-position: 100% 60%; 
}

@media (max-width: 768px) {
    .full-width-picture-simulation img {
        width: 100%;
        height: 250px; /* ここで高さを指定 */
        object-fit: cover; /* 画像のアスペクト比を維持しつつ、指定した高さに収める */
        object-position: 50% 80%; 
    }
}

.full-width-picture-contact img {
    width: 100%;
    height: 350px; /* ここで高さを指定 */
    object-fit: cover; /* 画像のアスペクト比を維持しつつ、指定した高さに収める */
    object-position: 100% 80%;
}

@media (max-width: 768px) {
    .full-width-picture-contact img {
        width: 100%;
        height: 250px; /* ここで高さを指定 */
        object-fit: cover; /* 画像のアスペクト比を維持しつつ、指定した高さに収める */
        object-position: 50% 80%; 
    }
}



header {
    position:absolute;
    z-index: 2;
    width: 100%;
    color: #323538;
}

header .l-container {
    width: 100%;
    max-width: auto;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 10;
    position: fixed;
}

.page-header .header-img{
    width: 100%;
    /* height: 440px; */
    /* box-sizing: border-box; */
}

.page-header .header-img img{
    max-width: 100%;
    height: 200px;
}

.sub_en {
    font-size: 25px;
    font-weight: 500;
    color: #F0434C;
    margin-top: 30px;
    margin-bottom: 30px;
}

.sub_txt {
    font-size: 35px;
    font-weight: 500;
    color: #323538;
    /* margin-top: 30px;
    margin-bottom: 30px; */
}

.breadcrumb {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 26px;
    margin-top: 13px;
}

.breadcrumb ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    margin-right: 50px;
}
.breadcrumb ul li{
    position: relative;
}

.breadcrumb ul li+li:before {
    content: "";
    width: 24px;
    height: 1px;
    background-color: #F0434C;
    top: 50%;
    position: absolute;
    left: 0;
}

.breadcrumb ul li+li {
    padding: 0 0 0 41px;
    margin: 0 0 0 15px;
}

.u-clr:after {
    content: "";
    display: block;
    clear: both;
    height: 0;
}

.breadcrumb ul li a {
    color: #F0434C;
}
/* .header-container{
    position: fixed;
}

.page-header {
    box-sizing: border-box;
    margin-left: 100px;
    margin-top: 100px;
} */

#l-simulation {
    /* background-color: #f9f9f9; */
}

.container .simulation-col .question {
    
}

#l-simulation .row h2 {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 40px;
}

#l-simulation .text {
    font-size: 13px;
    margin-bottom: 40px;
}

#l-simulation .row {
    align-items: center;
}

#l-simulation .col {
    width: 48%;
}

#l-simulation img {
    border-radius: 16px;
}

@media screen and (max-width: 767px) { 
    #l-simulation h2 {
        font-size: 20px;
    }
    #l-simulation .row {
        gap: 30px 0;
    }
}

#top-contact h2 {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 40px;
}

#top-contact .text {
    font-size: 13px;
    margin-bottom: 40px;
}

#top-contact .row {
    align-items: center;
}

#top-contact .col {
    width: 48%;
}

#top-contact img {
    border-radius: 16px;
}

.container .simulation-col{
    margin-bottom: 40px;
}

.container .simulation-col h2 {
    font-size: 40px;
    font-weight: 500;
    color:#F0434C;
}

.container .simulation-col .simulation-heading {
    font-size: 14px;
    font-weight: 400;
}

.border {
    border-bottom: 1px solid #F0434C;
    width: 100%;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px; /* 項目間のスペース */
}

.form-row label {
    width: 30%; /* ラベルの幅 */
    font-weight: bold;
}

.form-row textarea {
    width: 65%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    min-height: 250px;
}

.form-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    /* max-width: 600px; */
}

.agreement-row {
    justify-content: flex-start; /* 左寄せ */
    gap: 5px;
}


.contact-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.simulation-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.simulation-container .contact-col{
    margin-bottom: 40px;
}

.simulation-container .contact-col h2 {
    font-size: 40px;
    font-weight: 500;
    color:#F0434C;
}

.simulation-container .contact-col .contact-heading {
    font-size: 14px;
    font-weight: 400;
}

.contact-container .question {
    margin: 50px 0px 50px 0;
    line-height: 2;
}

.button-send {
    width: 100%;
    padding: 10px;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.button-send:hover {
    background: #0056b3;
}

#formMessage {
    text-align: center;
    margin-top: 20px;
    color: green;
}

.privacy-row {
    margin-top: 50px;
    text-align: center;
}
.privacy-row .privacy-text {
    display: inline-block;
    text-align: center;
}

.send-button {
    text-align: center;
}

.contact-button {
    margin-top: 30px;
    background-color: #007BFF; /* ボタンの背景色 */
    color: white; /* ボタンの文字色 */
    border: none; /* ボーダーをなくす */
    padding: 10px 20px; /* パディングを追加 */
    font-size: 16px; /* フォントサイズを設定 */
    border-radius: 5px; /* 角を丸くする */
    cursor: pointer; /* カーソルをポインターにする */
    transition: background-color 0.3s ease; /* ホバー時のトランジションを追加 */
}

.contact-button:hover {
    background-color: #0056b3; /* ホバー時の背景色 */
}


.privacy-text {
    text-align: center;
}

.external-link {
    position: relative;
    color: #007BFF; /* リンクの色 */
    text-decoration: none; /* 下線を消す */
    padding-right: 20px; /* アイコンのスペースを確保 */
}

.external-link::after {
    content: '\f35d'; /* Font Awesomeの外部リンクアイコン */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px; /* アイコンのサイズ */
    color: #007BFF; /* アイコンの色 */
}

.external-link:hover {
    text-decoration: underline; /* ホバー時に下線を表示 */
}

 /* 各入力行を横並びにする */
 .input-row {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
  }

  @media (max-width: 768px) {
    .input-row {
        display:block;
    }
  }
  .input-row label {
    width: 150px;         /* ラベル部分の固定幅 */
    font-weight: bold;
    margin-right: 0.5em;
    letter-spacing: 3px;
  }

  .input-row #sales,
  .input-row #expenses{
    width: 300px; /* フォーム入力部分の幅 */
    height: 60px;
    padding: 10px;
    border: 1px solid #F4F4F4;
    border-radius: 4px;
    font-size: 16px;
    background: #F4F4F4;
  }

  @media (max-width: 768px) {
    .input-row #sales,
    .input-row #expenses {
        width: 100%; /* モバイルでは全幅にする */
        margin-top: 15px;
    }
  }

  .input-field {
    flex: 1;             /* 残りスペースを入力欄に割り当て */
  }
  .input-field input[type="number"] {
    width: 100%;
    padding: 0.5em;
    font-size: 1em;
    box-sizing: border-box;
  }

  /* ラジオボタンを横に並べる例 */
  .radio-group {
    display: flex;
    gap: 1em;            /* ボタン同士の隙間 */
    align-items: center;
    flex-wrap: wrap;     /* 必要なら折り返し */
  }

  @media (max-width: 768px) {
    .radio-group {
        margin-top: 15px;
    }
  }

  /* 子供の人数選択 */
  #childCountGroup {
    display: none;
    margin-left: 0.5em;  /* ラジオボタンとの隙間 */
  }
  #childCount {
    /* padding: 0.4em;
    font-size: 1em; */
    padding: 0.4em;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    background-color: #fff;
    appearance: auto; /* ブラウザのデフォルトドロップダウンにする */
    cursor: pointer;
  }

  #childCountRow {
    display: none;
  }



  button {
    display: block;
    margin: 0 auto;
    padding: 0.75em;
    font-size: 1em;
    margin-top: 1.5em;
    background-color: #F0434C;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  button:hover {
    background-color: #005fa3;
  }

  .output {
    margin-top: 1.5em;
    padding: 1em;
    background-color: #f1f1f1;
    border-radius: 4px;
  }
  .output p {
    /* color: #fff; */
    margin: 0.5em 0;
    font-size: 1.1em;
  }

  /* グラフ用のキャンバス */
  #chartContainer {
    margin-top: 2em;
  }

  .charts-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.chart-box {
    width: 380px;
}
.arrow {
    font-size: 30px;
    font-weight: bold;
}

#chartsSection .chart-before,
#chartsSection .chart-after{
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  margin: 0 0 10px;
  position: relative;
}

/* 下線バー（色違い） */
#chartsSection .chart-before{ color:#f26c6c; }       /* 削減前=赤系 */
#chartsSection .chart-after { color:#3a8fdc; }       /* 削減後=青系 */

.chart-before::after,
.chart-after::after {
  content: "";
  display: block;
  width: 50px;           /* ←固定長にして左右統一 */
  height: 3px;
  margin: 6px auto 0;
  border-radius: 3px;
  background: currentColor; /* タイトル色と同じ色を使用 */
  opacity: 0.9;
}


/* .chart-before {
    color:#f26c6c;
}

.chart-after {
    color:#3a8fdc;
} */
@media screen and (max-width: 767px) {
  
    .arrow {
      transform: rotate(90deg); /* → を ↓ に回転 */
    }
  }

#chartsSection {
    display: none;
  }

  .modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  .modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
  }
  #closeModal {
    margin-top: 20px;
    padding: 10px 20px;
    background: #F0434C;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

  .highlight-diff {
    color: #D32F2F;
    font-weight: bold;
    font-size: 1.4em;
    background: linear-gradient(transparent 70%, #ffecec 70%); /* 下だけ色付け */
    padding: 0 4px;
    border-radius: 2px;
  }

  #calculationOutput {
    display: none;
  }
  #calculationOutput.show {
    display: block;
  }

  .output .estimate{
    font-size: 14px;
  }