/* Custom CSS for アイエスト・ソーシャルファンド */





/* 2カラム本体 */
    .two-col {
      display: flex;
      align-items: stretch;     /* 画像とテキストの高さを揃える */
      gap: 0;                /* カラム間余白 */
      background: #fff;
      border: 1px solid #e5e5e5;
      border-radius: 12px;
      overflow: hidden;         /* 画像のはみ出し防止 */
      box-shadow: 0 4px 18px rgba(0,0,0,.06);
      margin: 0 0 50px;
    }

    /* 左カラム（写真：25%） */
    .two-col__media {
      flex: 0 0 25%;
      position: relative;
      min-height: 200px;        /* ある程度の高さを確保 */
      background: #f5f5f5;
      margin: 20px;
      padding: 0;
    }
    .two-col__media img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;        /* 画像をトリミングしつつ全体をカバー */
      border-radius: 10px;
    }

    /* 右カラム（テキスト：75%） */
    .two-col__body {
      flex: 1 1 75%;
      padding: 24px 24px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .two-col__title {
      margin: 0 !important;
      font-size: clamp(1.2rem, 2.2vw, 1.6rem);
      line-height: 1.3;
      font-weight: 700;
      padding: 15px 0 !important;
      border-bottom: 1px solid #AAA;
    }
    .two-col__text {
        line-height: 1.7em !important;
      margin: 0 !important;
      padding: 0 !important;
      color: #444;
    }
    .two-col__caption {
        font-size: .85rem;
        line-height: 1.5em;
        margin: 0 0 10px !important;
        padding: 15px 0;
        border-bottom: 1px dotted #CCC;
    }

    /* レスポンシブ：幅 < 768px は縦積み & 画像を上に */
    @media (max-width: 768px) {
      .two-col {
        flex-direction: column;
        gap: 0;
      }
      .two-col__media {
        flex-basis: auto;
        min-height: 200px;
      }
      .two-col__body {
        padding: 16px 16px 20px;
      }
    }




/*ヘッダーロゴ*/
div.logo img {
    margin-top: 13px;
    height: 65px;
}

/*ヘッダーロゴとナビの横並び調節*/
.header {
  background-color: #fff;
  height: auto;
}

.main-nav{
  border-top: none;
  width: inherit;
}

.nav-container{
  height: 100px;
}
.nav-toggle{
  top:-5.3rem
}

.main-visual {
    margin-top: 100px;
}

.sub-page {
    margin-top: 0;
}

/**/

a {
    text-decoration: none;
}

h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.bg_wh {
    background-color: #fff;
    padding: 100px 10px;
    text-align: center;
    line-height: 2;
}

.bg_wh h2 {
    font-size: 1.5rem;
    margin: 0 0 20px;
    padding: 0;
    color: #333;
}


.bg_bl {
    background-color: #dfeef8;
    padding: 150px 10px;
    text-align: center;
    line-height: 2;
}


h2.bothside {
    position: relative;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 50px;
    text-align: center;
}

h2.bothside::before {
    position: absolute;
    top: calc(50% - 1px);
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    content: '';
    background: #b4b4b4;
}

span.bothsidesborder {
    color: #333;
    position: relative;
    padding: 0 1em;
    background: #ffffff;
}

.bg_bl span.bothsidesborder {
    background: #dfeef8;
}

.card {
    width: 100%;
    background-color: #fff;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.services h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0px;
    margin-top: 10px;
}

h2.mid {
    font-size: 1.3rem;
}

.card-img .overlay_wh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(247, 247, 247, 0.274);
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-shadow: #fff 1px 1px 6px;
}

.overlay_wh h2 {
    color: #222;
    text-shadow: #fff 1px 1px 6px;
}

/* 事務所紹介 */
.office-image {
  margin-top: 30px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
}
.office-image div {
    width: 49%;
}

.office-image p {
    margin-top: 8px;
    margin-bottom: 0;
    line-height: normal;
}





/* ボタンエリア */
.button_area3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}
.button_area4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

/* LINE001 */
.button_line001 a {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
    max-width: 200px;
    padding: 10px 25px;
    color: #3cb371;
    transition: 0.3s ease-in-out;
    font-weight: 600;
}

.button_line001 a:before {
    position: absolute;
    bottom: 0px;
    left: 50%;
    content: '';
    width: 100%;
    height: 2px;
    background: #3cb3711a;
    transform: translateX(-50%);
}

.button_line001 a:after {
    position: absolute;
    bottom: 0px;
    left: 0;
    content: '';
    width: 100%;
    height: 2px;
    background: #3cb371;
    transform: scale(0, 1);
    transform-origin: left top;
    transition: transform .3s;
}

.button_line001 a:hover {
    opacity: 0.7;
}

.button_line001 a:hover:after {
    transform: scale(1, 1);
}



.services {
    background-color: #dfeef8;
    padding: 60px 20px;
}


/*お知らせ*/
.news-list {
    list-style: none outside;
    margin: 0;
    padding: 0;
}

.news-list .item a {
    display: flex;
    flex-wrap: wrap;
    flex-wrap: nowrap;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #CCC;
    padding: 20px 0px;
}

.news-list .item:first-child a {
    border-top: 1px solid #CCC;
}

.news-list .item .date {
    margin: 0;
    min-width: 140px;
    font-size: 16px;
    color: #999;
    padding: 0 20px 0 0;
}

.news-list .item .category {
    margin: 0;
    min-width: 140px;
    padding: 0 20px 0 0;
}

.news-list .item .category span.bl {
    background: #3cb371;
    color: #FFF;
    text-align: center;
    display: inline-block;
    padding: 5px 20px;
    font-size: 12px;
    line-height: 1;
}

.news-list .item .category span.gr {
    background: #10B981;
    color: #FFF;
    text-align: center;
    display: inline-block;
    padding: 5px 20px;
    font-size: 12px;
    line-height: 1;
}


.news-list .item .title {
    margin: 0;
    width: 100%;
    text-align: left;
}
/*
.news-list .item a:hover .title {
    color: #00F;
}*/


/*応募の流れ*/
.flow_design05 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flow05 {
  padding-left: 0;
}

.flow05 > li {
  list-style-type: none;
  position: relative;
  padding-left: 50px;
}

.flow05 > li:not(:last-child) {
  padding-bottom: 30px;
}

.flow05 > li .icon05 {
  width: 2em;
  height: 2em;
  line-height: 2em;
  text-align: center;
  border-radius: 100vh;
  display: inline-block;
  background: orange;
  color: #fff;
  position: absolute;
  left: 0;
}

.flow05 > li:not(:last-child)::before {
  content: '';
  background: #c3c3c3;
  width: 4px;
  height: 100%;
  position: absolute;
  top: calc(50% - -30px);
  left: 19px;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}

.flow05 > li dl dt {
  font-size: 1.3em;
  font-weight: 600;
  color: orange;
  padding-bottom: 10px;
}

.flow05 > li dl dd {
  margin-left: 0;
}
a.text_link {
    color: #333;
    text-decoration: underline;
}
a.text_link:hover {
    color: orange;
}



p.sp_left {
    text-align: center !important;
}

@media screen and (max-width: 767px) {

    /*ヘッダーロゴ*/
    div.logo img {
        margin-top: 0 !important;
        height: 50px;
    }

    .news-list .item a {
        flex-wrap: wrap;
    }

    .news-list .item .date {
        min-width: 100px;
    }

    .news-list .item .title {
        margin-top: 10px;
    }

    .office-image {
        flex-direction: column;
        align-items: center;
    }
    .office-image div {
    width: 100%;
}


    .button_area3,
    .button_area4 {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
        row-gap: 20px;
    }

    p.sp_left {
        text-align: left !important;
    }
}



@media (max-width: 800px) {
    .banner div {
        flex-direction: column;
    }

    .banner div div {
        width: 100% !important;
    }

    .card {
        margin-bottom: 0;
    }

    h2.bothside::before {
        width: 100%;
    }

}

@media (max-width: 768px) {}

@media (max-width: 640px) {

    .bg_wh,
    .bg_bl {
        padding: 80px 10px;
    }

    .services {
        padding: 40px 20px;
    }

    span.bold {
        font-weight: bolder;
        font-size: 1.1rem;
    }

    .banner .card-img {
        aspect-ratio: 3 / 2;
    }

    .banner h2 {
        font-size: 1.8rem;
    }

    .banner p {
        text-align: left;
    }

    .footer-logo {
        margin-bottom: 20px;
        text-align: center;
    }
}


/**サブページ**/
.sub-page .container h2 {
    color: #3cb371;
    /*文字色*/
    padding: 0.5em 0;
    /*上下の余白*/
    border-top: solid 3px #3cb371;
    /*上線*/
    border-bottom: solid 3px #3cb371;
    /*下線*/
    margin: 0 0 30px;
}


.sub-page .container h3 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.sub-page .container h4 {
    font-size: 1.3rem;
    margin: 0;
    padding: 0;
    text-align: left;
}

.sub-page .container p {
    margin: 0 0 30px;
    text-align: left;

}



/* ドロップダウンメニューのスタイル */
.dropdown {
  position: relative;
}

.submenu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  width: 100%;  /* 親要素の幅に合わせる */
  min-width: max-content; /* コンテンツが収まる最小幅を確保 */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

.dropdown:hover .submenu {
  display: block !important;
}

.submenu li {
  display: block;
  width: 100%;
}

.submenu li a {
  padding: 12px 15px;
  display: block;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s;
}

.submenu li a:hover {
  background-color: #f5f5f5;
}

/* ...existing code... */
/* 親リンク下にオレンジバーを常時表示する（ホバーまたはドロップダウン開時） */
.main-nav .dropdown > a {
  position: relative;
  padding-bottom: 6px; /* 下スペース確保 */
}

.main-nav .dropdown > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 3px; /* バーの太さ */
  width: 0;
  background: orange; /* オレンジ色 */
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.main-nav .dropdown > a:hover::after,
.main-nav .dropdown:hover > a::after {
  width: 100%;
}

/* 既存のサブメニューホバー色があるならそのまま併用可 */
.submenu li a:hover {
  background-color: rgba(255,138,0,0.08); /* 例 */
}
/* ...existing code... */
/* トップレベルのリンクにもオレンジバーを常時表示（ホバー・フォーカス・開時） */
.main-nav .nav-container > ul > li > a {
  position: relative;
  padding-bottom: 10px;
  padding-top: 35px;
  height: 55px;
}
/*
.main-nav .nav-container > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 0;
  background: #ff8a00;
  transition: width 0.18s ease;
}*/

/* ホバー、キーボード操作（フォーカス内）、およびモバイルでメニュー開時に幅100%にする */
.main-nav .nav-container > ul > li:hover > a::after,
.main-nav .nav-container > ul > li:focus-within > a::after,
.main-nav .nav-container.open > ul > li > a::after {
  width: 100%;
}


/* PCのみに適用 */
@media screen and (min-width: 768px) {
  .dropdown:hover .submenu {
    display: block !important;
  }
}

/* モバイル時は通常のナビゲーション表示 */
@media screen and (max-width: 767px) {
  .submenu {
    position: static;
    box-shadow: none;
    display: none;
  }
  
  .dropdown:hover .submenu {
    display: none;
  }
  .main-nav .dropdown > a::after {
    display: none;
  }

    .main-nav .nav-container {
    background-color: #f5f5f5 !important;        /* ここがポイント */
    height: auto !important;
  }
  .main-nav .nav-container.open {
    background:#f5f5f5 !important;
    position: absolute;
    left: 0; right: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  /* 念のためULにも背景を付与（テーマによって必要） */
  .main-nav .nav-container > ul {
    background-color: #f5f5f5;
  }

    /* ② メニューを全幅（画面端まで）に広げる */
  .main-nav .nav-container.open {
    background-color: #f5f5f5 !important;
    position: fixed;   /* 画面に張り付ける */
    left: 0;
    right: 0;
    top: 80px;        /* ヘッダーの実高さに合わせて調整（例：100px） */
    width: 100vw;
    margin: 0;
    padding: 0;
    z-index: 1000;
    border-top: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
  }

  /* UL/LI のデフォルト余白もゼロに */
  .main-nav .nav-container.open > ul {
    margin: 0;
    padding: 0;
    list-style: none;
    background: #f5f5f5;
  }
  .main-nav .nav-container.open > ul > li > a {
    display: block;
    padding: 22px 20px;
   /* border-bottom: 1px solid #eee;*/
  }

  /* 上の top を変えたら、メインビジュアルの上マージンも合わせておくと重なり防止に◎ */
  .main-visual {
    margin-top: 80px; /* ヘッダーの高さと同じ値に */
  }

}