/*
　スマホメインのレイアウト

　1.ヘッダー
　2.メインコンテンツ

*/

html {
    scroll-behavior: smooth;
}

span:not([class]) {
    display: inline-block;
}

body.is-menu-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
    padding-right: var(--scrollbar-compensation, 0px);
}

#roading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100svh;
    background-color: var(--color-accent);
    z-index: 9999;
    transition: opacity .8s ease, visibility .8s ease;
}

#roading__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.roading__title span {
    font-size: var(--fz-32);
    color: #000;
}

#roading .container {
    background-color: transparent;
}

.roading__title-text {
    display: inline-block;
}

.roading__letter {
    display: inline-block;
    opacity: 0;
    animation: fadeInLetter 0.5s ease forwards;
}

.roading__letter:nth-child(1) {
    animation-delay: 0.5s;
}

.roading__letter:nth-child(2) {
    animation-delay: 0.6s;
}

.roading__letter:nth-child(3) {
    animation-delay: 0.7s;
}

.roading__letter:nth-child(4) {
    animation-delay: 0.8s;
}

.roading__letter:nth-child(5) {
    animation-delay: 0.9s;
}

.roading__letter:nth-child(6) {
    animation-delay: 1s;
}

@keyframes fadeInLetter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*

　1.ヘッダー

*/
.header {
    background-color: #fff;
    position: relative;
}

.header__inner {
    max-width: 600px;
    margin-inline: auto;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: end;
}

.fv__logo a {
    font-weight: 600;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: #000;
}

/* --- ハンバーガーボタン --- */
.header__toggle {
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.header__bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #000;
    transition: all 0.3s;
    position: absolute;
    left: 0;
}

.header__bar:nth-child(1) {
    top: 0;
}

.header__bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.header__bar:nth-child(3) {
    bottom: 0;
}

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

.header__nav {
    max-width: 600px;
    width: 100%;
    height: 100svh;
    margin-inline: auto;
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 999;
    align-items: center;
    justify-content: center;
    transform: translateY(-15%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0s linear 0.35s;
}

.header__menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    width: 50%;
}

.header__menu li {
    width: 100%;
}

.header__menu a {
    display: block;
    padding: var(--space-16) 0;
    color: #2f2f2f;
    border-bottom: 1px solid #2f2f2f;
    text-decoration: none;
    transition: opacity 0.2s;
    font-weight: 600;
    text-align: center;
}

/* メニューが開いている状態のクラス */
.header__nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* ハンバーガーアイコンが開いている状態 */
.header__toggle.is-open .header__bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header__toggle.is-open .header__bar:nth-child(2) {
    opacity: 0;
}

.header__toggle.is-open .header__bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (min-width: 600px) {
    .header__nav {
        transform: translate(-8px, -5%);
    }

    .header__nav.is-open {
        transform: translate(-8px, 0);
    }
}

@media (min-width: 1024px) {
    .header__inner {
        padding: 24px 16px;
        justify-content: flex-end;
    }

    .header__toggle {
        display: block;
    }

    .header__nav {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100svh;
        margin-inline: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.35s ease, opacity 0.35s ease, visibility 0s linear 0.35s;
    }

    .header__nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.35s ease, opacity 0.35s ease;
    }

    .header__menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        gap: 0;
        padding: 0;
    }

    .header__menu li {
        width: 100%;
    }

    .header__menu a {
        display: block;
        padding: var(--space-16) 0;
        color: #2f2f2f;
        font-weight: 600;
        letter-spacing: 0.08em;
        border-bottom: 1px solid #2f2f2f;
    }
}

/*

　2.メインコンテンツ

*/

/*  FV  */
.fv {
    max-height: 965px;
    height: 100%;
    max-width: 600px;
    width: 100%;
    margin-inline: auto;
    position: relative;
}

@media (min-width: 600px) {
    .fv {
        height: 100svh;
    }
}

.fv__slider,
.fv__slider .swiper-wrapper,
.fv__slider .swiper-slide {
    height: 100%;
}

.fv__inner {
    position: relative;
}

.fv__header {
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    position: absolute;
    top: 0;
    right: 0;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    width: 58px;
    height: 100%;
    z-index: 1000;
}

.fv__slider .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fv__logo,
#fv__instagram {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fv__logo {
    padding: 20px 0;
}

#fv__instagram {
    color: var(--color-accent);
    font-size: var(--fz-12);
    letter-spacing: 0.1em;
    padding: 0 0 10px;
}

#fv__instagram::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: 10px 0 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("../img/icon-instagram.svg");
}


.container {
    max-width: 600px;
    width: 100%;
    margin-inline: auto;
    padding-inline: 16px;
    background-color: white;
}

/*　　スクロールバー　　*/
.scrolldown {
    position: absolute;
    top: 0;
    left: 0;
    max-height: 965px;
    height: 100%;
    min-height: 200px;
    /* CLS対策: 最小高さを予約 */
    width: 100%;
    z-index: 998;
    pointer-events: none;
}

@media (min-width: 600px) {
    .scrolldown {
        height: 100svh;
    }
}

.scrolldown .scrolldown-text {
    position: absolute;
    bottom: calc(12px + 16px);
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    font-size: 10px;
    line-height: 1;
    color: var(--color-text);
    -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
}

.scrolldown:before {
    content: "";
    position: absolute;
    bottom: -53px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    width: 3px;
    height: 2px;
    border-radius: 50%;
    background: var(--color-text);
    animation: circlemove 1.6s ease-in-out infinite,
        cirlemovehide 1.6s ease-out infinite;
}

@keyframes circlemove {
    0% {
        bottom: 12px;
    }

    100% {
        bottom: -55px;
    }
}

@keyframes cirlemovehide {
    0% {
        opacity: 0
    }

    50% {
        opacity: 1;
    }

    80% {
        opacity: 0.9;
    }

    100% {
        opacity: 0;
    }
}

.scrolldown:after {
    content: "";
    position: absolute;
    bottom: -53px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    width: 1px;
    height: 65px;
    background: var(--color-text);
}



/*　　イントロセクション　　*/
#intro {
    position: relative;
}

#intro h2 {
    padding: 90px 0 142px;
}

#intro h2>span {
    font-size: var(--fz-12);
    color: var(--color-accent);
    position: relative;
}

#intro h2::after {
    content: "";
    position: absolute;
    top: 165px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    width: 1px;
    height: 90px;
    background: var(--color-text);
}

#intro h3 {
    letter-spacing: 0.2em;
    line-height: 1.5;
    margin-bottom: var(--space-24);
}

/*　　プロフィールセクション　　*/
.h2__inner {
    position: relative;
    aspect-ratio: 1 / 0.389;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: var(--space-24);
    margin-inline: -16px;
}

.h2__inner>span {
    color: #fff;
    font-size: var(--fz-12);
    padding: 8px 0 var(--space-24);
    letter-spacing: 0.06em;
    font-weight: 400;
}

#profile h2 {
    background-image: url("../img/profile-bg.webp");
}

/*　　ブログセクション　　*/
#blog h2,
#blog-header h1 {
    background-image: url("../img/achievements-bg.webp");
    color: var(--color-text);
    font-weight: 500;
}

.blog-list__content__inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.blog-list__title {
    font-weight: 400;
}

#blog .blog-list__date {
    margin-bottom: 0;
    display: block;
}

/*　　実績セクション　　*/
#achievements h2 {
    background-image: url("../img/blog-bg.webp");
}

.achievement-list {
    padding-left: 0;
}

.achievement-list li {
    position: relative;
    padding-left: 1em;
    list-style: none;
    line-height: 1.8;
}

.achievement-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    top: 0;
}

/*　　写真セクション　　*/
#photo h2 {
    background-image: url("../img/photo-bg.webp");
    margin-bottom: 0;
    justify-content: center;
}

#photo h2>span {
    color: var(--color-accent);
    padding-bottom: 0;
}

.photo-gallery {
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.photo-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1.331;
}

.photo-item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 1 / 0.752;
}

.photo-item:nth-child(4n),
.photo-item:nth-child(4n + 1):not(:first-child) {
    aspect-ratio: 1 / 1.5;
}

.photo-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.view-more-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 40%, #fff 100%);
    color: var(--color-accent);
    border: none;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.photo-gallery.is-expanded {
    overflow: visible;
}

.photo-gallery.is-expanded .view-more-btn {
    position: static;
    height: auto;
    background: #fff;
    padding: var(--space-24) 0;
}

.dli-chevron-down,
.dli-chevron-up {
    display: inline-block;
    vertical-align: middle;
    color: currentColor;
    line-height: 1;
    width: 0.4em;
    height: 0.4em;
    border: 1px solid currentColor;
    border-left: 0;
    border-bottom: 0;
    box-sizing: border-box;
}

.dli-chevron-down {
    transform: translateY(-25%) rotate(135deg);
}

.dli-chevron-up {
    transform: translateY(25%) rotate(-45deg);
}



/*フッター*/
footer .inner {
    margin-inline: -16px;
    background-color: var(--color-bg);
    padding: 24px 32px;
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav a h2 {
    color: #fff;
}

.footer-nav a {
    text-decoration: none;
}

.sns-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 600px) {
    .container {
        padding-inline: 40px;
    }
}

/*TOPへ戻る*/
.pagetop {
    position: fixed;
    bottom: calc(72px + 23px);
    right: 16px;
    width: 48px;
    height: 48px;
    background-color: var(--color-accent);
    border: 1px solid var(--color-accent);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagetop.is-visible {
    opacity: 0.8;
    visibility: visible;
    transform: translateY(0);
}

.pagetop:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.pagetop__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagetop__arrow.arrow {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 12px;
}

.pagetop__arrow.arrow::before,
.pagetop__arrow.arrow::after {
    content: "";
    position: absolute;
    top: 0;
    left: calc(50% - 1.5px);
    width: 3px;
    height: 14px;
    background-color: var(--color-white);
    transform-origin: 50% 1px;
    transition: background-color 0.3s ease;
}

.pagetop__arrow.arrow::before {
    transform: rotate(45deg);
}

.pagetop__arrow.arrow::after {
    transform: rotate(-45deg);
}

.pagetop:hover .pagetop__arrow.arrow::before,
.pagetop:hover .pagetop__arrow.arrow::after {
    background-color: var(--color-white);
}

@media (min-width: 600px) {
    .pagetop {
        right: calc((100vw - 600px) / 2 + 16px);
    }

    .pagetop__arrow.arrow {
        height: 16px;
    }

    .pagetop__arrow.arrow::before,
    .pagetop__arrow.arrow::after {
        height: 18px;
        transform-origin: 50% 1.5px;
    }
}

/*

　　ブログ一覧ページ

*/
.blog-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}

.blog-list__item {
    margin-bottom: var(--space-16);
}

.blog-list__content {
    display: flex;
    justify-content: space-between;
    gap: var(--space-16);
}

.blog-list__content>div:last-child {
    width: 40%;
}

.blog-list__thumbnail-link {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-list__thumbnail {
    width: 100%;
    height: 100%;
}

.blog-list__thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.blog-list__link {
    text-decoration: none;
    color: var(--color-text);
    transition: opacity 0.3s ease;
}

.blog-list__link:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.blog-list__date {
    margin-bottom: var(--space-8);
    display: block;
}

.blog-list__link h2 {
    text-align: left !important;
    word-break: auto-phrase;
}

.blog-pagination {
    margin: var(--space-32) 0;
    text-align: center;
}

.blog-pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-pagination .page-numbers li {
    margin: 0;
    padding: 0;
}

.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
    display: inline-block;
    padding: var(--space-8) var(--space-16);
    text-decoration: none;
    color: var(--color-text);
    border: 1px solid var(--color-accent);
    transition: opacity 0.3s ease;
}

.blog-pagination .page-numbers a:hover {
    opacity: 0.7;
}

.blog-pagination .page-numbers .current {
    background-color: var(--color-accent);
    color: #fff;
}

/*

　　ブログ詳細ページ

*/
.post h1 {
    text-align: center;
}

.post h2,
.post h3,
.post h4,
.post h5,
.post h6 {
    margin: var(--space-32) 0 var(--space-8);
    line-height: 1.5;
    position: relative;
}

.post h2 {
    margin: var(--space-32) 0 calc(var(--space-8) + 32px);
}

.post h2::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 26px;
    bottom: -32px;
    background-color: var(--color-text);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 0.562;
}

.post-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post p {
    text-align: center;
    margin-bottom: var(--space-16);
}

.related-posts__list li {
    text-align: center;
}

/*

　　404ページ

*/
.error-404 {
    max-height: 965px;
    height: 100svh;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

/* h1要素のベーススタイル（非推奨API警告を防ぐ） */
h1 {
    font-size: var(--fz-24);
}

.error404 h1 {
    font-size: var(--fz-24);
}

.error-404 p {
    text-align: center;
    margin-top: 16px;
}