/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
    --primary-color: #0fa1ba;
    --primary-dark: #0a8094;
    --secondary-color: #f7931e;
    --accent-color: #f7931e;
    --teal-dark: #0c5a69; /* ヒーローおよびフッター用 */
    --background-color: #f4f8fb;
    --text-color: #333333;
    --light-text: #666666;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --error-color: #ff4d4d;
    --note-bg: #fffbe6;
    --note-border: #ffe58f;
    --input-bg: #333333;
    --input-text: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   IROHATEC Global Header (元に戻す)
   =================================== */
.global-header {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.global-header-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 40px;
    /* フィルター解除 */
}

.global-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.global-nav a {
    text-decoration: none;
    color: var(--text-color); /* テキスト黒 */
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.global-nav a:hover {
    color: var(--primary-color);
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    position: relative;
    background-image: url('images/portal_heror.png');
    background-size: cover;
    background-position: center;
    min-height: 320px;
    padding: 80px 0;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(12, 90, 105, 0.7); /* 暗めのティールブルー透過 overlay */
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 2.4rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 980px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.page-hero {
    position: relative;
    background-image: url('images/referral_hero.png');
    background-size: cover;
    background-position: center;
    min-height: 320px;
    padding: 80px 0;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(12, 90, 105, 0.68);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    color: var(--white);
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-hero .hero-subtitle {
    display: block;
    max-width: 980px;
}

/* ===================================
   Breadcrumb
   =================================== */
.breadcrumb-bar {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #dcecf0;
    box-shadow: 0 8px 20px rgba(12, 90, 105, 0.04);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 52px;
    list-style: none;
    font-size: 0.82rem;
    font-weight: 700;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    color: var(--light-text);
}

.breadcrumbs li:not(:last-child)::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-top: 1.5px solid #9fb8bf;
    border-right: 1.5px solid #9fb8bf;
    transform: rotate(45deg);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-dark);
}

.breadcrumbs [aria-current="page"] {
    padding: 5px 10px;
    border-radius: 999px;
    background: #e0f7fa;
    color: var(--teal-dark);
}

/* ===================================
   Main Content
   =================================== */
.main-content {
    padding: 40px 0;
}

/* ===================================
   Service Cards
   =================================== */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
}

.badge-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.badge-item {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.badge-iroha { background: #e0f7fa; color: #0fa1ba; }
.badge-sub { background: #fff3e0; color: #f7931e; }

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.price-tag {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.price-tag .amount {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 25px;
    flex-grow: 1;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.info-table th, .info-table td {
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
}

.info-table th {
    text-align: left;
    width: 100px;
    color: #999;
    font-weight: 500;
}

.info-table a {
    color: var(--primary-color);
    text-decoration: underline;
}

.card-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    transition: background 0.3s;
}

.card-btn:hover {
    background: var(--primary-dark);
}

/* ===================================
   Partner Recruitment
   =================================== */
.partner-box {
    background: var(--white);
    padding: 50px;
    border-radius: 12px;
    border: 2px dashed #b2ebf2;
    text-align: center;
    margin-bottom: 60px;
}

.partner-box::before {
    content: "+";
    display: block;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.partner-box h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.partner-box p {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 30px;
}

.outline-btn {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
}

.outline-btn:hover {
    background: var(--primary-color);
    color: white;
}

.partner-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ===================================
   Partner Directory
   =================================== */
.company-hero {
    background-image: url('images/portal_heror.png');
}

.partner-directory {
    background: var(--white);
    padding: 34px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.partner-directory-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.partner-directory-head .section-title {
    margin-bottom: 0;
    flex-shrink: 0;
}

.partner-directory-head p {
    max-width: 560px;
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.7;
}

.partner-table {
    overflow: hidden;
    border: 1px solid #dcecf0;
    border-radius: 8px;
    background: #fff;
}

.partner-table-header,
.partner-row {
    display: grid;
    grid-template-columns: 1.4fr 2.1fr 1.6fr 120px;
    align-items: center;
    gap: 18px;
}

.partner-table-header {
    padding: 16px 20px;
    background: #f4fbfd;
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.partner-row {
    padding: 18px 20px;
    border-top: 1px solid #eef4f6;
    transition: background 0.2s ease;
}

.partner-row:hover {
    background: #f8fcfd;
}

.partner-row strong {
    color: var(--text-color);
    font-size: 0.98rem;
}

.partner-row > span:not(.partner-badge) {
    color: var(--light-text);
    font-size: 0.9rem;
}

.partner-badge {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e0f7fa;
    color: var(--primary-color);
    border: 1px solid rgba(15, 161, 186, 0.16);
    font-size: 0.72rem;
    font-weight: 700;
}

.partner-badge.accent {
    background: #fff3e0;
    color: var(--accent-color);
    border-color: rgba(247, 147, 30, 0.18);
}

.partner-row a {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.partner-row a:hover {
    background: var(--primary-color);
    color: white;
}

/* ===================================
   FAQ Section
   =================================== */
.faq-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 5px solid var(--primary-color);
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.faq-question::after {
    content: "+";
    font-size: 1.2rem;
    color: #ccc;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: "−";
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 20px;
    font-size: 0.85rem;
    color: var(--light-text);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ===================================
   Footer PR Section
   =================================== */
.footer-pr {
    background: var(--teal-dark);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.pr-box {
    max-width: 800px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    padding: 50px;
    border-radius: 30px;
    border: 2px solid var(--accent-color);
    position: relative;
}

.pr-tag {
    display: inline-block;
    background: #ff4d4d;
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 900;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(255, 77, 77, 0.3);
}

.pr-box h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.pr-btn {
    display: inline-block;
    background: white;
    color: var(--teal-dark);
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .global-nav { display: none; }
    .service-grid { grid-template-columns: 1fr; }
    .partner-box { padding: 30px; }
    .partner-actions { flex-direction: column; }
    .partner-directory { padding: 24px 18px; }
    .partner-directory-head {
        display: block;
    }
    .partner-directory-head .section-title {
        margin-bottom: 14px;
    }
    .partner-table-header {
        display: none;
    }
    .partner-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 18px;
    }
    .partner-row a {
        justify-self: start;
        margin-top: 6px;
    }
}

/* ===================================
   Confirmation Modal
   =================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 95%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.confirmation-details {
    margin-bottom: 10px;
}

.confirm-row {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.confirm-label {
    font-size: 0.78rem;
    color: var(--light-text);
    display: block;
    margin-bottom: 3px;
}

.confirm-value {
    font-weight: 700;
    font-size: 0.95rem;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-btn.back { background: #eee; color: var(--light-text); }
.modal-btn.send { background: var(--primary-color); color: white; }
.modal-btn.send:hover:not(:disabled) { background: var(--primary-dark); }

/* ===================================
   Form Elements（form.html用）
   =================================== */
.form-container {
    max-width: 760px;
}

.content-box {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    margin-bottom: 24px;
}

.field-desc {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.badge.required {
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    color: white;
    background: #ff6b6b;
    font-weight: 700;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 161, 186, 0.12);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.flow-section {
    border-top: 4px solid var(--primary-color);
}

.flow-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid #dcecf0;
    border-radius: 8px;
    background: #fff;
}

.flow-item {
    position: relative;
    min-height: 150px;
    padding: 28px 26px 26px;
    background: #fff;
    border-right: 1px solid #dcecf0;
}

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

.flow-item::after {
    content: "";
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 0;
    height: 3px;
    background: var(--primary-color);
    opacity: 0.18;
}

.step-num {
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 4px;
    letter-spacing: 0.08em;
}

.flow-item h3 {
    font-size: 1.08rem;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--text-color);
}

.flow-item p {
    font-size: 0.88rem;
    color: var(--light-text);
    line-height: 1.7;
}

.notes-box {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 16px 20px;
}

.notes-box ul {
    list-style: none;
    padding: 0;
}

.notes-box li {
    padding-left: 1.2em;
    position: relative;
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: #7a6200;
}

.notes-box li::before {
    content: '⚠';
    position: absolute;
    left: 0;
}

.checkbox-group {
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.checkbox-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ハニーポット（スパム対策・非表示） */
.h-field {
    display: none;
}

.error-message {
    display: none;
    color: #ff4d4d;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 12px;
    padding: 10px;
    background: #fff0f0;
    border-radius: 6px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .flow-grid { grid-template-columns: 1fr; }
    .flow-item {
        min-height: auto;
        padding: 24px 22px;
        border-right: none;
        border-bottom: 1px solid #dcecf0;
    }
    .flow-item:last-child {
        border-bottom: none;
    }
    .hero-section {
        min-height: 280px;
        padding: 56px 0;
    }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .page-hero {
        min-height: 280px;
        padding: 56px 0;
    }
    .page-hero h1 { font-size: 1.8rem; }
}
