/* 基本設定 */
.serviceDetail {
    padding-top: 80px;
    background: #fafafa;
}

/* メインビジュアル */
.serviceMv {
    background: linear-gradient(45deg, #002f4b 0%, #1a4a6e 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.serviceMv::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/grid-pattern.png');
    opacity: 0.1;
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

.serviceMv .container {
    position: relative;
    z-index: 1;
}

.pageTitle {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.pageSubTitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    letter-spacing: 0.2em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

/* サービスコンテンツ */
.serviceContent {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.serviceDescription {
    text-align: center;
    margin-bottom: 80px;
    line-height: 2;
}

.serviceDescription p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.5rem;
}

/* 特徴セクション */
.serviceFeatures {
    margin-bottom: 100px;
}

.serviceFeatures h2 {
    font-size: 2rem;
    color: #002f4b;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.serviceFeatures h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #002f4b;
    margin: 20px auto 0;
}

.serviceFeatures ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0;
}

.serviceFeatures li {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.serviceFeatures li:hover {
    transform: translateY(-5px);
}

.serviceFeatures h3 {
    font-size: 1.3rem;
    color: #002f4b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.serviceFeatures h3::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 20px;
    background: #002f4b;
    margin-right: 15px;
    border-radius: 2px;
}

/* 研修の流れ */
.serviceFlow {
    margin: 100px 0 0 0;
    padding-bottom: 100px;
    position: relative;
    background: #fff;
}

.serviceFlow h2 {
    font-size: 2rem;
    color: #002f4b;
    margin-bottom: 80px;
    text-align: center;
    position: relative;
}

.serviceFlow h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #002f4b;
    margin: 20px auto 0;
}

.serviceFlow ol {
    counter-reset: flow;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.serviceFlow li {
    position: relative;
    background: #fff;
    padding: 60px 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    counter-increment: flow;
}

.flowNum {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #002f4b;
    color: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 47, 75, 0.2);
}

.serviceFlow li h3 {
    font-size: 1.3rem;
    color: #002f4b;
    margin-bottom: 15px;
    text-align: center;
}

.serviceFlow li p {
    color: #666;
    line-height: 1.6;
    text-align: center;
}

/* 料金プラン */
.servicePricing {
    padding: 100px 0;
    background: #fff;
}

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

.pricingItem {
    background: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease;
}

.pricingItem:hover {
    transform: translateY(-5px);
}

.pricingHeader {
    text-align: center;
    margin-bottom: 30px;
}

.pricingHeader h3 {
    font-size: 1.5rem;
    color: #002f4b;
    margin-bottom: 10px;
}

.pricingTarget {
    color: #666;
    font-size: 0.9rem;
}

.pricingPrice {
    text-align: center;
    margin-bottom: 30px;
}

.basePrice {
    font-size: 1rem;
    color: #666;
    text-decoration: line-through;
    display: block;
    margin-bottom: 5px;
}

.perPerson {
    display: block;
    color: #002f4b;
    font-size: 2rem;
    font-weight: bold;
    margin-top: 5px;
}

.pricingFeatures {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.pricingFeatures li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #666;
    text-align: center;
}

.pricingFeatures li:last-child {
    border-bottom: none;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1200px) {
    .pricingTable {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .pricingTable {
        grid-template-columns: 1fr;
    }
}

/* おすすめバッジ */
.serviceCard {
    position: relative;
    display: flex;
    flex-direction: column;
}

.recommendBadge {
    display: inline-block;
    align-self: flex-end;
    margin: -15px -15px 0 0;
    background: #5BC2C1;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(91, 194, 193, 0.3);
}

/* おすすめプランのスタイル */
.featured {
    border: 2px solid #002f4b;
    position: relative;
}

/* プランのボタングループ */
.pricingButtons {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.pricingButton {
    width: 100%;
    margin-top: 10px;
}

.pricingButton.interview {
    background: #5BC2C1;
}

.pricingButton.interview:hover {
    background: #4aa3a2;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .servicePricing {
        padding: 60px 0;
    }
    
    .pricingTable {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .pricingItem {
        padding: 30px;
    }

    .pricingButtons {
        flex-direction: column;
    }
}

/* お問い合わせセクション */
.serviceContact {
    text-align: center;
    padding: 60px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.btn {
    display: inline-block;
    padding: 18px 50px;
    background: #002f4b;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: #004b7a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 47, 75, 0.3);
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .pageTitle {
        font-size: 2.5rem;
    }

    .serviceContent {
        padding: 60px 20px;
    }

    .serviceFeatures ul,
    .serviceFlow ol,
    .pricingTable {
        grid-template-columns: 1fr;
    }

    .serviceContact {
        padding: 40px 20px;
    }
}

/* 強みセクションのスタイル */
.serviceStrengths {
    margin: 0;
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.serviceStrengths h2 {
    font-size: 2rem;
    color: #002f4b;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.serviceStrengths h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #002f4b;
    margin: 20px auto 0;
}

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

.strengthItem {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.strengthItem:hover {
    transform: translateY(-5px);
}

.strengthIcon {
    width: 180px;
    height: 180px;
    margin: 0 auto 40px;
    background: #E5F1FE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.strengthIcon img {
    width: 65%;
    height: 65%;
    object-fit: contain;
}

.strengthItem:hover .strengthIcon {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 47, 75, 0.1);
}

.strengthItem h3 {
    font-size: 1.5rem;
    color: #002f4b;
    margin-bottom: 20px;
}

.strengthList {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
}

.strengthList li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px;
}

.strengthList li:before {
    content: "•";
    color: #002f4b;
    position: absolute;
    left: 0;
}

.strengthDesc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
    .strengthsGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .strengthsGrid {
        grid-template-columns: 1fr;
    }
    
    .serviceStrengths {
        padding: 60px 0;
    }
    
    .strengthItem {
        padding: 30px;
    }
}

/* セクション間の繋がりを作るための疑似要素 */
.serviceFlow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom right, #fff 49%, #f8f9fa 51%);
}

/* セクションタイトルの修正 */
.sectionTitle {
    font-size: 2rem;
    color: #002f4b;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.sectionTitle::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #002f4b;
    margin: 20px auto 0;
}

/* おすすめバッジ */
.recommendBadge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #5BC2C1;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(91, 194, 193, 0.3);
}

/* おすすめプランのスタイル変更 */
.featured {
    border: 2px solid #002f4b !important; /* 青い枠線 */
    position: relative;
}

/* 既存のfeaturedスタイルを削除 */
.pricingItem.featured {
    border: none;
    transform: none;
}

.pricingItem.featured:hover {
    transform: translateY(-5px);
}

/* レスポンシブ対応の修正 */
@media screen and (max-width: 1200px) {
    .pricingTable {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .pricingTable {
        grid-template-columns: 1fr;
    }
}

/* お問い合わせセクションのボタングルー */
.contactButtons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn.interview {
    background: #5BC2C1;
}

.btn.interview:hover {
    background: #4aa3a2;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .contactButtons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .contactButtons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* お問い合わせボタンの修正 */
.btn, .pricingButton {
    display: inline-block;
    min-width: 200px; /* 最小幅を設定 */
    padding: 15px 30px;
    background: #002f4b;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap; /* 追加：テキストの改行を防ぐ */
}

.btn:hover, .pricingButton:hover {
    background: #004b7a;
    transform: translateY(-2px);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .btn, .pricingButton {
        min-width: 250px; /* モバイル時の最小幅を広げる */
        padding: 15px 20px;
    }
}

/* レスポンシブ対応を追加 */
@media screen and (max-width: 768px) {
    .strengthIcon {
        width: 150px;  /* モバイル時は少し小さく */
        height: 150px;
        margin-bottom: 30px;
    }
}
