﻿:root {
    --bg: #faf4ea;
    --surface: #fff;
    --primary: #ed7a0c;
    --primary-dark: #c35b09;
    --gray: #555;
    --text: #2d2d2d;
    --border: #e6d3b4;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

.common-page_wrap * {
    font-family: "Noto Sans JP", "Lato", sans-serif;
}

.common-page_wrap {
    padding: 50px 0;
    background: #fff;
}

.wrap {
    width: 890px;
    max-width: 100%;
    margin: 0 auto;
}

.page_chukai_cont {
    background: #fff;
}

.page_h3,
.ryokin-section-head h3 {
    font-weight: 700;
    font-size: 18px;
    margin: 40px 0 30px;
    padding-bottom: 0.4em;
    border-bottom: 4px solid #f7b52a;
    display: flex;
    align-items: center;
    gap: 1em;
}

h1.page_h1 {
    font-weight: 700;
    font-size: 22px;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    margin-bottom: 40px;
    height: auto;
    text-shadow: none;
}

.ryokin-wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px;
}

.ryokin-header {
    padding: 18px 0;
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.header-logo strong {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.header-logo span {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
}

.header-contact p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ryokin-header nav {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--gray);
    font-size: 0.95rem;
}

.ryokin-header nav a {
    color: var(--text);
    text-decoration: none;
}

.ryokin-header nav a:hover {
    color: var(--primary-dark);
}

.header-contact span {
    color: var(--primary);
    font-weight: 700;
}

main {
    background: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.ryokin-hero {
    background: none;
    padding: 0;
    text-align: center;
}

.ryokin-hero-copy img {
    width: 100%;
}

.ryokin-hero-copy .eyebrow {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.ryokin-hero-copy h1 {
    margin: 0;
    font-size: 2.6rem;
    line-height: 1.1;
}

.ryokin-hero-subtitle {
    margin: 16px auto 0;
    max-width: 640px;
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.7;
}

.ryokin-hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.ryokin-hero-tags span {
    background: #fff7ed;
    color: var(--primary-dark);
    border: 1px solid #fad2a6;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 0.95rem;
}

.ryokin-section-head h2,
.ryokin-section-head h3,
.page_chukai_cont .page_h3 {
    margin: 40px 0 12px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    padding-bottom: 0.4em;
    border-bottom: 4px solid #f7b52a;
    display: flex;
    align-items: center;
    gap: 1em;
    background: none;
}

.ryokin-section-head p {
    margin: 0;
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.8;
}

.ryokin-structure-diagram {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.ryokin-structure-card {
    min-width: 240px;
    flex: 1 1 280px;
    border-radius: 22px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.ryokin-structure-card--monthly {
    background: linear-gradient(180deg, #fff9f0 0%, #fff6ea 100%);
}

.ryokin-structure-card--initial {
    background: linear-gradient(180deg, #f0f8ff 0%, #ecf7ff 100%);
}

.ryokin-structure-label {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.ryokin-structure-price {
    margin: 0 0 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

.ryokin-structure-note {
    margin: 0;
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.ryokin-structure-arrow {
    display: flex;
    min-width: 52px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f5f0e8;
    color: var(--primary-dark);
    font-size: 1.4rem;
    font-weight: 700;
}

.ryokin-fee-table-wrap {
    margin-top: 28px;
}

.ryokin-fee-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.ryokin-fee-table th,
.ryokin-fee-table td {
    padding: 16px 18px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    word-break: break-all;
}

.ryokin-fee-table th {
    background: #fff5e8;
    color: var(--primary-dark);
    font-weight: 700;
}

.ryokin-fee-table th:first-child,
.ryokin-fee-table td:first-child {
    width: 28%;
    font-weight: 700;
}

.ryokin-fee-table th:nth-child(2),
.ryokin-fee-table td:nth-child(2) {
    width: 24%;
}

.ryokin-fee-table tbody tr:nth-child(odd) {
    background: #fffdf7;
}

.ryokin-plan-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.ryokin-value-banner {
    margin-top: 32px;
}

.ryokin-value-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.ryokin-plan-image-wrap {
    margin-top: 24px;
    text-align: center;
}

.ryokin-plan-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    display: inline-block;
}

.ryokin-plan-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ryokin-plan-card-top {
    padding: 16px 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    height: 150px;
}

.ryokin-plan-card-top .ryokin-plan-card-header {
    width: 100%;
}

.ryokin-plan-card-top h3 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
}

.ryokin-plan-card-top .ryokin-plan-card-period {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
}

.ryokin-plan-card-top .ryokin-plan-card-description {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    min-height: 36px;
}

.ryokin-plan-card-body {
    padding: 22px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.ryokin-plan-card-pricing {
    margin: 0;
    padding: 0 0 16px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ryokin-plan-card-label {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 700;
}

.ryokin-plan-card-total {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

.ryokin-plan-card-total>span:first-child {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray);
    margin-bottom: 2px;
    text-align: center;
}

.ryokin-plan-card-day {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 4px;
    color: var(--gray);
}

.ryokin-plan-card-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.ryokin-plan-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.92rem;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

.ryokin-plan-card-row:last-child {
    border-bottom: none;
}

.ryokin-plan-card-row-label {
    font-weight: 600;
    color: var(--gray);
}

.ryokin-plan-card-row-price {
    font-weight: 700;
    color: var(--text);
}

.ryokin-plan-card--short .ryokin-plan-card-top {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.ryokin-plan-card--short2 .ryokin-plan-card-top {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.ryokin-plan-card--middle .ryokin-plan-card-top {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
}

.ryokin-plan-card--long .ryokin-plan-card-top {
    background: linear-gradient(135deg, #3f51b5 0%, #303f9f 100%);
}

.ryokin-plan-card-row:last-child {
    border-bottom: none;
}

.ryokin-plan-card-row-label {
    font-weight: 600;
}

.ryokin-plan-card-row-price {
    font-weight: 700;
}

.ryokin-plan-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-top: 28px;
}

.ryokin-payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.ryokin-payment-card {
    background: #fff7ed;
    border: 1px solid #f7d8b4;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.ryokin-payment-visual {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 30px;
    padding: 24px 0 0;
    border-top: 1px solid #f0e4d3;
}

.ryokin-payment-visual-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px;
    padding: 18px;
    background: #fffefa;
    border: 1px solid #f3dfb7;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.ryokin-payment-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #f0a733;
}

.ryokin-payment-visual-item p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.ryokin-payment-visual-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.ryokin-payment-image-wrap {
    margin-top: 24px;
    text-align: center;
}

.ryokin-payment-image {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    display: inline-block;
}

.ryokin-payment-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.ryokin-payment-card p {
    margin: 0;
    color: var(--gray);
    line-height: 1.7;
}

.ryokin-contact-methods {
    background: none;
    padding: 60px 0 0;
}

.ryokin-contact-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    margin-top: 18px;
}

.ryokin-contact-item {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    padding: 0 32px;
    background: transparent;
    border: none;
    border-right: 1px solid #d4b896;
    text-align: center;
    align-items: center;
    justify-items: center;
}

.ryokin-contact-item:last-child {
    border-right: none;
}

.ryokin-contact-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.ryokin-contact-number {
    margin: 0 0 8px;
    font-size: 1.75rem;
    font-weight: 700;
    color: #f17105;
}
.ryokin-contact-number a {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f17105;
}

.ryokin-contact-note {
    margin: 0;
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
}

.ryokin-contact-button {
    display: inline-block;
    margin: 12px 0 10px;
    padding: 12px 32px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: opacity 0.3s;
}

.ryokin-contact-button:hover {
    opacity: 0.85;
}

.ryokin-contact-button--line {
    background: #00b900;
}

.ryokin-support-card {
    background: #fff7ed;
    border: 1px solid #f7d8b4;
    border-radius: 18px;
    padding: 32px;
}


.ryokin-support-card h3 {
    margin: 0 0 18px;
    font-size: 1.35rem;
    color: var(--primary-dark);
}

.ryokin-support-item {
    margin-bottom: 18px;
}

.ryokin-support-label {
    margin: 0 0 6px;
    font-weight: 700;
    color: var(--text);
}

.ryokin-support-number {
    margin: 0;
    font-size: 1.4rem;
    color: var(--primary-dark);
}

.ryokin-support-note {
    margin: 6px 0 0;
    color: var(--gray);
    font-size: 0.95rem;
}

.ryokin-support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.ryokin-support-links a {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
}

.ryokin-footer {
    text-align: center;
    padding: 22px 0;
    color: var(--gray);
    font-size: 0.95rem;
}

@media (max-width: 760px) {
    .ryokin-wrapper {
        padding: 16px;
    }

    .wrap {
        padding: 0 16px;
    }

    .ryokin-hero {
        padding: 40px 20px;
    }

    .ryokin-hero-copy h1 {
        font-size: 2rem;
    }

    /* 4カラム → 2×2 グリッド */
    .ryokin-plan-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* コンタクト欄: 縦並び */
    .ryokin-contact-row {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 24px;
    }

    .ryokin-contact-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        grid-template-rows: none;
        grid-row: auto;
        min-width: auto;
        border-right: none;
        border-bottom: 1px solid #e6d3b4;
        padding-bottom: 24px;
    }

    .ryokin-contact-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* 料金構成: 縦並び */
    .ryokin-structure-diagram {
        flex-direction: column;
        align-items: stretch;
    }

    .ryokin-structure-card {
        flex: none;
    }

    .ryokin-structure-arrow {
        align-self: center;
    }
}

@media (max-width: 480px) {

    .ryokin-fee-table th,
    .ryokin-fee-table td {
        padding: 8px 6px;
        font-size: 0.78rem;
    }

    /* 2カラム → 1カラム */
    .ryokin-plan-cards-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ryokin-plan-card-row {
        font-size: 1rem;
        padding: 8px 0;
    }

    .ryokin-contact-number {
        font-size: 1.4rem;
    }

    .ryokin-plan-card-total {
        font-size: 1.5rem;
        text-align: center;
    }
}