/* ===== Reset & Variables ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy:      #1C3175;
    --green:     #5AB030;
    --green-lt:  #7EC855;
    --care:      #5AB030;
    --ict:       #2D7DD2;
    --seminar:   #F5A623;
    --bg-light:  #F5F7FA;
    --text:      #333333;
    --text-mute: #666666;
    --white:     #ffffff;
    --gradient:  linear-gradient(135deg, #1C3175 0%, #5AB030 100%);
    --shadow:    0 4px 24px rgba(0,0,0,0.08);
    --radius:    12px;
    --ease:      0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text);
    line-height: 1.8;
    font-size: 15px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== Layout ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 88px 0; }
.bg-light { background: var(--bg-light); }

/* ===== Section headings ===== */
.section-title {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    color: var(--navy);
    margin-bottom: 12px;
}

.section-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
    margin: 16px auto 0;
}

.section-lead {
    text-align: center;
    color: var(--text-mute);
    margin-bottom: 52px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    transition: var(--ease);
    cursor: pointer;
    letter-spacing: 0.03em;
}

.btn-white {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 4px 24px rgba(0,0,0,0.14);
}
.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(0,0,0,0.2);
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(28,49,117,0.28);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(28,49,117,0.38);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: box-shadow var(--ease);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark svg { display: block; }

.logo-text {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 3px;
    line-height: 1.2;
    white-space: nowrap;
}

.logo-name {
    font-size: 1.15rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-company {
    font-size: 11px;
    color: var(--text-mute);
    letter-spacing: 0.08em;
}

/* Nav */
.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    padding: 8px 13px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    border-radius: 6px;
    transition: var(--ease);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy);
    background: rgba(28,49,117,0.06);
}

.nav-btn {
    background: var(--gradient);
    color: var(--white) !important;
    border-radius: 50px;
    padding: 8px 22px;
    font-size: 13.5px;
}
.nav-btn:hover {
    opacity: 0.88;
    background: var(--gradient);
    transform: none;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: white;
    border-top: 1px solid #f0f0f0;
    padding: 8px 0 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid #f5f5f5;
    transition: var(--ease);
}
.mobile-menu a:hover { color: var(--navy); background: var(--bg-light); }
.mobile-menu .mobile-contact {
    margin: 12px 24px 0;
    background: var(--gradient);
    color: white !important;
    border-radius: 50px;
    text-align: center;
    border-bottom: none;
    padding: 12px 24px;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(28,49,117,0.88) 0%, rgba(90,176,48,0.82) 100%),
        url('images/seminar-photo.jpg') center/cover no-repeat;
    overflow: hidden;
    padding-top: 68px;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.shape-1 { width: 500px; height: 500px; top: -200px; right: -150px; }
.shape-2 { width: 300px; height: 300px; bottom: -100px; left: -80px; }
.shape-3 { width: 200px; height: 200px; top: 40%; right: 15%; background: rgba(255,255,255,0.04); }

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    padding: 80px 24px 80px;
    max-width: 700px;
}

.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    letter-spacing: 0.06em;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 28px;
}

.hero-sub {
    font-size: 15px;
    line-height: 2;
    opacity: 0.88;
    margin-bottom: 44px;
}

/* ===== SERVICE CARDS ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 52px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform var(--ease), box-shadow var(--ease);
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.card-care    { border-top-color: var(--care); }
.card-ict     { border-top-color: var(--ict); }
.card-seminar { border-top-color: var(--seminar); }

.card-icon { font-size: 2.4rem; line-height: 1; }

.card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.55;
}

.card p {
    font-size: 14px;
    color: var(--text-mute);
    line-height: 1.85;
    flex: 1;
}

.card-more {
    font-size: 13px;
    font-weight: 700;
}
.card-care    .card-more { color: var(--care); }
.card-ict     .card-more { color: var(--ict); }
.card-seminar .card-more { color: var(--seminar); }

/* ===== NEWS ===== */
.news-list {
    max-width: 760px;
    margin: 48px auto 0;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e4e4e4;
    font-size: 14px;
}

.news-date {
    color: var(--text-mute);
    white-space: nowrap;
    min-width: 88px;
    font-size: 13px;
}

.news-tag {
    background: var(--navy);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-title { color: var(--text); }

/* ===== ABOUT ===== */
.about-wrap {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 52px;
    align-items: start;
    margin-top: 52px;
}

.about-box {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 36px;
    margin-bottom: 24px;
    border-left: 4px solid;
    border-image: var(--gradient) 1;
}

.about-box p {
    margin-bottom: 16px;
    line-height: 1.95;
}
.about-box p:last-child { margin-bottom: 0; }

.about-sig { text-align: right; padding-right: 4px; }

.sig-company {
    font-size: 13px;
    color: var(--text-mute);
}

.sig-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 6px;
}

.about-photo { text-align: center; }

.photo-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #dce4f0, #c8d5e8);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.photo-caption {
    font-size: 13px;
    color: var(--text-mute);
}

.sns-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: flex-end;
}

.sns-link {
    display: inline-flex;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

.sns-link:hover {
    transform: scale(1.12);
    opacity: 0.85;
}

.sns-link img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* ===== FAQ ===== */
.faq-wrap {
    max-width: 760px;
    margin: 52px auto 0;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-align: left;
    gap: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    transition: color var(--ease);
}

.faq-q:hover { color: var(--navy); }

.faq-q > span:first-child::before {
    content: 'Q. ';
    color: var(--navy);
    font-weight: 700;
}

.faq-icon {
    flex-shrink: 0;
    font-size: 1.3rem;
    color: var(--navy);
    transition: transform var(--ease);
    line-height: 1;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 4px;
}

.faq-item.open .faq-a {
    max-height: 300px;
    padding: 0 4px 20px;
}

.faq-a p {
    color: var(--text-mute);
    line-height: 1.85;
}

.faq-a p::before {
    content: 'A. ';
    color: var(--green);
    font-weight: 700;
}

/* ===== CTA ===== */
.cta-section {
    background: var(--gradient);
    padding: 88px 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 15px;
    line-height: 2.1;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 64px 0 32px;
}

/* フッター内のロゴテキストはグラデーション効果を打ち消して白表示 */
.footer .logo-name {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: white;
    color: white;
    font-size: 1.1rem;
}

.footer .logo-company {
    -webkit-text-fill-color: rgba(255,255,255,0.65);
    color: rgba(255,255,255,0.65);
}

/* ロゴマーク：白フィルターを除去し、薄い円形背景でロゴを引き立てる */
.footer .logo-mark {
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.footer .logo-mark img {
    filter: none !important;
    width: 32px !important;
    height: 32px !important;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    max-width: 480px;
}

.footer-nav a {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    transition: color var(--ease);
}
.footer-nav a:hover { color: var(--white); }

.footer-info {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 28px;
    margin-bottom: 24px;
}

.footer-info p {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 2.1;
}

.copyright {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    text-align: center;
    letter-spacing: 0.04em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .cards { grid-template-columns: 1fr 1fr; }
    .about-wrap { grid-template-columns: 1fr; }
    .about-photo { max-width: 220px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .hamburger { display: flex; }

    .section { padding: 64px 0; }
    .hero-content { padding: 60px 24px 60px; }

    .cards { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; gap: 28px; }
    .footer-nav { max-width: 100%; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.85rem; }
    .about-box { padding: 24px 20px; }
    .news-item { flex-wrap: wrap; gap: 8px; }
}
