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




 /* Gallery　スマホでは一列　pc4列 */


    body.modal-open {
      overflow: hidden;
      height: 100vh;
      position: fixed;
      width: 100%;
    }

    .gallery {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
      padding: 3px;
    }




    @media (max-width: 600px) {
      .gallery {
        grid-template-columns: repeat(2, 1fr); 
      }
    }

    .gallery img {
      width: 100%;
      height: auto;
      border-radius: 2px;
      cursor: pointer;
      transition: transform 0.8s;
    }

    .gallery img:hover {
      transform: scale(1.05);
    }

    .modal {
      display: none;
      position: fixed;
      z-index: 9999;
      top: 0; left: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0,0,0,0.85);
      justify-content: center;
      align-items: center;
      overflow: hidden;
    }

    .modal-content {
      position: relative;
      max-width: 90vw;
      max-height: 80vh;
      padding: 20px 0; /* 画像上下の余白 */
      box-sizing: border-box;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .modal-content img {
      max-width: 100%;
      max-height: 100%;
      border-radius: 10px;
      box-shadow: 0 0 20px rgba(0,0,0,0.6);
      opacity: 0;
      transition: opacity 0.4s ease;
      user-select: none;
      pointer-events: none;
    }

    .button {
      position: absolute;
      color: white;
      font-size: 30px;
      background: rgba(0,0,0,0.6);
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      text-align: center;
      line-height: 40px;
      cursor: pointer;
      user-select: none;
      transition: background 0.3s ease;
    }
    .button:hover {
      background: rgba(255,255,255,0.3);
    }

    .close {
      top: 20px;
      right: 20px;
    }

    .prev {
      top: 50%;
      left: 20px;
      transform: translateY(-50%);
    }

    .next {
      top: 50%;
      right: 20px;
      transform: translateY(-50%);
    }

    @media (max-width: 600px) {
      .button {
        font-size: 24px;
        width: 35px;
        height: 35px;
        line-height: 35px;
      }

      .close {
        top: 10px;
        right: 10px;
      }
    }



h1 {
  text-align: center;
  color: #336699;
  margin-bottom: 1px;

}

h1 .en {
  font-size: 1.9rem;
  font-family: 'Raleway', sans-serif; font-weight: 200;
  color: #336699;
  letter-spacing: 0.6em;
}



h1 .jp {
  font-size: 1rem;
  font-weight: bold;
  color: #336699;
  display: block;
letter-spacing: 0.1em;
  margin-top: 0px;
}





/* スライドショーや画像の横はみ出し防止 */
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: 'Noto Sans JP', 'メイリオ', '游ゴシック体', 'Yu Gothic', sans-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: 60px 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: 240px; /* ← 高さも指定すると明確に下に寄ります */
}

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

/* 固定下部ボタン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: 768px) {
      .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;
      }
    }



/* フェードイン */
    .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.glow-link:hover {
      text-shadow: 0 0 10px #33ccff, 0 0 20px #33ccff;
      color: #ffffff;
    }

  -->




/* レスポンス */
.responsive-container {
  display: flex;
img {
  display: block;
  margin: 0 auto;
}
  flex-wrap: wrap;
  gap: 0px;
}

.box {
  flex: 1 1 50%;
  background-color: #f0f0f0;
  padding: 3px;
  box-sizing: border-box;

      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
}




/* スマホ（幅768px以下）では縦並びにする */
@media screen and (max-width: 768px) {
  .box {
    flex: 1 1 100%;
  }
.cut-image {
  display: block;
  width: 100%;       /* ← 横幅100%にして親の幅に収める */
  max-width: 100%;   /* ← オーバー防止 */
  height: 40px;
  object-fit: cover;
  overflow: hidden;
  margin: 0 auto;
}


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


/* houseの形 */

    .house-bottom-v {
      position: relative;
      height: 20vh;
      background-image: url('https://www.yamamoto-jkn.co.jp/work/w_img/re72h.png');
      background-size: cover;
      background-position: center;
      clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 60%, 0 100%);
    }

    @media (max-width: 768px) {
      .house-bottom-v {
        height: 30vh;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
      }
    }

    .house-bottom-v2 {
      position: relative;
      height: 20vh;
      background-image: url('https://www.yamamoto-jkn.co.jp/work/w_img/re72h.png');
      background-size: cover;
      background-position: center;
      clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 60%, 0 100%);
    }

    @media (max-width: 768px) {
      .house-bottom-v {
        height: 20vh;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
      }
    }



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

/* 横並びメニュー */

.nav {
  width: 80%;
  margin: 0 auto;
}
    .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: #224466;
      border-radius: 5px;
    }

       }



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



/* 線を引く */
  .line {
    width: 100%;
    height: 2px;
    background-color: #336699;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.8s ease-out;
  }
  .line.active {
    transform: scaleX(1);
  }


