/* Section Basics */
.section {
    padding: 80px 0;
}

.section-white {
    background: var(--white);
}

/* ヘッダー下のスペース確保 */
.section.page-main {
    padding: 40px 0 60px 0 !important;
    margin-top: 0 !important;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.section-title p {
    color: var(--text-light);
}

/* Subscription Plans */
.pricing-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.plan-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 24px;
    width: 320px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.3s;
}

.plan-card:hover {
    transform: translateY(-10px);
}

.plan-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(to bottom, #ffffff, #f7fff9);
}

.plan-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.plan-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.plan-features li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

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

/* Pricing Matrix Table */
.pricing-matrix-container {
    overflow-x: auto;
    margin: 40px 0;
}

.pricing-matrix {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-width: 800px;
    table-layout: fixed;
}

.pricing-matrix thead {
    background: #f8f9fa;
}

.pricing-matrix th {
    padding: 0;
    vertical-align: bottom;
    border: 1px solid #e5e5e5;
}

.pricing-matrix th.feature-col {
    width: 200px;
    padding: 20px;
    text-align: left;
    font-weight: 700;
    color: var(--text-color);
    background: #f8f9fa;
}

.pricing-matrix th.plan-col {
    padding: 0;
    border-left: 1px solid #e5e5e5;
}

.pricing-matrix th.plan-col:nth-child(2),
.pricing-matrix th.plan-col:nth-child(3),
.pricing-matrix th.plan-col:nth-child(4) {
    width: 15%;
}

.pricing-matrix th.plan-col.featured:nth-child(5),
.pricing-matrix th.plan-col.featured:nth-child(6) {
    width: 17.5%; /* ベーシック通知とプレミアムを同じ幅に */
}

.pricing-matrix th.plan-col.featured {
    background: linear-gradient(to bottom, #ffffff, #f7fff9);
    border-left: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    border-top: 2px solid var(--primary-color);
    border-bottom: none;
    position: relative;
    padding-top: 20px;
    overflow: hidden;
}

.pricing-matrix th.plan-col.featured:nth-child(5) {
    border-top-left-radius: 16px;
}

.pricing-matrix th.plan-col.featured:nth-child(6) {
    border-top-right-radius: 16px;
    border-right: 2px solid var(--primary-color);
}

.pricing-matrix th.plan-col.featured:nth-child(5) {
    border-left: 2px solid var(--primary-color);
}

.pricing-matrix td.featured {
    background: linear-gradient(to bottom, #ffffff, #f7fff9);
    border-left: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    overflow: hidden;
}

.pricing-matrix tbody tr:last-child td.featured {
    border-bottom: 2px solid var(--primary-color);
}

.pricing-matrix tbody tr:last-child td.featured:nth-child(5) {
    border-bottom-left-radius: 16px;
}

.pricing-matrix tbody tr:last-child td.featured:nth-child(6) {
    border-bottom-right-radius: 16px;
    border-right: 2px solid var(--primary-color);
}

.pricing-matrix tbody tr:last-child td.featured:nth-child(5) {
    border-left: 2px solid var(--primary-color);
}

.pricing-note {
    margin-top: 24px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.plan-header {
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.plan-header .plan-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 12px;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.plan-header .plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.plan-header .plan-price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.plan-header .plan-price span {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.plan-header .plan-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.plan-header .plan-btn:hover {
    background: #333;
}

.pricing-matrix tbody tr {
    border-bottom: 1px solid #e5e5e5;
}

.pricing-matrix tbody tr:last-child {
    border-bottom: none;
}

.pricing-matrix td {
    padding: 20px;
    text-align: center;
    border: 1px solid #e5e5e5;
    vertical-align: middle;
}

.pricing-matrix td.feature-name {
    text-align: left;
    font-weight: 500;
    background: #fafafa;
    color: var(--text-color);
}

.pricing-matrix td.feature-value {
    font-size: 1.1rem;
}

.pricing-matrix .feature-yes {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.pricing-matrix .feature-no {
    color: #ccc;
    font-size: 1.2rem;
}

/* Terms Box */
.terms-box {
    margin-top: 60px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.terms-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-color);
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.terms-content {
    line-height: 1.8;
}

.terms-section {
    margin-bottom: 32px;
}

.terms-section:last-of-type {
    margin-bottom: 24px;
}

.terms-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.terms-section p {
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.terms-section p:last-child {
    margin-bottom: 0;
}

.terms-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

/* Updates List */
.updates-list {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    overflow: hidden;
}

.update-list-item {
    border-bottom: 1px solid #f0f0f0;
}

.update-list-item:last-child {
    border-bottom: none;
}

.update-list-link {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s;
    gap: 20px;
}

.update-list-item:hover .update-list-link {
    background-color: #f8f8f8;
}

.update-list-date {
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
    min-width: 90px;
    flex-shrink: 0;
}

.update-list-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 200px;
}

.update-list-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Update Detail Page */
.update-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.update-detail-header {
    margin-bottom: 16px;
}

.update-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.update-detail-divider {
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    margin-bottom: 16px;
}

.update-detail-meta {
    margin-bottom: 24px;
}

.update-detail-date {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* 企業リストが更新情報詳細ページ内にある場合のスタイル */
.update-detail-content .company-list-container {
    margin-top: 32px;
    margin-bottom: 32px;
}

.update-detail-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 48px;
}

/* Page Detail (Privacy Policy, etc.) */
.page-detail {
    max-width: 800px;
    margin: 0 auto;
}

.page-detail-header {
    margin-bottom: 32px;
}

.page-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
    line-height: 1.4;
}

.page-detail-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.page-detail-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.page-detail-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    color: var(--text-color);
}

.page-detail-content p {
    margin-bottom: 1.5em;
}

.page-detail-content ul,
.page-detail-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.page-detail-content li {
    margin-bottom: 0.5em;
}

.page-detail-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-detail-content a:hover {
    color: var(--primary-dark);
}

.companies-list-error {
    color: var(--text-light);
    font-style: italic;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
}

.update-detail-content p {
    margin-bottom: 1.5em;
}

.update-detail-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 1em;
    color: var(--text-color);
}

.update-detail-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    color: var(--text-color);
}

.update-detail-content ul,
.update-detail-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.update-detail-content li {
    margin-bottom: 0.5em;
}

.update-detail-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #eee;
}

.update-detail-footer-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 40px !important;
}

.update-back-link {
    display: inline-flex !important;
    align-items: center !important;
    color: var(--primary-color) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.update-back-link:hover {
    color: var(--primary-dark) !important;
}

.update-detail-navigation {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    gap: 24px !important;
}

.update-nav-link {
    display: inline-flex !important;
    align-items: center !important;
    color: var(--text-color) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
    font-size: 0.95rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.update-nav-link:hover {
    color: var(--primary-color) !important;
}

/* Story Timeline */
.story-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
    transform: translateX(-50%);
}

.story-item {
    margin-bottom: 40px;
    position: relative;
}

.story-content {
    background: var(--white);
    padding: 24px;
    border-radius: 16px;
    width: 45%;
    box-shadow: var(--shadow);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.story-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.story-item:nth-child(odd) .story-content {
    margin-left: auto;
}

.story-item:nth-child(even) .story-content {
    margin-right: auto;
}

.story-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.story-content h3 {
    font-size: 1.5rem;
    margin-top: 12px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.story-content h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.story-content h3 a::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 16px;
    z-index: 1;
}

.story-content:hover h3 a {
    color: var(--primary-color);
}

.story-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* FAQ Specifics */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: var(--primary-dark);
}

.faq-question::before {
    content: 'Q.';
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px 20px 20px;
    color: var(--text-color);
    line-height: 1.8;
    position: relative;
    padding-left: 55px;
}

.faq-answer::before {
    content: 'A.';
    font-size: 1.5rem;
    color: #666;
    font-weight: 700;
    position: absolute;
    left: 20px;
    top: 0;
}

.faq-answer p {
    margin: 0 0 1em 0;
    line-height: 1.8;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Privacy Policy Content */
.entry-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.entry-content p {
    margin-bottom: 1.5em;
}

/* Company List */
.company-list-header {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 16px 0;
}

.company-list-stats {
    font-size: 0.95rem;
    color: var(--text-light);
    text-align: right;
    line-height: 1.6;
}

.company-list-date {
    display: block;
    margin-bottom: 4px;
}

.company-list-stats strong {
    color: var(--text-color);
    font-weight: 700;
}

.company-list-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    width: 100%;
}

/* Company List Items - Grid Layout (PC: 2 columns) */
.company-list-items {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important;
    width: 100% !important;
}

.company-item {
    display: flex !important;
    align-items: flex-start;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e5e5;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    flex-direction: row !important;
}

.company-item br {
    display: none !important;
}

.company-item * {
    margin: 0 !important;
}

/* 左列（奇数番目） */
.company-item:nth-child(odd) {
    border-right: 2px solid #dddddd;
    padding-right: 24px;
    background: var(--white);
}

/* 右列（偶数番目） */
.company-item:nth-child(even) {
    padding-left: 24px;
    background: #fafafa;
}

/* 最後の行が1列だけの場合、右側の境界線を削除 */
.company-item:nth-child(2n+1):nth-last-child(1) {
    border-right: none;
    grid-column: 1 / -1;
}

.company-code {
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: right;
    min-width: 50px;
    width: 50px;
    flex-shrink: 0;
    font-weight: 500;
    padding-right: 4px;
}

.company-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s;
    min-width: 0;
    word-break: break-word;
    line-height: 1.4;
}

.company-name:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.company-stores {
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: right;
    min-width: 50px;
    flex-shrink: 0;
    padding-right: 4px;
}

/* 404 Error Page */
.error-404-nav {
    margin: 32px 0;
}

.error-404-links {
    list-style: none;
    padding-left: 0;
}

.error-404-links li {
    margin-bottom: 12px;
}

.error-404-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.error-404-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Contact Form 7 Styles */
.wpcf7-form {
    max-width: 700px;
    margin: 0;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.wpcf7-form .hidden-fields-container {
    display: none;
}

.wpcf7-form p {
    margin-bottom: 24px;
}

.wpcf7-form p:has(.wpcf7-submit) {
    text-align: right;
}

.wpcf7-form label {
    display: block;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-top: 8px;
}

.wpcf7-form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-color);
    background: var(--white);
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.wpcf7-form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.1);
}

.wpcf7-form-control.wpcf7-textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.wpcf7-form-control.wpcf7-submit {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: auto;
    min-width: 120px;
    margin-left: auto;
    display: block;
}

.wpcf7-form-control.wpcf7-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.wpcf7-form-control.wpcf7-submit:active {
    transform: translateY(0);
}

.wpcf7-form-control.wpcf7-submit.has-spinner {
    position: relative;
}

.wpcf7-spinner {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.wpcf7-form-control.wpcf7-submit.has-spinner .wpcf7-spinner {
    display: inline-block;
}

.wpcf7-response-output {
    margin-top: 24px;
    padding: 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
    background: #f0f9f4;
    border: 2px solid var(--primary-color);
    color: var(--primary-dark);
}

.wpcf7-response-output.wpcf7-mail-sent-ng,
.wpcf7-response-output.wpcf7-validation-errors,
.wpcf7-response-output.wpcf7-spam {
    background: #fff5f5;
    border: 2px solid #ff3b30;
    color: #c92a2a;
}

.wpcf7-not-valid-tip {
    color: #ff3b30;
    font-size: 0.85rem;
    margin-top: 6px;
    display: block;
}

.wpcf7-form-control.wpcf7-not-valid {
    border-color: #ff3b30;
}

.wpcf7-form-control.wpcf7-not-valid:focus {
    border-color: #ff3b30;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .wpcf7-form {
        padding: 24px 20px;
    }

    .wpcf7-form-control.wpcf7-submit {
        width: 100%;
    }
}




