/*---------------------------------
  CSS初期化と全体ベース
----------------------------------*/



*,
*::before,
*::after {
  box-sizing: border-box;
}

.sp {
    display: none;
  }
  .pc {
    display: block;
  }
  .tab{
    display: none;
  }

  @media screen and (max-width: 1200px) {
    .tab{
      display: block;
    }
    .pc {
      display: none;
    }
    .sp{
      display: block;
    }
  }
  
  @media screen and (max-width: 768px) {
    .sp {
      display: block;
    }
    .pc {
      display: none;
    }
    .tab{
      display: none;
    }
  }


.sp2 {
  display: none;
}
.pc2 {
  display: block;
}

@media screen and (max-width: 768px) {
  .sp2 {
    display: block;
  }
  .pc2 {
    display: none;
  }
}


html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif !important;
  line-height: 1.7;
  color: #333;
  background-color: #fff;
}

/*---------------------------------
  基本構造
----------------------------------*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
a{
  text-decoration: none;
}
  /*---------------------------------
    レイアウト・中央寄せ
  ----------------------------------*/
  .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
  }
  
  /*---------------------------------
    カラー変数（CSSカスタムプロパティ）
  ----------------------------------*/
  :root {
    --main-color: #eb6e8b;
    --accent-color: #4bb3d3;
    --font-color: #333;
    --bg-light: #f8f8f8;
    --bg-accent: #e7f6f9;
  }



/* ヘッダーセクション */
.inner1{
  max-width: 1300px;
  width: 100%;
  padding: 0 40px;
  margin: 0 auto;
}
.inner2 {
  margin: 0 7.4%;
}
.inner3{
    max-width: 1000px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}
.header_section {
    display: flex;
    justify-content: space-between;
    gap: clamp(8px, 2vw, 20px); 
    align-items: center;
    height: 80px;
    padding: 0 10px;
}
.header_left{
  max-width: 250px;
}
.header_right{
    display: flex;
    align-items: center;
    background: rgba(243, 245, 248, 0.8);
    box-shadow:
      inset 1px 1px 2px rgba(255,255,255,1),
      0 0 8px rgb(190, 189, 189);
    border-radius: 50px;
    padding: 5px 20px 5px 35px;
    margin-top: 20px;
    max-height: 66px;
}
@media screen and (max-width: 1200px) {
  .header_right{
    background-color: transparent;
    box-shadow: none;
    margin-top: 0;
    padding: 0;
  }
}
.tel_icon{
    max-width: 250px;
}
.contact_icon{
    max-width: 250px;
    margin-left: 20px;
    background-color: rgba(0, 81, 127, 0.9);
    box-shadow: 
    inset 1px 1px 1.5px rgba(255,255,255,1);
    border-radius: 50px;
    color: #fff;
    padding: 15px 30px;
}
.contact_icon2{
  max-width: 250px;
  margin-right: 20px;
  background-color: rgba(0, 81, 127, 0.9);
  box-shadow: 
  inset 1px 1px 1.5px rgba(255,255,255,1);
  border-radius: 50px;
  color: #fff;
  padding: 15px 30px;
}
.header_section img {
    display: block;
    max-width: 300px;
    width: 100%;
}

/* ▼ スマホ用ナビメニュー（アニメーション付き） */
.sp_nav {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    z-index: 99;
    text-align: center;
  }
  
  /* メニューが開いたとき */
  .sp_nav.active {
    max-height: 500px; /* ← メニューの高さに応じて調整 */
    opacity: 1;
  }
  
  /* ナビリスト全体 */
  .sp_nav ul {
    list-style: none;
    margin: 0;
    padding: 20px 0;
  }
  
  /* リストアイテム */
  .sp_nav li {
    border-bottom: 1px solid #eee;
  }
  
  /* リンクのスタイル */
  .sp_nav li a {
    display: block;
    padding: 16px;
    color: #333;
    font-size: 18px;
    text-decoration: none;
    font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
    transition: background-color 0.2s ease;
  }
  
  .sp_nav li a:hover {
    background-color: #f0f0f0;
  }

  .header_menu_list ul{
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-block-start: 0;
    margin-block-end: 0;
    padding-inline-start: 0;
    padding: 15px 0;
  }
  .header_menu_list ul li{
    list-style: none;
    color: #333;
    font-size: 16px;
    font-weight: 450;
    font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  }


/* 1) 行高を変数で固定（フォント差分対策） */
.header_menu_list a.roll {
    --lh: 1.2;                      /* 行高(お好みで 1〜1.4) */
    position: relative;
    display: inline-block;
    overflow: hidden;               /* はみ出しを隠す：必須 */
    line-height: var(--lh);
    height: calc(var(--lh) * 1em);  /* 1行ぶんだけ見せる：必須 */
    text-decoration: none;
    color: inherit;
    padding: 0;                     /* ここにpaddingがあるとズレやすい */
  }
  
  /* 2) 2行を縦積み */
  .header_menu_list .roll__inner {
    display: inline-flex;
    flex-direction: column;
    transform: translateY(0);       /* 初期は上段を表示 */
    transition: transform .35s cubic-bezier(.2,.6,.2,1);
    will-change: transform;
  }
  
  /* 3) 各行を“1行＝固定高”に揃える */
  .header_menu_list .roll__text {
    display: block;
    height: calc(var(--lh) * 1em);
    line-height: var(--lh);
  }
  
  /* 4) ホバーでちょうど1行ぶんだけ上へ */
  .header_menu_list a.roll:hover .roll__inner,
  .header_menu_list a.roll:focus-visible .roll__inner {
    transform: translateY(calc(-1 * var(--lh) * 1em));
  }
  
  /* 5) キーボード操作の見やすさ（任意） */
  .header_menu_list a.roll:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
  }


/* SP表示時（768px以下）にのみ表示されるハンバーガーメニュー */
@media screen and (max-width: 768px) {
    .header_left {
      max-width: 200px;
    }
  
    .header_section {
      height: 70px;
    }
      }
  

/* ハンバーガー */
.hamburger{
  width: 50px; height: 50px;
  align-items:center; justify-content:center;
  border: 0; border-radius: 9999px; cursor: pointer;
  background: rgba(243, 245, 248, 0.9);
  box-shadow: 
  inset 2px 2px 2px rgba(255,255,255,1);
  box-shadow: inset 0 0 0 1px rgba(50,78,147,.08);
  transition: background .2s ease;
  position: relative;
}
.hamburger:hover{ background:#E9EEF6; }
.hamburger:focus-visible{ outline: 2px solid #324E93; outline-offset: 2px; }

.hamburger span{
  position: absolute; width: 18px; height: 2px; background:#324E93; transition: .25s;
  left: 33%;
  top: 48%;
}
.hamburger span:nth-child(1){ transform: translateY(-6px); }
.hamburger span:nth-child(2){ opacity: 1; }
.hamburger span:nth-child(3){ transform: translateY(6px); }

/* 開いた状態のアニメ（×に変形） */
.hamburger[aria-expanded="true"] span:nth-child(1){ transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform: rotate(-45deg); }
  

.tab_header_right{
  display: flex;
}


  /* ヒーローセクション */
  .mv {
    /*background-image: url('../img/mv_back.png');*/
    /*background-image: url('../img/back_image5.png');*/
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    min-height: clamp(520px, 70vh, 900px); 
    padding-block: clamp(48px, 10vh, 120px);
    z-index: 0; /* 🔽 背景は一番奥に */
    padding-bottom: 80px;
  }
  .mv::before,
  .mv::after{
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    z-index: 0;                      /* 背景は一番下の層 */
    transform: translateZ(0);
  }


  @keyframes fade1 {
    0%, 30%   { opacity: 1; }  /* 1枚目を見せる（3秒） */
    50%, 80%  { opacity: 0; }  /* 1→2 のフェード（2秒）＋ 2が見える時間（3秒） */
    100%      { opacity: 1; }  /* 2→1 のフェード（2秒）で戻る */
  }
  
  @keyframes fade2 {
    0%, 30%   { opacity: 0; }  /* 2枚目は最初は隠れる */
    50%, 80%  { opacity: 1; }  /* 1→2 のフェード（2秒）＋ 2の滞在（3秒） */
    100%      { opacity: 0; }  /* 2→1 のフェード（2秒）で隠れる */
  }
  .mv::before {
    background-image: url('../img/back_image8.png');
    opacity: 1;
    animation: fade1 10s infinite; /* 10秒周期で繰り返し */
  }
  
  .mv::after {
    background-image: url('../img/mv_back234.png')!important;
    opacity: 0;
    animation: fade2 10s infinite; /* 10秒周期で繰り返し */
  }

  .mv_contents{
    /*display: flex;*/
    justify-content: center;
    gap: 60px;
    padding-top: 60px;
    position: relative;
    z-index: 1;
  }
  .mv-right img{
    max-width: 500px;
    width: 100%;
    
  }
  .mv-left h2{
    font-weight: 700;
    font-size: 4.5vw;
    line-height: 1.2;
    letter-spacing: 1vw;
    margin: 0 auto 30px;
  }
  .mv-left h3{
    font-weight: 500;
    font-size: clamp(1rem, calc(1vw + 1.5rem), 2vw);
    letter-spacing: 0.2vw;
    color: #fff;
    font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  }
  .mv_btn{
    padding: 40px 0;
    margin-top: 50px;
  }
  .mv_btn a{
    background-color: rgba(0, 81, 127, 0.9);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items:center; 
    gap: 25px;
    width: 80%;        /* 親幅の80% */
    max-width: 400px;  /* 広がりすぎ防止 */
    padding: 20px 0;
    transition: 0.5s;
    border-radius: 3px;
    font-weight: 500;
    box-shadow: 
    inset 1px 1px 2px rgba(255,255,255,1);
  }
  .mv_btn a:first-child{
    margin-right: 20px;
  }
  .mv_btn a:hover{
    background-color: #00517F;
    color: #fff;
    transition: 0.s;
  }
  .mv_btn a img {
    width: 15%;
    height: auto;
}
.mv_btn a p{
  line-height: 1.3;
}
  .contact_sub_txt{
    font-size: 12px;
  }
  .contact_main_txt{
    font-size: 25px;
    font-weight: 600;
  }

/* ================================
   Hero Wipe Animation - Complete
   ================================ */

/* 調整用変数 */
:root{
  --text:#fff;                 /* 文字色 */
  --band:rgba(255, 255, 255, 0.5);                   /* 白帯の色 */
  --ease:cubic-bezier(.15,.7,.15,1);

  --grow:1s;                      /* 伸びる時間 */
  --hold:.2s;                     /* 止まる時間（固定秒） */
  --shrink:1.6s;                  /* 消える時間 */

  --gap:.25s;                     /* 2行目の遅延量 */
}

/* 行の箱：行間やクリップはここで制御 */
.mv-title{ 
  line-height:1; 
}
.mv-title .line{
  display:block;                  /* ← 各行を縦に積む */
  overflow:hidden;                /* ← 行外の帯を隠す */
  margin:0 0 0.1px;               /* ← 行間（好みで調整） */
}

/* テキスト幅の箱：帯はこの幅にフィット */
.mv-title .wipe{
  display:inline-block;           /* ← 文字幅にフィットさせる */
  position:relative;
  overflow:hidden;                /* 念のため（装飾がはみ出さないように） */
  color:transparent;              /* 初期は見せない */
  background:linear-gradient(var(--text) 0 0) left/0% 100% no-repeat;
  -webkit-background-clip:text; background-clip:text;
}

/* 白帯（擬似要素） */
.mv-title .wipe::before{
  content:"";
  position:absolute; top:0; bottom:0; left:0; width:100%; /* 文字幅だけ覆う */
  background:var(--band);
  transform:scaleX(0); transform-origin:left;
}

/* ===== アニメーション発火 ===== */
/* 1行目（基本） */
.is-loaded .mv-title .wipe::before{
  /* 伸びる → （hold秒だけ満幅を維持） → 消える */
  animation:
    grow   var(--grow)   var(--ease) forwards,
    hold   var(--hold)   linear      forwards var(--grow),
    shrink var(--shrink) var(--ease) forwards calc(var(--grow) + var(--hold));
}
.is-loaded .mv-title .wipe{
  /* 帯が消え始めるタイミングで文字の塗り開始 */
  animation: text-fill var(--shrink) var(--ease) forwards calc(var(--grow) + var(--hold));
}

/* 2行目（.d2）：3本すべて＋テキスト塗りに同じ遅延を与える */
.is-loaded .mv-title .line.d2 .wipe::before{
  animation-delay:
    var(--gap),
    calc(var(--gap) + var(--grow)),
    calc(var(--gap) + var(--grow) + var(--hold));
}
.is-loaded .mv-title .line.d2 .wipe{
  animation-delay: calc(var(--gap) + var(--grow) + var(--hold));
}

/* ===== Keyframes ===== */
@keyframes grow   { from{transform:scaleX(0); transform-origin:left;}
                    to  {transform:scaleX(1); transform-origin:left;} }

@keyframes hold   { from{transform:scaleX(1);} to{transform:scaleX(1);} }

@keyframes shrink { from{transform:scaleX(1); transform-origin:right;}
                    to  {transform:scaleX(0); transform-origin:right;} }

@keyframes text-fill { from{background-size:0% 100%;} to{background-size:100% 100%;} }

/* 動きを控える設定に配慮（任意） */
@media (prefers-reduced-motion: reduce){
  .mv-title .wipe, .mv-title .wipe::before{
    animation:none !important;
  }
  .mv-title .wipe{
    color:var(--text);
    background:none;
  }
}


/*他のビジュアルもアニメーション化*/
/* 初期状態：透明＆下に少しズラす */
.mv_btn .btn,
.mv-visual,
.mv-sub{
  opacity:0;
  transform:translateY(18px);
}

/* アニメーション定義 */
@keyframes fade-up {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}

/* 発火：.is-loaded で帯アニメと一緒に動く */
.is-loaded .mv_btn .btn.d3{
  animation: fade-up .8s ease forwards;
  animation-delay: calc(var(--grow) + var(--hold) + .2s);
}
.is-loaded .mv_btn .btn.d4{
  animation: fade-up .8s ease forwards;
  animation-delay: calc(var(--grow) + var(--hold) + .35s);
}
.is-loaded .mv-visual.d3{
  animation: fade-up 1s ease forwards;
  animation-delay: calc(var(--grow) + var(--hold) + .25s);
}
.is-loaded .mv-sub.d5 {
  animation: fade-up .8s ease forwards;
  /* h2 の帯アニメが終わって少し後に発火 */
  animation-delay: calc(var(--grow) + var(--hold) + .05s);
}


/*その他のアニメーション*/
/* 初期状態：少し下&薄く */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}

/* 表示状態 */
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* アニメ苦手な人への配慮 */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

@media screen and (max-width: 768px) {
  .mv{
padding-bottom: 40px
  }
  .mv_contents{
    display: block;
  }
  .mv-left h2{
    letter-spacing: 0.4vw;
    font-size: 40px;
  }
  .mv_btn{
    padding: 0;
  }
  .mv_btn a:first-child{
    margin-right: 0;
    margin: 0 auto;
  }
  .mv_btn a{
    width: 100%;
  }
}
@media screen and (max-width: 768px) {
  .contact_main_txt{
    font-size: 22px;
  }
}

@media screen and (min-width: 1600px) {
  .mv::before{
    background-image: url('../img/back_image8_big.png');
  }
  .mv::after{ 
    background-image: url('../img/mv_back23_big.png')!important;
  }
  .mv{

    aspect-ratio: auto
  }
}
@media screen and (max-width: 1300px) {
  .mv::before{
    background-image: url('../img/back_image8_tab.png');
  }
  .mv::after{ 
    background-image: url('../img/mv_back23_tab.png')!important;
  }
  .mv{

    aspect-ratio: auto
  }
}
@media screen and (max-width: 768px) {
  .mv::before {
    background-image: url('../img/back_image9_sp.png'); /* 1枚目 */
  }
  .mv::after {
    background-image: url('../img/mv_back23_sp.png')!important;
  }
  .mv {
    aspect-ratio: auto;
    height: 800px;
  }
  .mv-left h2{
    line-height: 1.3;
    font-size: 35px;
    margin-bottom: 10px;
  }
  .mv-left h3{
    font-size: 4.3vw;
    color: #fff;
    font-weight: 200;
  }
  .mv_contents{
    padding-top: 20px;
  }
  .mv_btn{
  margin: 390px auto 0;
  }
  .mv_btn a{
    margin: 0 auto;
    }
}




    /* サブアクセス */
    .sub_clender{
      background:#f9eff2;
      place-items:center; 
      padding: 15px;
      margin-top: 20px;
    }
    .calendar-inner{
      background:#fff;
      padding: 10px 25px;
      box-sizing: border-box;
    }
    .business-hours{
      width:100%;
      max-width: 720px;
      margin: 0 auto;
      table-layout:fixed;
      border-collapse:collapse;
      border-radius:6px;
      overflow:hidden;
      font-size:clamp(14px, 1.5vw, 16px);
      color:#333;
    }
    thead{
      max-width: 100%;
    }
    .business-hours th,
    .business-hours td{
      padding:.8em 0em;
      text-align:center;
      vertical-align:middle;
      white-space:normal;         /* ← nowrapを外す */
      overflow-wrap:anywhere;     /* 長い語も折返し */
    }
    .business-hours thead th{
      border-bottom:1px solid #E5E8EE;
    }
  .label,.time{
    border-right: 1px solid #E5E8EE;
    text-align: left!important;
  }
  .label{ width:7em; }
.time { width:7em; }
  .note{
    text-align: center;
    padding-top: 10px;
    font-size: 15px;
  }
.access_section{
  background-color: #fff;
  margin-bottom:40px;
  padding-top: 6px;
}
.sub_access{
  margin-top: 40px;
}

.sub_access_contents{
  display:flex;
  gap:24px;
  width:min(1000px, 100%);  /* ← 親に上限を与える */
  margin-top: 30px;
}
.access_map,
.access_info{
  flex:1 1 0;   /* grow/shrink可 + 基準幅0 = 1:1で分割 */
  min-width:0;  /* ← 重要：子が縮めない問題を防ぐ */
}
.access_info{
  background-color: #F5F9FF;
  padding: 20px 40px;
}
.google_map{
  background-color: #2C4883;
  color: #fff;
  padding: 10px 30px;
  display: inline-block;
  margin-top: 40px;
}
.info1{
  display: flex;
  align-items: start;
  gap: 10px;
  padding-top: 30px;
}
.info1 img{
  max-width: 15px;
}
.info1 p{
  font-size: 17px;
}
.info2{
  display: flex;
  align-items: center;
  padding-top: 30px;
  gap: 10px;
}
.info2 img{
  max-width: 15px;
}
.info2 p{
  font-size: 17px;
}
.map_btn img{
  max-width: 30px;
  align-items: center;
  margin-left: 20px;
}
@media (max-width: 768px){
  .sub_access_contents{
      display: block;
  }
  .access_info{
      margin: 0 auto;
  }
  .sub_access_title{
    padding: 4px 20px;
    font-size: 14px;
}
.access_section{
    padding: 15px 0;
}
.sub_access_text{
    font-size: 14px;
    font-weight: 600;
}
.map_btn_section{
    text-align: center;
}
.google_map{
padding: 15px 30px;
font-size: 18px;
width: 100%;
text-align: center;
}
.info1,
.info2{
    font-size: 18px;
}
.info1 img{
    max-width:18px;
}
.info2 img{
    max-width:18px;
}
.calendar-inner{
    padding: 10px 15px;
}
.sub_clender{
    padding: 15px 10px;
}
.business-hours th,
.business-hours td{
    padding: .5em 0.5em;
}
.access_info{
    padding: 30px 18px;
}
.access_map{
  width: 100%;
}
}



/* ボタンベース */
.btn-shine {
  color: #fff;
  position: relative;
  overflow: hidden; /* 光がはみ出さないように */
  transition: 0.3s;
}

/* hoverで少し暗く */
.btn-shine:hover {
  background-color: rgba(0, 81, 127, 1);
}

/* 光の筋 */
.btn-shine::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(
    75deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  filter: blur(2px);
  pointer-events: none;
  opacity: 0;
}

/* hover時に走らせる */
.btn-shine:hover::after {
  animation: shine-sweep 0.8s ease;
  opacity: 1;
}

@keyframes shine-sweep {
  0%   { left: -60%; }
  100% { left: 130%; }
}


/* 吉田勝恵商店のあゆみ */
.sub_title{
  font-size: 80px;
  text-align: center;
  font-weight: 550;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  letter-spacing: 15px;
  color: #F3F2F2;
}
.history{
  padding: 60px 0 100px;
}

.company_link img{
  width: 18px;
  height: 18px;
}
.history_contents{
  display: flex;
  justify-content: center;
  gap: 60px;
}
.company_img{
  max-width: 400px;
  width: 100%;
}
.history_txt{
  max-width: 400px;
  width: 100%;
}
.history h2{
  text-align: center;
  padding-bottom: 50px;
  color: #071847;
  font-size: 30px;
  margin-top: -30px;
}
.history_txt p{
  line-height: 2;
}


.company_link{
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  padding-bottom: 6px; /* 下線との距離 */
  float: right;
  margin-top: 40px;
}

/* もとの線（右に消える） */
.company_link::before{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:1.5px;
  background:#0e1a40; /* 元の色 */
  transform-origin: right center;
  transform: scaleX(1);
  transition: transform .35s ease;
}

/* 新しい線（左から出る） */
.company_link::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:1.5px;
  background:#1f5fbf; /* 新しい色 */
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .35s ease .02s;
}

/* hoverで切り替え */
.company_link:hover::before{ transform: scaleX(0); }
.company_link:hover::after{  transform: scaleX(1); }

/* テキスト */
.company_link a{
  text-decoration: none;
  color: #0e1a40;
}

/* 矢印アイコン：hoverで少し動かす */
.company_link img{
  width: 16px; height: 16px;
  object-fit: contain;
  transition: transform .3s ease;
}
.company_link:hover img{ transform: translateX(4px); }

.company_link a{
  transition: 0.5s;
 }

.company_link a:hover{
 color: #FF0000;
 transition: 0.5s;
}


@media screen and (max-width: 768px){
  .history_contents{
    display: block;
  }
}



/* 補聴器をご検討の方へ */
.consider {
  width: 100%;
}

/* セクション土台 */
.assist{
  position: relative;         /* 背景の絶対配置の基準にする */
  padding: 80px 0;            /* セクション上下の余白 */
}

/* 中央寄せ用の inner */
.inner{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 背景（絶対配置で全幅・全高） ===== */
.assist-bg{
  position: absolute; inset: 0;   /* セクション全体を覆う */
  display: grid;
  grid-template-columns: 1fr 1fr; /* 左右比率は調整OK */
  z-index: 0;                      /* コンテンツの背面に */
}

/* 左：背景画像（表示されない問題に強い） */
.bg-left{
  background: url(../img/hotyoki_back.png) center/cover no-repeat;
  position: relative;
}
.bg-left::after{                    /* 画像上に被せ（任意） */
  content:""; position:absolute; inset:0;
}

/* 右：背景色 */
.bg-right{
  background:#eaf2ff;
}

/* ===== コンテンツ（前面） ===== */
.assist-content{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 180px;
  border-radius: 8px;
  overflow: hidden;
}
.left{
  display:flex; align-items:center; justify-content:center;
  padding:24px; color:#fff;
}
.left h2{ margin:0; font-size: clamp(14px,2.2vw,30px); }
.right{
  display:flex; align-items:center;
  padding:20px 24px; background: transparent;
  margin: 0 auto;
}
.right ul{ margin:0; padding:0; list-style:none; width:100%; }
.right li{
  padding:25px 0;
}
.right li a{
  color: #333;
  position: relative;
  font-size: 22px;
}
.right li a::before {
  content: "";
  background-image: url(../img/link_btn2.png);
  position: absolute;
  top: -4px;
  left: -45px;
  background-repeat: no-repeat;
  background-size: contain;
  width: 30px;
  height: 30px;
}
.right li a:hover{
  background-position: bottom left;
  background-size: 100% 1px;
  color: #FF0000;
  transition: background-size 0.5s;
}
.right li:last-child{ border-bottom:none; }

.bg-right ul li a:hover{
  background-position: bottom left;
  background-size: 100% 1px;
  color: #FF0000;
  transition: background-size 0.5s;
}

/* スマホ縦積み */
@media (max-width:768px){
  .assist-bg{
    display: block;
  }
  .assist-content{
    display: block;
  }
  .assist{
    position: static;         /* 背景の絶対配置の基準にする */
    padding: 0;
  }
  
  /* ===== 背景（絶対配置で全幅・全高） ===== */
  .assist-bg{
    position: static;
  }
  .bg-left h2{
    margin: 0 auto;
    color: #fff;
    font-size: 5.5vw;
    font-weight: 600;
    padding: 80px;
    text-align: center;
  }
  .bg-right{
    display: flex;
    justify-content: center;
  }
  .bg-right .sp2{
    margin: 0 auto;
    padding: 40px 0;
  }
  .bg-right ul li a{
    color: #333;
    font-size: 20px;
    position: relative;
  }
  .bg-right ul li{
    padding: 15px 0;
    list-style:none;
  }
  .bg-right ul li a::before{
    content: "";
    background-image: url(../img/link_btn2.png);
    position: absolute;
    top: -4px;
    left: -45px;
    background-repeat: no-repeat;
    background-size: contain;
    width: 30px;
    height: 30px;
  }


}


/* 耳よりプラン */
.mimiyori_plan{
  background-image: url('../img/hv4_back.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
}
.mimiyori_plan h2{
  margin: 0 auto;
  text-align: center;
  padding: 50px 0;
  font-size: 30px;
  letter-spacing: 3px;
}
.mimiyori_contents {
  display: flex;
  justify-content: center;
  gap: 50px;
}
.mimiyori_people{
  max-width: 550px;
  width: 45%;
}
.mimiyori_text{
  margin-top: 40px;
}
.plan_logo{
  max-width: 550px;
  width: 100%;
}
.mimiyori_btn{
  display: inline-block;
  text-align: center;
  color: #fff;
  background-color: rgba(240, 46, 87, 0.9);
  box-shadow: 
  inset 1.5px 1.5px 1.6px rgba(255,255,255,1);
  border-radius: 35px;
  font-size: 22px;
  max-width: 550px;
  width: 100%;
  padding: 20px 0;
  margin-top: 50px;
  box-sizing: border-box;
  transition: 0.5s;
}
@media screen and (max-width: 768px){
  .mimiyori_contents{
    display: block;
    text-align: center;
    padding-bottom: 60px;
  }
  .mimiyori_people,
  .plan_logo {
    max-width: 550px;
    width: 100%;
  }
  .mimiyori_plan h2{
    font-size: 19px;
    padding-bottom: 30px;
  }
  .mimiyori_btn{
    margin-top: 30px;
    padding: 15px 0;
  }
}


/* ボタンベース */
.btn-shine2 {
  color: #fff;
  position: relative;
  overflow: hidden; /* 光がはみ出さないように */
  transition: 0.3s;
}

/* hoverで少し暗く */
.btn-shine2:hover {
  background-color: #F02E57;
}

/* 光の筋 */
.btn-shine2::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(
    75deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  filter: blur(2px);
  pointer-events: none;
  opacity: 0;
}

/* hover時に走らせる */
.btn-shine2:hover::after {
  animation: shine-sweep 0.8s ease;
  opacity: 1;
}





/* グループ会社紹介 */
.group{
  padding-bottom: 100px;
}
.group h2{
  text-align: center;
  color: #132a55;
  padding: 60px 0;
  font-weight: 500;
  font-size: 24px;
}
/* ====== layout ====== */
.group_contents{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 60px;          /* row x column gap */
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color:#1a1a1a;
  line-height: 1.6;
  font-size: 14px;
  margin-top: 40px;
  margin: 0 auto;
  justify-self: center;
}

.group_info{
  display:flex;
  gap:16px;
  align-items:flex-start;
}
@media screen and (max-width: 1350px) {
  .group_info{
    display:block;
  }
  .info_txt{
    padding-top: 15px;
  }
}

/* 画像 */
.group_info img{
  width: 270px;            /* 画像の見え方はここで調整 */
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  flex: 0 0 230px;
}

/* テキスト側 */
.info_txt{ flex:1; }

/* 店名バッジ */
.info_txt > p:first-child{
  display:inline-block;
  background:#132a55;      /* 濃紺 */
  color:#fff;
  font-weight:700;
  padding:4px 8px;
  border-radius:3px;
  margin-bottom:6px;
  letter-spacing: .02em;
}

/* 住所・TELなどを少し淡色にしたい場合（任意） */
.info_txt p:nth-child(n+2){
  color:#333;
}

/* 営業時間：見出し＋内容を横並びに */
.hour{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:6px 0;
}
.hour_th{
  white-space:nowrap;
}
.hour_td p{ margin:0; }

/* 下の「定休日」などの行間を少し空ける */
.info_txt .hour + p{ margin-top:6px; }

/* ====== responsive ====== */

@media (max-width: 768px){
  .group_contents {
    justify-self: normal;
  }
  .group_contents{ grid-template-columns: 1fr; gap:28px; }
  .group_info{ flex-direction:column; }
  .group_info img{
    width:100%;
    flex: 0 0 auto;
  }
  .group h2{
    font-size: 17px;
  }
}


/* ===== セクション全体 ===== */
.contact {
  background-image: url(../img/contact_back.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  text-align: center;
  color: #fff;
  padding: 40px 20px;
}
.sub_title2{
  font-size: 80px;
  text-align: center;
  font-weight: 550;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  letter-spacing: 10px;
  color: #F3F2F2;
  opacity: 0.3;
}

.contact h2 {
  font-size: 25px;
  margin-bottom: 40px;
}

.contact_txt {
  font-size: 16px;
  line-height: 1.8;
  padding-bottom: 40px;
}

/* ===== ボタンエリア ===== */
.cv_contents {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap; /* スマホで折り返し */
  padding-bottom: 20px;
}

.cv_contents a {
  align-items: center;
  text-decoration: none;
  background: #fff;
  color: #002b5c; /* テキストは紺色 */
  font-weight: 700;
  font-size: 18px;
  padding: 15px 0;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  transition: 0.3s;
  max-width: 300px;
  width: 100%;
}
.cv_contents img{
  max-width: 20px;
  align-items: center;
  margin-right: 15px;
}

/* hover時の色変化 */
.cv_contents a:hover {
  background: #f2f6ff;
  color: #2256a4;
}

/*　加盟協会 */
.group_bannar{
  display: flex;
  justify-content: center;
  gap: 40px;
  padding-top: 30px;
}
.group_bannar img{
  max-width: 300px;
  width: 100%;
}
.group2{
  padding: 40px 0 60px;
  background-color: #E5F6F7;
}
.group2 h2{
  text-align: center;
  color: #00A5BE;
  padding: 20px 0 40px;
  font-weight: 600;
  font-size: 30px;
  margin-top: -60px;
}
.group_bannar img a{
  display: block;
  transition: 0.5s;
  overflow: hidden;
}
.group_bannar img:hover{
  box-shadow: 0 0 10px rgba(0,0,0,.25);
  transition: 0.5s;
}
.sub_title3{
  font-size: 80px;
  text-align: center;
  font-weight: 550;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: #fff;
}
@media (max-width: 768px){
  .sub_title3{
    font-size: 50px;
  }
  .group2 h2{
    margin-top: -55px;
  }
  .group_bannar{
    display: block;
    text-align: center;
  }
  .group_bannar img{
    padding-bottom: 15px;
  }
  .sub_title2{
    font-size: 60px;
  }
}


/*　お知らせ */
.news{
  padding: 60px 0;
  color: #071847;
}
.news h2{
  border-bottom: 1px solid #666;
  padding-bottom: 10px;
  font-size: 30px;
}
.news_contens{
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 30px;
}
.news_text{
  width: 70%;
}
.daily{
  width: 30%;
  font-size: 20px;
}
.news_text h3{
  padding-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
}
.news_border{
  border-bottom: 1px dotted #071847;
  padding-top: 30px;
}

@media (max-width: 768px){
  .news_contens{
    display: block;
  }
  .daily{
    padding-bottom: 18px;
    width: 100%;
  }
  .news_text{
    width: 100%;
  }
}


/*会社情報*/
.company{
  background-color: #E5F6F7;
  padding: 40px 0 100px;
  color: #071847;
}
.company h2{
  padding-bottom: 20px;
  font-weight: normal;
  font-size: 18px;
}
.footer_logo{
  max-width: 250px;
  padding-bottom: 15px;
}
.company_info{
  line-height: 1.8;
}
.company_contents{
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 60px;
}
/* 全体を2カラムに */
.bottom_menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 40px; /* 行間, 列間の余白 */
  max-width: 600px;
  padding: 40px 0;
}

/* 1つの項目（アイコン＋テキスト横並び） */
.menu_list {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* アイコン画像の調整 */
.menu_list img {
  width: 14px;
  height: auto;
}

/* リンク文字 */
.menu_list a {
  text-decoration: none;
  color: #1a2540;   /* ネイビー寄りの文字色 */
  font-size: 16px;
  line-height: 1.6;
  transition: color .3s;
}

.menu_list a:hover {
  color: #2256a4; /* ホバー時に青系に変化 */
  text-decoration: underline;
}

/* スマホ表示時は1カラムに */
@media (max-width: 640px) {
  .bottom_menu {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}


footer{
  background-color: #85CFDD;
  text-align: center;
  color: #fff;
  padding: 10px 0;
}
.footer_tel{
  display: flex;
  vertical-align: middle;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  margin-top: 15px;
}
.footer_tel img{
  max-width: 25px;
}

@media screen and (max-width: 1070px){
  .company_contents{
    display: block;
  }
  .fotter_right{
    padding-top: 40px;
  }
  .business-hours {
    width: 100%;
  }
  .business-hours td {
    text-align: center;
    vertical-align: middle;
  }
  .note2{
    text-align: center;
  }
}
@media screen and (max-width: 768px){
  .note{
    font-size: 12px;
  }
  .info1{
    padding-top: 0;
  }
  .history h2{
    font-size: 24px;
    margin-top: -45px;
  }
  .history_txt{
    padding-top: 15px;
  }
  .mimiyori_text{
    margin-top: 0px;
  }
  footer{
    font-size: 12px;
  }
  .company{
    padding-bottom: 60px;
  }
  .menu_list a{
    font-size: 13px;
  }
}


/* --- フローティングボタン全体 --- */
.floating-btn{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: min(640px, 88vw);
  z-index: 9999;
  padding: 0;
}

/* 内側のフレックスボックス */
.ft-flex{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 10px 18px;
  background: rgba(255,255,255,.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 7px;
  box-shadow: 0 1px 20px rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.7);
}

/* 個別ボタン */
.ft-btn{
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  border-radius: 8px;
  justify-content: center;
}
.ft-btn img{
  max-width: 15px;
  margin-left: 10px;
}

.ft-ico{
  width: 22px;
  height: 22px;
}

.ft-label{
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(90deg, #1b79c7, #69b07a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 左側(MENU)の色味 */
.ft-menu .ft-ico{ color: #69b07a; }

/* 右側(お問合わせ)の矢印強調 */
.ft-contact .ft-ico{ color: #1b79c7; }

/* 区切り線 */
.ft-divider{
  width: 1px;
  align-self: stretch;
  margin: 0 10px;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.02));
}

/* タップ時 */
.ft-btn:active{ background: rgba(0,0,0,.05); }

/* ホバー時（PC確認用） */
@media (hover:hover){
  .ft-btn:hover{ background: rgba(0,0,0,.06); }
}

/* モーション制御 */
@media (prefers-reduced-motion: reduce){
  .floating-btn, .ft-flex, .ft-btn { transition: none !important; }
}

/* PCでは非表示 */
@media (min-width: 768px){
  .floating-btn.sp2{ display: none; }
}


/* ===== ハンバーガー（三本線→バツ） ===== */
.ft-burger{
  position: relative;
  width: 22px; height: 16px; display:inline-grid; gap:4px;
}
.ft-burger > span{
  display:block; height:2px; width:22px; background: currentColor;
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
  color:#69b07a;             /* 緑系（お好みで） */
}
.menu-open .ft-burger > span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.menu-open .ft-burger > span:nth-child(2){ opacity:0; }
.menu-open .ft-burger > span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* ===== ドロワー（全画面） ===== */
.ft-drawer{
  position: fixed; inset: 0; z-index: 10000;
  pointer-events: none;       /* 閉じている時は触れない */
}
.ft-drawer__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.3);
  opacity:0; transition: opacity .25s ease;
}
.ft-drawer__panel{
  position:absolute; left:0; right:0; bottom:0;
  height: min(100dvh, 100%);        /* iOS対策 */
  transform: translateY(100%);
  transition: transform .33s ease;
  background: linear-gradient(180deg, #5aa0cc, #6fb18b);
  display:flex; flex-direction:column;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  color:#fff;
}

/* ヘッダー */
.ft-drawer__head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 20px 20px 8px;
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.ft-drawer__head h2{ margin:0; font-size: 20px; font-weight: 700; }
.ft-drawer__close{
  background: transparent; border:0; color:#fff; font-size: 28px; line-height:1; cursor:pointer;
}

/* ナビ */
.ft-drawer__nav{
  padding: 14px 20px;
  overflow:auto; flex: 1 1 auto;
}
.ft-drawer__nav a{
  display:block; padding: 16px 0; color:#fff; text-decoration:none;
  border-bottom: 1px solid rgba(255,255,255,.3);
  font-size: 18px;
}
.ft-drawer__nav a:last-child{ border-bottom:none; }
.ft-lang{ padding-top: 12px; font-weight: 700; }

/* 下部アクションバー */
.ft-drawer__actionbar{
  margin: 14px auto 0; width: min(640px, 90vw);
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.18);
  display:flex; align-items:center; justify-content: space-between;
  padding: 12px 16px; gap: 10px; color:#1b79c7;
}
.ft-drawer__actionbar .ft-ico{ width:20px; height:20px; color:#1b79c7; }

.ft-ghost, .ft-primary{
  display:inline-flex; align-items:center; gap:8px;
  background: transparent; border:0; cursor:pointer; text-decoration:none;
  font-weight: 700; font-size: 16px;
}
.ft-ghost{ color:#69b07a; }
.ft-ico-close{ font-size:18px; }

/* ===== 開いた状態（body に .menu-open を付与） ===== */
.menu-open .ft-drawer{ pointer-events: auto; }
.menu-open .ft-drawer__backdrop{ opacity: 1; }
.menu-open .ft-drawer__panel{ transform: translateY(0); }

/* 背景スクロール抑止 */
.menu-open{ overflow: hidden; }

/* PCではドロワー非表示（必要なら） */
@media (min-width: 768px){
  .floating-btn.sp2{ display:none; }
  /* PCでメニューも使いたければこの非表示は外してください */
}

/* ===== ドロワーメニュー ===== */
.ft-drawer{
  position: fixed; inset: 0;
  z-index: 2000;
  pointer-events: none;
}
.ft-drawer__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.4);
  opacity: 0; transition: opacity .3s;
}
.ft-drawer__panel{
  position:absolute; left:0; right:0; bottom:0;
  height: 100dvh;
  background: linear-gradient(180deg,#5aa0cc,#6fb18b);
  color:#fff;
  transform: translateY(100%);
  transition: transform .35s ease;
  display:flex; flex-direction:column;
}
.ft-drawer__head{
  display:flex; justify-content:space-between; align-items:center;
  padding: 20px; border-bottom:1px solid rgba(255,255,255,.3);
}
.ft-drawer__head h2{ margin:0; font-size:20px; font-weight:700; }
.ft-drawer__close{
  background:transparent; border:0; color:#fff;
  font-size:28px; cursor:pointer;
}

.ft-drawer__nav{
  flex:1 1 auto; overflow:auto;
  padding: 20px;
}
.ft-drawer__nav a{
  display:block; padding:16px 0;
  color:#fff; font-size:18px; text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.3);
}
.ft-drawer__nav a:last-child{ border-bottom:none; }

/* 開いたとき（bodyに.ft-openが付く） */
.ft-open .ft-drawer{ pointer-events:auto; }
.ft-open .ft-drawer__backdrop{ opacity:1; }
.ft-open .ft-drawer__panel{ transform:translateY(0); }

/* ハンバーガー三本線 → バツ */
.ft-open .ft-menu .ft-ico path{
  stroke:#fff;
}


/* 三本線アイコン */
.ft-burger {
  position: relative;
  width: 22px;
  height: 16px;
  display: inline-grid;
  gap: 4px;
}
.ft-burger span {
  display: block;
  height: 2px;
  width: 22px;
  background: #69b07a; /* 線の色 */
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* 開いたとき body に .ft-open が付く */
.ft-open .ft-burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.ft-open .ft-burger span:nth-child(2) {
  opacity: 0;
}
.ft-open .ft-burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 念のため：メニュー表示中、ページ全体に触れさせない */
.ft-open #ftDrawer { pointer-events: auto; }