@charset "utf-8";

/* --- ベース設定（既存との競合回避） --- */
.tst-main-content {
    background-color: #F9F6D2; /* PC版と同じ背景色 */
    position: relative;
    overflow-x: hidden;
    font-family: 'Zen Maru Gothic', sans-serif;
    padding-bottom: 50px;
}

.tst-container {
    width: 100%;
    padding: 20px 15px;
    box-sizing: border-box;
}

/* ============================================================
   1. 写真エリア（Canvas相当）
   ============================================================ */
.tst-visual-area {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* スマホで見栄えの良い縦長 */
    margin-bottom: 20px;
    z-index: 10;
}

.tst-img-box {
    width: 100%;
    height: 100%;
    border-radius: 40px; /* PC版の丸みを継承 */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background: #fff;
}

/* 💡 PC版のフェードアニメーションを移植 */
.tst-img-box img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: tstFadeSlider 12s infinite;
}

.tst-img-box img:nth-child(1) { animation-delay: 0s; }
.tst-img-box img:nth-child(2) { animation-delay: 4s; }
.tst-img-box img:nth-child(3) { animation-delay: 8s; }

@keyframes tstFadeSlider {
    0% { opacity: 0; transform: scale(1.1); }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; }
    100% { opacity: 0; }
}

/* ============================================================
   2. 重なるメッセージ & ボタン
   ============================================================ */
.tst-overlay-content {
    position: absolute;
    bottom: 30px; /* 写真の枠内、下から30px */
    left: 20px;   /* 写真の枠内、左から20px */
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

/* 縦書きメッセージ */
.tst-message {
    display: flex;
    flex-direction: row-reverse;
    gap: 12px;
}

.tst-message span {
    writing-mode: vertical-rl;
    display: inline-block;
    background: rgba(255, 255, 255, 0.7); /* PC版の雰囲気に合わせた透過白 */
    padding: 12px 8px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 900;
    color: #333;
    letter-spacing: 0.2em;
    line-height: 1.2;
}

/* ボタン設定（PC版のホバーエフェクトと立体感をスマホ用に調整） */
.tst-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tst-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 156px;
    height: 52px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 災害時ボタン */
.tst-btn-white {
    background-color: #fff;
    border: 2px solid #333;
    color: #333;
}
.tst-btn-white:active { background-color: #f0f0f0; transform: scale(0.95); }

/* お問い合わせボタン */
.tst-btn-green {
    background-color: #08A66C;
    color: #fff;
    box-shadow: 0 4px 0 #057a4f;
}
.tst-btn-green:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #057a4f;
}

/* ============================================================
   3. おしらせボックス（写真の下）
   ============================================================ */
.tst-news-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    padding: 20px 15px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tst-news-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 15px;
}

/* 💡 PC版のカクカクアニメーションを移植 */
.tst-news-icon {
    width: 28px;
    height: auto;
    animation: tst-kaku 1s infinite steps(2);
    transform-origin: center center;
}

@keyframes tst-kaku {
    0% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
    100% { transform: rotate(-10deg); }
}

.tst-news-header h2 {
    font-size: 16px;
    font-weight: 900;
    color: #333;
    margin: 0;
}

.tst-news-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    padding: 12px 0;
    border-bottom: 1px dotted #bbb;
}

.tst-date {
    font-size: 12px;
    font-weight: 900;
    color: #666;
    min-width: 75px;
}

.tst-title {
    font-size: 13px;
    font-weight: 700;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}