/* 共通設定 */
body {
    margin: 0;
    padding: 0;
    font-family: "Meiryo", "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Arial, sans-serif;
    background-color: #f7f7f7; /* flow.cssの背景色を優先 */
    line-height: 1.6;
    color: #333;
}

/* MV */
.mv-header {
  background-color: #fff;
  border-bottom: 1px solid #ccc;
}

.mv-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
}

.mv-logo {
  height: 60px;
}

/* ハンバーガーアイコン初期非表示 */
.mv-hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #1C439E;
}

/* ナビゲーション */
.mv-nav {
  display: flex;
  gap: 20px;
}

.mv-nav-link {
  text-decoration: none;
  color: #1C439E;
  font-size: 22px;
  font-weight: bold;
}

.mv-visual {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.mv-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mv-visual-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255,255,255,0.85);
  padding: 15px 20px;
  max-width: 90%;
  border-radius: 5px;
}

.mv-title {
  font-size: 32px;
  line-height: 1.4;
  margin: 0;
  color: #000;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .mv-hamburger {
    display: block;
  }

  .mv-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .mv-nav.active {
    display: flex;
  }

  .mv-title {
    font-size: 24px;
  }

  .mv-visual-text {
    bottom: 10px;
    left: 10px;
    padding: 10px 15px;
  }
}


/* --- flowセクション --- */
.flow-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 20px;
    text-align: center;
}

.flow-title-container {
    margin-bottom: 40px;
}

.flow-main-title {
    font-size: 40px;
    color: #1C439E;
    font-weight: bold;
    margin-bottom: 5px;
}

.flow-subtitle {
    font-size: 16px;
    color: #555;
    margin-top: 0;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.flow-subtitle::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background-color: #1C439E;
    margin: 8px auto 0;
}

.flow-intro-text {
    font-size: 16px;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.flow-steps-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
}

.flow-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 250px;
    max-width: 280px;
    margin-bottom: 20px;
    position: relative;
}

.flow-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #1C439E;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.flow-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    background-color: #fff;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.flow-box-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
}

.flow-box-description {
    font-size: 16px;
    color: #555;
    margin-bottom: 0;
}

/* 横矢印 */
.flow-step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    width: 20px;
    height: 2px;
    background-color: #1C439E;
    top: 30px;
    transform: translateY(-50%);
    z-index: 1;
}

.flow-step-item:not(:last-child)::before {
    content: '';
    position: absolute;
    right: -18px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #1C439E;
    top: 30px;
    transform: translateY(-50%);
    z-index: 2;
}


@media (max-width: 480px) {
    .flow-number{
    margin-top:16px
    }

    .flow-box{
    margin-bottom:16px
    }
}

@media (max-width: 768px) {
    .flow-number{
    margin-top:16px
    }

    .flow-box{
    margin-bottom:16px
    }
}

/* --- recomendセクション --- */
.recomend-section {
    padding: 80px 20px;
}

.recomend-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.recomend-title {
    font-size: 40px;
    color: #1C439E;
    font-weight: bold;
    margin-bottom: 5px;
}

.recomend-subtitle {
    font-size: 16px;
    color: #555;
    margin-top: 0;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.recomend-subtitle::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background-color: #1C439E;
    margin: 8px auto 0;
}

.recomend-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
}

.recomend-text-block {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.recomend-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recomend-list-item {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.recomend-bullet {
    color: #1C439E;
    margin-right: 8px;
    font-weight: bold;
}

.recomend-image-block {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.recomend-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- レスポンシブ対応 --- */
@media (min-width: 769px) {
    .flow-step-item {
        margin-bottom: 0;
    }

    .flow-step-item:not(:last-child)::after,
    .flow-step-item:not(:last-child)::before {
        display: block;
    }

    .flow-steps-container > .flow-step-item:nth-child(2n)::after,
    .flow-steps-container > .flow-step-item:nth-child(2n)::before {
        /*display: none;*/
    }
}

@media (max-width: 1024px) {
    .flow-step-item {
        flex: 1 1 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }

    .flow-steps-container {
        justify-content: space-around;
        gap: 30px 20px;
    }

    .flow-step-item:not(:last-child)::after,
    .flow-step-item:not(:last-child)::before {
        /*display: none;*/
    }
}

@media (max-width: 768px) {
    .flow-section {
        margin: 40px auto;
        padding: 15px;
    }

    .flow-main-title {
        font-size: 28px;
    }

    .flow-intro-text {
        margin-bottom: 40px;
        font-size: 15px;
    }

    .flow-steps-container {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .flow-step-item {
        flex: 1 1 90%;
        max-width: 350px;
        margin-bottom: 20px;
    }

    .flow-step-item:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: -20px;
        left: 50%;
        width: 2px;
        height: 20px;
        background-color: #1C439E;
        transform: translateX(-50%);
        display: block;
        top: auto;
        right: auto;
    }

    .flow-step-item:not(:last-child)::before {
        content: '';
        position: absolute;
        bottom: -26px;
        left: 50%;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 8px 5px 0 5px;
        border-color: #1C439E transparent transparent transparent;
        transform: translateX(-50%);
        z-index: 2;
        display: block;
        top: auto;
        right: auto;
    }

    .flow-box {
        padding: 15px;
    }

    .flow-box-title {
        font-size: 17px;
    }

    .flow-box-description {
        font-size: 14px;
    }

    .recomend-section {
        padding: 40px 15px;
    }

    .recomend-title {
        font-size: 28px;
    }

    .recomend-content {
        flex-direction: column;
        align-items: center;
    }

    .recomend-text-block,
    .recomend-image-block {
        width: 100%;
        min-width: unset;
    }

    .recomend-image {
        max-width: 80%;
    }
}

@media (max-width: 480px) {
    .recomend-title {
        font-size: 24px;
    }

    .recomend-list-item {
        font-size: 15px;
    }
}

/* access */

.accsess-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px; /* 上下の余白を調整 */
}

/* セクションタイトル */
.accsess-section {
    text-align: center;
    padding: 40px 0; /* セクション内の余白 */
}

.accsess-title {
    font-size: 40px;
    color: #1C439E;
    margin-bottom: 5px;
}

.accsess-subtitle {
    font-size: 16px;
    color: #666;
    margin-top: 0;
    margin-bottom: 30px;
}
.accsess-subtitle::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background-color: #1C439E;
    margin: 8px auto 0;
}


/* コンテンツエリア */
.accsess-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.accsess-map {
    width: 100%;
    max-width: 800px; /* 地図の最大幅 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.accsess-map-image {
    width: 100%;
    height: auto;
    display: block; /* 画像の下の余白をなくす */
}

/* Google Mapsのiframeを使用する場合 */
/*
.accsess-map iframe {
    width: 100%;
    height: 450px;
    border: 0;
}
*/

.accsess-info {
    text-align: left;
    font-size: 16px;
    line-height: 1.8;
}

.accsess-info p {
    margin: 0 0 5px 0;
}

.accsess-info p:last-child {
    margin-bottom: 0;
}

/* アクセントカラーの適用 */
.accsess-info p strong { /* もし特定のテキストを強調する場合 */
    color: #00a5e0;
}

/* フッターノート */
.accsess-footer-note {
    font-size: 16px;
    color: #666;
    margin-top: 40px;
    padding-bottom: 40px; /* 下部の余白 */
}

/* レスポンシブデザイン */
@media (min-width: 768px) {
    .accsess-content {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 50px;
    }

    .accsess-map {
        flex: 2; /* 地図がより多くのスペースを占める */
    }

    .accsess-info {
        flex: 1; /* 情報が残りのスペースを占める */
        min-width: 300px; /* 情報ブロックの最小幅 */
    }
}

@media (min-width: 1024px) {
    .accsess-content {
        gap: 80px;
    }
}

/* reason */
.reason-section {
  padding: 60px 20px;
  text-align: center;
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.reason-title {
    font-size: 40px;
    color: #1C439E;
  margin-bottom: 10px;
}

.reason-subtitle {
  font-size: 20px;
  color: #999;
  margin-bottom: 40px;
  position: relative;
}

.reason-subtitle::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background-color: #1C439E;
  margin: 8px auto 0;
}

.reason-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.reason-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 1px #ccc;
  padding: 30px 20px;
  width: 320px;
  box-sizing: border-box;
  background-color:#f5f5f5
}

.reason-icon {
  width: 80px;
  height: auto;
  margin-bottom: 20px;
}

.reason-heading {
  font-size: 20px;
  color: #1C439E;
  margin-bottom: 16px;
}

.reason-text {
  font-size: 16px;
  color: #222;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .reason-cards {
    flex-direction: column;
    align-items: center;
  }
}

/* service */

.service-section {
    padding: 80px 20px; /* 上下の余白を調整 */
    text-align: center;
}

.service-container {
    max-width: 1200px;
    margin: 0 auto;
}

.service-title {
    font-size: 40px;
    color: #1C439E;
    margin-bottom: 5px;
}

.service-subtitle {
    font-size: 16px;
    color: #555;
    margin-top: 0;
    margin-bottom: 20px;
}

.service-underline {
    width: 50px;
    height: 3px;
    background-color: #1C439E; /* アクセントカラー */
    margin: 0 auto 40px;
}

.service-content {
    display: flex;
    flex-wrap: wrap; /* レスポンシブ対応のため折り返し */
    justify-content: center;
    align-items: flex-start; /* 上部に揃える */
    gap: 40px; /* テキストと画像の間のスペース */
}

.service-text-area {
    flex: 1;
    min-width: 300px; /* 狭い画面での最小幅 */
    text-align: left;
    max-width: 600px; /* テキストエリアの最大幅 */
}

.service-description-main {
    font-size: 20px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: bold; /* メインの説明文を太字に */
}

.service-description-sub {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-contact {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

.service-image-area {
    flex: 1;
    min-width: 300px; /* 狭い画面での最小幅 */
    max-width: 450px; /* 画像エリアの最大幅 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-image {
    max-width: 100%;
    height: auto;
    display: block; /* 画像の下の余白をなくす */
}

/* レスポンシブデザインの調整 */
@media (max-width: 768px) {
    .service-section {
        padding: 60px 15px;
    }

    .service-content {
        flex-direction: column; /* 画面が狭いときに縦に並べる */
        align-items: center; /* 中央揃え */
    }

    .service-text-area,
    .service-image-area {
        min-width: unset; /* 最小幅をリセット */
        width: 100%;
        max-width: 500px; /* スマホでの最大幅 */
    }

    .service-title {
        font-size: 28px;
    }

    .service-subtitle,
    .service-description-main,
    .service-description-sub,
    .service-contact {
        font-size: 15px; /* スマホでのフォントサイズを微調整 */
    }
}

@media (max-width: 480px) {
    .service-section {
        padding: 40px 10px;
    }

    .service-title {
        font-size: 26px;
    }
}

.about-us-section{
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.about-us-container {
    background-color: #fff;
    padding: 40px 40px;
    max-width: 1100px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin: 40px 0; /* 上下の余白調整 */
}

.about-us-section-title {
    font-size: 32px;
    color: #1C439E; /* アクセントカラー */
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1C439E;
    display: inline-block;
    width: auto;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
}

.about-us-description {
    line-height: 1.8;
    margin: auto 80px 40px 80px;
}

.about-us-description p {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.about-us-description p:last-child {
    margin-bottom: 0;
}

.about-us-details {
    border-top: 1px solid #eee;
    padding-top: 20px;
margin: auto 80px 40px 80px;
}

.about-us-detail-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
    align-items: flex-start;
}

.about-us-detail-row:last-child {
    border-bottom: none;
}

.about-us-detail-label {
    flex: 0 0 120px; /* Adjust width as needed */
    font-size: 16px;
    font-weight: bold;
    color: #555;
    padding-right: 20px;
    box-sizing: border-box;
}

.about-us-detail-value {
    flex-grow: 1;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.about-us-detail-value p {
    margin-bottom: 8px;
}

.about-us-detail-value p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-us-container {
        padding: 30px 20px;
        margin: 20px 0;
    }

    .about-us-section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .about-us-description p,
    .about-us-detail-label,
    .about-us-detail-value {
        font-size: 15px;
    }
    
    .about-us-description{
    margin: auto;
    }
    
    .about-us-details{
    margin: auto;
    }
}

@media (max-width: 576px) {
    .about-us-container {
        padding: 20px 15px;
    }

    .about-us-section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .about-us-detail-row {
        flex-direction: column;
        padding: 10px 0;
    }

    .about-us-detail-label {
        flex: none;
        width: 100%;
        margin-bottom: 5px;
        padding-right: 0;
    }

    .about-us-detail-value {
        flex: none;
        width: 100%;
    }

    .about-us-description p,
    .about-us-detail-label,
    .about-us-detail-value {
        font-size: 14px;
    }
}


.contact-container {
    max-width: 1100px;
    margin: 60px auto; /* 上下の余白を調整 */
    padding: 40px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.contact-title {
    font-size: 40px;
    color: #1C439E;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
}

.contact-subtitle {
    font-size: 18px;
    text-align: center;
    color: #888;
    margin-bottom: 30px;
}

.contact-subtitle::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background-color: #1C439E;
    margin: 8px auto 0;
}

.contact-description {
    font-size: 16px;
    text-align: center;
    margin: auto 80px 40px 80px;
    line-height: 1.8;
}

.contact-info-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap; /* レスポンシブ対応 */
}

.contact-tel-button,
.contact-fax-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1C439E; /* ボタンの背景色 */
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    min-width: 250px; /* ボタンの最小幅 */
    box-sizing: border-box; /* paddingを含めた幅指定 */
}

.contact-tel-button:hover,
.contact-fax-button:hover {
    background-color: #303f9f;
}

.contact-mail-heading {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}



.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form-row {
    display: flex;
    align-items: flex-start; /* labelとinputの先頭を合わせる */
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
    background-color: #f9f9f9;
}

.contact-form-label {
    flex-basis: 190px; /* ラベルの固定幅 */
    min-width: 120px;
    font-size: 16px;
    font-weight: bold;
    color: #555;
    padding-top: 8px; /* 入力フィールドの垂直方向中央に合わせる */
}

.contact-required::before {
    content: '必須';
    display: inline-block;
    background-color: #dc3545; /* 赤色 */
    color: #fff;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
}

.contact-optional::before {
    content: '任意';
    display: inline-block;
    background-color: #6c757d; /* グレー */
    color: #fff;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
}

.contact-form-input-wrapper {
    flex-grow: 1; /* 入力フィールドが残りのスペースを占める */
}

.contact-form-input,
.contact-form-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    font-family: 'Meiryo', 'BIZ UDPGothic', sans-serif;
}

.contact-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-row-textarea {
    align-items: flex-start;
}

.contact-checkbox-container {
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-left: auto; /* 右寄せ */
    margin-right: auto; /* 右寄せと中央寄せのバランス */
    width: fit-content; /* 内容に合わせた幅 */
}

.contact-checkbox {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

.contact-checkbox-label {
    font-size: 14px;
    color: #555;
}

.contact-submit-button {
    display: block;
    width: 300px;
    padding: 15px 30px;
    background-color: #1C439E; /* ボタンの背景色 */
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 40px auto 0; /* 上下の余白と中央寄せ */
}

.contact-submit-button:hover {
    background-color: #303f9f;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .contact-container {
        margin: 30px 15px;
        padding: 20px;
    }

    .contact-title {
        font-size: 28px;
    }

    .contact-description {
        font-size: 15px;
        margin: auto auto 40px auto;
    }

    .contact-info-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .contact-tel-button,
    .contact-fax-button {
        width: 80%; /* 小さい画面でのボタン幅 */
        min-width: unset;
        font-size: 16px;
        padding: 10px 20px;
    }

    .contact-form-row {
        flex-direction: column;
        padding: 10px;
        width: 100%; /* ← 追加 */
    }

    .contact-form-label {
        flex-basis: auto;
        width: 100%;
        margin-bottom: 5px;
        padding-top: 0;
    }

    .contact-required::before,
    .contact-optional::before {
        margin-left: 0;
        margin-right: 5px;
    }

    .contact-form-input,
    .contact-form-textarea {
        width: 100%;
        max-width: 100%; /* ← 追加 */
        padding: 12px; /* 任意で少し広めに */
        font-size: 16px;
    }

    .contact-checkbox-container {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .contact-checkbox-label {
        font-size: 13px;
    }

    .contact-submit-button {
        width: 80%;
        padding: 12px 20px;
        font-size: 16px;
    }

    .contact-form-input-wrapper {
        width: 100%; /* ← 追加 */
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 24px;
    }

    .contact-subtitle {
        font-size: 16px;
    }

    .contact-description {
        font-size: 14px;
    }

    .contact-tel-button,
    .contact-fax-button {
        font-size: 15px;
        padding: 8px 15px;
    }

    .contact-mail-heading {
        font-size: 20px;
    }
}

.footer-note{
text-align:center;
margin:200px auto 20px auto;
}