/* 基本リセット & 共通スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    /* ブランドカラー */
    --color-accent: #89c6d2;
    --color-accent-rgb: 137, 198, 210;
    --color-primary: #0076be;
    --color-primary-rgb: 0, 118, 190;
    --color-text-1: #1e252d;
    --color-text-2: #3e4956;
    --color-text-3: #8492a2;
    --color-text-2-rgb: 61, 52, 43;

    --color-surface-1: #ffffff;
    --color-surface-2: #f6f8fa;
    --color-surface-3: #eaeef2;
    --color-border: #cbd5e1;

    /* 拠点タグ */
    --color-tag-1: var(--color-primary);
    --color-tag-1-rgb: var(--color-primary-rgb);
    --color-tag-2: #6b4e8a;
    --color-tag-2-rgb: 107, 78, 138;
    --color-tag-3: #8a6d1f;
    --color-tag-3-rgb: 138, 109, 31;

    /* エラー・必須表示 */
    --color-error: #e53e3e;
    --color-error-rgb: 229, 62, 62;
    --color-error-dark: #b91c1c;
    --color-error-bg: #fef2f2;
}
html {
    scroll-behavior: smooth;
    height: 100%;
}
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--color-text-1);
    line-height: 1.7;
    background-color: var(--color-surface-1);
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main {
    flex: 1 0 auto;
}
.footer {
    flex-shrink: 0;
}
a {
    color: var(--color-text-1);
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    height: auto;
}

.section-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    width: 100%;
}
.section-title {
    display: table;
    margin: 0 auto 60px;
    font-size: 1.9rem;
    line-height: 1.3;
    text-align: center;
    letter-spacing: 0.1em;
    padding-bottom: 16px;
    position: relative;
    color: var(--color-text-2);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 5px;
    background: var(--color-accent);
}
.section-title-en {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--color-text-3);
    margin-top: 8px;
}
.bg-light {
    background-color: var(--color-surface-2);
}

.policy-heading {
    font-size: 1.4rem;
    line-height: 1.4;
    letter-spacing: 0.05em;
    color: var(--color-text-2);
    text-align: left;
    margin: 48px 0 12px;
}

.policy-section .section-title {
    font-size: 1.6rem;
}
.policy-section .section-title-en {
    font-size: 0.75rem;
}
.policy-section .section-description {
    font-size: 0.95rem;
}
.policy-section .policy-heading {
    font-size: 1.2rem;
}
.policy-section .section-description a {
    color: var(--color-primary);
    text-decoration: underline;
}
.policy-section .section-description a:hover {
    color: var(--color-accent);
}
.text-center {
    text-align: center;
}
.text-medium {
    font-weight: 500;
}

/* ヘッダー */
.header {
    background-color: var(--color-surface-1);
    box-shadow: 0 2px 10px rgba(var(--color-text-2-rgb), 0.05);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.logo {
    min-width: 0;
}
.logo a {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
}
.logo img {
    max-width: 100%;
    height: auto;
}
.nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}
.nav ul li {
    margin-left: 25px;
    flex-shrink: 0;
}
.nav ul li a {
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
}
.nav-icon {
    display: none;
}
@media (max-width: 1024px) {
    .nav ul li {
        margin-left: 15px;
    }
    .nav ul li a {
        font-size: 0.9rem;
    }
}

/* メインビジュアル */
.main-visual {
    background: var(--color-accent);
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    font-family: "Noto Sans JP", sans-serif;
}

.hero-circles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.square {
    position: absolute;
    aspect-ratio: 1 / 1;
    background-color: var(--color-surface-1); /* 図形の色 */
    border-radius: 50%;

    top: var(--top);
    left: var(--left, auto);
    right: var(--right, auto);
    width: var(--size);
    opacity: 0;
    transform: rotate(var(--rotate, 0deg));
    animation: circle-appear-float calc(var(--float-duration, 4s) + 1s) linear 1 forwards;
}

@keyframes circle-appear-float {
    0%   { opacity: 0; transform: rotate(var(--rotate, 0deg)) translate(0, 14px); animation-timing-function: ease-out; }
    20%  { opacity: var(--opacity); transform: rotate(var(--rotate, 0deg)) translate(0, 0); animation-timing-function: linear; }
    30%  { transform: rotate(var(--rotate, 0deg)) translate(calc(var(--float-x, 12px) * 0.38), calc(var(--float-y, -16px) * 0.38)); }
    40%  { transform: rotate(var(--rotate, 0deg)) translate(calc(var(--float-x, 12px) * 0.71), calc(var(--float-y, -16px) * 0.71)); }
    50%  { transform: rotate(var(--rotate, 0deg)) translate(calc(var(--float-x, 12px) * 0.92), calc(var(--float-y, -16px) * 0.92)); }
    60%  { transform: rotate(var(--rotate, 0deg)) translate(var(--float-x, 12px), var(--float-y, -16px)); }
    70%  { transform: rotate(var(--rotate, 0deg)) translate(calc(var(--float-x, 12px) * 0.92), calc(var(--float-y, -16px) * 0.92)); }
    80%  { transform: rotate(var(--rotate, 0deg)) translate(calc(var(--float-x, 12px) * 0.71), calc(var(--float-y, -16px) * 0.71)); }
    90%  { transform: rotate(var(--rotate, 0deg)) translate(calc(var(--float-x, 12px) * 0.38), calc(var(--float-y, -16px) * 0.38)); }
    100% { opacity: var(--opacity); transform: rotate(var(--rotate, 0deg)) translate(0, 0); }
}

.square.is-ring {
    background-color: transparent;
    border: 2px solid var(--color-surface-1);
}

.square.is-ring.is-accent {
    border-color: var(--color-primary);
}

.hero-circles .square:nth-child(4n+1) { --float-duration: 4.8s; --float-x: 9px; --float-y: -13px; animation-delay: 0.3s; }
.hero-circles .square:nth-child(4n+2) { --float-duration: 5s; --float-x: -11px; --float-y: -8px; animation-delay: 0.4s; }
.hero-circles .square:nth-child(4n+3) { --float-duration: 4.9s; --float-x: 10px; --float-y: 10px; animation-delay: 0.5s; }
.hero-circles .square:nth-child(4n+4) { --float-duration: 5.2s; --float-x: -8px; --float-y: 9px; animation-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
    .square {
        animation: none;
        opacity: var(--opacity);
    }
}

.main-visual-text {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    color: var(--color-surface-1);
}

.main-visual-text h1 {
    font-size: clamp(2.4rem, 5.2vw, 4.4rem);
    margin-bottom: 25px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-shadow: 0 4px 15px rgba(var(--color-text-2-rgb), 0.2);
    word-break: keep-all;
}

.main-visual-text h1 span {
    white-space: nowrap;
}

/* フェードインアニメーション */
.fade-in-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 単一事業（Service Single）スタイル */
.section-flat-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 0;
    padding-bottom: 0;
}
.section-flat-content h3 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    font-weight: 700;
}
.section-lead {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.section-description {
    text-align: left;
    font-size: 1.1rem;
    color: var(--color-text-1);
    margin-bottom: 15px;
}

.strengths-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1000px;
    margin: 30px auto 0;
}
.strength-card {
    flex: 1;
    background: var(--color-surface-1);
    padding: 20px 16px;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    text-align: left;
    position: relative;
}
.strength-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}
.strength-num {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-surface-1);
    line-height: 1;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
}
.strength-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}
.strength-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0 8px;
}
.strength-list li {
    color: var(--color-text-1);
    line-height: 1.5;
    margin-bottom: 16px;
    position: relative;
    padding-left: 26px;
}
.strength-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}
.strength-list li:last-child {
    margin-bottom: 0;
}

/* スマホ表示の調整 */
@media (max-width: 768px) {
    .section-flat-content {
        padding-bottom: 0;
    }
    .section-flat-content h3 {
        font-size: 1.25rem;
    }
    .section-lead {
        font-size: 0.9rem;
    }
    .section-description {
        font-size: 1rem;
    }
    .strengths-container {
        flex-direction: column;
        gap: 25px;
        margin-top: 10px;
        padding: 0 15px;
    }
    .strength-card {
        padding: 25px 16px;
    }
}

.company-table {
    display: block;
    width: 100%;
    margin: 0 auto;
    background-color: var(--color-surface-1);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.company-table tbody {
    display: contents;
}
.company-table tr {
    display: flex;
    width: 100%;
    align-items: baseline;
    padding: 18px 32px;
    border-bottom: 1px solid var(--color-border);
}
.company-table th, .company-table td {
    padding: 0;
    border: none;
    text-align: left;
    background: none;
}
.company-table th {
    flex: 0 0 200px;
    color: var(--color-text-1);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.company-table td {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.6;
}
.company-table tr:last-child {
    border-bottom: none;
}
.recruit-block .company-table th {
    font-size: 0.95rem;
}
.recruit-block .company-table td {
    font-size: 0.98rem;
}

/* ボタン */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-primary);
    color: var(--color-surface-1);
    border: 2px solid var(--color-primary);
    padding: 12px 38px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
}
.btn:hover {
    background: var(--color-surface-1);
    color: var(--color-primary);
}
.btn i {
    font-size: 1.4rem;
}

.btn-top {
    margin-top: 46px;
    font-size: 1rem;
}

.contact-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.contact-actions .btn {
    margin-top: 0;
}
.contact-phone-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-phone {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}
@media (min-width: 769px) {
    .contact-phone {
        pointer-events: none;
    }
}
.contact-hours {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-1);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 480px) {
    .contact-actions {
        flex-direction: column;
        gap: 16px;
    }
    .main-visual-text h1 {
        font-size: clamp(1.7rem, 8.5vw, 2.4rem);
        letter-spacing: 0.08em;
    }
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
    background-color: var(--color-surface-3);
    color: var(--color-text-1);
    padding: 24px 0;
    width: 100%;
    letter-spacing: 0.03em;
    font-family: "Noto Sans JP", sans-serif;
    border-top: 1px solid var(--color-border);
    box-sizing: border-box;
}

.footer-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 2px;
}

.footer-company {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-1);
    margin: 0 0 4px;
}
.footer-company img {
    display: block;
    filter: brightness(0) saturate(100%) invert(15%) sepia(3%) saturate(5234%) hue-rotate(170deg) brightness(87%) contrast(86%);
}

.footer-address {
    font-size: clamp(0.9rem, 0.4vw + 0.8rem, 1rem);
    font-weight: 400;
    color: var(--color-text-1);
    margin: 0;
}

.footer-contact {
    font-size: clamp(0.9rem, 0.4vw + 0.8rem, 1rem);
    font-weight: 400;
    color: var(--color-text-1);
    line-height: 1.5;
    margin: 0;
}

.footer-tel {
    margin-right: 20px;
    white-space: nowrap;
}

.footer-fax {
    white-space: nowrap;
}

/* 受付時間 */
.footer-hours {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-text-1);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hours-label {
    font-size: 0.85rem;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 3px 6px;
    border-radius: 4px;
    line-height: 1.2;
    display: inline-block;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    align-self: flex-end;
    gap: 2px;
}
.footer-links {
    font-size: 0.85rem;
    margin: 0;
}
.footer-links a {
    color: var(--color-text-2);
    text-decoration: underline;
}
.footer-links a:hover {
    color: var(--color-primary);
}

.copyright {
    font-size: 0.8rem;
    color: var(--color-text-2);
    margin: 0;
    white-space: nowrap;
    text-align: right;
}

/* ==========================================================================
   RESPONSIVE (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    .footer {
        padding: 20px 0;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    .footer-info {
        align-items: center;
        text-align: center;
    }
    .footer-links-col {
        align-items: center;
        align-self: center;
        margin-top: 8%;
    }
}

/* レスポンシブ */
@media (max-width: 768px) {
    .header-container {
        height: 64px;
    }
    .logo img {
        max-width: min(340px, 100%);
        max-height: 32px;
        width: auto;
    }
    body {
        --tabbar-height: 68px;
        padding-bottom: var(--tabbar-height);
    }
    .nav {
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 100;
        width: 100%;
        height: var(--tabbar-height);
        background-color: var(--color-surface-3);
        box-shadow: 0 -2px 10px rgba(var(--color-text-2-rgb), 0.08);
    }
    .nav ul {
        height: 100%;
        margin-top: 0;
        align-items: stretch;
        justify-content: stretch;
    }
    .nav ul li {
        margin: 0;
        flex: 1;
        min-width: 0;
        text-align: center;
    }
    .nav ul li a {
        display: flex;
        height: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 8px 4px;
        white-space: nowrap;
    }
    .nav-icon {
        display: block;
        font-size: 1.3rem;
    }
    .nav-label {
        font-size: 0.75rem;
    }
    .main-visual {
        height: calc(100vh - var(--tabbar-height));
        height: calc(100svh - var(--tabbar-height));
        padding-top: 64px;
    }
    .hero-circles .square:nth-child(2)  { --left: 25% !important; }
    .hero-circles .square:nth-child(6)  { --left: 24% !important; }
    .hero-circles .square:nth-child(8)  { --right: 15% !important; }
    .hero-circles .square:nth-child(11) { --right: 26% !important; }
    .grecaptcha-badge {
        bottom: calc(var(--tabbar-height) + 14px) !important;
    }
    .section {
        padding: 40px 0;
    }
    .section-title {
        margin: 0 auto 40px;
        font-size: 1.5rem;
    }
    .company-table tr {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 14px 20px;
    }
    .company-table th {
        flex: none;
        font-size: 0.95rem;
    }
    .company-table td {
        font-size: 1rem;
        line-height: 1.6;
    }
}
/* 拠点情報ブロック */
.access-block {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 40px;
}
.access-block:last-child {
    margin-bottom: 0;
}
.access-info {
    flex: 1;
    min-width: 0;
}
.access-office-name {
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 14px;
}
.access-block .map-responsive {
    flex: 1;
}
.access-address {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-1);
    margin-bottom: 20px;
}
.access-line {
    font-size: 1rem;
    color: var(--color-text-1);
    margin-bottom: 20px;
}
.access-line:last-of-type {
    margin-bottom: 0;
}
.access-line strong {
    color: var(--color-text-1);
}
.access-transit {
    position: relative;
    padding-left: 20px;
}
.access-transit::before {
    content: "▶";
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 0.7rem;
    color: var(--color-accent);
}

.map-responsive {
    position: relative;
    width: 100%;
    padding-top: 32%;
    overflow: hidden;
    border-radius: 4px;
    background: var(--color-surface-2);
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

@media (max-width: 768px) {
    .access-block {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        margin-bottom: 24px;
    }
    .access-office-name {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }
    .access-address,
    .access-line {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    .access-block .map-responsive {
        padding-top: 56.25%;
    }
}

/* ==========================================
   お問い合わせフォーム専用ページ（下層ページ）
   ========================================== */
.sub-main {
    padding: 60px 0 0;
}

/* フォームの外枠白ボックス */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-surface-1);
    padding: 50px 40px;
    border-radius: 14px;
    border: 1px solid var(--color-border);
}
.form-error {
    max-width: 700px;
    margin: 0 auto 20px;
    padding: 14px 20px;
    background-color: var(--color-error-bg);
    border: 1px solid rgba(var(--color-error-rgb), 0.6);
    border-radius: 4px;
    color: var(--color-error-dark);
    text-align: center;
}

/* 各入力項目の行 */
.form-group {
    margin-bottom: 25px;
}
.form-group label,
.form-group .form-label {
    display: block;
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* 必須マークの装飾 */
.form-group label.required::after {
    content: "必須";
    background-color: var(--color-error);
    color: var(--color-surface-1);
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* 入力コントロール共通（テキスト、メール、電話、テキストエリア） */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-surface-2);
    color: var(--color-text-1);
    font-family: inherit;
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: var(--color-surface-1);
    box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.1);
}

/* 個人情報の取り扱いについて */
.privacy-box {
    max-height: 160px;
    overflow-y: auto;
    padding: 4px 16px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background-color: var(--color-surface-2);
    font-size: 0.9rem;
    color: var(--color-text-1);
}
.privacy-box a {
    color: var(--color-primary);
    text-decoration: underline;
}
.privacy-box a:hover {
    color: var(--color-accent);
}
.privacy-box p {
    margin-bottom: 4px;
}
.privacy-box p:last-child {
    margin-bottom: 0;
}
.form-group .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.5;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* ボタン配置エリア */
.form-submit {
    text-align: center;
    margin-top: 40px;
}
.form-submit .btn {
    cursor: pointer;
    font-size: 1.05rem;
    width: 100%;
    max-width: 320px;
    margin-top: 0;
}

/* フォーム専用スマホレスポンシブ */
@media (max-width: 768px) {
    .sub-main {
        padding: 84px 0 0;
    }
    .contact-form {
        padding: 30px 20px;
    }
}

/* ==========================================
   メンバーページ（Member）
   ========================================== */
.member-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.member-feature {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px 32px;
    text-align: left;
    padding: 36px 32px;
    background-color: rgba(var(--color-tag-1-rgb), 0.01);
    border: 1px solid rgba(var(--color-tag-1-rgb), 0.35);
}
.member-feature:has(.member-tag-base--branch1) {
    background-color: rgba(var(--color-tag-2-rgb), 0.01);
    border: 1px solid rgba(var(--color-tag-2-rgb), 0.35);
}
.member-feature:has(.member-tag-base--exec) {
    background-color: rgba(var(--color-tag-3-rgb), 0.01);
    border: 1px solid rgba(var(--color-tag-3-rgb), 0.35);
}
.member-feature-media {
    grid-column: 1;
    grid-row: 1;
    position: relative;
}
.member-feature-head {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.member-feature-detail {
    grid-column: 1 / -1;
    grid-row: 2;
}
.member-feature-photo {
    position: relative;
    z-index: 1;
    width: 160px;
    border: 4px solid var(--color-surface-1);
    box-shadow: 0 4px 10px rgba(var(--color-text-2-rgb), 0.1);
    overflow: hidden;
}
.member-feature-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transform: scale(1.02);
    transform-origin: center top;
}
.member-feature-photo img.img-stretch {
    transform: scale(1.18);
    transform-origin: center top;
}

.member-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.member-tag-base {
    background-color: var(--color-primary);
    color: var(--color-surface-1);
    font-size: 0.85rem;
    padding: 4px 8px;
    font-weight: bold;
    letter-spacing: 0.05em;
}
.member-tag-base--branch1 {
    background-color: var(--color-tag-2);
}
.member-tag-base--exec {
    background-color: var(--color-tag-3);
}
.member-tag-area {
    background-color: rgba(var(--color-tag-1-rgb), 0.1);
    color: var(--color-tag-1);
    font-size: 0.85rem;
    padding: 4px 8px;
    font-weight: bold;
    letter-spacing: 0.05em;
}
.member-tags:has(.member-tag-base--branch1) .member-tag-area {
    background-color: rgba(var(--color-tag-2-rgb), 0.1);
    color: var(--color-tag-2);
}
.member-tags:has(.member-tag-base--exec) .member-tag-area {
    background-color: rgba(var(--color-tag-3-rgb), 0.1);
    color: var(--color-tag-3);
}

.member-feature-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-2);
    line-height: 1.3;
    margin-bottom: 12px;
    margin-left: 4px;
}
.member-feature-meta {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-text-3);
    margin-left: 4px;
}

.member-feature-quote {
    position: relative;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-1);
    padding: 4px 0 4px 16px;
    margin: 12px 0 0 8px;
    border-left: 3px solid rgba(var(--color-tag-1-rgb), 0.3);
}
.member-feature:has(.member-tag-base--branch1) .member-feature-quote {
    border-left-color: rgba(var(--color-tag-2-rgb), 0.3);
}
.member-feature:has(.member-tag-base--exec) .member-feature-quote {
    border-left-color: rgba(var(--color-tag-3-rgb), 0.3);
}

.member-feature-facts {
    margin-top: 0;
    border-top: 1px dashed var(--color-border);
}
.member-feature-fact {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 28px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--color-border);
}
.member-feature-fact dt {
    flex: 0 0 8.5em;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-left: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.03em;
    color: var(--color-text-2);
}
.member-feature-fact dt::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: rgba(var(--color-tag-1-rgb), 0.35);
    flex-shrink: 0;
}
.member-feature:has(.member-tag-base--branch1) .member-feature-fact dt::before {
    background-color: rgba(var(--color-tag-2-rgb), 0.35);
}
.member-feature:has(.member-tag-base--exec) .member-feature-fact dt::before {
    background-color: rgba(var(--color-tag-3-rgb), 0.35);
}
.member-feature-fact dd {
    flex: 1 1 260px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-1);
}

/* メンバー専用スマホレスポンシブ */
@media (max-width: 768px) {
    .member-list {
        gap: 20px;
    }
    .member-feature {
        grid-template-columns: 132px 1fr;
        gap: 16px 8px;
        padding: 28px 20px;
    }
    .member-feature-media {
        grid-column: 1;
        grid-row: 1;
    }
    .member-feature-head {
        grid-column: 2;
        grid-row: 1;
    }
    .member-feature-detail {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .member-feature-photo {
        width: 132px;
    }
    .member-tags {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 6px;
    }
    .member-tag-base,
    .member-tag-area {
        font-size: 0.8rem;
        padding: 2px 8px;
        line-height:1.4em;
    }
    .member-feature-name {
        font-size: 1.2rem;
        margin-bottom: 4px;
        margin-left: 8px;
    }
    .member-feature-meta {
        flex-direction: column;
        gap: 0;
        font-size: 0.85rem;
        margin-left: 8px;
    }
    .member-feature-quote {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        font-size: 0.9rem;
        margin: 0;
        padding: 6px 0 0;
        border-left: none;
    }
    .member-feature-quote::before {
        content: "メッセージ";
        display: block;
        padding-left: 17px;
        background-image: linear-gradient(rgba(var(--color-tag-1-rgb), 0.35), rgba(var(--color-tag-1-rgb), 0.35));
        background-size: 7px 7px;
        background-repeat: no-repeat;
        background-position: left center;
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        color: var(--color-text-2);
    }
    .member-feature:has(.member-tag-base--branch1) .member-feature-quote::before {
        background-image: linear-gradient(rgba(var(--color-tag-2-rgb), 0.35), rgba(var(--color-tag-2-rgb), 0.35));
    }
    .member-feature:has(.member-tag-base--exec) .member-feature-quote::before {
        background-image: linear-gradient(rgba(var(--color-tag-3-rgb), 0.35), rgba(var(--color-tag-3-rgb), 0.35));
    }
    .member-feature-fact {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 6px 0;
    }
    .member-feature-fact dt {
        flex: 0 0 auto;
        padding-left: 0;
        font-size: 0.85rem;
    }
    .member-feature-fact dd {
        flex: 1 1 auto;
        font-size: 0.95rem;
    }
}

/* ==========================================
   中途採用ページ（Recruit）
   ========================================== */
.recruit-intro {
    max-width: 1000px;
    margin: 0 auto 60px;
}
.recruit-lead {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}
.recruit-intro p:not(.recruit-lead) + p {
    margin-top: 16px;
}
.recruit-block {
    margin-bottom: 80px;
}
.recruit-sub-title {
    display: table;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 14px;
    padding: 2px 0 2px 22px;
    position: relative;
}
.recruit-sub-title::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 5px;
    background: var(--color-accent);
}

/* 求める人物像のリスト装飾 */
.recruit-vision {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--color-surface-1);
    padding: 35px;
    border-radius: 14px;
    border: 1px solid var(--color-border);
}
.recruit-vision ul {
    list-style: none;
}
.recruit-vision ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 20px;
}
.recruit-vision ul li:last-child {
    margin-bottom: 0;
}
.recruit-vision ul li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}


.recruit-contact-btn {
    margin-top: 40px;
}

/* 採用専用スマホレスポンシブ */
@media (max-width: 768px) {
    .recruit-lead {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .recruit-block {
        margin-bottom: 50px;
    }
    .recruit-vision {
        padding: 20px;
    }

}
