
/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 全体フォント設定 */
html, body {
  font-family: 'Noto Sans JP', 'メイリオ', '游ゴシック体', 'Yu Gothic', sans-serif;
  overflow-x: hidden;
}

 a {
  color: black;
  text-decoration: none;
}


/* レスポンシブ対応のコンテナ */
.container {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.container img {
  width: 100%;
  height: auto;
}

.container p {
  font-size: 14px;
  line-height: 1.6;
}

/* スマホ用 */
@media (max-width: 768px) {
  .container {
    width: 90%;
  }
  .container p {
    font-size: 13px;
  }
}

.top-text {
  white-space: normal;
}



/* スライドショーや画像の横はみ出し防止 */
img, .slideshow, .section, .content, .container{
  max-width: 100%;
  box-sizing: border-box;
}

    .staff-blog{
      font-size: 2rem;
    }

    .blog{
      font-family: 'Roboto', sans-serif; 
      font-weight: 300;
    }


/* iframeに余白・枠線なし＆ブロック化 */
iframe{
  display: block;
  border: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 400px; /* 高さはHTMLのheight属性と合わせる */
}

/* フッターの余白をなくす */
footer.footer{
  margin: 0;
  box-sizing: border-box;
}

/* フッター内の要素間も余白が気になる場合 */
footer.footer nav a{
  margin-right: 15px;
}

/* 必要に応じて */
.social-icons{
  margin-bottom: 10px;
}


/* ハンバーガーメニュー */
header#header{
  position: fixed;
  top: 0px; /* 必要に応じて0に変更してください */
  left: 0;
  right: 0;
  width: 100%;
  padding: 15px 20px;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition:
    top 0.5s ease-in-out,
    background-color 0.5s ease,
    box-shadow 0.5s ease,
    transform 0.5s ease;
}

/* スクロールなどで背景色と影を付けたい場合 */
header#header.scrolled {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}




    .logo img{
      height: 65px;
    }

    .nav-list {
      display: flex;
      gap: 40px;
    }

    .nav-list a{
      text-decoration: none;
      color: #336699;
      font-weight: 500;
      position: relative;
    }

    header.scrolled .nav-list a{
      color: black;
    }

    .nav-list a::after{
      content: "";
      position: absolute;
      left: 0;
      bottom: -4px;
      width: 0;
      height: 2px;
      background-color: #336699;
      transition: width 0.3s ease;
    }

    .nav-list a:hover::after{
      width: 100%;
    }

    .hamburger{
      display: block;
      cursor: pointer;
      z-index: 1001;
    }

    .hamburger span{
      display: block;
      width: 25px;
      height: 3px;
      margin: 5px;
      background: #336699;
      transition: 0.3s;
    }

    header.scrolled .hamburger span{
      background: black;
    }

    .fullscreen-menu{
      position: fixed;
      top: 0;
      right: -100%;
      width: 100%;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(4px);
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      justify-items: center;
      align-content: center;
      gap: 10px;
      transition: right 0.5s ease;
      z-index: 999;
      padding: 40px 20px;
    }

    .fullscreen-menu.active{
      right: 0;
    }

    .fullscreen-menu a{
      color: white;
      text-decoration: none;
      padding: 5px;
      width: 100%;
      max-width: 130px;
      text-align: center;
      position: relative;
      display: block;
      margin: 0 auto;
    }

    .fullscreen-menu a::after{
      content: "";
      position: absolute;
      left: 0;
      bottom: 1px;
      width: 0;
      height: 2px;
      background-color: #00aaff;
      transition: width 0.3s ease;
    }

    .fullscreen-menu a:hover::after{
      width: 100%;
    }


.slideshow-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.5s ease;
  transform: scale(1);
  z-index: 0;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
  animation: zoomIn 8s ease forwards;
}

@keyframes zoomIn {
  0%   { transform: scale(1); }
  100% { transform: scale(1.05); }
}
.fullscreen-menu a {
  font-size: 15px;
}


/* スマホだけ小さくする（768px以下） */
@media screen and (max-width: 768px) {
  .fullscreen-menu a{
   max-width: 80px;
    font-size: 9px;
  }
}


/* TOPテキスト */
.top{
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.top-text{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  text-align: center;
  z-index: 2;
  padding: 0 20px;
  white-space: nowrap;
}



/* フッター */
    main{
      margin-top: 80px;
      padding: 30px;
    }

    section{
      padding: 0px 0;
      border-bottom: 0px solid #ddd;
    }

  .footer{
  background-color: #2e4167;
  color: #fff;
  padding: 80px 10px 0px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* ← 文字を下に配置するために追加 */
  text-align: center;
  height: 350px; /* ← 高さも指定すると明確に下に寄ります */
}

    .footer nav a{
      color: #fff;
      text-decoration: none;
      margin: 0 10px;
      font-size: 14px;
    }

    .footer nav a:hover{
      color: #fff;
    }

    .footer small{
      display: block;
      margin-top: 0px;
      font-size: 12px;
      color: #fff;
    }
.social-icons{
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 35px;
}

.icon{
  font-size: 24px;
  color: #555;
  transition: color 0.3s, transform 0.3s;
}

.icon:hover{
  color: #000;
  transform: scale(1.2);
}

.instagram{
  color: #cccccc; /* Instagramカラー */
}

.instagram:hover{
  color: #000;
}

.blog{
  color: #cccccc;
}

.blog:hover{
  color: #000;
}


@media (max-width: 768px) {
  .footer{
    padding: 80px 10px 90px; /* スマホサイズ時にパディングを調整 */
  }
}




/* 固定下部ボタン6個（3列×2行） */
.bottom-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #2e4167; /* 上段の背景 */
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列 */
  grid-template-rows: repeat(2, auto);   /* 2行 */
  border-top: 1px solid #ccc;
  z-index: 1000;
}

/* 各ボタン共通 */
.bottom-buttons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  padding: 10px 0;
  border-right: 1px dashed #999999; /* 縦区切り */
}

/* 最後の列は右ボーダーなし */
.bottom-buttons a:nth-child(3),
.bottom-buttons a:nth-child(6) {
  border-right: none;
}

/* アイコン（上段のみ） */
.bottom-buttons a span {
  font-size: 22px;
  margin-bottom: 4px;
}

/* LINEボタンだけ緑 */
.bottom-buttons a[href*="line.me"] {
  color: #0acd00;
}

/* 下段の背景をグレーに */
.bottom-buttons a:nth-child(n+4) {
  background-color: #ede7e0; /* 下段グレー */
 color: #336699; 
}

/* オプション：ホバー時の明るさ調整 */
.bottom-buttons a:hover {
  opacity: 0.5;
}




/* TOPへ */
  #topBtn{
  position: fixed;
  bottom: 100px;
  right: 10px;
  width: 60px;
  height: 60px;
  background-color: #004080;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
  padding-top: 14px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px); /* 下から出てくるように */
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none; /* 非表示時にクリックできないように */
}

#topBtn::after{
  content: "▲";
  display: block;
  font-size: 14px;
  margin-top: 2px;
}

#topBtn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto; /* 表示時だけクリック可能に */
}

    .show#topBtn{
      display: block;
      opacity: 1;
    }

    @media (min-width: 769px) {
      .bottom-buttons{
        display: none;
      }

      .logo{
        padding-left: 40px;
      }
    }

    @media (max-width: 1100px) {
      .nav-list{
        display: none;
      }

      .fullscreen-menu {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    @media (max-width: 480px) {
      body{
        font-size: 14px;
      }

      .fullscreen-menu a{
        font-size: 14px;
      }
    }



/* イベント */
    .event-section{
      padding: 0px 0px;
      background: #fff;
      font-family: "ヒラギノ明朝 ProN", serif;
      text-align: center;
    }

    .event-section h2{
      font-size: 1.8em;
      margin-bottom: 20px;
   margin-top: 0;
    }

    .event-cards {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 30px;
    }

    .event-card{
      width: 370px;
      border: 1px solid #ddd;
      background-color: #fff;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      font-size: 14px;
    }

    .event-image{
      position: relative;
    }

    .event-image img{
      width: 100%;
      height: auto;
      display: block;
    }

    .badges{
      position: absolute;
      bottom: 8px;
      left: 8px;
      display: flex;
      gap: 6px;
    }

    .badges span{
      background-color: #000;
      color: #fff;
      padding: 2px 6px;
      font-size: 12px;
      border-radius: 2px;
      opacity: 0.8;
    }

    .event-content{
      padding: 15px;
      text-align: left;
    }

    .event-date{
      font-size: 13px;
      color: #444;
      margin-bottom: 10px;
    }

    .event-title{
      font-weight: bold;
      font-size: 16px;
      margin-bottom: 8px;
    }

    .event-location{
      font-size: 13px;
      color: #666;
    }

    .view-more{
      margin-top: 30px;
    }

    .view-more button{
      padding: 10px 30px;
      border: 1px solid #000;
      background: none;
      cursor: pointer;
      font-size: 14px;
      transition: 0.3s;
    }

    .view-more button:hover{
      background: #000;
      color: #fff;
    }

    @media (max-width: 768px) {
      .event-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
      }

      .event-card{
        width: 88%;
        max-width: 88%;
      }

    }



/* フェードイン */
    .fade-up {
      opacity: 0;
      transform: translateY(50px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .fade-up.visible {
      opacity: 1;
      transform: translateY(0);
    }

/* リンクアニメ */
a img {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

a img:hover {
  opacity: 0.7;
  transform: scale(1.02);
}

 a.glow-link{
      color: #33ccff;
      text-decoration: none;
      font-size: 2rem;
      transition: text-shadow 0.3s ease, color 0.3s ease;
    }

    a:hover.glow-link{
      text-shadow: 0 0 10px #33ccff, 0 0 20px #33ccff;
      color: #ffffff;
    }


  -->

/* BLOG等 */
.card-wrapper{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto; /* 中央寄せ */
  padding: 0 0px; /* スマホで左右に少し余白 */
}

.card-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

@media (min-width: 768px) {
  .card-container {
    grid-template-columns: repeat(1, 1fr);
  }
}



/* カード並び */
.card{
  display: block;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 11px;
  color: #000;
  text-decoration: none;
  transition: box-shadow 0.3s;
  overflow: hidden;
  min-width: 0;
}

.card:hover{
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.date{
  font-size: 0.8em;
  color: #888;
  margin-bottom: 3px;
}

.title{
  font-size: 1em;
  background: #fff;
  color: #336699;
  text-align: left;
  font-weight: bold;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary{
  font-size: 0.9em;
  color: #444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0px;
}

.more{
  font-size: 0.85em;
  color: #1e88e5;
  text-decoration: underline;
}


/* ボックス表示　pc4　モバイル１ */

/* 共通レイアウト */
.responsive-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center; /* 左寄せ → 中央寄せに変更 */
}

.box2 {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 0px; /* ← 下に30pxのスペース */
}


.box2 .text {
  align-self: flex-start;
  text-align: left;
  margin-bottom: 1em;
}
.box2 img {
  display: block;
  margin: 0 auto;
  height: auto;
  max-width: 100%;
}




/* PC（769px以上） */
@media screen and (min-width: 769px) {
  .box2 {
    flex: 1 1 50%;
    padding: 0 0px;
    margin: 0 auto; /* 念のため中央寄せを再度明示 */
  }
}



/* スマホ（768px以下） */
@media screen and (max-width: 768px) {
  .box1 {
    flex: 1 1 50%;
  }

  .box2 {
    flex: 1 1 100%;
    padding: 0 20px;
    margin: 0 auto; /* 念のためスマホでも中央寄せに */
  }

  .box2 img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }


.box3 {
  margin-left: auto;
  margin-right: auto;  /* 追加して左右のマージンを自動に */
  padding: 0 20px;
  text-align: center;  /* 右寄せ→中央寄せ */
  display: flex;
  flex-direction: column;
  align-items: center; /* flex-end → centerに */
}

.box3 img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 100%;
}


  .cut-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 10px;
    object-fit: cover;
    overflow: hidden;
    margin: 0 auto;
  }
}


.blog-logo {
  text-align: center; /* 横方向中央寄せ */
  margin: 30px 0;
}

small {
  display: block;
  line-height: 1.8; /* 行間を広げる */
  letter-spacing: 1px; /* 文字間隔を広げる */
  margin-top: 20px; /* 上部の余白を調整 */
  margin-bottom: 20px; /* 下部の余白を調整 */
}

.reveal-box {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-box.active {
  opacity: 1;
  transform: translateY(0);
}
.blog-logo{
  text-align: center; /* 横方向中央寄せ */
  margin: 30px 0;
}



small{
            display: block;
            line-height: 1.8; /* 行間を広げる */
            letter-spacing: 1px; /* 文字間隔を広げる */
            margin-top: 20px; /* 上部の余白を調整 */
            margin-bottom: 20px; /* 下部の余白を調整 */
        }



.reveal-box {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-box.active {
  opacity: 1;
  transform: translateY(0);
}


/* houseの形 */
.house-bottom-v,
.house-bottom-v2,
.house-bottom-v3{
  position: relative;
  height: 40vh;
  background-size: cover;
  background-position: center center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 60%, 0 100%);
}

/* 個別の画像設定 */
.house-bottom-v{
  background-image: url('https://www.yamamoto-jkn.co.jp/work/w_img/re72h.png');
}

.house-bottom-v2{
  background-image: url('https://www.yamamoto-jkn.co.jp/work/w_img/re72h.png');
}

.house-bottom-v3{
  background-image: url('https://www.yamamoto-jkn.co.jp/work/w_img/re72h.png'); /* このパスが有効か確認！ */
}

/* スマホ対応 */
@media (max-width: 768px) {
  .house-bottom-v,
  .house-bottom-v2,
  .house-bottom-v3 {
    height: 30vh;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);


  }
}



.vertical-text{
  font-family: "游明朝", "Yu Mincho", serif;
  font-size: 18px;
  line-height: 1.6;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 10px;
  max-height: 80vh; /* 縦書きなので高さ制限を指定する */
  width: auto; /* 横幅は広めに許容 */
  margin: auto;
  letter-spacing: 0.1em;
  white-space: nowrap; /* 改行を防ぐ：縦書きで2列目に行かないように */
  overflow: auto; /* 内容がはみ出たときにスクロール可能に */
}

@media screen and (max-width: 400px) {
  .vertical-text{
    font-size: 16px;
    max-height: 70vh;
  }
}




/* 改行コード */

.pc-br{
  display: inline; /* PCは改行あり */
}

.sp-br{
  display: none; 文字向きを自然に */
flex-direction: column;
    justify-content: flex-start;
    padding: 10px;
    max-width: 300px; /* 幅は狭めにすると縦書きが見やすい */
    margin: auto;
    letter-spacing: 0.1em; /* 字間を少し広げて読みやすく */
  }

  /* レスポンシブ対応で、画面幅が狭くなっても見切れにくく */
  @media screen and (max-width: 400px) {
    .vertical-text{
      max-width: 90vw;
      font-size: 16px;
    }
  }


/* 改行コード */

.pc-br{
  display: inline; /* PCは改行あり */
}

.sp-br{
  display: none;  /* 初期は非表示 */
}

/* スマホサイズで切り替え */
@media screen and (max-width: 768px) {
  .pc-br{
    display: none;  /* スマホはPCの改行非表示 */
  }
  .sp-br{
    display: inline; /* スマホは改行表示 */
  }
}



h1 {
  font-size: 1.5rem;
  color: #336699;
  text-align: center;
  margin: 1px 0 0px 0;
  line-height: 1.9;
  font-family: "ヒラギノ明朝 ProN", "游明朝", "Yu Mincho", "MS P明朝", serif;
}

h2 {
  font-size: 0.9em;
  padding-bottom: 0.5em;
  color: #FFFFFF;
  font-family: "ヒラギノ明朝 ProN", "游明朝", "Yu Mincho", "MS P明朝", serif;
}

h3 {
  font-size: 1.8em;
  color: #cccccc;
  font-family: 'Italiana', serif;
}

h4 {
  font-size: 1.2em;
  color: #336699;
  font-family: 'Italiana', serif;
}

p {
  margin-bottom: 0em;
}

ul {
  margin-left: 1.2em;
  margin-bottom: 1em;
}

li {
  margin-bottom: 0.5em;
}




/* スマホ対応 */
@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
    margin: 10px 0 30px 0;
  }

h2 {
  font-size: 0.8em;
}

  h3 {
    font-size: 1.6em;
  }
}


/* 線を引く */
    .line-container {
      margin-top: 1vh;
    }

    .line {
      width: 100%;
      height: 2px;
      background-color: #0077cc;
      transform-origin: center;
      transform: scaleX(0);
      transition: transform 0.8s ease-out;
    }

    .line.active {
      transform: scaleX(1);
    }






/* 上から滝 */
.overlay-image{
  position: absolute;
  top: -50px; /* テーブルの上にずらす量（調整OK） */
  left: 30%;
  transform: translateX(-50%);
  z-index: 10;
  max-width: 100%;
  height: auto;
}




  /* 画像を包む箱はposition: relativeで基準に */
  .image-wrapper{
  position: relative;
  overflow: hidden;
  margin-bottom: 0px;
}


/* 画像 */
.image-wrapper img{
  width: 100%;
  display: block;
  border-radius: 2px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}


/* 幕（初期状態：画像を覆っている） */
.image-wrapper::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: rgba(255, 255, 255, 1); /* 少し白く覆う */
  z-index: 2;
  transform: translateY(0); /* 初期状態：位置そのまま */
  transition: transform 1s ease-out;
}

/* 「show」クラスがついたら幕が上にスライドして消える */
.image-wrapper.show::before {
  transform: translateY(-100%);
}




/* 線をひく */

    .line-container {
      margin-top: 0vh;
    }

    .line {
      width: 100%;
      height: 2px;
      background-color: #0077cc;
      transform-origin: center;
      transform: scaleX(0);
      transition: transform 0.8s ease-out;
    }

    .line.active {
      transform: scaleX(1);
    }




/* 下記メニュー */
.nav {
  background-color: #ede7e0;
  padding: 10px 0;
  border-radius: 12px; /* ← ここを追加 */
  margin: 10px;         /* ← 周囲に少し余白をつけて丸みを強調（任意） */
}

    /* 横並びメニュー */
    .nav ul {
      list-style: none;
      display: flex;
      justify-content: center;
      margin: 0;
      padding: 0;
    }

    .nav li {
      margin: 0 5px;
    }

    .nav a {
      color: #336699;
      text-decoration: none;
      font-weight: bold;
      font-size: 13px;
      padding: 4px 6px;
      transition: background-color 0.3s;
    }

    .nav a:hover {
      background-color: #ffffff;
      border-radius: 5px;
    }




/* 画像と文字の前面＋重ね表示 */

.bg-section {
      position: relative;
      display: flex;
      width: 100%;
      height: 100vh;
      background-color: #ffffff;
    }

    .bg-image-box {
      width: 80%;
      height: 100%;
      background-image: url(https://www.yamamoto-jkn.co.jp/work/w_img/re80e.JPG);
      background-size: contain;
      background-repeat: no-repeat;
      background-position: left center;
    }
    .bg-image-box2{
      width: 80%;
      height: 100%;
      background-image: url(https://www.yamamoto-jkn.co.jp/work/w_img/57a_g.png);
      background-size: contain;
      background-repeat: no-repeat;
      background-position: left center;
    }

    .text-box {
      width: 60%;
      height: 100%;
      position: relative;
      display: flex;
      align-items: center;
      padding-left: -100px;
    }

    .bg-text {
      position: relative;
      color: #336699;
      padding:10px 10px;
      border-radius: 8px;
      background-color: rgba(0, 32, 96, 0.6); /* 濃い紺色・透明度60% */
      font-size: 1.0em;
      max-width: 800px;

.text-box, .bg-text {
  font-weight: bold; /* 太文字に */
  font-family: "ヒラギノ明朝 ProN", "游明朝", "Yu Mincho", serif; /* 明朝体フォント指定（代表例） */
}

      /* ↓ ここが画像側に少しはみ出すポイント！ */
      left: -120px; 
      z-index: 2;
    }

    @media screen and (max-width: 768px) {
      .bg-section {
        flex-direction: column;
        height: auto;
      }

      .bg-image-box {
        width: 100%;
        height: 50vh;
      }

      .text-box {
        width: 100%;
        padding: 30px;
      }

      .bg-text {
        position: relative;
        top: -180px;
        left: 0;
        font-size: 1.2em;
        padding: 30px;
        max-width: 100%;
      }
    }


/* マーカー */

.marker-animate {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.marker-animate::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1em;
  height: 40%;
  background-color: #ffeb3b;
  transform: scaleX(0);            /* 初期は非表示 */
  transform-origin: left;
  transition: transform 1s ease;
  z-index: -1;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  width: 100%;  /* ← これは残す（inline-block だからOK） */
}
.marker-animate.active::after {
  transform: scaleX(1);
  opacity: 1;
}



/* 角丸リンク */
.rounded-link {
  display: inline-block;
  padding: 6px 12px;
  border: 2px solid #336699;
  border-radius: 5px;
  background-color: #ffffff;
  color: #336699;
  text-decoration: none;
  font-size: 0.7em;
  transition: all 0.3s ease;
}

.rounded-link:hover {
  background-color: #336699;
  color: #ffffff;
  border-color: #336699;
}





/* 流れ */
    .flow-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 20px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .flow-step {
      background: white;
      border-radius: 12px;
      padding: 20px 15px;
      width: 300px;
      min-height: 120px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      text-align: center;

      color: #2e4167;
      position: relative;
    }

    .flow-step::after {
      content: "➔";
      position: absolute;
      right: -15px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 24px;
      color: #ccc;
    }

    .flow-step:last-child::after {
      content: "";
    }

    @media screen and (max-width: 768px) {
      .flow-container {
        flex-direction: column;
        align-items: stretch;
      }

      .flow-step {
        width: 90%;
        margin: 0 auto;
      }

      .flow-step::after {
        content: "↓";
        right: 50%;
        top: auto;
        bottom: -20px;
        transform: translateX(50%);
      }

      .flow-step:last-child::after {
        content: "";
      }
    }



