* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    background-color: #F0ECE9;
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

/* メインコンテナ */
.main {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ページコンテンツ */
.l-container {
    background-image: url('https://d2w53g1q050m78.cloudfront.net/shainonmecom/uploads/about/img/about_bg.png?1753278088188') !important;
    background-size: cover !important;
    background-position: center center !important;
}

.u-margin__top--60 {
    margin-top: 0 !important;
}

.u-margin__bottom--100 {
    margin-bottom: 0 !important;
    padding-bottom: 2%;
}

.p-page_content__inner h2 {
    font-size: 25px;
}

/* 改行制御 */
.pc-br {
    display: inline;
}

.sp-br {
    display: none;
}

/* セクション要素 */
.section {
    position: relative;
    z-index: 2;
    margin-bottom: 15%;
}

/* コンテンツセクション - 大枠フェードイン */
.content-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.content-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* コンテンツコンテナ */
.content-container {
    position: relative;
    z-index: 3;
    padding: 0 8%;
}

/* ヒーローセクション */
.hero-section {
    margin-bottom: 10%;
}

.hero-visual {
    width: 100%;
    position: relative;
    text-align: right;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transform: translateY(30px) scale(1.05);
    animation: fadeInUp 1.2s ease-out 0.3s forwards;
}

.hero-logo {
    position: absolute;
    left: 5%;
    top: 26%;
    height: 40%;
    width: auto;
    z-index: 2;
    opacity: 0;
    filter: brightness(0);
    animation: simpleFadeIn 1.5s ease-out 0.8s forwards;
}

.scroll-indicator {
    position: absolute;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.scroll-line {
    width: 1px;
    height: 200px;
    background-color: #ccc;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, rgba(0,0,0,0), #000, rgba(0,0,0,0));
    animation: scrollMove 2.5s ease-in-out infinite;
}

.scroll-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    color: #000;
    font-family: 'Playfair Display', serif;
}

/* セクション画像 */
.section-image {
    width: 100%;
    margin-bottom: 8%;
    position: relative;
}

.content-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 加治さんの画像スライド専用 */
.kaji-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4.1;
    margin-bottom: 8%;
}

.kaji-slideshow .kaji-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.kaji-slideshow .kaji-image.active {
    opacity: 1;
}

/* セクションタイトル */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    font-weight: 400;
    letter-spacing: 0;
    color: #333;
    margin-bottom: 5%;
}

/* セクションテキスト */
.section-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.section-text p {
    margin-bottom: 5%;
}

.text-subtitle {
    font-weight: bold;
    margin-bottom: 6% !important;
}

.director-signature {
    margin-top: 8% !important;
    font-size: 13px;
    color: #666;
}

/* アニメーション */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes simpleFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes scrollMove {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(210px);
        opacity: 0;
    }
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .l-container {
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }

    /* スマホ版改行制御 */
    .pc-br {
        display: none;
    }

    .sp-br {
        display: inline;
    }

    .hero-logo {
        left: 5%;
        top: 5%;
        height: 40%;
        filter: brightness(0);
    }

    .scroll-indicator {
        right: 15px;
        bottom: 15px;
    }

    .scroll-line {
        height: 120px;
        margin-bottom: 10px;
    }

    .scroll-text {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 25px;
    }

    .section-text {
        font-size: 14px;
        line-height: 1.7;
    }

    .section-text p {
        margin-bottom: 4%;
    }

    .text-subtitle {
        margin-bottom: 5% !important;
    }

    .director-signature {
        margin-top: 6% !important;
        font-size: 12px;
    }
}

@media screen and (max-width: 719px) {
    .p-page_content {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}