/* ベース */

:root {
    --site-font: "Lora", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

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: unset;
  text-decoration-color: unset;
}

/* ヘッダー */
.logo a{
    text-decoration: unset;
    color: #797979;
    display: flex;
    align-items: center;
}

.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: 10;
    background-color: #fff;
    width: 100%;
}

.header-inner {
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    border-bottom: solid 1px #f5f5f5;
}

.top-header-inner {
    justify-content: space-between;
}

.main-nav-pc {
    display: none;
}


/* ハンバーガーボタン（スマホ用） */
.nav-toggle {
    position: relative;
    width: 27px;
    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: #a9a9a9;
    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);
}

/* モバイル時のナビ（デフォルト非表示） */
.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: 16px;
    letter-spacing: 0.15em;
    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 23px 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;
}

.works-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.work-card {
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.work-card.is-hidden {
    display: none;
    pointer-events: none;
    transform: scale(0.98);
}

.work-image {
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.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;
}

/* モーダル（モバイル） */
.mockup-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.mockup-modal.is-open {
    display: flex;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes modalContentIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalContentOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
}

.mockup-modal.is-open .mockup-backdrop {
    animation: modalFadeIn 0.3s ease-out;
}

.mockup-modal.is-open .mockup-content {
    animation: modalContentIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mockup-modal.is-closing .mockup-backdrop {
    animation: modalFadeOut 0.3s ease-out forwards;
}

.mockup-modal.is-closing .mockup-content {
    animation: modalContentOut 0.3s ease-out forwards;
}

.mockup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

.mockup-content {
    position: relative;
    width: 90%;
    max-height: 90vh;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 40px 24px 40px;
    z-index: 1;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.mockup-image {
    width: 100%;
    max-height: 60vh;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.mockup-close {
    position: absolute;
    top: -13px;
    right: -13px;
    width: 26px;
    height: 26px;
    border: solid 2px white;
    background: #333;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.mockup-close svg {
    width: 14px;
    height: 14px;
}

.mockup-close svg line {
    stroke: #fff;
}

/* 画像のみの場合は中央配置 */
.mockup-content.image-only {
    align-items: center;
    justify-content: center;
}

/* モーダル詳細情報 */
.mockup-details {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    overflow: auto;
    flex-shrink: 1;
}

.mockup-title {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.mockup-meta {
    margin: 0 0 16px 0;
    padding: 0;
}

.mockup-meta-row {
    display: flex;
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 14px;
}

.mockup-meta-row dt {
    display: none;
}

.mockup-meta-row dd {
    margin: 0;
    color: #c8c8c8;
}

.mockup-description {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    white-space: pre-wrap;
}

.works-controls {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0 auto 17px auto;
    font-family: var(--site-font);
    align-items: baseline;
}

.works-filter {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid #a3a3a3;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #a3a3a3;
    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: #333;
    color: #333;
}

.filter-btn.is-active {
    background-color: #333;
    border-color: #333;
    color: #fff;
}

.year-filter {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.year-toggle {
    background: none;
    border: none;
    font-size: 12px;
    color: #777;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0;
    font-family: var(--site-font);
}

.year-toggle span.arrow {
    font-size: 9px;
    transition: transform 0.3s ease;
}

.year-filter.is-open .year-toggle span.arrow {
    transform: rotate(180deg);
}

.year-panel {
    position: absolute;
    top: 100%;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px;
    background: #fff;
    box-shadow: 0px 16px 11px rgba(0, 0, 0, 0.04);
    z-index: 5;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.3s ease;
}

.year-filter.is-open .year-panel {
    max-height: 300px;
    pointer-events: auto;
}

.year-panel .year-btn:first-child {
    margin-top: 12px;
}

.year-panel .year-btn:last-child {
    margin-bottom: 12px;
}

.year-btn {
    background: none;
    border: none;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    text-align: left;
    font-family: var(--site-font);
}

.year-btn:hover {
    color: #000;
}



/* 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;
}

.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: 9px 16px 0;
    text-align: center;
    font-size: 10px;
    color: #999;
    margin-top: auto;
}

/* 右下 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 37px;
    }

    .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;
    }



    .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 モックアップモーダル（PC）
    =========================== */

    @keyframes mockupFadeInOnly {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .mockup-modal.is-open .mockup-content {
        animation: mockupFadeInOnly 0.45s ease-out;
    }

    .mockup-content {
        width: 900px;
        max-width: 90%;
        max-height: 80vh;
        background: #f8f8f8;
        padding: 40px;
        display: flex;
        flex-direction: row;
        gap: 32px;
        align-items: flex-start;
        overflow: visible;
    }

    .mockup-image {
        width: 55%;
        max-height: calc(80vh - 80px);
        flex-shrink: 0;
        object-fit: contain;
    }

    .mockup-details {
        flex: 1;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        min-width: 200px;
        max-height: 100%;
        overflow: auto;
    }

    .mockup-content.image-only {
        width: 900px;
        justify-content: center;
    }

    .mockup-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .mockup-meta {
        margin-bottom: 24px;
    }

    .mockup-meta-row {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .mockup-meta-row dt {
        width: 80px;
    }

    .mockup-description {
        font-size: 14px;
        line-height: 1.8;
    }

    .works-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

}

@media (min-width: 960px) {
    .main-nav-pc a{
        padding: 20px;
    }
}