/*
Theme Name: I's TOKYO
Description: Warranty Page Styles
*/

/* --- Container Reset --- */
.page-template-template-warranty #content { padding: 0 !important; }
.page-template-template-warranty #inner-content { max-width: none !important; width: 100% !important; padding: 0 !important; }

.wr-main {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    color: #333;
    line-height: 1.8;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* --- Block & Inner Structure --- */
.wr-hero-inner,
.wr-plans-inner,
.wr-benefits-inner,
.wr-video-inner,
.wr-cta-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Section Title --- */
.wr-section-title {
    font-size: 36px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
    color: #111;
    line-height: 1.3;
}

.wr-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    background: #e70314;
}

/* --- 1. Hero --- */
.wr-hero-block {
    padding: 100px 0;
    background: linear-gradient(135deg, #e70314 0%, #a3020e 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wr-hero-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 0;
}

.wr-hero-inner {
    position: relative;
    z-index: 1;
}

.wr-hero-label {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    opacity: 0.9;
}

.wr-hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 30px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.wr-hero-lead {
    font-size: 18px;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.9;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

/* --- 2. Plans --- */
.wr-plans-block {
    padding: 100px 0;
    background: #f5f5f5;
}

.wr-plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.wr-plan-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 6px solid #ccc;
}

/* プランカラー */
.wr-bronze { border-top-color: #cd7f32; }
.wr-silver { border-top-color: #9e9e9e; }
.wr-gold   { border-top-color: #d4a017; }
.wr-platinum { border-top-color: #6a6a8a; }

.wr-plan-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wr-plan-name {
    font-size: 22px;
    font-weight: 900;
    color: #111;
}

.wr-plan-badge {
    font-size: 11px;
    font-weight: 900;
    background: #555;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.wr-badge-recommend {
    background: #e70314;
}

.wr-plan-parts {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.wr-parts-num {
    font-family: "Oswald", sans-serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    color: #e70314;
}

.wr-parts-label {
    font-size: 14px;
    font-weight: 700;
    color: #666;
}

.wr-plan-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    flex: 1;
}

/* 注釈 */
.wr-footnotes {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wr-footnotes li {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
}

.wr-footnotes sup {
    color: #e70314;
    font-weight: 900;
}

/* Section Buttons (共通) */
.wr-section-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* --- 3. Benefits --- */
.wr-benefits-block {
    padding: 100px 0;
    background: #fff;
}

.wr-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.wr-benefit-item {
    text-align: center;
    padding: 40px 24px;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.wr-benefit-icon {
    font-size: 36px;
    color: #e70314;
    margin-bottom: 20px;
}

.wr-benefit-title {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 12px;
    color: #111;
}

.wr-benefit-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

/* --- 4. Video --- */
.wr-video-block {
    padding: 100px 0;
    background: linear-gradient(135deg, #e70314 0%, #a3020e 100%);
}

.wr-section-title--white {
    color: #fff;
}

.wr-section-title--white::after {
    background: #fff;
}

.wr-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 36px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.wr-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.wr-video-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.9;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* --- 5. CTA --- */
.wr-cta-block {
    padding: 100px 20px;
    background: #111;
    text-align: center;
    color: #fff;
}

.wr-cta-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 20px;
}

.wr-cta-lead {
    font-size: 16px;
    line-height: 1.9;
    opacity: 0.85;
    margin-bottom: 40px;
}

.wr-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-wr-external {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #111 !important;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 16px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-wr-external:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.btn-wr-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #06c755;
    color: #fff !important;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 16px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.4);
}

.btn-wr-line:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* --- Responsive (max-width: 639px) --- */
@media screen and (max-width: 639px) {
    .wr-hero-title { font-size: clamp(32px, 9vw, 44px); }
    .wr-hero-lead { font-size: 15px; }
    .wr-section-title { font-size: clamp(22px, 6vw, 30px); }
    .wr-cta-title { font-size: clamp(20px, 6vw, 28px); }

    .wr-plans-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .wr-plan-card { padding: 20px 16px; }
    .wr-parts-num { font-size: 40px; }

    .wr-benefits-grid { grid-template-columns: 1fr; gap: 20px; }

    .wr-section-buttons { flex-direction: column; align-items: center; }
    .wr-cta-buttons { flex-direction: column; align-items: center; }
    .btn-wr-external, .btn-wr-line { width: 100%; max-width: 340px; justify-content: center; box-sizing: border-box; }
}
