.page-hero {
    background: #f5f5f5;
    padding: 100px 20px;
    text-align: center;
}

.page-hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-hero p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    color: #666;
}

.service-section {
    padding: 80px 20px;
}

.service-section.gray {
    background: #f8f8f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.service-section h2 {
    font-size: 42px;
    margin-bottom: 40px;
    text-align: center;
    color: #0f5b6b;
}

.service-section p {
    line-height: 2.3;
    text-align: left;
    max-width: 900px;
    margin: 0 auto 25px;
}

.service-image {
    margin-bottom: 40px;
}

.service-cards {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    width: 100%;
    max-width: none;
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}


.service-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 15px;
}

.service-card h3 {
    color: #0d596d;
    text-align: center;
    margin: 30px 0;
    font-size: 36px;
}

.service-card ul {
    width: fit-content;
    margin: 0 auto;
}

.service-card li {
    margin-bottom: 15px;
    font-size: 20px;
}

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

html {
    scroll-behavior: smooth;
}

.service-image img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-card h3 {
    padding: 20px 20px 10px;
    font-size: 22px;
}

.service-card ul {
    padding: 0 20px 20px;
}

.service-card li {
    margin-bottom: 10px;
}

.check-list {
    max-width: 700px;
    margin: auto;
}

.check-list p {
    font-size: 20px;
    padding: 15px 20px;
    margin-bottom: 15px;
    background: #f8f8f8;
    border-left: 5px solid #333;
}

.strength-list {
    max-width: 700px;
    margin: auto;
}

.strength-list li {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 6px;
}

.cta-section {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    margin-bottom: 20px;
    font-size: 32px;
}

.cta-section p {
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    transition: .3s;
}

.btn.primary {
    background: #fff;
    color: #333;
    font-weight: bold;
}

.btn.primary:hover {
    opacity: .8;
}

html{
    scroll-behavior:smooth;
}

.detail-section {
    max-width: 1000px;
    margin: 120px auto;
    padding: 0 20px;
}

.detail-section.reverse{
    flex-direction:row-reverse;
}

.detail-image {
    width: 100%;
    margin-bottom: 40px;
}

.detail-image img {
    width: 90%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
}

.detail-content {
    max-width: 900px;
    margin: 0 auto;
}

.detail-content span{
    color:#0f5b6b;
    font-size:14px;
    letter-spacing:2px;
    text-transform:uppercase;
    font-weight:700;
}

.detail-content h2{
    font-size:42px;
    margin:10px 0 30px;
    color:#222;
}

.detail-content p{
    line-height:2;
    margin-bottom:20px;
}

.detail-content ul{
    margin-top:30px;
}

.detail-content li{
    margin-bottom:12px;
}

.price-section {
    max-width: 1000px;
    margin: 80px auto;
}

.price-section h2 {
    text-align: left;
    font-size: 34px;
    color: #222;
    margin-bottom: 40px;
    position: relative;
}

.price-section h2::after {
    margin: 18px 0 0;
}

.price-table-wrap {
    margin-top: 50px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
    overflow: hidden;
    border-radius: 15px;
    border: 2px solid #0f5b6b;
}

.price-table th {
    background: #c9a86a;
    color: #fff;
    padding: 20px;
    font-size: 18px;
}

.price-table th,
.price-table td {
    border: 2px solid #0f5b6b !important;
    padding: 20px;
    text-align: center;
    font-size: 18px;
    white-space: nowrap;
}

.price-table tr:nth-child(even) {
    background: #f8f8f8;
}

.price-table tr:hover {
    background: #eef7f9;
}

.price-note {
    text-align: left;
    margin-top: 20px;
    color: #777;
    font-size: 15px;
    line-height: 1.8;
}

.risk-box,
.service-box {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
    margin-top: 30px;
}

.risk-box h3,
.service-box h3 {
    color: #0f5b6b;
    margin-bottom: 20px;
    font-size: 28px;
}

.risk-box ul,
.service-box ul {
    padding-left: 20px;
}

.risk-box li,
.service-box li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.price-table-wrap h3 {
    font-size: 20px;
    color: #222;
    margin-bottom: 30px;
    font-weight: 700;
}

@media (max-width: 768px) {

    .page-hero {
        padding: 70px 20px;
    }

    .page-hero h1 {
        font-size: 30px;
    }

    .service-section {
        padding: 60px 20px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-section h2 {
        font-size: 26px;
    }

    .check-list p {
        font-size: 16px;
    }


        @media(max-width:768px) {
    
            .detail-section,
            .detail-section.reverse {
                flex-direction: column;
            }
    
            .detail-content h2 {
                font-size: 30px;
            }
    
        }

            .price-table th,
            .price-table td {
                padding: 12px 8px;
                font-size: 16px;
        }
        
        .price-table th {
            font-size: 18px;
            }
        }


@media(max-width:768px) {

    .price-table {
        border-radius: 15px;
        overflow: hidden;
    }

    .price-table th {
        background: #c9a86a;
        font-size: 16px;
    }

    .price-table td {
        font-size: 15px;
    }

}

/* =========================
   高級感・スマホ調整
========================= */

/* 英語見出し */
.detail-content span,
.price-section span {
    display: inline-block;
    color: #0f5b6b;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* 詳細見出し */
.detail-content h2,
.price-section h2 {
    font-size: 40px;
    color: #222;
    line-height: 1.5;
    margin-bottom: 35px;
    position: relative;
}

.detail-content h2::after,
.price-section h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #c9a86a;
    margin-top: 18px;
}

/* 本文左揃え */
.detail-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: left;
}

.detail-content p {
    line-height: 2.3;
    margin-bottom: 26px;
    font-size: 17px;
}

/* 料金表 */
.price-section {
    max-width: 1000px;
    margin: 90px auto;
    padding: 0 20px;
}

.price-section h2 {
    text-align: center;
}

.price-section h2::after {
    margin: 18px auto 0;
}

.price-table {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
}

.price-table th {
    background: #c9a86a;
    color: #fff;
    font-weight: 800;
}

.price-table th,
.price-table td {
    white-space: nowrap;
}

.price-note {
    text-align: center;
    margin-top: 20px;
    color: #777;
    font-size: 15px;
    line-height: 1.8;
}

/* スマホ */
@media(max-width:768px) {

    .detail-section {
        margin: 70px auto;
    }

    .detail-content h2,
    .price-section h2 {
        font-size: 28px;
        line-height: 1.5;
    }

    .detail-content p {
        font-size: 15px;
        line-height: 2.1;
    }

    .price-section {
        margin: 60px auto;
        padding: 0 14px;
    }

    .price-table-wrap {
        margin-top: 30px;
    }

    .price-table th,
    .price-table td {
        padding: 12px 8px;
        font-size: 14px;
        white-space: nowrap;
    }

    .price-table th {
        font-size: 15px;
    }

    .price-note {
        font-size: 14px;
        line-height: 1.9;
    }

    .risk-box,
    .service-box {
        padding: 22px;
    }

    .risk-box h3,
    .service-box h3 {
        font-size: 22px;
    }
}

@media(min-width:769px) {
    .service-cards {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .service-cards .service-card {
        width: auto;
        max-width: none;
    }
}



@media(min-width:769px) {
    .service-cards {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }

    .service-cards .service-card {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        padding: 35px;
    }

    .service-cards .service-card img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        border-radius: 16px;
    }

    .service-cards .service-card h3 {
        font-size: 30px;
        text-align: center;
        padding: 0;
        margin: 32px 0 24px;
    }

    .service-cards .service-card ul {
        width: fit-content;
        margin: 0 auto;
        padding: 0;
    }

    .service-cards .service-card li {
        font-size: 19px;
        margin-bottom: 14px;
    }
}

@media(max-width:768px) {

    .service-cards {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 28px;
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
    }

    .service-cards .service-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .service-cards .service-card img {
        width: 100%;
        height: 240px;
        object-fit: cover;
    }
}

.service-note {
    max-width: 1000px;
    margin: 40px auto 0;
    text-align: left;
}

.service-note p {
    text-align: left;
    line-height: 2;
    margin-bottom: 10px;
}

/* =========================
   詳細ページ本文レイアウト調整
========================= */

/* 詳細全体 */
.detail-section {
    max-width: 1000px;
    margin: 100px auto;
    padding: 0 20px;
}

.detail-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* 英語見出しとタイトル */
.detail-content>span {
    display: block;
    color: #0f5b6b;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: left;
}

.detail-content>h2 {
    font-size: 42px;
    color: #222;
    line-height: 1.5;
    margin: 0 0 32px;
    text-align: left;
}

.detail-content>h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #c9a86a;
    margin-top: 18px;
}

/* 画像 */
.detail-image {
    width: 100%;
    margin: 0 0 40px;
    text-align: center;
}

.detail-image img {
    width: 100%;
    max-width: 900px;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    margin: 0 auto;
}

/* 本文だけ左揃え */
.detail-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.detail-text p {
    text-align: left;
    line-height: 2.2;
    margin: 0 0 24px;
    font-size: 17px;
}

.detail-text ul {
    margin: 24px 0 0;
    padding-left: 1.5em;
    text-align: left;
}

.detail-text li {
    list-style: disc;
    text-align: left;
    line-height: 2;
    margin-bottom: 10px;
    font-size: 17px;
}

.detail-text li::marker {
    color: #333;
}

/* リスク・管理内容のボックス */
.risk-box,
.service-box {
    max-width: 900px;
    margin: 40px auto 0;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
    text-align: left;
}

.risk-box h3,
.service-box h3 {
    color: #0f5b6b;
    margin-bottom: 20px;
    font-size: 28px;
    text-align: left;
}

.risk-box ul,
.service-box ul {
    margin: 0;
    padding-left: 1.5em;
}

.risk-box li,
.service-box li {
    list-style: disc;
    line-height: 2;
    margin-bottom: 10px;
    font-size: 17px;
}

/* 料金ブロック */
.price-section {
    max-width: 1000px;
    margin: 70px auto 0;
    padding: 0;
}

.price-table-wrap {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.price-table-wrap h3 {
    font-size: 28px;
    color: #222;
    margin-bottom: 24px;
    font-weight: 700;
    text-align: left;
}

.price-note {
    text-align: left;
    margin-top: 20px;
    color: #666;
    font-size: 16px;
    line-height: 2;
}

/* スマホ */
@media (max-width: 768px) {
    .detail-section {
        margin: 70px auto;
        padding: 0 16px;
    }

    .detail-content>span {
        font-size: 13px;
        letter-spacing: 3px;
    }

    .detail-content>h2 {
        font-size: 30px;
        margin-bottom: 24px;
    }

    .detail-image {
        margin-bottom: 28px;
    }

    .detail-image img {
        width: 100%;
        max-width: 100%;
        border-radius: 14px;
    }

    .detail-text p,
    .detail-text li,
    .risk-box li,
    .service-box li {
        font-size: 15px;
        line-height: 1.9;
    }

    .risk-box,
    .service-box {
        padding: 22px;
        margin-top: 28px;
    }

    .risk-box h3,
    .service-box h3,
    .price-table-wrap h3 {
        font-size: 22px;
    }

    .price-section {
        margin-top: 50px;
    }

    .price-note {
        font-size: 14px;
        line-height: 1.9;
    }
}