


/* リセット */
* {
  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;
}






/* 動画 */
.video-hero {
  position: relative;
  width: 100%;
  height: 100vh; /* ← 画面の高さ100%に変更！ */
  overflow: hidden;
}

.video-hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 中央を拡大表示（端が切れる） */
  object-position: center center;
  z-index: -1;
}



/* スライドショーや画像の横はみ出し防止 */
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: 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.scrolled#header {
  background-color: rgba(255, 255, 255, 0.9);
  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: white;
  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: white;
  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: 15px;
  transition: right 0.5s ease;
  z-index: 999;
  padding: 40px 2px;
  text-align: center;
}

.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;
  font-size: 15px;
}

.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); }
}

/* =============================
   スマホ（768px以下）
============================= */
@media screen and (max-width: 768px) {
  .fullscreen-menu {
    grid-template-columns: 1fr;
    padding: 40px 10px;
    justify-items: center;
  }

  .fullscreen-menu a {
    max-width: 120px; /* 小さすぎると読みにくくなるため調整 */
    font-size: 14px;
    margin: 10px auto;
  }
}

/* =============================
   汎用カラークラス
============================= */
.text-primary {
  color: #336699;
}




/* 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: 260px; /* ← 高さも指定すると明確に下に寄ります */
}

    .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; /* スマホサイズ時にパディングを調整 */
  height: 340px; /* ← 高さも指定すると明確に下に寄ります */

  }
}





/* 固定下部ボタン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: 15px;
  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: 0px;
}

.responsive-container img {
  display: block;
  margin: 0 auto;
}

/* box1 固定ルール（既存のまま） */
.box1 {
  flex: 1 1 25%;
  padding: 3px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* box2 新ルール */
.box2 {
  padding: 3px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* PC（769px以上）で box2 を2列 */
@media screen and (min-width: 769px) {
  .box2 {
    flex: 1 1 50%;
  }
}

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

  .box2 {
    flex: 1 1 100%;
  }

  .cut-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 40px;
    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);
}


/* 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.2rem;        /* 大きめサイズ */
  font-weight: bold;         /* 太字 */
  color: #28244b;            /* 濃いグレー */
  text-align: center;        /* 中央揃え */
  margin: 40px 0 20px 0;     /* 上下マージン */
  line-height: 1.3;
  font-family: 'Yu Gothic', 'Meiryo', sans-serif; /* 和文フォント優先 */
}
@media screen and (max-width: 600px) {
  h1{
    font-size: 1.0rem;
    margin: 30px 0 30px 0;
  }
}




    h2{
      font-size: 1.6em;
      padding-bottom: 0.3em;
    }
    h3{
      font-size: 1.8em;
      color: #cccccc;
       font-family: 'Italiana', serif;
    }

    p{
      margin-bottom: 1em;
    }

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

    li{
      margin-bottom: 0.5em;
    }

    /* スマホ対応 */
    @media (max-width: 600px) {


      h2{
        font-size: 1.1em;
      }
      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%);
}
