/* ============================================================
   TOP ページ LP風レスポンシブデザイン
   モバイルファースト
   ============================================================ */

body {
    font-family: "Noto Sans JP", "ヒラギノ角ゴシック", "Hiragino Sans", "メイリオ", sans-serif;
    color: #1a1a1a;
    background: #2c241e !important;
    -webkit-font-smoothing: antialiased;
}

main {
    overflow: hidden;
    background: none !important;
}

/* ベースCSSのsection/divマージン・パディングを全て打ち消す */
main section,
main div.tp_wave,
main .tp_hero,
main .tp_services,
main .tp_performance,
main .tp_message,
main .tp_cta {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ウェーブdivの余白完全除去 */
div.tp_wave {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    display: block !important;
    position: relative;
    z-index: 3;
}

div.tp_wave svg {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ベースCSSのsection font-size:0を打ち消す */
main section {
    font-size: 14px !important;
}

/* ============================================================
   共通パーツ
   ============================================================ */

.tp_container {
    margin: auto;
    padding: 0 20px;
    max-width: 1000px;
}

@media screen and (min-width: 600px) {
    .tp_container { padding: 0 32px; }
}

@media screen and (min-width: 1001px) {
    .tp_container { padding: 0 40px; }
}

.tp_section_label {
    font-family: "Noto Serif JP", serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: #c08b30;
    text-align: center;
    margin-bottom: 8px;
}

@media screen and (min-width: 600px) {
    .tp_section_label { font-size: 13px; }
}

.tp_section_title {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 0;
}

.tp_section_title::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #c08b30;
    margin: 16px auto 0;
}

@media screen and (min-width: 600px) {
    .tp_section_title { font-size: 30px; }
    .tp_section_title::after { width: 50px; }
}

@media screen and (min-width: 1001px) {
    .tp_section_title { font-size: 36px; }
    .tp_section_title::after { width: 60px; }
}

/* ============================================================
   ヒーロー
   ============================================================ */

.tp_hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: visible;
    margin-bottom: 0 !important;
    padding-top: 48px;
    box-sizing: border-box;
}

@media screen and (min-width: 751px) {
    .tp_hero { padding-top: 60px; }
}


.tp_hero_in {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 背景 */
.tp_hero_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 60px);
    z-index: 0;
}

.tp_hero_bg_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.tp_hero_bg_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 105%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    /* animation-duration と animation-delay はインラインで動的に設定 */
    animation-name: heroSlide;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    filter: blur(1.5px) brightness(0.8) saturate(0.85);
    transform-origin: center;
}

/* 1枚目は初期表示 */
.tp_hero_bg_img:first-child {
    opacity: 1;
}

/* テクスチャオーバーレイ（横線スキャンライン） */
.tp_hero_bg_texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.08) 0px,
        rgba(0, 0, 0, 0.08) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: multiply;
}

/*
 * ゆっくりクロスディゾルブ
 * 0%→3%: 3秒かけてじわっとフェードイン
 * 3%→5%: 2秒間しっかり表示
 * 5%→8%: 3秒かけてじわっとフェードアウト
 * 次の画像は5%でフェードイン開始 → 3秒間オーバーラップ
 */
@keyframes heroSlide {
    0% {
        opacity: 0;
        transform: scale(1.06);
    }
    3% {
        opacity: 1;
        transform: scale(1.03);
    }
    5% {
        opacity: 1;
        transform: scale(1.01);
    }
    8% {
        opacity: 0;
        transform: scale(1.0);
    }
    100% {
        opacity: 0;
        transform: scale(1.0);
    }
}

/* コンテンツ */
.tp_hero_content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
}

.tp_hero_label {
    display: inline-block;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 24px;
    margin-bottom: 24px;
}

@media screen and (min-width: 600px) {
    .tp_hero_label { font-size: 16px; padding: 10px 32px; }
}

.tp_hero_title {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.5;
    color: #fff;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.4);
}

@media screen and (min-width: 600px) {
    .tp_hero_title { font-size: 48px; }
}

@media screen and (min-width: 1001px) {
    .tp_hero_title { font-size: 64px; }
}

.tp_hero_line {
    display: block;
    width: 60px;
    height: 1px;
    background: rgba(192, 139, 48, 0.6);
    margin: 24px auto;
}

@media screen and (min-width: 600px) {
    .tp_hero_line { width: 80px; margin: 28px auto; }
}

.tp_hero_sub {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.9;
    color: #fff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

@media screen and (min-width: 600px) {
    .tp_hero_sub { font-size: 18px; }
}

.tp_hero_note {
    display: inline-block;
    margin-top: 24px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #fff;
    background: rgba(192, 139, 48, 0.7);
    padding: 10px 24px;
}

@media screen and (min-width: 600px) {
    .tp_hero_note { font-size: 15px; padding: 12px 32px; }
}

/* スクロール誘導 */
.tp_hero_scroll {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

@media screen and (min-width: 600px) {
    .tp_hero_scroll { bottom: 80px; }
}

@media screen and (min-width: 1001px) {
    .tp_hero_scroll { bottom: 60px; }
}

.tp_hero_scroll:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
}

.tp_hero_scroll_arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
    margin-top: -4px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0% { transform: rotate(45deg) translate(0, 0); opacity: 0; }
    30% { opacity: 1; }
    60% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
    100% { transform: rotate(45deg) translate(4px, 4px); opacity: 0; }
}

/* ============================================================
   代表者メッセージ
   ============================================================ */

.tp_message {
    padding: 64px 0;
    background: #ece5d9;
    position: relative;
    z-index: 3;
}

@media screen and (min-width: 600px) {
    .tp_message { padding: 96px 0; }
}

@media screen and (min-width: 1001px) {
    .tp_message { padding: 120px 0; }
}

.tp_message_lead {
    font-family: "Noto Sans JP", sans-serif;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.8;
    color: #8a6d2e;
    margin-top: 36px;
}

@media screen and (min-width: 600px) {
    .tp_message_lead { font-size: 18px; margin-top: 44px; }
}

.tp_message_body {
    max-width: 640px;
    margin: 36px auto 0;
    padding: 36px 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

@media screen and (min-width: 600px) {
    .tp_message_body { margin-top: 44px; padding-top: 44px; }
}

.tp_message_body p {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 2;
    color: #555;
    text-align: justify !important;
    margin-bottom: 1.2em;
    letter-spacing: 0.02em;
}

@media screen and (min-width: 600px) {
    .tp_message_body p {
        font-size: 16px;
        text-align: justify !important;
    }
}

.tp_message_body p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   サービス
   ============================================================ */

.tp_services {
    padding: 64px 0;
    background: #f5f1eb;
    position: relative;
    z-index: 3;
}

@media screen and (min-width: 600px) {
    .tp_services { padding: 96px 0; }
}

@media screen and (min-width: 1001px) {
    .tp_services { padding: 120px 0; }
}

.tp_services_grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

@media screen and (min-width: 600px) {
    .tp_services_grid {
        flex-direction: row;
        gap: 24px;
        margin-top: 56px;
    }
}

.tp_service_card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px;
    background: #fff;
    border: 1px solid #e8e3da;
    border-radius: 12px;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tp_service_card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #c08b30, #e8b84b);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tp_service_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: #ddd7cd;
}

.tp_service_card:hover::after {
    transform: scaleX(1);
}

@media screen and (min-width: 600px) {
    .tp_service_card { padding: 48px 32px; }
}

.tp_service_card_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #f5f1eb;
    border-radius: 50%;
    color: #c08b30;
    margin-bottom: 20px;
}

.tp_service_card_title {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #2c241e;
    margin-bottom: 12px;
}

@media screen and (min-width: 600px) {
    .tp_service_card_title { font-size: 20px; }
}

.tp_service_card_desc {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    color: #777;
    margin-bottom: 20px;
}

.tp_service_card_link {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #c08b30;
    margin-top: auto;
    transition: letter-spacing 0.3s ease;
}

.tp_service_card:hover .tp_service_card_link {
    letter-spacing: 0.12em;
}

/* ============================================================
   成約事例
   ============================================================ */

.tp_performance {
    padding: 64px 0;
    background: #fff;
    position: relative;
    z-index: 3;
}

@media screen and (min-width: 600px) {
    .tp_performance { padding: 96px 0; }
}

@media screen and (min-width: 1001px) {
    .tp_performance { padding: 120px 0; }
}

.tp_performance_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
}

@media screen and (min-width: 600px) {
    .tp_performance_grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-top: 56px;
    }
}

.tp_performance_item {
    border-radius: 8px;
    overflow: hidden;
    background: #faf8f4;
    border: 1px solid #eee8df;
    transition: all 0.3s ease;
}

.tp_performance_item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.tp_performance_img_wrap {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
}

.tp_performance_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: auto;
    user-select: auto;
    transition: transform 0.4s ease;
}

.tp_performance_item:hover .tp_performance_img {
    transform: scale(1.05);
}

.tp_performance_info {
    padding: 14px 12px;
}

@media screen and (min-width: 600px) {
    .tp_performance_info { padding: 16px; }
}

.tp_performance_date {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #c08b30;
    margin-bottom: 4px;
}

.tp_performance_name {
    font-size: 14px;
    font-weight: 700;
    color: #2c241e;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

@media screen and (min-width: 600px) {
    .tp_performance_name { font-size: 15px; }
}

.tp_performance_area {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    letter-spacing: 0.04em;
}

/* もっと見るボタン */
.tp_section_btn_wrap {
    text-align: center;
    margin-top: 36px;
}

@media screen and (min-width: 600px) {
    .tp_section_btn_wrap { margin-top: 48px; }
}

.tp_section_btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #c08b30;
    background: #fff;
    border: 1.5px solid #c08b30;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tp_section_btn:hover {
    color: #fff;
    background: #c08b30;
}

.tp_section_btn svg {
    transition: transform 0.3s ease;
}

.tp_section_btn:hover svg {
    transform: translateX(4px);
}

/* ============================================================
   CTA
   ============================================================ */

.tp_cta {
    padding: 64px 0;
    background: #2c241e;
    text-align: center;
    border-top: none;
    position: relative;
    z-index: 3;
}

@media screen and (min-width: 600px) {
    .tp_cta { padding: 80px 0; }
}

.tp_cta_title {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 10px;
}

@media screen and (min-width: 600px) {
    .tp_cta_title { font-size: 24px; }
}

.tp_cta_sub {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 32px;
}

.tp_cta_buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

@media screen and (min-width: 600px) {
    .tp_cta_buttons { flex-direction: row; justify-content: center; gap: 16px; }
}

.tp_cta_tel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #d4a24e, #c08b30);
    border: none;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(192, 139, 48, 0.3);
}

.tp_cta_tel:hover {
    background: linear-gradient(135deg, #e0b35e, #d49a3a);
    box-shadow: 0 6px 24px rgba(192, 139, 48, 0.4);
    transform: translateY(-2px);
}

.tp_cta_contact,
.tp_cta_signup {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
}

.tp_cta_contact:hover,
.tp_cta_signup:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.tp_cta_hours {
    margin-top: 20px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   画像のベースCSS上書き
   ============================================================ */

.tp_performance_img,
.tp_hero_bg_img {
    margin-top: 0 !important;
    pointer-events: auto !important;
    user-select: auto !important;
}

/* ============================================================
   スクロールプログレスバー
   ============================================================ */

.tp_scroll_progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #c08b30, #e8b84b);
    z-index: 100000;
    box-shadow: 0 0 8px rgba(232, 184, 75, 0.4);
}

/* ============================================================
   パーティクル Canvas
   ============================================================ */

.tp_particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* ============================================================
   ウェーブ区切り
   ============================================================ */

.tp_wave {
    position: relative;
    margin-top: -1px;
    line-height: 0;
    overflow: hidden;
}

.tp_wave svg {
    display: block !important;
    width: 100% !important;
    height: 60px !important;
}

@media screen and (min-width: 600px) {
    .tp_wave svg { height: 80px !important; }
}

@media screen and (min-width: 1001px) {
    .tp_wave svg { height: 100px !important; }
}

/* ウェーブの背景はSVG内のrectで制御 */

/* ============================================================
   文字バラバラ出現
   ============================================================ */

.tp_split_char {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotateX(90deg);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: calc(var(--char-i) * 0.06s);
}

.tp_hero_title.hero_text_visible .tp_split_char {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.tp_hero_title[data-split] {
    filter: none !important;
}

/* ============================================================
   画像クリップパス ワイプ出現
   ============================================================ */

.tp_performance_img_wrap {
    overflow: hidden;
}

/* ============================================================
   マグネットボタン
   ============================================================ */

.tp_magnet {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* TOPページではフッターCTAを非表示（ページ内CTAと重複するため） */
.footer_cta {
    display: none !important;
}

/* ============================================================
   ローディング画面
   ============================================================ */

.tp_loading_active {
    overflow: hidden !important;
}

#tp_loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: #1a1510;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.8s;
}

#tp_loading.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tp_loading_inner {
    text-align: center;
    width: 200px;
}

.tp_loading_logo {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 32px;
}

.tp_loading_logo.visible {
    opacity: 1;
    transform: scale(1);
}

.tp_loading_logo img {
    height: 48px;
    width: auto;
    filter: brightness(1.1);
}

@media screen and (min-width: 600px) {
    .tp_loading_logo img { height: 56px; }
}

.tp_loading_bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 16px;
}

.tp_loading_bar_fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #c08b30, #e8b84b);
    border-radius: 2px;
}

.tp_loading_text {
    font-family: "Noto Serif JP", serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.3);
    transition: opacity 0.3s ease;
}

.tp_loading_text.done {
    opacity: 0;
}

/* ============================================================
   アニメーション定義
   ============================================================ */

/* ヒーローテキスト順次フェードイン（映画風） */
.tp_hero_label {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.tp_hero_title {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tp_hero_title.hero_text_visible {
    opacity: 1;
}

/* 各行 */
.tp_title_line {
    display: block;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 1.5s cubic-bezier(0.25, 0, 0.25, 1),
                transform 1.5s cubic-bezier(0.25, 0, 0.25, 1);
}

/* 1行目 */
.tp_hero_title.hero_text_visible .tp_title_line[data-line="1"] {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0s;
}

/* 2行目 */
.tp_hero_title.hero_text_visible .tp_title_line[data-line="2"] {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.5s;
}

.tp_hero_line {
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.8s ease, transform 1.2s cubic-bezier(0.25, 0, 0.25, 1);
}

.tp_hero_sub {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
                transform 1s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.tp_hero_note {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.tp_hero_scroll {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 表示状態 */
.tp_hero_label.hero_text_visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* tp_hero_title の visible はSVGアニメーションで制御 */

.tp_hero_line.hero_text_visible {
    opacity: 1;
    transform: scaleX(1);
}

.tp_hero_sub.hero_text_visible {
    opacity: 1;
    transform: translateY(0);
}

.tp_hero_note.hero_text_visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tp_hero_scroll.hero_text_visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* パララックス用 */
.tp_hero_bg {
    will-change: transform;
}

/* スクロール連動：下からフェードイン */
.anim_fade_up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.anim_fade_up.is_visible {
    opacity: 1;
    transform: translateY(0);
}

/* スクロール連動：左からスライドイン */
.anim_fade_left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.anim_fade_left.is_visible {
    opacity: 1;
    transform: translateX(0);
}

/* スクロール連動：右からスライドイン */
.anim_fade_right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.anim_fade_right.is_visible {
    opacity: 1;
    transform: translateX(0);
}

/* スクロール連動：スケールイン */
.anim_fade_scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.anim_fade_scale.is_visible {
    opacity: 1;
    transform: scale(1);
}

/* stagger子要素（時差フェードイン） */
.anim_stagger_item {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.anim_stagger_item.is_visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* メッセージの1行ずつフェードイン */
.tp_message_lead,
.tp_message_body p {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tp_message_lead.is_visible,
.tp_message_body p.is_visible {
    opacity: 1;
    transform: translateY(0);
}

/* セクションタイトル下線 伸長アニメーション */
.anim_line::after {
    transform: scaleX(0);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.anim_line.line_visible::after {
    transform: scaleX(1);
}

/* カウントアップ用 */
.anim_count {
    display: inline;
    font-variant-numeric: tabular-nums;
}

/* サービスカードはCSSホバーのみ */

/* ズームリビール */
.anim_zoom_reveal {
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.anim_zoom_reveal.is_visible {
    opacity: 1;
    transform: scale(1);
}

/* ============================================================
   スマホ専用改行
   ============================================================ */

.sp_only { display: inline; }

@media screen and (min-width: 600px) {
    .sp_only { display: none; }
}

/* ============================================================
   モーション軽減設定の尊重
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .tp_hero_label, .tp_hero_title, .tp_hero_line,
    .tp_hero_sub, .tp_hero_note, .tp_hero_scroll,
    .anim_fade_up, .anim_fade_left, .anim_fade_right,
    .anim_fade_scale, .anim_stagger_item,
    .tp_message_lead, .tp_message_body p,
    .tp_split_char, .tp_performance_img_wrap {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        clip-path: none !important;
        filter: none !important;
    }
    #tp_loading { display: none !important; }
    .tp_particles { display: none !important; }
    .tp_scroll_progress { display: none !important; }
}
