@charset "UTF-8";
/* ご利用方法のコンテナ */
.usage-flow {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

/* 各ステップのブロック */
.usage-step {
    flex: 1;
    min-width: 200px;
    background-color: #ffffff;
    border: 2px solid #d6e9e5;
    border-radius: 32px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.usage-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 50;
}

/* ステップ番号 */
.usage-step::before {
    content: attr(data-step);
    display: block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    margin: 0 auto 15px;
    background-color: #007a88;
    color: white;
    font-size: 2.4rem;
    font-weight: bold;
    border-radius: 50%;
}

/* ステップのタイトル */
.usage-step h5 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    padding: 0;
    line-height: 1.4;
}

/* ステップの説明文 */
.usage-step p {
    font-size: 1.6rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    padding: 0 5px;
}

/* 矢印（ステップ間） */
.usage-step::after {
    content: '→';
    position: absolute;
    right: -35px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: #94c2b7;
    z-index: 100;
}

.usage-step:last-child::after {
    content: '';
}

/* 1080px以下：縦並び */
@media screen and (max-width: 1080px) {
    .usage-flow {
        flex-direction: column;
        gap: 30px;
    }
    
    .usage-step {
        min-width: 100%;
    }
    
    /* 矢印を下向きに変更 */
    .usage-step::after {
        content: '↓';
        right: auto;
        top: auto;
        bottom: -42px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .usage-step:last-child::after {
        content: '';
    }
}

/* さらに小さい画面用 */
@media screen and (max-width: 768px) {
    .usage-step {
        padding: 20px 15px;
    }
    
    .usage-step::before {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 20px;
    }
    
    .usage-step h5 {
        font-size: 16px;
    }
    
    .usage-step p {
        font-size: 13px;
    }
}

/* ダウンロードリンクのラッパー */
.download-link-wrapper {
    position: relative;
    display: inline-block;
}

/* ダウンロードリンクのスタイル */
.download-link {
    color: #4a90e2;
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
}

.download-link:hover {
    color: #2563eb;
}

/* 吹き出しのスタイル */
.download-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    border: 2px solid #4a90e2;
    border-radius: 15px;
    padding: 12px 20px;
    white-space: nowrap;
    font-size: 14px;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

/* 吹き出しの三角形（下向き） */
.download-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: #4a90e2 transparent transparent transparent;
}

/* 吹き出しの三角形の内側（白い部分） */
.download-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
    z-index: 1;
    margin-top: -2px;
}

/* ホバー時に吹き出しを表示 */
.download-link-wrapper:hover .download-tooltip {
    visibility: visible;
    opacity: 1;
}

/* タッチデバイス用：タップで表示 */
@media (hover: none) {
    .download-link-wrapper:active .download-tooltip {
        visibility: visible;
        opacity: 1;
    }
}

/* スマホで吹き出しが画面外に出ないように調整 */
@media screen and (max-width: 768px) {
    .download-tooltip {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: 200px;
        white-space: normal;
        text-align: center;
    }
}