/* ヘッダー */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100; /* オーバーレイのためのz-index */
}
  
  /* フッター */
footer {
position: fixed;
bottom: 0;
width: 100%;
z-index: 100; /* オーバーレイのためのz-index */
background: linear-gradient(to top, white, transparent);
}  

body {
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    padding-top: 40px;
    padding-bottom: 40px;
}

a {
    color: inherit;  /* リンク色を親要素と同じに設定 */
    text-decoration: none;
}
 
a:hover {
    color: inherit;  /* ホバー時のリンク色も親要素と同じに設定 */
    text-decoration: underline;
}

.navbar-toggler {
    border: none;
}


.first-view-box {
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    flex-direction: column;
    position: relative;
    transform: translateY(-5%); /* Adjust this value as needed */
}


.typewriter-text {
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    font-family: 'Noto Sans', sans-serif;
    font-size: 48px;
    height: 1.5em; /* specify height so items stack properly */
    line-height: 1.5em; /* align text within the line */
}
  
  .typewriter-text.hide-caret {
    border-right: .15em solid transparent;
  }
  
  .typewriter-text::after {
    content: "|"; /* Adds the caret */
    animation: blink-caret .75s step-end infinite; /* Caret animation */
    color: black; /* Default caret color */
  }
  
  .typewriter-text.hide-caret::after {
    visibility: hidden;
  }
  
  @keyframes blink-caret {
    from, to { color: rgb(87, 87, 87); }
    50% { color: rgb(229, 229, 229); }
  }
  

  .fadein-tagline {
    text-align: center;
    margin: 36px auto;
    font-family: 'Noto Sans', sans-serif;
    font-size: 12px;
    height: 1.5em; /* specify height so items stack properly */
    line-height: 1.5em; /* align text within the line */
    color: rgb(108, 108, 108); /* Default caret color */

    opacity: 0;
    transition: opacity 2s;
}

.fadein-tagline-active {
    opacity: 1;
}


.section-text {
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    font-family: 'Noto Sans', sans-serif;
    font-size: 32px;
    height: 1.5em; /* specify height so items stack properly */
    line-height: 1.5em; /* align text within the line */
    margin-top: 32px;
    margin-bottom: 32px;
}


.scroll-indicator {
    color: darkgray;
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
    animation: bounce 2s infinite;
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateX(-50%) translateY(0);
    }
    40% {
      transform: translateX(-50%) translateY(-30px);
    }
    60% {
      transform: translateX(-50%) translateY(-15px);
    }
  }
  


.carousel {
    margin-top: 20px; 
    margin-bottom: 20px; 
}

.carousel-item {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-item::before {
    display: block;
    content: "";
    width: 100%;
    padding-top: 56.25%;  /* 16:9 Aspect Ratio */
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.overlay-text {
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒 */
    color: white; /* 文字色は白 */
    left: 0; /* 画面左寄り */
    top: 80%; /* 縦位置 */
    padding: 2rem;
    transform: translateY(-50%); /* 縦方向の中央揃え */
    width: auto; /* 横幅が可変 */
    max-width: 80%;
    z-index: 5; /* カルーセルの上に表示 */
    position: absolute; /* 親要素（カルーセル）に対する絶対位置 */
    font-size: 1em;
}

.overlay-text h2 {
    font-size: 1.2em; /* 大きい見出し */
    font-weight: bold; /* 太字 */
}

.overlay-text h3{
    font-size: 0.6em;
}


.fade-in {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

.footer {
    bottom: 0;
    width: 100%;
    height: 60px;
    line-height: 60px;
    background-color: #ffffff;
    text-align: center; 
}

.breadcrumb {
    padding: 24px 16px;
    list-style: none;
    background-color: transparent;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

.breadcrumb-item a {
    color: inherit;  /* リンク色を親要素と同じに設定 */
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: inherit;  /* ホバー時のリンク色も親要素と同じに設定 */
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}


.works-top-image img{
    top: 40px;
    left: 0;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.works-contents-box{
    justify-content: left;
    width: 60%;
    margin: 24px auto 48px;
}

.works-text {
    color: black; 
    left: 0; /* 画面左寄り */
    width: auto; /* 横幅が可変 */
    font-size: 1.4rem;
    line-height: 1.5; /* フォントサイズの1.5倍の行間隔 */
}

.works-text h2 {
    font-size: 1em; /* 大きい見出し */
    font-weight: bold; /* 太字 */
}

.works-text h3{
    font-size: 0.6em;
    line-height: 2; /* フォントサイズの2倍の行間隔 */
}

.works-text h4{
    font-size: 0.4em;
    color: rgb(134, 134, 134); 

}

.works-image{
    top: 24px;
    text-align: center; 
    margin: 24px auto 48px;
}
.works-image img{
    width: 60%;
}

.video-container {
    position: relative;
    overflow: hidden;
    width: 60%;  /* you can set this to whatever you want */
    padding-top: 56.25%;  /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
    margin: 24px auto 48px;
  }
  
  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  

.navigation-component {
    display: flex;
    justify-content: center;
    gap: 20px;  /* ボタン間のスペース */
    padding: 16px 0;  /* 上下のパディング */
    margin-bottom: 36px;
}

.navigation-component a {
    text-decoration: none;
    color: #868686;
    background-color: #fff;
    border: 1px solid #878787;
    padding: 8px 16px;
    transition: background-color 0.3s ease, color 0.3s ease;  /* ホバーエフェクトのトランジション */
}

.navigation-component a:hover {
    color: #fff;
    background-color: #000;
}


#about {
    display: flex;
    justify-content: center;
}
  
.profileimage-block {
display: flex;
justify-content: center;  /* Horizontal centering */
}

.profileimage-container {
width: 200px; /* Adjust as needed */
height: 200px; /* Adjust as needed */
overflow: hidden;
border-radius: 50%;
}

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

.profile-top-box{
    text-align: center;
    width: 60%;
    margin: 24px auto 48px;
}

.profile-contents-box{
    justify-content: left;
    width: 60%;
    margin: 24px auto 48px;
}

.profile-text {
    color: black; 
    left: 0; /* 画面左寄り */
    width: auto; /* 横幅が可変 */
    font-size: 1.4rem;
    line-height: 1.5; /* フォントサイズの1.5倍の行間隔 */
}

.profile-text h2 {
    font-size: 1em; /* 大きい見出し */
    font-weight: bold; /* 太字 */
}

.profile-text h3{
    font-size: 0.6em;
    line-height: 2; /* フォントサイズの2倍の行間隔 */
}

.profile-text h4{
    font-size: 0.4em;
    color: rgb(134, 134, 134); 

}

.social-link-container {
    display: flex;
    justify-content: center;
}

.social-link {
    color: #8e8e8e;
    font-size: 2em;
    text-decoration: none;
}

.social-link:hover {
    color: #0e76a8;
}



.contact-text{
    text-align: center;
    font-size: 1em; 
    line-height: 2; /* フォントサイズの2倍の行間隔 */
    margin-bottom: 48px;
}

.formspree-form {
    width: 60%;
    margin: auto;
    margin-bottom: 60px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 5px;
  }
  
  .formspree-label {
    display: block;
    margin-bottom: 10px;
    color: #333;
  }
  
  .formspree-input {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
  
  .formspree-button {
    padding: 10px 20px;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
  }
  
  .formspree-button:hover {
    background-color: #0056b3;
  }

  .article-container {
    padding: 0% 10% 0% 10%;
  }

  .article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 20px;
    list-style: none;
    padding: 0;
  }

  .article-list li {
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
  }

  .article-list li img {
    width: 100%;
    display: block;
  }

  .article-list li .article-info {
    padding: 10px;
  }


/* モバイルデバイス用のスタイル */
@media (max-width: 600px) {

    .first-view-box {
        height: 90vh;
    }

    .typewriter-text {
        white-space: normal;
        font-size: 24px;
    }

    .fadein-tagline {
        margin: 16px auto;
        font-size: 8px;
    }

    .scroll-indicator {
        bottom: 160px;
      }

    .carousel {
        margin-top: 20px; 
        margin-bottom: 100px; 
    }
    .carousel-indicators {
        display: none;
    }
    .overlay-text {
        top: 90%; /* 縦位置 */
        padding: 1rem;
        font-size: 0.8em;
    }

    .overlay-text h2 {
        font-size: 1.2em; /* 大きい見出し */
        font-weight: bold; /* 太字 */
    }
    
    .overlay-text h3{
        font-size: 0.6em;
    }

    .footer {
        bottom: 0;
        margin-top: 100px;
    }

    .works-contents-box{
        width: 90%;
    }

    .works-image img{
        width: 90%;
    }
    .video-container {
        width: 90%; 
      }

    .profile-top-box{
    width: 90%;
    }
    .profile-contents-box{
        width: 90%;
    }
    .formspree-form {
    width: 90%;
    }
    .article-list {
        display: block;
    }
    .article-list li {
        margin-bottom: 20px;
    }

    .article-list li img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover; /* 画像を親要素のサイズまで拡大表示 */
      }
}

