/* ヘッダー */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100; /* オーバーレイのためのz-index */
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
  
  /* フッター */
footer {
    width: 100%;
    background: var(--color-surface);
}

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


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

.intro {
    max-width: 960px;
    margin: 32px auto 16px;
    padding: 0 16px;
    text-align: center;
}

.intro-content h1 {
    font-size: 32px;
    letter-spacing: 0.02em;
}

.intro-content p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-subtle);
}

.intro-lead {
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-subtle);
}

.intro-lead-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
}

.intro-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.intro-button {
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    font-size: 0.85rem;
}

.intro {
    max-width: 960px;
    margin: 32px auto 16px;
    padding: 0 16px;
    text-align: center;
}

.intro-content h1 {
    font-size: 32px;
    letter-spacing: 0.02em;
}

.intro-content p {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-subtle);
}

.intro-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.intro-button {
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    font-size: 0.85rem;
}



.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;
    object-fit: cover;
}
.overlay-text {
    background-color: var(--color-overlay-dark); /* 半透明の黒 */
    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;
}

.tag-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 24px;
}

.tag-filter.is-collapsed {
    display: none;
}

.filter-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.filter-toggle {
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    color: var(--color-text);
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-toggle:hover {
    background-color: var(--color-text);
    color: var(--color-surface);
}

.works-grid {
    display: block;
}

.tag-filter-button {
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    color: var(--color-text-muted);
    padding: 6px 12px;
    font-size: 0.8rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tag-filter-button.active {
    background-color: var(--color-text);
    color: var(--color-surface);
}

.tag-filter-clear {
    border-style: solid;
    border-color: var(--color-danger-border);
    background-color: var(--color-danger-bg);
    color: var(--color-danger);
    font-weight: 600;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.work-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.65rem;
}

.work-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background-color: var(--color-overlay-light);
    color: var(--color-surface);
    border: 1px solid var(--color-overlay-light-border);
}

.work-meta-label {
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.work-meta-value {
    white-space: nowrap;
}

.work-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    background-color: var(--color-surface-subtle);
    color: var(--color-text-subtle);
    border: 1px solid var(--color-border-light);
}

.work-summary-block {
    margin-top: 8px;
}

.work-summary-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.work-summary-list li {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.work-summary-label {
    min-width: 88px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
}

.work-summary-value {
    flex: 1;
}

.overlay-text .work-tag {
    background-color: var(--color-overlay-light);
    color: var(--color-surface);
    border-color: var(--color-overlay-light-border);
}


.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: var(--color-surface);
    text-align: center; 
}

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

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--color-text-secondary);
}

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

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

.breadcrumb-item.active {
    color: var(--color-text-secondary);
}


.works-top-image {
    width: 100%;
}

.works-top-image picture,
.works-top-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
}

.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: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

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

.works-text h4{
    font-size: 0.4em;
    color: var(--color-text-muted); 

}

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

.works-image picture,
.works-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
}

.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: var(--color-text-muted);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    transition: background-color 0.3s ease, color 0.3s ease;  /* ホバーエフェクトのトランジション */
}

.navigation-component a:hover {
    color: var(--color-surface);
    background-color: var(--color-text);
}

.related-works {
    margin-top: 24px;
}

.related-works-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.related-work-card {
    display: block;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--color-surface);
}

.related-work-card picture {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.related-work-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.related-work-info {
    padding: 10px 12px;
    font-size: 0.85rem;
    color: var(--color-text);
}

.related-work-title {
    font-weight: 600;
}

.related-work-overview {
    margin: 6px 0 8px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--color-text-subtle);
}

.related-work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.related-work-tags .work-tag {
    font-size: 0.6rem;
}

.related-works-desc {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-subtle);
    margin: -8px 0 8px;
}


#about {
    display: block !important;
}
  
.profileimage-block {
    display: flex;
    justify-content: center;  /* Horizontal centering */
    width: 100%;
}

.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-summary {
    list-style: none;
    padding: 0;
    margin: 8px auto 24px;
    width: 60%;
    text-align: center;
    color: var(--color-text-subtle);
    font-size: 0.9rem;
    line-height: 1.6;
}

.profile-summary li + li {
    margin-top: 6px;
}

.profile-contents-box.is-collapsed {
    display: none;
}

.profile-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.profile-toggle {
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    color: var(--color-text);
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.profile-toggle:hover {
    background-color: var(--color-text);
    color: var(--color-surface);
}

.profile-text {
    color: var(--color-text); 
    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: var(--color-text-muted); 

}

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

.social-link {
    color: var(--color-text-light);
    font-size: 2em;
    text-decoration: none;
}

.social-link:hover {
    color: var(--color-linkedin);
}



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

.contact-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.contact-toggle {
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    color: var(--color-text);
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-toggle:hover {
    background-color: var(--color-text);
    color: var(--color-surface);
}
.tally-embed {
    width: 60%;
    margin: 0 auto 60px;
}

.tally-embed.is-collapsed {
    display: none;
}

.tally-embed iframe {
    border: 0;
    min-height: 1800px;
    height: 1800px;
}

.formspree-form {
    width: 60%;
    margin: auto;
    margin-bottom: 60px;
    padding: 20px;
    background-color: var(--color-surface-alt);
    border-radius: 5px;
  }
  
  .formspree-label {
    display: block;
    margin-bottom: 10px;
    color: var(--color-text-strong);
  }
  
  .formspree-input {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border-subtle);
    border-radius: 5px;
  }
  
  .formspree-button {
    padding: 10px 20px;
    color: var(--color-surface);
    background-color: var(--color-accent);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
  }
  
  .formspree-button:hover {
    background-color: var(--color-accent-hover);
  }

  .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 var(--color-border-mid);
    border-radius: 5px;
    overflow: hidden;
  }

.article-list li:nth-child(n + 7) {
    display: none;
}

.article-list.is-expanded li:nth-child(n + 7) {
    display: block;
}

.article-list li picture {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

  .article-list li img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

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

.media-actions {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.media-toggle {
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    color: var(--color-text);
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.media-toggle:hover {
    background-color: var(--color-text);
    color: var(--color-surface);
}


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

    .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{
        width: 90%;
    }
    .video-container {
        width: 90%; 
      }

    .profile-top-box{
    width: 90%;
    }
    .profile-contents-box{
        width: 90%;
    }
    .profile-summary {
        width: 90%;
    }
    .related-works-list {
        grid-template-columns: 1fr;
    }
    .formspree-form {
    width: 90%;
    }
    .tally-embed {
        width: 90%;
    }
    .tally-embed iframe {
        min-height: 2000px;
        height: 2000px;
    }
    .article-container {
        padding: 0 4%;
    }
    .article-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        grid-gap: 12px;
    }
    .article-list li {
        margin-bottom: 0;
    }

    .article-list li picture {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
    }

    .article-list li img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

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

    .article-list li .article-info h3 {
        font-size: 0.78em;
        line-height: 1.35;
    }

    .article-list li .article-info p {
        font-size: 0.7em;
        line-height: 1.3;
    }

    .works-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        grid-gap: 12px;
    }

    .works-grid .carousel {
        margin: 0;
    }

    .works-grid .overlay-text {
        top: auto;
        bottom: 0;
        transform: none;
        padding: 0.4rem 0.6rem;
        font-size: 0.72em;
        max-width: 100%;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.35);
    }

    .works-grid .overlay-text h2 {
        font-size: 0.9em;
    }

    .works-grid .overlay-text h3,
    .works-grid .work-meta {
        display: none;
    }

    .works-grid .work-tags {
        display: flex;
        gap: 4px;
        margin-top: 4px;
        flex-wrap: wrap;
    }

    .works-grid .work-tag {
        font-size: 0.6em;
        padding: 1px 6px;
    }

    .works-grid .carousel-item::before {
        padding-top: 70%;
    }
}

