/*
 Theme Name: Twenty Twenty-Four Child
 Template: twentytwentyfour
 Version: 1.0
 Description: Twenty Twenty-Four の子テーマ
 Author: あなたの名前
*/

/* 子テーマ用のCSSをここに追加 */

html {
  scroll-behavior: smooth !important;
}

.fullscreenimg {
  max-width: 119% !important;
  margin: 0 -30px;
}

h1 {
  font-size: 1.7rem;
}

h2 {
  font-size: 1.4rem;
  background-color: #F2EFE9;
  padding: 12px 10px 10px 9px;
  border-radius: 3px;
  border-left: solid 3px #E1DCD2;
}

h3 {
  background: linear-gradient(to bottom right, #F1ECE3, #ffffff);
  padding: 12px 10px 10px 9px;
  border-radius: 3px;
  font-size: 1.2rem;
}

h3.nodeco {
  background-color: none !important;
  background: none !important;
  font-weight: 800;
}

.quoteblock {
  background-color: #efefef;
  border-radius: 5px;
  padding: 15px;
}

/* ナビ */
.toc-wrapper {
    background: linear-gradient(to bottom right, #F1ECE3, #F1ECE3);
    border-left: 4px solid #E1DCD2;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.toc-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.toc-item:hover::before {
    transform: scale(1.5);
    background-color: #4a5568;
}

.toc-link {
    color: #4a5568;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: baseline;
    transition: all 0.3s ease;
}

.toc-number {
    font-weight: 600;
    color: #718096;
    margin-right: 12px;
    min-width: 30px;
}

.toc-text {
    flex: 1;
}

.toc-item:hover .toc-link {
    color: #2d3748;
    transform: translateX(4px);
}

.toc-item:hover .toc-number {
    color: #4a5568;
}

/* 子要素のスタイル */
.toc-sublist {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 20px;
}

.toc-subitem {
    margin-bottom: 10px;
    position: relative;
}

.toc-subitem:hover::before {
    transform: scale(1.5);
    background-color: #718096;
}

.toc-sublink {
    color: #718096;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.toc-subitem:hover .toc-sublink {
    color: #4a5568;
    transform: translateX(2px);
}

/* 折りたたみ機能 */
.toc-list.collapsed {
    max-height: 440px;
    overflow: hidden;
    position: relative;
}

.toc-list.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #f8f9fa);
    pointer-events: none;
}

.toggle-button {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px 20px;
    background-color: #E1DCD2;
    color: #4a5568;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.toggle-button:hover {
    background-color: #cbd5e0;
    color: #2d3748;
}

.toggle-button.hidden {
    display: none;
}

/* フッタのボタン */
.floating-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  z-index: 9999;
  max-width: 100% !important;
}

/* ボタン共通 */
.floating-btn {
  flex: 1; /* スマホでは横幅いっぱいに分割 */
  text-align: center;
  padding: 15px 0;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s;
}

/* 色分け */
.contact-btn {
  background-color: #BB9D2E; /* tan */
}
.contact-btn:hover {
  background-color: tan;
  color: #fff;
}

.reserve-btn {
  background-color: #35cf5f; /* グリーン */
}
.reserve-btn:hover {
  background-color: #1e7e34;
  color: #fff;
}

.xcontent {
  height: 1085px;
  width: 90%;
}

footer div {
  padding-top: 0px !important;
}

.vimeoblock {
 padding: 15.25% 0 0 0;
 position: relative;
}

.outer-box {
display: flex;
border: 1px solid #d3d3d3;
padding: 10px;
box-sizing: border-box;
width: 100%;
max-width: 800px;
margin: 20px auto;
border-radius: 5px;
}

.inner-left {
  width: 70%;
  padding: 10px;
  box-sizing: border-box;
  font-size: 0.9rem;
}

.inner-right {
  width: 30%;
  padding: 57px 10px 10px 10px;
  box-sizing: border-box;
}

.inner-right img {width: 100%;}



@media (max-width: 1024px) {
.vimeoblock {
 padding: 23.25% 0 0 0;
}
}
@media (max-width: 650px) {
.xcontent {
  height: 940px;
  width: 90%;
}

.vimeoblock {
  padding: 56.25% 0 0 0;
}
}
@media (max-width: 450px) {
  .imgfullwidth {
   position: absolute;
   right: 0;
  }
  .imgheight {
   height: 630px;
  }
  .imgheight1 {
   height: 235px;
  }
  .imgheight2 {
   height: 630px;
  }
  .imgheight3 {
   height: 370px;
  }
  .imgheight4 {
   height: 570px;
  }
  .imgheight5 {
   height: 540px;
  }
  .imgheight6 {
   height: 430px;
  }
  .imgheight7 {
   height: 235px;
  }
  .imgheight8 {
   height: 1125px;
  }
  .imgheight9 {
   height: 1115px;
  }
  .imgheight10 {
   height: 656px;
  }
}
@media (max-width: 420px) {
  .imgfullwidth {
   position: absolute;
   right: 0;
  }
  .imgheight {
   height: 610px;
  }
  .imgheight1 {
   height: 225px;
  }
  .imgheight2 {
   height: 610px;
  }
  .imgheight3 {
   height: 360px;
  }
  .imgheight4 {
   height: 555px;
  }
  .imgheight5 {
   height: 515px;
  }
  .imgheight6 {
   height: 410px;
  }
  .imgheight7 {
   height: 230px;
  }
  .imgheight8 {
   height: 1075px;
  }
  .imgheight9 {
   height: 1075px;
  }
  .imgheight10 {
   height: 630px;
  }
}
@media (max-width: 400px) {
  .imgfullwidth {
   position: absolute;
   right: 0;
  }
  .imgheight {
   height: 585px;
  }
  .imgheight1 {
   height: 215px;
  }
  .imgheight2 {
   height: 580px;
  }
  .imgheight3 {
   height: 330px;
  }
  .imgheight4 {
   height: 520px;
  }
  .imgheight5 {
   height: 485px;
  }
  .imgheight6 {
   height: 385px;
  }
  .imgheight7 {
   height: 220px;
  }
  .imgheight8 {
   height: 1015px;
  }
  .imgheight9 {
   height: 1010px;
  }
  .imgheight10 {
   height: 595px;
  }
}
@media (max-width: 376px) {
  .imgfullwidth {
   position: absolute;
   right: 0;
  }
  .imgheight {
   height: 560px;
  }
  .imgheight1 {
   height: 205px;
  }
  .imgheight2 {
   height: 560px;
  }
  .imgheight3 {
   height: 320px;
  }
  .imgheight4 {
   height: 500px;
  }
  .imgheight5 {
   height: 465px;
  }
  .imgheight6 {
   height: 370px;
  }
  .imgheight7 {
   height: 210px;
  }
  .imgheight8 {
   height: 975px;
  }
  .imgheight9 {
   height: 970px;
  }
  .imgheight10 {
   height: 573px;
  }
}
