

/* ==========================================
Header.php、および共通箇所用 20260813
========================================== */
body {
margin: 0;
padding-top: 70px; /* ヘッダー固定表示用の余白 */
}

.ml_header {
width: 100%;
height: 70px;
background-color: #ffffff;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
position: fixed;
top: 0;
left: 0;
z-index: 9999;
display: flex;
align-items: center;
transition: all 0.3s ease;
}

.ml_header_inner {
width: 90%;
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}

/* ロゴエリア */
.ml_header_logo a {
display: flex;
align-items: center;
text-decoration: none;
}

.ml_header_logo img {
height: 44px;
width: auto;
display: block;
transition: transform 0.2s ease;
}

.ml_header_logo a:hover img {
transform: scale(1.03);
}

.ml_header_nav {
display: flex;
align-items: center;
}

.ml_header_nav_list {
display: flex;
align-items: center;
gap: 15px;
margin: 0;
padding: 0;
list-style: none;
}

.ml_header_nav_item a {
display: inline-block;
padding: 10px 20px;
font-size: 15px;
font-weight: 600;
color: #356EA0;
text-decoration: none;
border-radius: 20px;
position: relative;
transition: all 0.25s ease;
}

.ml_header_nav_item a:hover {
color: #28547c;
background-color: #EBF2F8;
}

/* ==========================================
スマホ用 ハンバーガーボタン & メニュー
========================================== */
.ml_hamburger {
display: none;
background: none;
border: none;
cursor: pointer;
padding: 10px;
z-index: 10001;
}

.ml_hamburger_bar {
display: block;
width: 24px;
height: 2px;
background-color: #356EA0;
margin: 5px 0;
transition: all 0.3s ease;
border-radius: 2px;
}
.ml_hamburger.active .ml_hamburger_bar:nth-child(1) {
transform: translateY(7px) rotate(45deg);
}
.ml_hamburger.active .ml_hamburger_bar:nth-child(2) {
opacity: 0;
}
.ml_hamburger.active .ml_hamburger_bar:nth-child(3) {
transform: translateY(-7px) rotate(-45deg);
}
.ml_sp_nav {
position: fixed;
top: 0;
right: -100%;
width: 80%;
max-width: 320px;
height: 100vh;
background-color: #ffffff;
box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
z-index: 10000;
padding: 90px 25px 40px 25px;
box-sizing: border-box;
transition: right 0.35s ease;
display: flex;
flex-direction: column;
}
.ml_sp_nav.active {
right: 0;
}
.ml_sp_nav_list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 12px;
}
.ml_sp_nav_item a {
display: block;
padding: 14px 18px;
font-size: 15px;
font-weight: 600;
color: #356EA0;
text-decoration: none;
border-radius: 8px;
background-color: #F7FAFC;
transition: background-color 0.2s;
}
.ml_sp_nav_item a:active {
background-color: #EBF2F8;
}
.ml_overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background: rgba(0, 0, 0, 0.4);
z-index: 9999;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.ml_overlay.active {
opacity: 1;
visibility: visible;
}

/* 768px以下（スマホ表示時）の切り替え */
@media (max-width: 768px) {
    .ml_header_nav {
    display: none;
    }
    .ml_hamburger {
    display: block;
    }
}


  /* ==========================================
     トップページ 20260813
     ========================================== */
  .ml_main {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }

  .ml_main a {
    text-decoration: none;
    color: inherit;
  }

  /* セクション共通見出し */
  h2.ml_h2_ul {
    letter-spacing: 0.2rem;
    margin: 0 0 10px 0;
    padding: 0;
    font-weight: 700;
    font-size: 30px;
    position: relative;
    text-align: center;
    color: #356EA0;
  }

  h2.ml_h2_ul::before {
    position: absolute;
    right: 0;
    bottom: -12px;
    left: 0;
    display: block;
    width: 45px;
    height: 3px;
    margin: 0 auto;
    content: "";
    background-color: #356EA0;
    border-radius: 2px;
  }

  p.ml_section_sub {
    text-align: center;
    color: #64748B;
    font-size: 14px;
    margin: 18px 0 0 0;
  }

  /* 青ボタン共通設定 */
  .ml_common_bluebutton {
    display: inline-block;
    margin: 35px auto 0 auto;
    padding: 14px 48px;
    background-color: #356EA0;
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 3px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(53, 110, 160, 0.25);
    transition: all 0.3s ease;
  }

  .ml_common_bluebutton:hover {
    background-color: #2b5982;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(53, 110, 160, 0.35);
    color: #FFFFFF !important;
  }

  /* ==========================================
     1. ヒーローエリア（縦幅をスマートに調整）
     ========================================== */
  section.ml_main_slide {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  div.ml_main_slide_wrap {
    width: 100%;
    aspect-ratio: 16 / 9; /* 縦幅が広くなりすぎないよう16:9比率に調整 */
    max-height: 70vh;    /* 画面に対する高さ上限を設定 */
    margin: 0 auto;
    padding: 0;
    padding-top: 15vh;
    position: relative;
    background-color: #FFF;
    background-image: url("https://www.mie-love.com/asset/img/ml_bg_agowan01.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: top;
    justify-content: center;
  }

  /* タイトル文字（中央バランスに配置） */
  p.ml_main_slide_titletext {
    text-align: center;
    margin: 0;
    padding: 0 20px 30px 20px; /* 下部に少し余白を作って波線との被りを回避 */
    font-size: 54px;
    font-weight: 500;
    color: #FFF;
    text-shadow:
      0 0 8px #70A3D0,
      0 0 8px #70A3D0,
      0 0 8px #70A3D0,
      0 0 8px #356EA0,
      0 0 8px #356EA0;
    letter-spacing: 0.12em;
    animation: fadeIn 2.5s cubic-bezier(0.33, 1, 0.68, 1) forwards;
    z-index: 1;
  }

  p.ml_main_slide_titletext span {
    font-size: 68px;
  }

  @keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
  }

  /* 雲のような波線（SVG区切り） */
  div.ml_waves {
    margin: 0;
    padding: 0;
    width: 100%;
    position: absolute;
    bottom: -1px;
    left: 0;
    z-index: 2;
  }

  div.ml_waves svg {
    display: block;
    width: 100%;
    height: auto;
  }

  /* ==========================================
     2. 新着記事セクション（3件を中央にキュッと凝縮）
     ========================================== */
  section.ml_main_aboutmie {
    overflow: hidden;
    position: relative;
    background: #FFFFFF;
    padding: 30px 0 110px 0;
    text-align: center;
  }

  /* 斜めのセクション区切り（下部） */
  section.ml_main_aboutmie::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    border-top: 50px solid transparent;
    border-left: 50vw solid transparent;
    border-right: 50vw solid #EBF2F8;
    border-bottom: 50px solid #EBF2F8;
  }

  /* 3件表示用に幅を中央に寄せてコンパクト（max-width: 820px）に設定 */
  ul.ml_main_newarticle_list {
    padding: 0;
    padding-top: 45px;
    margin: 0 auto;
    width: 85%;
    max-width: 820px; 
    display: flex;
    justify-content: center;
    gap: 24px;
  }

  ul.ml_main_newarticle_list li {
    width: 31%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  div.ml_main_newarticle_list_wrap {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    background-color: #FFF;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
  }

  div.ml_main_newarticle_list_wrap:hover img {
    transform: scale(1.08);
  }

  div.ml_main_newarticle_list_img_wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
  }

  img.ml_main_newarticle_list_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
  }

  div.ml_main_newarticle_list_text_wrap {
    width: 100%;
    padding: 12px 12px 4px 12px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
  }

  span.ml_main_newarticle_list_category {
    margin-right: 8px;
    padding: 3px 8px;
    color: #FFF;
    font-size: 11px;
    font-weight: 600;
    background-color: #356EA0;
    border-radius: 4px;
    letter-spacing: 1px;
  }

  p.ml_main_newarticle_list_date {
    margin: 0;
    padding: 0;
    color: #64748B;
    font-size: 12px;
    font-weight: 600;
  }

  p.ml_main_newartcile_list_title {
    color: #1E293B;
    font-weight: 700;
    font-size: 14px;
    margin: 4px 12px 14px 12px;
    line-height: 1.45;
  }

  /* ==========================================
     3. 三重とは（ストーリーセクション）
     ========================================== */
  section.ml_main_newarticle {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #EBF2F8;
    padding: 50px 0 150px 0;
    text-align: center;
    color: #356EA0;
    background-image: url("https://www.mie-love.com/asset/img/mielove_common_miemap.png");
    background-size: 28%;
    background-position: right 5% top 40px;
    background-repeat: no-repeat;
  }

  section.ml_main_newarticle::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    border-top: 50px solid transparent;
    border-left: 50vw solid transparent;
    border-right: 50vw solid #FFF;
    border-bottom: 50px solid #FFF;
  }

  div.ml_aboutmie_story_card {
    width: 55%;
    max-width: 680px;
    margin: 40px auto 0 auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    padding: 35px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(53, 110, 160, 0.08);
    text-align: left;
    box-sizing: border-box;
  }

  div.ml_aboutmie_story_card h3 {
    font-size: 20px;
    color: #356EA0;
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 1.5;
  }

  div.ml_aboutmie_story_card p {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
    margin: 0 0 1.2em 0;
  }

  div.ml_aboutmie_story_card p:last-child {
    margin-bottom: 0;
  }

  /* ==========================================
     4. エリアから探す セクション
     ========================================== */
  section.ml_main_area {
    background: #FFFFFF;
    padding: 40px 0 100px 0;
    text-align: center;
  }

  .ml_area_grid {
    width: 75%;
    max-width: 1000px;
    margin: 40px auto 0 auto;
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(180px, 1fr) );
    gap: 15px;
  }

  .ml_area_card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px 15px;
    transition: all 0.3s ease;
    display: block;
  }

  .ml_area_card:hover {
    background: #356EA0;
    border-color: #356EA0;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(53, 110, 160, 0.2);
  }

  .ml_area_card h3 {
    margin: 0 0 6px 0;
    font-size: 17px;
    color: #1E293B;
    font-weight: 700;
  }

  .ml_area_card p {
    margin: 0;
    font-size: 12px;
    color: #64748B;
  }

  .ml_area_card:hover h3,
  .ml_area_card:hover p {
    color: #FFFFFF;
  }

  /* レスポンシブ対応 (スマホ表示) */
  @media (max-width: 900px) {
    p.ml_main_slide_titletext {
      font-size: 38px;
    }
    p.ml_main_slide_titletext span {
      font-size: 48px;
    }
    ul.ml_main_newarticle_list {
      flex-direction: column;
      align-items: center;
      width: 90%;
    }
    ul.ml_main_newarticle_list li {
      width: 100%;
      max-width: 360px;
      margin-bottom: 15px;
    }
    div.ml_aboutmie_story_card {
      width: 90%;
      padding: 25px;
    }
  }


  /* ==========================================
     フッター全体設定 20260813
     ========================================== */
  footer.ml_footer {
    width: 100%;
    background-color: #356EA0;
    color: #FFFFFF;
    position: relative;
    padding: 0 0 25px 0;
    margin-top: 60px;
    text-align: center;
  }

  /* 上部のやさしい波線区切り（SVG） */
  div.ml_footer_wave {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    position: absolute;
    top: -39px;
    left: 0;
  }

  div.ml_footer_wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 40px;
  }

  /* インナーコンテンツ */
  div.ml_footer_inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 20px 0 20px;
  }

  /* サイトタイトル・ロゴエリア */
  div.ml_footer_brand {
    margin-bottom: 25px;
  }

  h3.ml_footer_title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px 0;
    padding: 0;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  /* ロゴアイコン（ヘッダーと統一感を持たせたハート型SVG） */
  p.ml_footer_catch {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.1em;
    opacity: 0.9;
    font-weight: 500;
  }

  /* ナビゲーションリンク */
  ul.ml_footer_linklist_ul {
    margin: 0 auto 30px auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 8px 0;
  }

  ul.ml_footer_linklist_ul li {
    display: inline-flex;
    align-items: center;
  }

  ul.ml_footer_linklist_ul a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    position: relative;
    transition: all 0.3s ease;
  }

  /* ホバー時に下線が伸ばされるアニメーション */
  ul.ml_footer_linklist_ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
  }

  ul.ml_footer_linklist_ul a:hover {
    opacity: 1;
    transform: translateY(-1px);
  }

  ul.ml_footer_linklist_ul a:hover::after {
    width: 70%;
  }

  /* スラッシュ区切り */
  ul.ml_footer_linklist_ul li:not(:last-child)::after {
    content: "/";
    margin: 0 4px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
  }

  /* コピーライト線とテキスト */
  p.ml_footer_copyright {
    font-size: 12px;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.9);
  }

  /* スマホ対応 */
  @media (max-width: 600px) {
    ul.ml_footer_linklist_ul {
      gap: 12px 6px;
    }
    ul.ml_footer_linklist_ul li:not(:last-child)::after {
      display: none; /* スマホでは区切り線を消して見やすく */
    }
  }