@charset "UTF-8";

/**
 * service/style.css
 */

/*--------------------------------------------------
  Half Order Intro
--------------------------------------------------*/
.half-order-intro {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.intro-badge {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.intro-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.intro-text {
    color: var(--text-sub);
    font-size: 1rem;
    line-height: 1.8;
    text-align: left; /* 左寄せに変更 */
}

/*--------------------------------------------------
  Comparison Table
--------------------------------------------------*/
.plans-comparison-table-wrapper {
    position: relative;
}

.table-scroll-hint {
    display: none;
    font-size: 0.8rem;
    color: var(--text-sub);
    text-align: right;
    margin-bottom: 10px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid #bba;
    border-radius: 20px;
    /* overflow: hidden をやめて個別に角丸をかける */
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.comparison-table th,
.comparison-table td {
    padding: 25px 30px;
    border: 1px solid #d8d3cf;
    text-align: center;
}

/* 四隅の角丸設定 */
.comparison-table tr:first-child th:first-child { border-top-left-radius: 20px; }
.comparison-table tr:first-child th:last-child { border-top-right-radius: 20px; }
.comparison-table tr:last-child th:first-child { border-bottom-left-radius: 20px; }
.comparison-table tr:last-child td:last-child { border-bottom-right-radius: 20px; }

/* ヘッダー周りの線を濃く設定 */
.comparison-table thead th {
    background: #f0ede9;
    font-weight: bold;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    border-bottom: 1px solid #bba;
    border-right: 1px solid #bba;
}

/* ライトプランの見出し色を列と合わせる */
.comparison-table thead th.plan-light {
    background: #fbfaf8;
}

/* 1列目：項目名 */
.comparison-table tbody th {
    background: #f0ede9;
    text-align: left;
    width: 22%;
    font-size: 0.95rem;
    font-weight: bold;
    border-right: 1px solid #bba;
}

/* 縦列の色分け */
.comparison-table td:nth-of-type(1) { background: #fbfaf8; width: 26%; }
.comparison-table td:nth-of-type(2) { background: #fff; width: 26%; }
.comparison-table td:nth-of-type(3) { background: #fffdf9; width: 26%; }

/* スタンダード一番人気（華やかなコーラル系または明るいゴールド） */
.comparison-table thead th.highlighted-sub span {
    display: block;
    background: #f2a0a0; /* 華やかなコーラルピンク */
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 20px;
    width: fit-content;
    margin: 0 auto 5px;
}

/* プレミアム一押し（ゴールド系） */
.comparison-table thead th.plan-premium.highlighted {
    background: #fffdf9 !important;
    border: 1px solid var(--primary-color) !important;
    border-top-right-radius: 20px;
}

.comparison-table thead th.highlighted span {
    display: block;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 20px;
    width: fit-content;
    margin: 0 auto 5px;
}

.comparison-table td.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.4;
}

.annual-info {
    display: block;
    font-size: 0.7rem;
    color: var(--text-sub);
    font-weight: normal;
    margin-top: 5px;
    line-height: 1.3;
}

.price-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-sub);
    text-align: left;
    line-height: 1.6;
}

/*--------------------------------------------------
  Feature Selection List
--------------------------------------------------*/
.feature-selection-list {
    background: var(--bg-cream);
    padding: 30px;
    border-radius: 15px;
    border: 1px dashed var(--primary-color);
}

.list-title {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.flex-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 30px;
}

.flex-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
}

.flex-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.7rem;
    top: 2px;
}

/*--------------------------------------------------
  Full Order CTA
--------------------------------------------------*/
.full-order-cta {
    margin-top: 60px;
    background: var(--text-main);
    color: var(--white);
    padding: 50px;
    border-radius: 20px;
}

.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: left; /* 左寄せ固定 */
}

.cta-text p {
    opacity: 0.8;
    font-size: 0.95rem;
    text-align: left; /* 左寄せ固定 */
}

.cta-btn .btn-sub {
    border-color: var(--white);
    color: var(--white);
}

/*--------------------------------------------------
  Flow Steps
--------------------------------------------------*/
.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.step-item {
    position: relative;
    padding: 30px;
    background: var(--bg-cream);
    border-radius: 15px;
}

.step-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 15px;
}

.step-item h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.step-item p {
    font-size: 0.9rem;
    color: var(--text-sub);
}

/*--------------------------------------------------
  Other Services (Future)
--------------------------------------------------*/
.other-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.other-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.other-card.disabled {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.other-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/*--------------------------------------------------
  Maintenance & Support
--------------------------------------------------*/
.maintenance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.maintenance-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    transition: 0.3s;
}

.maintenance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.m-card-head {
    background: #f0ede9;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.m-card-head h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 0;
}

.m-card-body {
    padding: 30px;
}

.m-desc {
    font-size: 0.95rem;
    color: var(--text-sub);
    margin-bottom: 25px;
    line-height: 1.6;
}

.m-list {
    margin-bottom: 30px;
}

.m-list li {
    position: relative;
    padding-left: 25px;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.m-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.m-price {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: bold;
    text-align: center;
    padding: 10px;
    background: var(--bg-cream);
    border-radius: 10px;
}

.m-note {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-top: 20px;
}

/*--------------------------------------------------
  Responsive
--------------------------------------------------*/

/* 【TB】 1024px 以下 */
@media screen and (max-width: 1024px) {
    .comparison-table th, .comparison-table td { padding: 20px; }
    .flow-steps { grid-template-columns: 1fr 1fr; }
}

/* 【SM】 768px 以下 */
@media screen and (max-width: 768px) {
    .plans-comparison-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -4%;
        padding: 0 4%;
    }
    .table-scroll-hint { display: block; }
    .comparison-table { width: 850px; }
    
    .cta-inner { flex-direction: column; text-align: left; gap: 20px; align-items: flex-start; }
    .full-order-cta { padding: 40px; }

    .flow-steps { grid-template-columns: 1fr; } /* 1列に変更 */
    
    .maintenance-grid { grid-template-columns: 1fr; } /* 1列に変更 */

    #other-services .section-intro { text-align: left; }
    .other-grid { grid-template-columns: 1fr; justify-items: center; }
    .other-card { max-width: 350px; text-align: center; padding: 30px; }
    .other-card p { text-align: left; } /* 見出し以外は左寄せ */
}

/* 【SP】 479px 以下 */
@media screen and (max-width: 479px) {
    .full-order-cta { padding: 40px 20px; }
    .comparison-table { width: 850px; }
}
