/* ---- 全局重置与字体 ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f9fafc;
    color: #1e293b;
    line-height: 1.7;
}
a {
    text-decoration: none;
    color: inherit;
}

/* ---- 主色调设定 (基于Logo照片氛围推测) ---- */
:root {
    --primary: #2A4070;      /* 深蓝，沉稳专业 */
    --primary-light: #4a6c9e;
    --primary-dark: #14233b;
    --accent: #C8A96E;        /* 金色点缀，增加高级感 */
    --bg-light: #f4f6fa;
    --text-dark: #1e293b;
    --text-light: #5a6a7a;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* ---- 容器与布局 ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- 头部 Header ---- */
.header {
    background: var(--primary-dark);
    color: white;
    padding: 20px 0;
    border-bottom: 3px solid var(--accent);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-placeholder {
    width: 100px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    border: 1px dashed rgba(255,255,255,0.3);
    /* 实际使用时替换为logo图片 */
}
.logo-placeholder img {
    max-width: 100%;
    max-height: 100%;
}
.company-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}
.company-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}
.header-contact {
    text-align: right;
    font-size: 14px;
    line-height: 1.6;
}
.header-contact span {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 20px;
    margin-left: 10px;
    font-size: 13px;
}

/* ---- Hero 主视觉 ---- */
.hero {
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 70px 0 50px;
    text-align: center;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light), var(--accent));
    opacity: 0.5;
}
.hero h1 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 15px;
}
.hero h1 strong {
    font-weight: 700;
    color: var(--accent);
}
.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    font-weight: 300;
}
.hero .tagline {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 14px;
    letter-spacing: 2px;
    background: rgba(255,255,255,0.05);
}

/* ---- 通用 section ---- */
.section {
    padding: 70px 0;
    border-bottom: 1px solid var(--border);
}
.section:last-of-type {
    border-bottom: none;
}
.section-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 2px;
}
.section-sub {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 15px;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 10px auto 20px;
}

/* ---- 卡片网格 ---- */
.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 30px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px 24px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.3s;
    border: 1px solid rgba(0,0,0,0.02);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(42, 64, 112, 0.08);
}
.card .icon {
    font-size: 36px;
    margin-bottom: 16px;
    display: block;
    color: var(--primary);
}
.card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.card p, .card li {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}
.card ul {
    list-style: none;
    padding-left: 0;
}
.card ul li::before {
    content: '・';
    color: var(--accent);
    margin-right: 4px;
}
.crad-points .card{
    margin-top: 15px;
    flex-direction: row;
}
.crad-points .card .card-title-img{
    width: 100%;
    border-radius:10px;
}
.crad-points .card .card-title{
    /*margin-top: 15px;*/
    margin-left: 15px;
}
.crad-team .card{
    margin-top: 15px;
}
.crad-team .card .card-avatar{
    width: 99%;
}
/* ---- 公司信息（会社概况） ---- */
.company-info {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: var(--white);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: var(--shadow);
}
.company-info-left {
    flex: 1.2;
    min-width: 260px;
}
.company-info-left h2 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 6px;
}
.company-info-left .lead {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--text-dark);
    font-weight: 500;
}
.company-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px 20px;
    font-size: 14px;
}
.company-details dt {
    font-weight: 600;
    color: var(--primary-dark);
}
.company-details dd {
    margin-bottom: 8px;
    color: var(--text-light);
}
.company-info-right {
    flex: 1;
    min-width: 200px;
    background: var(--bg-light);
    border-radius: 14px;
    padding: 24px;
}
.company-info-right h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}
.company-info-right ul {
    list-style: none;
}
.company-info-right ul li {
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.company-info-right ul li:last-child {
    border-bottom: none;
}
.badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    margin-left: 6px;
}

/* ---- 人员介绍 ---- */
.member-card {
    text-align: center;
    padding: 30px 16px;
}
.member-avatar {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary-light), var(--primary-dark));
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 300;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.member-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
}
.member-card .role {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    margin: 4px 0 10px;
}
.member-card p {
    font-size: 13px;
    color: var(--text-light);
}

/* ---- 价格表/プラン ---- */
.plan-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    background: var(--white);
    transition: all 0.2s;
}
.plan-card.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(42, 64, 112, 0.1);
    transform: scale(1.02);
}
.plan-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
}
.plan-card .price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 20px 0;
}
.plan-card .price small {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
}
.plan-card ul {
    list-style: none;
    text-align: left;
    padding: 0 12px;
}
.plan-card ul li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}
.plan-card ul li:last-child {
    border-bottom: none;
}
.plan-card .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    border-radius: 30px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}
.plan-card .btn:hover {
    background: var(--primary-light);
}

/* ---- 学生寮 表格 ---- */
.dorm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.dorm-table th {
    background: var(--primary);
    color: white;
    padding: 14px 10px;
    font-weight: 600;
}
.dorm-table td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.dorm-table tr:last-child td {
    border-bottom: none;
}
.dorm-table .footnote {
    font-size: 12px;
    color: var(--text-light);
    background: var(--bg-light);
}

/* ---- フッター ---- */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 40px 0 30px;
    text-align: center;
    font-size: 13px;
}
.footer a {
    color: var(--accent);
}

/* ---- レスポンシブ ---- */
@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    .hero h1 {
        font-size: 34px;
    }
    .company-info {
        flex-direction: column;
        padding: 30px 20px;
    }
}
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }
    .header-contact {
        text-align: center;
    }
    .hero h1 {
        font-size: 28px;
    }
    .company-details {
        grid-template-columns: 1fr;
    }
    .plan-card.featured {
        transform: none;
    }
}