
/*===== FVセクション =========================*/
.fv {
    position: relative;
}
.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fv h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    max-width: 200px;
}
@media screen and (max-width: 1536px) {
    .fv h1 {
        top: 55%;
    }
}
@media screen and (max-width: 500px) {
    .fv h1 {
        max-width: 240px;
    }
}

/*===== storyセクション =========================*/
.rose-salmon__story {
    max-width: 440px;
    margin: 0 auto 24px;
}
.story {
    padding-top: 104px;
    padding-bottom: 128px;
}
.story .pt {
    padding-top: 40px;
}
@media screen and (max-width: 500px) {
    .rose-salmon__story {
        margin-bottom: 48px;
        max-width: 320px;
    }
}

/*===== story02セクション =========================*/
.story02 {
    background-color: #000;
    color: #fff;
    padding-top: 112px;
    position: relative;
    padding-bottom: 380px;
}
.story02 h2 {
    line-height: 1.6;
}
.text__story02 {
    position: relative;
    margin-top: 48px;
}
.text__story02::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; /* 親要素の80% */
    max-width: 400px;
    aspect-ratio: 1 / 1; /* 正方形 */
    background-image: url('../img/t-logo.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
.text__story02 .tate {
    z-index: 1;
}
.text__story02 .tate .indent,
.indent02 {
    margin-top: 40px;
}
.kirimi {
    position: absolute;
    z-index: 1;
    width: 60%;
    max-width: 950px;
    bottom: -220px;
    right: 0;
    left: 0;
    margin: 0 auto;
}
@media screen and (max-width: 1580px) {
    .story02 {
        padding-bottom: 360px;
    }
    .kirimi {
    bottom: -190px;
    }
}
@media screen and (max-width: 1360px) {
    .story02 {
        padding-bottom: 310px;
    }
}
@media screen and (max-width: 1300px) {
    .story02::after {
        height: 250px;
    }
}
@media screen and (max-width: 1280px) {
    .story02 {
        padding-bottom: 260px;
    }
}
@media screen and (max-width: 1160px) {
    .kirimi {
        width: 70%;
    }
}
@media screen and (max-width: 1024px) {
    .kirimi {
        width: 80%;
        bottom: -210px;
    }
    .story02 {
        padding-bottom: 320px;
    }
}
@media screen and (max-width: 950px) {
    .story02 {
        padding-bottom: 240px;
    }
}
@media screen and (max-width: 810px) {
    .kirimi {
        bottom: -150px;
    }
}
@media screen and (max-width: 768px) {
    .text__story02::before {
        max-width: 360px;
    }
    .story02 .tate-box {
        gap: 32px;
    }
    .kirimi {
        width: 90%;
    }
}
@media screen and (max-width: 590px) {
    .kirimi {
        bottom: -110px;
    }
}
@media screen and (max-width: 500px) {
    .text__story02::before {
        max-width: 280px;
        top: 17%;
    }
    .story02 {
        padding-bottom: 200px;
    }
}
@media screen and (max-width: 400px) {
    .kirimi {
        bottom: -70px;
    }
}

/*===== story03セクション =========================*/
.text__story03 .tate .indent,
.indent03 {
    margin-top: 40px;
}
.title__st03 {
    line-height: 1.5;
}
.story03 {
    margin-bottom: 130px;
    position: relative;
    padding-top: 350px;
}
.indent03 span {
    display: block;
    margin-left: 24px;
}
@media screen and (max-width: 1580px) {
    .story03 {
        padding-top: 280px;
    }
}
@media screen and (max-width: 950px) {
    .story03 {
        padding-top: 270px;
    }
}
@media screen and (max-width: 810px) {
    .story03 {
        padding-top: 200px;
    }
}
@media screen and (max-width: 590px) {
    .story03 {
        padding-top: 160px;
    }
}
@media screen and (max-width: 500px) {
    .story03 {
        margin-top: 16px;
    }
}
@media screen and (max-width: 400px) {
    .story03 {
        padding-top: 120px;
    }
}
/*===== こだわりセクション =========================*/
.title-box__ca {
    text-align: right;
    color: #fff;
    background-image: url(../img/take-care-bg.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 190px 0;
}
.l-text {
    font-size: clamp(40px, calc(3.875vw + 22px), 58px);
}
.title-box__ca h2 {
    margin-bottom: 16px;
}
.title-box__ca p {
    padding-right: 12px;
}
/*片側固定スクロール */
.scroll-container {
    max-width: 1200px;
    margin: 0 auto; /* 中央寄せ */
}
.care-scroll-box {
    position: relative;
    min-height: 400vh;
}
.care-scroll-box .scroll-container {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    gap: 72px;
}
/* 固定画像エリア */
.sticky-image-wrapper {
    position: sticky;
    top: 0;
    width: 60%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-container {
    position: relative;
    width: 100%;
    height: 60vh;
    max-width: 760px;
}
.sticky-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.sticky-image.active {
    opacity: 1;
}
.content-wrapper {
    width: 40%;
    padding: 100px 0;
}
.content-item {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 18% 0;
}
.content-item span {
    color: #FF033E;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    font-size: 24px;
}
.care-scroll-box h3 {
    line-height: 1.4;
    margin-bottom: 14px;
}
.care-scroll-box p {
    line-height: 1.8;
    letter-spacing: 0.15em;
}
@media screen and (max-width: 1536px) {
    .content-item {
    padding: 10% 0;
    }
}
@media screen and (max-width: 1400px) {
    .title-box__ca {
        padding: 160px 0;
    }
}
@media screen and (max-width: 1330px) {
    .care-scroll-box {
        width: 93%;
        margin: 0 auto;
    }
    .care-scroll-box .scroll-container {
        gap: 48px;
    }
}
@media screen and (max-width: 1200px) {
    .title-box__ca {
        padding: 130px 0;
    }
}
@media screen and (max-width: 1110px) {
    .sticky-image-wrapper,
    .content-wrapper {
        width: 50%;
    }
}
@media screen and (max-width: 1024px) {
    .title-box__ca {
        padding: 90px 0;
    }
    .title-box__ca .mw {
        width: 90%;
    }
}
@media screen and (max-width: 850px) {
    /* スクロール固定を解除 */
    .care-scroll-box {
        min-height: auto;
        margin-top: 100px;
    }
    .care-scroll-box .scroll-container {
        flex-direction: column;
        gap: 0;
    }
    /* 画像エリアを非表示 */
    .sticky-image-wrapper {
        display: none;
    }
    .content-wrapper {
        width: 100%;
        padding: 0;
    }
    .content-item {
        min-height: auto;
        padding: 0 0 60px 0;
        display: flex;
        flex-direction: column;
    }
    /* 各コンテンツの前に対応する画像を表示 */
    .content-item::before {
        content: "";
        width: 100%;
        height: 300px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        margin-bottom: 30px;
        order: -1; /* 画像を一番上に */
    }
    .content-item[data-image="0"]::before {
        background-image: url(../img/care-01.webp);
    }
    .content-item[data-image="1"]::before {
        background-image: url(../img/care-02.webp);
    }
    .content-item[data-image="2"]::before {
        background-image: url(../img/care-03.webp);
    }
    .content-item[data-image="3"]::before {
        background-image: url(../img/care-04.webp);
    }
}
@media (max-width: 768px) {
    .care-scroll-box .container {
        flex-direction: column;
    }
    .sticky-image-wrapper {
        position: relative;
        width: 100%;
        height: 60vh;
        margin-bottom: 50px;
    }
    .content-wrapper {
        width: 100%;
        padding: 0 5%;
    }
    .content-item {
        min-height: auto;
    }
    .care-scroll-box {
        min-height: auto;
    }
    .title-box__ca {
        background-image: url(../img/take-care-bg-sp.webp);
        padding: 470px 0 100px;
    }
    .title-box__ca .mw {
        text-align: center;
    }
    .title-box__ca p {
        padding-right: 0;
        line-height: 1.6;
    }
}
@media screen and (max-width: 620px) {
    .title-box__ca {
        padding: 330px 0 60px;
    }
}@media screen and (max-width: 500px) {
    .content-item::before {
        height: 240px;
    }
    .content-item span,
    .care-scroll-box h3 {
        text-align: center;
    }
    .content-item span {
        font-size: 14px;
    }
    .care-scroll-box h3 {
        margin-bottom: 32px;
    }
}
@media screen and (max-width: 460px) {
    .title-box__ca {
        padding: 240px 0 60px;
    }
}
@media screen and (max-width: 430px) {
    .content-item::before {
        height: 200px;
    }
}
/*===== 会社概要 =========================*/
.company-info {
    padding: 100px 8%;
}
.title__cp-info {
    display: flex;
    justify-content: flex-end;
}
.section-title {
    writing-mode: vertical-rl;
    text-orientation: upright;
}
.title__cp-info h2 {
    letter-spacing: 0.16em;
}
/*会社情報*/
.cp-info-table {
    width: 100%;
    border-collapse: collapse;
}
.cp-info-table tr {
    border-bottom: 1px solid #ddd;
}
.cp-info-table th,
.cp-info-table td {
    padding: 16px 20px;
    text-align: left;
    vertical-align: middle;
}
.cp-info-table th {
    width: 200px;
    font-weight: 500;
    color: #666;
}
.cp-info-table td {
    color: #333;
    line-height: 1.8;
}
.cp-info-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    margin-top: -100px;
}
.cp-info-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background-image: url('../img/t-logo-gray.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
.cp-info-table {
    position: relative;
    z-index: 1;
    width: 100%;
    border-collapse: collapse;
}
@media (max-width: 768px) {
    .cp-info-table tr {
        display: block;
        margin-bottom: 30px;
        border-bottom: 1px solid #ddd;
        padding-bottom: 20px;
    }

    .cp-info-table th,
    .cp-info-table td {
        display: block;
        width: 100%;
        padding: 0;
    }

    .cp-info-table th {
        margin-bottom: 10px;
        font-weight: 600;
        color: #333;
    }

    .cp-info-table td {
        padding-bottom: 10px;
    }
    .title__cp-info h2 {
        writing-mode: horizontal-tb;
    }
    .title__cp-info {
        justify-content: flex-start;
    }
    .cp-info-container {
        margin-top: 40px;
        max-width: none;
    }
    .cp-info-table tr {
        padding-bottom: 0;
    }
}
@media screen and (max-width: 500px) {
    .title__cp-info {
        justify-content: center;
    }
    .cp-info-table th,
    .cp-info-table td {
        text-align: center;
    }
    .cp-info-container::before {
        width: 360px;
        height: 360px;
    }
}
@media screen and (max-width: 375px) {
    .title__cp-info {
        justify-content: center;
    }
    .cp-info-table th,
    .cp-info-table td {
        text-align: center;
    }
    .cp-info-container::before {
        width: 300px;
        height: 300px;
    }
}


/*===== フッター =========================*/
footer {
    background-image: url(../img/footer-bg.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
    padding-top: 140px;
}
.logo-footer {
    max-width: 50px;
    margin-right: 90px;
    margin-bottom: 52px;
    margin-left: auto;
}
.footer-content {
    max-width: 1400px;
    text-align: right;
    margin: 0 auto;
    padding: 0 10px;
}
.copyright {
    text-align: center;
    margin-top: 32px;
    padding-bottom: 24px;
    font-size: 12px;
}
.contact-btn a {
    position: relative;
    border: 1px solid;
    padding: 10px 20px 10px 50px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
footer .contact-btn a:hover {
    background-color: #fff;
    color: #000;
}
.contact-btn a::after {
    content: "";
    position: absolute;
    background-image: url(../img/mail-icon.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    top: 32%;
    left: 19px;
}
@media screen and (max-width: 1536px) {
    .footer-content {
    padding: 0 40px;
}
}
@media screen and (max-width: 1210px) {
    .footer-content {
        padding: 0 10px;
    }
    footer {
        padding-top: 60px;
    }
}
@media screen and (max-width: 1080px) {
    .footer-content {
        padding: 0 10px;
    }
}
@media screen and (max-width: 1024px) {
    .footer-content {
        padding: 0 10px;
    }
    footer {
        padding-top: 30px;
    }
    .copyright {
        margin-top: 16px;
        padding-bottom: 12px;
    }
}
@media screen and (max-width: 950px) {
    .logo-footer {
        max-width: 40px;
        margin-bottom: 32px;
        margin-right: 82px;
    }
    .contact-btn a {
        font-size: 14px;
    }
}
@media screen and (max-width: 768px) {
    footer {
        background-position: right;
    }
    .copyright {
        margin-top: 32px;
        padding-bottom: 12px;
    }
}
@media screen and (max-width: 500px) {
    footer {
        background-image: url(../img/footer-bg-sp.webp);
        background-position: bottom;
    }
    .logo-footer {
        margin: 0 auto 260px;
    }
    .contact-btn {
        text-align: center;
    }
    .copyright {
        margin-top: 56px;
    }
}
@media screen and (max-width: 460px) {
    .logo-footer {
        margin-bottom: 210px;
    }
}
@media screen and (max-width: 410px) {
        .logo-footer {
        margin-bottom: 170px;
    }
}
@media screen and (max-width: 375px) {
    .copyright {
        margin-top: 46px;
    }
}
@media screen and (max-width: 320px) {
    .copyright {
        margin-top: 26px;
    }
}

/*===== safari対策 text-img =========================*/
.text-img {
    max-width: 306px;
    margin: 0 auto 24px;
}
.text-img02 {
    max-width: 485px;
}
.text-img03 {
    max-width: 378px;
}
@media screen and (max-width: 500px) {
    .text-img {
    max-width: 142px;
    margin: 0 auto 24px;
    padding: 0 12px;
    }
    .text-img02 {
        max-width: 300px;
    }
    .text-img03 {
        max-width: 236px;
    }
}