@charset "utf-8";

/**
 * TOSHIN Top Page Renewal Stylesheet
 * 
 * - 全スタイルは他ページへの影響を防ぐため `.top-renewal-wrap` 配下に制限しています。
 * - すべてのテキスト要素には font-size を明示的に指定しています。
 * - レスポンシブ対応 (PC最大幅: 950px 前後)
 */

/* ==========================================================================
   0. 共通設定・リセット（ラッパー内限定）
   ========================================================================== */
.top-renewal-wrap {
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
    color: #333333;
    line-height: 1.6;
    background-color: #ffffff;
    box-sizing: border-box;
    padding-top: 80px;
}

.top-renewal-wrap *,
.top-renewal-wrap *::before,
.top-renewal-wrap *::after {
    box-sizing: inherit;
}

/* 共通インナー幅 */
.top-renewal-wrap .tr-about-inner {
    max-width: 950px;
    margin: 0 auto;
    padding: 64px 0px 0px;
}

.top-renewal-wrap .tr-tech-inner {
    max-width: 950px;
    margin: 0 auto;
    padding: 82px 0px 0px;
}
.top-renewal-wrap .tr-faq-inner {
    max-width: 950px;
    margin: 0 auto;
    padding: 82px 0px;
}
.top-renewal-wrap .tr-contact-inner {
    max-width: 950px;
    margin: 0 auto;
    padding: 64px 0 82px;
}

@media (max-width: 947px) {
    .top-renewal-wrap .tr-about-inner,
    .top-renewal-wrap .tr-tech-inner,
    .top-renewal-wrap .tr-contact-inner {
        padding: 50px 30px 0;
    }
    .top-renewal-wrap .tr-faq-inner {
        padding: 50px 30px;
    }
    .top-renewal-wrap {
        padding-top: 50px;
    }
}

/* ==========================================================================
   1. タイトル・テキスト・ボタン（パーツ定義）
   ========================================================================== */

/* セクションタイトル */
.top-renewal-wrap .tr-section-ttl {
    display: flex;
    flex-direction: column;
    font-size: 24px; /* 親指定用 */
}

.top-renewal-wrap .tr-section-ttl-en {
    font-size: 19px;
    font-weight: 500;
    color: #00a5a8;
    letter-spacing: 0.032em;
    text-transform: uppercase;
    line-height: 1.2;
}

.top-renewal-wrap .tr-section-ttl-ja {
    font-size: 28px;
    font-weight: 500;
    color: #00a5a8;
    line-height: 1.4;
    letter-spacing: 0.064em;
}

@media (max-width: 947px) {
    .top-renewal-wrap .tr-section-ttl-ja {
        font-size: 20px;
    }
    .top-renewal-wrap .tr-section-ttl {
        align-items: center;
        margin-bottom: 26px;
    }
    .top-renewal-wrap .tr-section-ttl-en {
        font-size: 15px;
        font-weight: 300;
        letter-spacing: 0.032em;
        line-height: 1.2;
    }
    .top-renewal-wrap .tr-section-ttl-ja {
        font-size: 22px;
        line-height: 1.4;
        letter-spacing: 0.064em;
    }
}

/* 配置ユーティリティ */
.top-renewal-wrap .tr-align-center {
    text-align: center;
    justify-content: center;
    align-items: center;
}

/* セクションのリード文 */
.top-renewal-wrap .tr-section-read {
    font-size: 14px;
    color: #595757;
    margin-bottom: 38px;
    margin-top: 26px;
    line-height: calc(22 / 14);
}

@media (max-width: 768px) {
    .top-renewal-wrap .tr-section-read {
        font-size: 14px !important;
        text-align: left;
        margin-bottom: 26px;
    }
}

/* 共通ボタンラッパー */
.top-renewal-wrap .tr-btn-wrap {
    margin-top: 30px;
}

/* ボタン基本スタイル */
.top-renewal-wrap .tr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    height: 48px;
    border-radius: 4px;
}
.tr-btn-about {
    padding: 0 53px;
}
.tr-btn-tc {
    width: 100%;
}

/* 白背景＋青枠ボタン（アウトライン） */
.top-renewal-wrap .tr-btn-outline {
    background-color: #ffffff;
    border: 2px solid #00a5a8;
    color: #00a5a8;
}

.top-renewal-wrap .tr-btn-outline:hover {
    background-color: #00a5a8;
    color: #ffffff;
}

/* 青背景ソリッドボタン */
.top-renewal-wrap .tr-btn-solid {
    background-color: #00a5a8;
    border: 2px solid #00a5a8;
    color: #ffffff;
}

.top-renewal-wrap .tr-btn-solid:hover {
    background-color: #fff;
    border-color: #00a5a8;
    color: #00a5a8;
}

@media (max-width: 947px) {
    .top-renewal-wrap .tr-btn-wrap {
        margin-top: 38px;
        width: 100%;
    }
    .top-renewal-wrap .tr-btn-w2 {
        width: 100%;
    }
    .tr-btn-about {
        padding: 0;
        width: 100%;
    }
}

/* ==========================================================================
   A. メインビジュアル (tr-mv)
   ========================================================================== */
.top-renewal-wrap .tr-mv {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    background-color: #000000;
}

/* フェード切り替えスライダー */
.top-renewal-wrap .tr-mv-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.top-renewal-wrap .tr-mv-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.top-renewal-wrap .tr-mv-slide picture,
.top-renewal-wrap .tr-mv-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* アクティブなスライド */
.top-renewal-wrap .tr-mv-slide.active {
    opacity: 1;
    z-index: 2;
}

/* キャッチコピーオーバーレイ */
.top-renewal-wrap .tr-mv-catch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 6%;
}

.top-renewal-wrap .tr-mv-ttl {
    color: #ffffff;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.128em;
    margin: 0;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
}

/* お知らせバー */
.top-renewal-wrap .tr-mv-news-bar {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 4;
}

.top-renewal-wrap .tr-mv-news-inner {
    max-width: 950px;
    margin: 0 auto;
    padding: 32px 44px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.top-renewal-wrap .tr-mv-news-label {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background-color: #00a5a8;
    padding: 2px 8px;
    margin-right: 15px;
    letter-spacing: 0.05em;
    border-radius: 2px;
}

.top-renewal-wrap .tr-mv-news-date {
    font-size: 16px;
    color: #00a5a8;
    letter-spacing: 0.0064em;
    margin-right: 38px;
    font-weight: 700;
}

.top-renewal-wrap .tr-mv-news-title {
    font-size: 16px;
    letter-spacing: 0.0064em;
    color: #333333;
    text-decoration: none;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.top-renewal-wrap .tr-mv-news-title:hover {
    color: #00a5a8;
    text-decoration: underline;
}

.top-renewal-wrap .tr-mv-news-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #00a5a8;
    text-decoration: none !important; /* ブラウザ標準の下線を消す */
    border-bottom: none !important; /* 前のCSSの下線を消す */
    margin-left: 20px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    line-height: 1.2;
    transition: color 0.2s ease;
}

/* ＞ 矢印部分 */
.top-renewal-wrap .tr-mv-news-more::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-top: 1px solid #00a5a8;
    border-right: 1px solid #00a5a8;
    transform: rotate(45deg);
    transition: border-color 0.2s ease;
}

/* ホバー時 */
.top-renewal-wrap .tr-mv-news-more:hover {
    color: #007380;
    border-bottom: none !important;
}

.top-renewal-wrap .tr-mv-news-more:hover::before {
    border-color: #007380;
}

.top-renewal-wrap .tr-mv-news-title-empty {
    font-size: 14px;
    color: #777777;
}
/* デフォルト（PC時） */
.top-renewal-wrap .tr-mv-news-inner.is-pc {
    display: flex; /* PC用を表示 */
}
.top-renewal-wrap .tr-mv-news-inner.is-sp {
    display: none; /* SP用を非表示 */
}

/* レスポンシブ：MV (947px以下でスマホ用の縦長レイアウトに最適化) */
@media (max-width: 947px) {
    .top-renewal-wrap .tr-mv {
        height: calc(100vh - 50px);
    }
    @media (max-width: 947px) {
        .top-renewal-wrap .tr-mv-catch {
            position: relative; /* absolute の解除 */
            top: 49%;
            width: 100%; /* または 100% などデザインに合わせて */
            height: auto;
            z-index: 1000;
            display: flex; /* flex の解除（通常ブロックに戻す場合） */
            align-items: normal;
            justify-content: end;
            padding-right: 6%; /* パディング解除 */
        }
    }
    .top-renewal-wrap .tr-mv-ttl {
        font-size: 30px;
        /* 行間を広げて影の重なりを防ぐ */
        line-height: 1.6;

        /* 文字だけに影を適用（枠線の影を打ち消す） */
        box-shadow: none !important;
        text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
    }
    /* 表示切り替え */
    .top-renewal-wrap .tr-mv-news-inner.is-pc {
        display: none !important; /* PC用を非表示 */
    }
    .top-renewal-wrap .tr-mv-news-inner.is-sp {
        display: block !important; /* SP用を表示 */
        padding: 20px; /* 中の余白（デザインに合わせて調整） */
    }

    /* SP用：バー自体の配置（中央寄せ・下から26px） */
    .top-renewal-wrap .tr-mv-news-bar {
        bottom: 26px;
        width: 84%;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    /* SP用：日付エリア（1行目） */
    .top-renewal-wrap .tr-mv-news-inner.is-sp .tr-mv-news-date {
        display: block;
        margin-bottom: 8px;
    }

    /* SP用：タイトルエリア（2行目） */
    .top-renewal-wrap .tr-mv-news-inner.is-sp .tr-mv-news-title {
        display: block;
        width: 100%;
        margin-bottom: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* SP用：READ MOREエリア（3行目・右寄せ） */
    .top-renewal-wrap .tr-mv-news-inner.is-sp .tr-mv-news-sp-bottom {
        display: flex;
        justify-content: flex-end; /* 3行目の中で右寄せ */
    }

    .top-renewal-wrap .tr-mv-news-inner.is-sp .tr-mv-news-more {
        margin-left: 0;
    }
}

/* ==========================================================================
   B. ABOUT US 私たちの強み (tr-about)
   ========================================================================== */
.top-renewal-wrap .tr-about {
    background-color: #faf8f7;
}

.top-renewal-wrap .tr-about-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 44px;
}

.top-renewal-wrap .tr-about-content {
    flex: 1;
    max-width: 48%;
}

.top-renewal-wrap .tr-about-lead {
    font-size: 20px;
    font-weight: 300;
    color: #595757;
    line-height: 1.5;
    margin: 26px 0 26px 0;
    letter-spacing: 0.064em;
    line-height: calc(32 / 20);

}

.top-renewal-wrap .tr-about-text {
    font-size: 14px;
    color: #595757;
    line-height: 1.8;
    margin: 0 0 64px 0;
}

/* 右側ビジュアルエリア */
.top-renewal-wrap .tr-about-visual {
    flex: 1;
    max-width: 48%;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.top-renewal-wrap .tr-about-img {
    width: 100%;
    overflow: hidden;
}

.top-renewal-wrap .tr-about-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 認証ロゴボックス（親要素） */
.top-renewal-wrap .tr-cert-box {
    display: flex; /* 横並びにする */
    align-items: end; /* 上下中央揃え */
    gap: 26px; /* ロゴ群とテキストの間隔 */
}

.top-renewal-wrap .tr-cert-logos {
    display: flex;
    gap: 8px;
    flex-shrink: 0; /* ロゴ側を潰さない */
}

.top-renewal-wrap .tr-cert-img {
    object-fit: contain;
    display: block;
}

.top-renewal-wrap .tr-cert-text {
    flex: 1; /* 余った幅をテキストが使う */
    min-width: 0; /* 100%超えのはみ出しを防ぐ */
    font-size: 10px;
    color: #787777;
    line-height: 1.5;
    font-weight: 500;
}
.iso {
    width: 155px;
}
.api {
    width: 40px;
}

/* レスポンシブ：ABOUT */
@media (max-width: 947px) {
    .top-renewal-wrap .tr-about-inner {
        flex-direction: column;
        gap: 0px;
    }
    .top-renewal-wrap .tr-about-content {
        max-width: 100%;
    }
    .top-renewal-wrap .tr-about-lead {
        font-size: 18px;
    }
    .top-renewal-wrap .tr-about-visual {
        max-width: 100%;
    }
    .top-renewal-wrap .tr-cert-box {
        gap: 17px;
    }
    .top-renewal-wrap .tr-about-lead {
        font-size: 18px;
        text-align: center;
        line-height: calc(28 / 18);
    }
    .top-renewal-wrap .tr-about-text {
        font-size: 14px !important;
        color: #595757;
        line-height: calc(22 / 14);
        margin: 0 0 26px 0;
    }
    .top-renewal-wrap .tr-about-visual {
        gap: 19px;
    }
    .iso {
        width: 107px;
    }
    .api {
        width: 27px;
    }
    .top-renewal-wrap .tr-cert-text {
        font-size: 7px;
    }
}

/* ==========================================================================
   C. TECHNOLOGY 私たちのものづくり (tr-tech)
   ========================================================================== */
.top-renewal-wrap .tr-tech {
    background-color: #f9f9f9;
}

/* 動画レスポンシブコンテナ */
.top-renewal-wrap .tr-video-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.top-renewal-wrap .tr-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* カルーセルスライダー */
.top-renewal-wrap .tr-carousel-container {
    position: relative;
    margin: 26px 0 38px;
    padding: 0 45px; /* ボタン配置用の左右パディング */
}

.top-renewal-wrap .tr-carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
}

.top-renewal-wrap .tr-carousel-track {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    transition: transform 0.4s ease-in-out;
}

.top-renewal-wrap .tr-carousel-slide {
    flex: 0 0 33.333%; /* PC: 3枚見せ */
    padding: 0 13px;
    box-sizing: border-box;
}

.top-renewal-wrap .tr-carousel-card {
    overflow: hidden;
    height: 100%;
}

.top-renewal-wrap .tr-carousel-img {
    width: 100%;
    aspect-ratio: 260 / 126; /* または aspect-ratio: 2.063; */
    overflow: hidden;
}

.top-renewal-wrap .tr-carousel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-renewal-wrap .tr-carousel-card-ttl {
    font-size: 14px;
    font-weight: 300;
    color: #595757;
    padding-top: 17px;
    margin: 0;
    line-height: 1.4;
    text-align: center;
}

/* カルーセルナビボタン本体 */
.top-renewal-wrap .tr-carousel-prev,
.top-renewal-wrap .tr-carousel-next {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: transparent;
    border: transparent;
    border-radius: 4px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.top-renewal-wrap .tr-carousel-prev {
    left: 0;
}

.top-renewal-wrap .tr-carousel-next {
    right: 0;
}

/* SVG画像を表示するエリア（24px × 44px） */
.top-renewal-wrap .tr-carousel-prev::after,
.top-renewal-wrap .tr-carousel-next::after {
    content: "";
    display: block;
    width: 24px; /* 横サイズ */
    height: 44px; /* 縦サイズ */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain; /* 24x44にきれいに収める */
    transition: filter 0.3s ease;
}

/* --- 次へ (＞) のSVG指定 --- */
.top-renewal-wrap .tr-carousel-next::after {
    background-image: url("../img/top/arrow-next.svg"); /* SVGファイルのパス */
}

/* --- 前へ (＜) のSVG指定 --- */
.top-renewal-wrap .tr-carousel-prev::after {
    background-image: url("../img/top/arrow-prev.svg"); /* SVGファイルのパス */
}

/* ホバー時に緑色のSVG矢印を「白」に反転 */
.top-renewal-wrap .tr-carousel-prev:hover::after,
.top-renewal-wrap .tr-carousel-next:hover::after {
    opacity: 50%;
}

/* 下部リンクボタンエリア */
.top-renewal-wrap .tr-tech-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* レスポンシブ：TECH & カルーセル */
@media (max-width: 947px) {
    .top-renewal-wrap .tr-carousel-slide {
        flex: 0 0 50%; /* タブレット・中画面: 2枚 */
    }
    .top-renewal-wrap .tr-tech-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .top-renewal-wrap .tr-carousel-slide {
        padding: 0 7px;
    }
    .top-renewal-wrap .tr-tech-btns {
        margin-top: 38px;
    }
}

@media (max-width: 480px) {
    .top-renewal-wrap .tr-carousel-slide {
        flex: 0 0 100%; /* スマホ: 1枚 */
    }
    .top-renewal-wrap .tr-carousel-container {
        padding: 0 35px;
    }
}

/* ==========================================================================
   D. FAQ よくある質問 (tr-faq)
   ========================================================================== */
.top-renewal-wrap .tr-faq {
    background-color: #f9f9f9;
}

.top-renewal-wrap .tr-faq-list {
    display: flex;
    flex-direction: column;
    margin: 38px 0 64px;
}

/* FAQ カード */
.top-renewal-wrap .tr-faq-item {
    background-color: #ffffff;
    border-top: 1px solid #cacaca;
    padding: 22px;
}
.top-renewal-wrap .tr-faq-item:last-child {
    border-bottom: 1px solid #cacaca;
}

.top-renewal-wrap .tr-faq-q {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 14px;
}

.tr-faq-q img {
    width: 14px;
}

.top-renewal-wrap .tr-faq-q-text {
    font-size: 16px;
    font-weight: 500;
    color: #595757;
    line-height: 1;
    letter-spacing: 0.064em;
}

.top-renewal-wrap .tr-faq-a {
    display: flex;
    align-items: flex-start;
    padding-left: 29px; /* アイコン(24px) + ギャップ(15px) 分のインデント */
}

.top-renewal-wrap .tr-faq-a-text {
    font-size: 14px;
    color: #595757;
    line-height: 1.7;
}

.top-renewal-wrap .tr-faq-link {
    color: #00a5a8;
    text-decoration: none;
    font-size: 14px;
    margin-left: 5px;
    transition: color 0.2s ease;
}

.top-renewal-wrap .tr-faq-link:hover {
    color: #007380;
}

/* レスポンシブ：FAQ */
@media (max-width: 947px) {
    .top-renewal-wrap .tr-faq-item {
        padding: 20px;
    }
    .top-renewal-wrap .tr-faq-q-text {
        font-size: 16px;
        line-height: calc(22 / 16);
    }
    .top-renewal-wrap .tr-faq-a {
        padding-left: 0;
        margin-top: 8px;
        padding-left: 27px;
    }
    .top-renewal-wrap .tr-faq-list {
        margin: 0px 0 38px;
    }
    .top-renewal-wrap .tr-faq-q {
        margin-bottom: 18px;
    }
}

/* ==========================================================================
   E. CONTACT お問い合わせ (tr-contact)
   ========================================================================== */
.top-renewal-wrap .tr-contact {
    background-color: #fff;
}

.top-renewal-wrap .tr-contact-grid {
    display: flex;
    gap: 44px;
    margin-top: 40px;
    justify-content: space-between;
}

/* バナーカード */
.top-renewal-wrap .tr-contact-card {
    display: flex;
    gap: 22px;
}

.top-renewal-wrap .tr-contact-img {
    max-width: 189px;
}

.top-renewal-wrap .tr-contact-img img {
    width: 100%;
}

.top-renewal-wrap .tr-contact-content {
    max-width: 240px;
}

.top-renewal-wrap .tr-contact-card-ttl {
    font-size: 18px;
    font-weight: 500;
    color: #00a5a8;
    margin: 0 0 17px 0;
    line-height: 1;
}

.top-renewal-wrap .tr-contact-card-text {
    font-size: 14px;
    color: #000000;
    line-height: 1.7;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.top-renewal-wrap .tr-contact-btn-wrap {
    margin-top: auto;
    text-align: center;
}

.top-renewal-wrap .tr-contact-btn-wrap .tr-btn {
    width: 100%; /* カード内ボタンは全幅 */
    max-width: 240px;
}

/* レスポンシブ：CONTACT */
@media (max-width: 947px) {
    .top-renewal-wrap .tr-contact-grid {
        display: block;
        margin-top: 0;
    }
    .top-renewal-wrap .tr-contact-card {
        max-width: 100%;
        gap: 0;
    }
    .top-renewal-wrap .tr-contact-content {
        max-width: 100%;
    }
    .top-renewal-wrap .tr-contact-content:last-child {
        margin-bottom: 50px;
    }
    .top-renewal-wrap .tr-contact-content img {
        width: 100%;
        margin-bottom: 25px;
    }
    .top-renewal-wrap .tr-contact-card-text {
        font-size: 14px !important;
        margin: 0 0 35px 0;
    }
    .top-renewal-wrap .tr-contact-btn-wrap .tr-btn {
        max-width: 100%;
    }
}

/* ==========================================================================
   F. PAGE TOP BUTTON (tr-pagetop)
   ========================================================================== */
.top-renewal-wrap .tr-pagetop {
    text-align: right;
    background-color: #fff;
    max-width: 950px;
    margin: 0 auto;
    padding-bottom: 38px;
}
.tr-pagetop-link img {
    width: 68px;
}
/* レスポンシブ：CONTACT */
@media (max-width: 947px) {
    .top-renewal-wrap .tr-pagetop {
        padding: 28px 30px 38px;
    }
    .tr-pagetop-link img {
        width: 68px;
    }
}
