/* ========================================
   Content Sections Styles
   - Terms, Privacy, Disclaimer, License
   ======================================== */

/* 戻るボタンコンテナ（上：左寄せ） */
.go-to-home-container-top {
    text-align: left;
    margin-bottom: 2rem;
}

/* section内のgo-to-home-container-topも左寄せを保証（詳細度を上げる） */
section .go-to-home-container-top,
section > .go-to-home-container-top {
    text-align: left;
}

.go-to-home-container-top .go-to-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 戻るボタンコンテナ（下：中央） */
.go-to-home-container-bottom {
    text-align: center;
    margin-top: 2rem;
}

.go-to-home-container-bottom .go-to-home {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
}

.go-to-home-container-bottom .go-to-home:last-child {
    margin-bottom: 0;
}

/* 戻るボタン */
.go-to-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 0 2.25rem; /* 1.5倍: 1.5rem * 1.5 = 2.25rem */
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    text-decoration: none;
}

.go-to-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    text-decoration: none;
    color: white;
}

.go-to-home:disabled,
.go-to-home[disabled] {
    background: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

/* .go-to-home内のspanのスタイルを追加 */
.go-to-home span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

@media (max-width: 640px) {
    .go-to-home {
        height: 40px;
        min-height: 40px;
        max-height: 40px;
        font-size: 0.9rem;
        padding: 0 1.875rem; /* 1.5倍: 1.25rem * 1.5 = 1.875rem */
    }

    .go-to-home-container-bottom .go-to-home {
        width: 180px;
        min-width: 180px;
        max-width: 180px;
    }
}

/* セクションコンテナ（section） */
section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    line-height: 1.8;
    color: #4a5568;
}

@media (max-width: 768px) {
    section {
        padding: 1.5rem;
    }
}

/* ========================================
   インライン広告（安全配置）
   ======================================== */
.adsense-container-inline {
    width: 100%;
    max-width: 728px;
    margin: 3rem auto;
    padding: 1rem 0;
    text-align: center;
}

.adsense-placeholder {
    background-color: #f3f4f6;
    border: 1px dashed #d1d5db;
    border-radius: 4px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 728px;
}

.adsense-placeholder-content {
    padding: 1rem;
}

.adsense-placeholder-text {
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
    margin: 0;
}

@media (max-width: 640px) {
    .adsense-container-inline {
        margin: 2rem auto;
        padding: 0.5rem 1rem;
    }
}

@media (min-width: 641px) {
    .adsense-placeholder {
        min-height: 250px;
    }
}

/* リスト */
section ol,
section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

/* ========================================
   Caution Page Styles
   ======================================== */

.caution-icon {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* 中央揃えのセクション */
section.text-center {
    text-align: center;
}

/* 警告ページの見出し（警告マークと本文の中央に配置） */
section.text-center h1 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .caution-icon {
        font-size: 3rem;
    }
}

@media (min-width: 1264px) {
    .caution-icon {
        font-size: 5rem;
    }
}

/* ========================================
   マニュアルページの画像
   ======================================== */
.manual-figure {
    margin: 1.25rem 0;
    text-align: center;
}

.manual-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.manual-figure figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.manual-figures-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 1.25rem 0;
}

.manual-figures-group .manual-figure {
    margin: 0;
}

/* 更新作業告知ボックス（白枠） */
.renewal-notice-box {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.renewal-notice-box p {
    margin: 0;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.6;
}

.renewal-notice-box p + p {
    margin-top: 0.5rem;
}

/* レイアウト上でメインコンテナ外に出す場合のラッパー（ホーム用） */
.renewal-notice-wrapper {
    width: 95%;
    max-width: 1200px;
    margin: 1rem auto 0 auto;
    box-sizing: border-box;
}

@media (min-width: 1264px) {
    .renewal-notice-wrapper {
        width: 1200px;
        max-width: 1200px;
    }
}

