/* ベース */

:root {
    --site-font: "Lora", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--site-font);
    color: #333;
    background-color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

main {
    flex: 1;
}

a {
    color: #333333;
    text-decoration: none;
}

a:visited {
  color: inherit;
  text-decoration-color: inherit;
}

/* ヘッダー */
.logo a{
    text-decoration: unset;
    color: #333333;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.logo-image {
    height: 32px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

@media (min-width: 769px) {
    .logo-image {
        height: 40px;
        max-width: 220px;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 110;
    background-color: #fff;
    width: 100%;
}

.header-inner {
    margin: 0 auto;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    border-bottom: solid 1px #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.top-header-inner {
    justify-content: space-between;
}

.main-nav-pc {
    display: none;
}


/* ハンバーガーボタン（スマホ用） */
.nav-toggle {
    position: relative;
    width: 33px;
    height: 32px;
    padding: 0;
    margin-left: 12px;
    border: none;
    background: none;
    cursor: pointer;
}

.nav-toggle span {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: #333;
    transition: transform 0.3s ease, top 0.3s ease;
}

.nav-toggle span:first-child {
    top: 12px;
}

.nav-toggle span:last-child {
    top: 19px;
}

.nav-toggle.open span:first-child {
    top: 15px;
    transform: rotate(45deg);
}

.nav-toggle.open span:last-child {
    top: 15px;
    transform: rotate(-45deg);
}

/* メニュー背景オーバーレイ */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 98;
}

.nav-overlay.open {
    display: block;
}

/* モバイル時のナビ（デフォルト非表示） */
.main-nav {
    position: absolute;
    top: 101%;
    left: 0;
    right: 0;

    display: flex;              /* ← 常に flex にしておく */
    flex-direction: column;
    background: #fcfcfc;
    padding: 17px 16px 17px;
    border-bottom: 1px solid #eee;

    /* アニメーション用 */
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;

}

.logo {
    font-size: 21px;
    letter-spacing: 0.1em;
    font-weight: 300;
    text-transform: uppercase;
}

.main-nav a {
    margin: 11px 0;
    font-size: 13px;
    text-decoration: none;
    text-transform: uppercase;
    color: #a9a9a9;
    transition: color 0.2s;
    margin-left: 12px;
    letter-spacing: 0.18em;
}

.main-nav a:hover {
    color: #333;
}

.home-inner {
     min-height: auto;
}

/* セクション共通 */

.section {
    padding: 37px 16px 37px;
}

.section-header {
    max-width: 1100px;
    margin: 0 auto 32px auto;
    text-align: center;
}

.section-title {
    font-size: 40px;
    text-transform: uppercase;
    font-weight: 300;
    margin-top: 33px;
}

/* Home */
.home-layout {
    display: unset;
}

.section-home {
    padding-top: 0px;
    padding-bottom: 32px;
}

.home-inner {
    display: flex;
    flex-wrap: wrap;
}

.home-left,
.home-right {
    flex: 1 1 300px;
}

.home-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
}

.home-title {
    font-size: 22px;
    font-weight: 200;
    letter-spacing: 0.1em;
    margin: 0;
    text-align: center;
    line-height: 1;
    font-family: var(--site-font);
}

.home-subtitle {
    margin: 0;
    font-size: 11px;
    color: #777;
    text-align: center;
    margin-top: .7rem;
}

.home-right {
    min-height: 260px;
    margin-top: 31px;
}

.home-name {
    margin-top: 5rem;
}

.home-image {
    width: 100%;
    height: 100%;
    min-height: 260px;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/e/ea/Van_Gogh_-_Starry_Night_-_Google_Art_Project.jpg");
    background-size: cover;
    background-position: center;
    filter: brightness(0.85);
}

.slideshow {
    position: relative;
    width: 100%;
    height: 105%;
    min-height: 260px;
    overflow: hidden;
    background: #fff;
}

.slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    background: #fff;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}


/* パンくず全体 */
.breadcrumb {
    font-size: 11px;
    color: #999;
}

/* リストのリセット＋横並び */
.breadcrumb-list {
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    background-color: #f5f5f5;
    padding: 0.7rem 1rem;
}

/* 各要素 */
.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

/* 区切り */
.breadcrumb-separator {
    margin: 0 6px;
    color: #ccc;
}

/* リンク */
.breadcrumb a {
    color: #999;
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.breadcrumb a:hover {
    color: #333;
}

/* 現在ページ */
.breadcrumb-current {
    color: #6d6d6d;
    font-weight: 400;
}


/* Works */

.section-works {
    background-color: #fff;
    padding: 28px 16px 107px;
}

.works-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

@keyframes workCardIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-card {
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    opacity: 0;
}

.work-card.animate-in {
    animation: workCardIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes workCardScrollIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.works-grid.is-1col .work-card.scroll-in {
    animation: workCardScrollIn 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.work-card.is-hidden {
    display: none;
    pointer-events: none;
}

/* デフォルト（2カラム）: 正方形トリミング表示 */
.work-image {
    margin: 0 auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (min-width: 768px) {
    .work-card:hover .work-image img {
        transform: scale(1.06);
    }
}

/* 1カラム設定時（SP限定）: 元画像を自然な比率で表示 */
@media (max-width: 767px) {
    .works-grid.is-1col {
        grid-template-columns: 1fr;
    }

    .works-grid.is-1col .work-image {
        aspect-ratio: auto;
        overflow: visible;
    }

    .works-grid.is-1col .work-image img {
        height: auto;
        object-fit: initial;
    }

    .works-grid.is-1col .work-card {
        cursor: pointer;
    }

    .works-grid.is-1col .work-card-info {
        padding: 10px 0 10px 12px;
        border-left: solid 2px #f1f1f1;
        margin: 1rem 0 3rem;
    }

    .works-grid.is-1col .work-card-title {
        margin: 0 0 4px 0;
        font-size: 13px;
        color: #c8c8c8;
        font-weight: 400;
    }

    .works-grid.is-1col .work-card-meta {
        margin: 0;
        font-size: 12px;
        color: #c8c8c8;
    }
}

/* 作品詳細ページ */
.work-detail-section {
    padding-top: 20px;
    padding-bottom: 80px;
}

.work-detail-back {
    display: block;
    max-width: 640px;
    margin: 0 auto 24px;
    font-size: 12px;
    color: #9d9d9d;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s;
}

.work-detail-back:visited {
    color: #9d9d9d;
}

.work-detail-back:hover {
    color: #333;
}

.work-detail-content {
    max-width: 640px;
    margin: 0 auto;
}

.work-detail-image {
    width: 100%;
    margin-bottom: 24px;
}

.work-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.work-detail-info {
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.work-detail-title {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.work-detail-meta {
    margin: 0 0 12px 0;
    padding: 0;
}

.work-detail-meta-row {
    display: flex;
    font-size: 13px;
    margin-bottom: 4px;
}

.work-detail-meta-row dd {
    margin: 0;
    color: #c8c8c8;
}

.work-detail-description {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    white-space: pre-wrap;
}

.work-body {
    padding: 16px 0px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.work-title {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 10px;
}

.work-meta {
    margin: 0;
    font-size: 11px;
    color: #999;
}

.works-controls {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0 auto 27px auto;
    font-family: var(--site-font);
    align-items: baseline;
}

.works-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid #dfdfdf;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #d0d0d0;
    cursor: pointer;
    padding: 6px 14px 7px;
    font-family: var(--site-font);
    transition: background-color 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.filter-btn:hover {
    border-color: #888;
    color: #888;
}

.filter-btn.is-active {
    background-color: #333;
    border-color: #333;
    color: #fff;
}

.year-filter select {
    padding: 6px 28px 7px 10px;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-family: var(--site-font);
    color: #d0d0d0;
    background: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23d0d0d0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    outline: none;
    transition: border-color 0.2s, color 0.2s;
}

.year-filter select:focus,
.year-filter select:hover {
    border-color: #888;
    color: #888;
}



/* About */

.section-about {
    background-color: #fff;
}

.about-inner {
    max-width: 900px;
    margin: 0 auto;
}

.about-portrait {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 16px auto;
    overflow: hidden;
}

.about-portrait img{
    margin: 0 auto;
    max-height: 40vh;
    width: auto;
    object-fit: contain;
}

.about-name-block {
    text-align: center;
    margin-bottom: 22px;
}

.about-name-ja {
    margin: 0 0 -3px 0;
    font-size: 26px;
    font-weight: 300;
}

.about-name-en {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #888;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
}

.about-section {
    padding: 58px 0;
    border-top: 0.5px solid #cbcbcb;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.about-content > *:first-child {
    border-top: none;
}

.about-content > .about-section:first-of-type {
    padding: 33px 0;
}

.about-heading {
    font-size: 16px;
    letter-spacing: 0.5px;
    color: #b5b5b5;
    margin: 0 0 16px 0;
    font-weight: 400;
}

.about-list {
    margin: 0;
    padding: 0;
}

.about-row {
    display: flex;
    font-size: 13px;
    margin-bottom: 8px;
}

.about-row dt {
    width: 48px;
    flex-shrink: 0;
    color: #777;
}

.about-row dd {
    margin: 0;
}

.about-quote {
    font-size: 13px;
    color: #555;
    margin: 0;
}

.about-media-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.about-media-list li {
    font-size: 13px;
    margin-bottom: 8px;
}

.about-media-list a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
    transition: border-color 0.2s;
    font-size: 13px;
}

.about-media-list a::after {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-left: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.about-media-list a:hover {
    border-color: #333;
}

/* Contact */

.section-contact {
    background-color: #fff;
}

.contact-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-heading {
    font-size: 27px;
    font-weight: 100;
    letter-spacing: 0.05em;
    color: #474747;
    margin: 0 0 13px 0;
}

.contact-text {
    font-size: 12px;
    color: #555;
    margin-bottom: 67px;
}

.contact-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 16px;
}

.contact-label {
    font-size: 11px;
    color: #999;
    letter-spacing: 0.1em;
    white-space: nowrap;
    padding-right: 12px;
}

.contact-line {
    width: 40px;
    border-bottom: 1px solid #e0e0e0;
    margin-right: 12px;
}

.contact-value {
    font-size: 12px;
    color: #555;
    min-width: 150px;
}

/* フッター */

.site-footer {
    padding: 16px 16px;
    text-align: center;
    font-size: 10px;
    color: #999;
    margin-top: auto;
    background: #333;
}

/* ページ上部へ戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 86px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #333;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 90;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

/* 右下 SNS */

.sns-fixed {
    display: flex;
    justify-content: center;
}

.sns-fixed-pc {
    display: none;
    text-align: center;
}

.sns-fixed-pc-contact {
    display: flex;
    gap: 12px;
}

#sns-links {
    display: flex;
    gap: 12px;
}

.sns-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #999;
    transition: color 0.2s;
}

.sns-icon-link:hover {
    color: #333;
}

.sns-icon-link svg {
    width: 16px;
    height: 16px;
}



 a {
    color: #797979;
    text-decoration: none;
    font-size: 11px;
    font-family: var(--site-font);
}

.under_line {
    text-decoration: underline;
}



@media (min-width: 768px) {
    .logo a {
        font-size: 13px;
        color: #797979
    }
    .nav-toggle {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .main-nav a {
        margin-left: 20px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .header-inner {
        padding: 33px 34px;
    }

    .breadcrumb-list {
        padding: 0.7rem 4.5rem;
    }

    .home-layout {
        display: flex;
    }

    .home-right {
        margin-top: 50px;
    }

    .home-left {
        align-items: unset;
        flex: 1;
    }

    .home-name {
        top: 45%;
        position: absolute;
        left: 19%;
    }

    .home-title {
        font-size: 36px;
        text-align: unset;
    }

    .home-subtitle {
        font-size: 12px;
        text-align: unset;
        margin-top: 1rem;
    }

    .home-name {
        margin-top: unset;
    }

    .section {
        padding: 77px 34px 120px;
    }

    .about-portrait {
        max-width:600px;
    }

    .about-content {
        max-width: 600px;
        margin: 0 auto;
    }

    .about-content > .about-section:first-of-type {
        padding: 58px 0;
    }

    .main-nav-pc {
        display: block;
        color: #a9a9a9;
    }

    .main-nav-pc a{
        padding: 6px;
        font-size: 13px;
    }

    .main-nav-pc a:hover{
        color: #333;
    }

    .main-nav-pc > *:first-child {
        padding-left: 0;
    }

    .main-nav-pc > *:last-child {
        padding-right: 0;
    }

    .home-right {
        min-height: 100vh;
        margin-top: 0;
    }

    .slide {
        object-fit: cover;
    }

    .section-home {
        padding: 0;
    }

    .works-controls {
        max-width: 1100px;
    }


    .work-card {
        cursor: pointer;
    }

    .work-card-info {
        display: none;
    }



    .sns-fixed-pc {
        display: block;
        justify-content: center;
        margin-top: 1.5rem;
    }

    .sns-fixed-pc a {
        color: #797979;
        text-decoration: none;
        font-size: 11px;
        font-family: var(--site-font);
    }

    .site-footer {
        font-size: 11px;
        color: #d9d9d9;
    }

    .works-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 13px;
    }

}

@media (min-width: 960px) {
    .main-nav-pc a{
        padding: 20px;
    }
}