body {
    transition:
        opacity 1.2s cubic-bezier(.4,0,.2,1),
        filter 1.2s cubic-bezier(.4,0,.2,1);
}

/* body全体のフェードイン＋ブラー効果 */
.page-wrapper {
    opacity: 0;
    filter: blur(24px);
    transition: opacity 1.2s, filter 1.2s;
}
body.is-loaded .page-wrapper {
    opacity: 1;
    filter: blur(0);
}

.hero {
        position: relative;
        width: 100vw;
        height: 105vh;
        min-height: 600px;
        background: url('/assets/img/home/top.jpg') center/cover no-repeat;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        overflow: hidden;
    }
    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0.35);
        z-index: 1;
    }
    .hero-content {
        display: grid;
        grid-template-columns: min-content 1fr;
        grid-template-rows: 64px 1fr 64px 3rem;
        grid-template-areas:
            "maininfo maininfo"
            "portfolio right"
            "portfolio right"
            "portfolio menu";
        width: 100%;
        height: 98vh;
        min-height: 667px;
        box-sizing: border-box;
        position: relative;
        z-index: 2;
    }
    .hero-content .hero-nav {
        padding: 0;
        margin: 16px 0 0 0;
    }
    .portfolio-vertical {
        grid-area: portfolio;
        position:absolute;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        font-family: var(--title-font);
        font-size: 7rem;
        font-weight: 400;
        color: #222;
        align-self: end;      /* 下端に揃える */
        justify-self: start;  /* 左端に揃える（X=0px） */
        height: auto;
        letter-spacing: 0.6rem;
        z-index: 2;
        padding-bottom: 0;
        margin-left:-5vw; /* 左端を調整 */
        left:-23px; /* 左端を調整 */
    }
    .hero-maininfo {
        grid-area: maininfo;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        margin-top: 0px;
    }
    .hero-maininfo h1 {
        font-family: var(--title-font);
        font-size: 1.7rem;
        font-weight: 400;
        margin: 0 0 0 0;
        letter-spacing: 0.08em;
    }
    .hero-maininfo h2 {
        font-size: 1.1rem;
        font-weight: 300;
        margin: 0 0 0 0;
        letter-spacing: 0.08em;
    }
    .hero-right {
        grid-area: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-end;
        width: 100%;
        height: 100%;
        padding: 0 0 0 0;
        box-sizing: border-box;
        margin-top: 32px;
    }
    .hero-menu {
        grid-area: menu;
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        width: 100%;
        margin-bottom: 32px;
    }
    .hero-desc {
        font-size: 1rem;
        font-family: var(--title-font);
        font-weight: 500;
        letter-spacing: 0.08em;
        color: #222;
        margin-top: 24px;
        margin-bottom: 12px;
        text-align: right;
        width: 100%;
    }
    .news-ticker {
        margin: 1rem 0;
        width: 100%;
        max-width: 300px;
        text-align: right;
        overflow: hidden;
        height: 1.8em; /* 1行分の高さに調整 */
        position: relative;
    }
    .news-ticker ul {
        list-style: none;
        padding: 0;
        margin: 0;
        position: relative;
        transition: transform 0.6s cubic-bezier(.4,2,.6,1);
        will-change: transform;
    }
    .news-ticker li {
        height: 1.8em;
        line-height: 1.8em;
        white-space: nowrap;
        padding: 0 0.5em;
        background: transparent;
    }
    .hero-right .hero-nav {
        width: 100%;
        margin-bottom:1rem;
        display: flex;
        justify-content: flex-end;
    }
    .hero-arrow {
        display: block;
        width: 32px;
        height: 48px;
        margin-left: auto;
        margin-right: 12px;
        margin-top: 1.2rem;
        margin-bottom: 1.2rem;
        position: relative;
        animation: arrow-bounce 2s 1;
    }
    @keyframes arrow-bounce {
        0%   { transform: translateY(0); }
        50%  { transform: translateY(12px); }
        100% { transform: translateY(0); }
    }
    .hero-arrow::before {
        content: "";
        display: block;
        position: absolute;
        right: 0%;
        top: 0;
        width: 1px;
        height: 48px;
        background: #444;
        transform: translateX(-50%);
        opacity: 0.7;
    }
    .hero-arrow::after {
        content: "";
        display: block;
        position: absolute;
        right: -11px;
        bottom: 0px;
        width: 10px;
        height: 10px;
        border-bottom: 1px solid #444;
        transform: translateX(-50%) rotate(60deg);
        opacity: 0.7;
    }
/* 固定メニューの初期状態（非表示・上に隠す） */
.fixed-menu {
    position: fixed;
    top: -60px; /* メニュー高さ分だけ上に隠す */
    left: 0;
    width: 100%;
    height:50px;
    z-index: 1000;
    display:flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: top 1s cubic-bezier(.4,0,.2,1);
}
.fixed-menu .hero-maininfo {
    margin-left:5vw;
    margin-right: auto;
}
.fixed-menu .hero-nav {
    margin-left: auto;
    margin-right:5vw;
}

/* 表示時（上からスライドイン） */
.fixed-menu.is-menu-visible {
    top: 0px;
    transition-duration: 1s; /* 出てくるときは1s */
}
.fixed-menu:not(.is-menu-visible) {
    transition-duration: 0.1s; /* 出てくるときは0.1s */
}

/*about,workセクションのスタイル*/
    .about,.works {
        position: relative;
        width: 100vw;
        min-height: 600px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-left:-5vw;
    }
    .about .title, .works .title {
        font-family: var(--title-font);
        text-align: center;
    }
    .about h2, .works h2 {
        font-size: 2.8rem;
        color: var(--text-color);
        letter-spacing: 0.15em;
    }
   .about .title p, .works .title p {
        font-size: 1.2rem;
        color: #444;
        margin-bottom: 30px;
    }
    .about a.more-btn, .works a.more-btn {
        font-size: 1.1rem;
        color: var(--text-color);
        border-radius: var(--border-radius);
        border:1px solid var(--text-color);
        padding:2px 20px;
        text-decoration: none;
        transition: color 0.2s;
    }
     .works a.more-btn {
        margin-top: 100px;
     }
/*aboutセクションのスタイル*/    
    .about {
        background: url('/assets/img/home/about.jpg') center/cover no-repeat;
        height: 100vh;
    }
    .about-section p {
        font-size: 1.1rem;
        color: #444;
    }
/*worksセクションのスタイル*/  
.works {
        background: linear-gradient(180deg, #fff 0%, #ececec 100%), url('/assets/img/home/works.jpg') center/cover no-repeat;
        background-attachment: fixed;
        background-size: cover;
        padding-top:240px;
        padding-bottom:240px;
    }  
    .works-gallery{
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 60px;
        margin-top:120px;
        width: 100%;
        max-width: 1200px;
    }
    .works-gallery .work-item {
        position: relative;
        overflow: hidden;
        min-width:320px;
    }
    .works .title p {
        writing-mode: vertical-rl;
        font-size: 2rem;
        text-align: center;
        margin: 70px auto 0 auto;
        letter-spacing: 1rem;
        position: relative;
    }
    .works .title p::before {
        content: "";
        display: block;
        position: absolute;
        top: -58px;         /* 「作品集」の上に配置（必要に応じて調整） */
        left: 50%;
        transform: translateX(-50%);
        width: 1px;
        height: 40px;
        background: var(--text-color);   /* 線の色 */
    }
    .works-list {
        display: flex;
        flex-wrap: wrap;
        gap: 32px;
        justify-content: center;
    }
    .work-item {
        width: 260px;
        background: #f5f5f5;
        border-radius: 0 var(--border-radius) var(--border-radius) 0;
        overflow: hidden;
        box-shadow: var(--box-shadow);
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .work-item.right {
        border-radius: var(--border-radius) 0 0 var(--border-radius);
    }
    .work-item:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 8px 32px rgba(0,188,212,0.12);
    }
    .work-item img {
        width: 100%;
        display: block;
    }
/* .work-caption（作品説明欄）のスタイル */
.work-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width:267px;
    margin-bottom:20px;
    padding: 4rem 1em 1em 1em;
    background: rgba(34, 34, 34, 0.40); /* 半透明の黒背景 */
    color: #fff;
    font-size: 1rem;
    line-height: 1.3;
    z-index: 2;
    box-sizing: border-box;
    backdrop-filter: blur(2px);
    transition: background 0.3s;
}
.work-caption .work-type,
.work-caption .work-year,
.work-caption .work-category {
    font-size: 1rem;
    margin: 0 0 0.2em 0;
    opacity: 0.85;
    letter-spacing: 0.05em;
}
.work-caption .work-title {
    font-size: 1.8rem;
    font-family: var(--title-font);
    font-weight: 400;
    margin: 0.4em 0 0 0;
    letter-spacing: 0.08em;
    color: #fff;
}
.work-item.right {
    justify-self: end; /* または align-self: end; */
}

@media (min-width: 550px) {
    .about{
        height:887px;
    }
    .works-gallery {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
@media (min-width: 740px) {
    .work-item,.work-item.right {
        border-radius: var(--border-radius);
        justify-self:start; /* 左端に揃える */
    }
    .work-item:nth-child(odd) {
        justify-self:end; /* 奇数番目のアイテムを右端に揃える */
    }
}
@media (min-width: 1140px) {
    .works-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    justify-items: stretch; /* デフォルト */
}

.work-item:nth-child(3n+1) {
    justify-self: end;    /* 1,4,7... 右寄せ */
}
.work-item:nth-child(3n+2) {
    justify-self: center; /* 2,5,8... 中央寄せ */
}
.work-item:nth-child(3n) {
    justify-self: start;  /* 3,6,9... 左寄せ */
}
}

/* デザインA (デフォルト) */
#normalDayContent {
    cursor: pointer;
    background-color: #fff; /* 青色 */
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

/* デザインB */
#holidayContent {
    background-color: #dc3545; /* 赤色 */
    color: yellow;
    border: 2px solid #6c757d;
}