/* --- 1. 全体設定と定数 --- */
:root {
    --primary-color: #ff9d6c; /* アクセントのオレンジ */
    --bg-dark: #121217;       /* 深い紺色の背景 */
    --glass-bg: rgba(255, 255, 255, 0.05); 
    --text-main: #e0e0e0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    line-height: 1.8;
    overflow-x: hidden;
}

/* --- 2. ヒーローセクション（本日のメイン：5.5rem調整） --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: 
        linear-gradient(rgba(18, 18, 23, 0.8), rgba(18, 18, 23, 0.8)), 
        url(https://images.unsplash.com/photo-1449824913935-59a10b8d2000?q=80&w=2070&auto=format&fit=crop);
    background-size: cover;
    background-position: center;
}

.hero-text {
    font-size: 5.5rem !important; /* PCでの巨大サイズ */
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ffffff, #ff9d6c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    font-family: 'Montserrat', sans-serif;
}

.hero::before {
    content: "";
    position: absolute;
    width: 300px; height: 300px;
    background: var(--primary-color);
    filter: blur(150px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.2;
    animation: floating 10s infinite alternate;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, #fff 1px, transparent 1px),
        radial-gradient(circle at 70% 60%, #fff 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, #fff 1px, transparent 1px);
    background-size: 600px 600px;
    opacity: 0.3;
    animation: particles 20s linear infinite;
    z-index: 0;
}

@keyframes particles {
    from { background-position: 0 0; }
    to { background-position: 600px 1200px; }
}

@keyframes floating {
    0% { transform: translate(-20%, -20%); }
    100% { transform: translate(20%, 20%); }
}

/* --- 3. ヘッダー --- */
header {
    background: rgba(18, 18, 23, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    z-index: 2000;
}

header .logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

/* --- 4. コンテンツ共通レイアウト --- */
.container {
    width: 100%;
    margin: 0;
    padding: 100px 0;
    position: relative;
    box-sizing: border-box;
}

.mission-content, .grid, .company-card, .accordion-pricing, .cta-content {
    max-width: 1100px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 5%;
}

.grid, .accordion-pricing, .company-card, .cta-content, .mission-lead, .vision-lead {
    margin-top: 100px !important;
}

.container::after {
    content: "";
    position: absolute;
    top: 0; left: 50%; width: 1px; height: 100px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    opacity: 0.5;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 120px;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 40px; height: 2px;
    background: var(--primary-color);
    margin: 30px auto 0;
}

h2 span.highlight, h2 strong {
    color: var(--primary-color);
    font-weight: 800;
}

.label {
    display: table;
    margin: 0 auto 24px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 4px;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 4px 16px;
    text-transform: uppercase;
}

/* --- 5. サービスカード --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(255, 157, 108, 0.2);
}

/* --- 6. MISSION / VISION セクション --- */
.mission-section, .vision-section {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 150px 0;
    width: 100% !important;
}

.mission-section::before {
    content: "OUR MISSION";
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 20vw; font-weight: 900; color: rgba(255, 255, 255, 0.02);
    white-space: nowrap; z-index: 0;
}

.vision-section::before {
    content: "OUR VISION";
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 20vw; font-weight: 900; color: rgba(255, 255, 255, 0.02);
    white-space: nowrap; z-index: 0;
}

.mission-content, .vision-content {
    position: relative; z-index: 10; max-width: 850px; margin: 0 auto;
}

.mission-lead, .vision-lead {
    font-size: 1.4rem; font-weight: 500; color: var(--primary-color);
}

/* --- 7. アコーディオン料金表 --- */
.accordion-pricing {
    max-width: 900px; margin: 0 auto; border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-item input[type="radio"] { display: none; }

.item-header {
    display: flex; align-items: center; padding: 30px 20px; cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); transition: 0.3s;
}

.plan-no { font-size: 0.9rem; color: var(--primary-color); font-weight: bold; width: 50px; }
.item-header h3 { flex: 1; margin: 0; font-size: 1.2rem; text-align: left; }
.price { font-weight: bold; margin-right: 30px; }

.icon { width: 20px; height: 20px; position: relative; }
.icon::before, .icon::after { content: ""; position: absolute; background: #fff; transition: 0.3s; }
.icon::before { width: 100%; height: 2px; top: 9px; left: 0; }
.icon::after { width: 2px; height: 100%; top: 0; left: 9px; }

.item-content {
    max-height: 0; overflow: hidden; transition: 0.5s ease;
    background: rgba(255, 255, 255, 0.02); padding: 0 70px;
}

.pricing-item input[type="radio"]:checked + .item-header .icon::after { transform: rotate(90deg); opacity: 0; }
.pricing-item input[type="radio"]:checked ~ .item-content { max-height: 500px; padding-top: 20px; }

/* --- 8. 会社概要 --- */
.company-card {
    background: rgba(255, 255, 255, 0.02); border-radius: 24px; padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(5px);
}

.info-row { display: flex; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); transition: 0.3s; }
.info-row:hover { background: rgba(255, 255, 255, 0.02); padding-left: 10px; }
.info-label { width: 30%; color: var(--primary-color); font-weight: bold; }
.info-value { width: 70%; color: #fff; }

/* --- 9. お問い合わせ --- */
.cta-section { text-align: center; padding: 120px 10%; }
.cta-content {
    background: linear-gradient(135deg, rgba(255, 157, 108, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    padding: 80px 40px; border-radius: 30px; border: 1px solid rgba(255, 157, 108, 0.3);
}

.cta-button {
    display: inline-block; background: linear-gradient(45deg, #ff9d6c, #ff6b6b);
    color: white; padding: 20px 60px; border-radius: 50px; font-weight: bold;
    text-decoration: none; transition: 0.3s; box-shadow: 0 10px 30px rgba(255, 157, 108, 0.3);
}

/* --- 10. アニメーション設定 --- */
/* --- アニメーション設定（修正版） --- */
.container, .pricing-item {
    opacity: 0;
    transform: translateY(30px); /* 80pxだと動きすぎなので30pxくらいが上品です */
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
    visibility: hidden; /* 消えている間はクリック等もできないようにする */
}

/* JSでこのクラスがついたら表示 */
.container.show, .pricing-item.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* ヒーローは最初から見せる（これ大事！） */
.hero.container {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* --- 11. スマホ対応 (レスポンシブ) --- */
#nav-check { display: none; }
.nav-links { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }

/* --- ナビゲーションのリンクを洗練させる --- */
.nav-links li a {
    text-decoration: none;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 8px 0;
    position: relative; /* 下線を出すための基準 */
    transition: 0.3s;
}

/* ホバーした時にオレンジのラインが中央から広がる演出 */
.nav-links li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: 0.3s ease;
    transform: translateX(-50%);
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-links li a:hover::after {
    width: 100%; /* ホバーでラインが全開 */
}

/* =========================================
   12. フッター（サイバー・ミニマル）
   ========================================= */
footer {
    background: #0d0d10; /* 背景より一段深い黒 */
    padding: 80px 10% 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

/* フッターのロゴ */
.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 157, 108, 0.3);
}

.footer-info p {
    color: #888;
    font-size: 0.9rem;
    max-width: 300px;
    line-height: 1.6;
}

/* SNS・リンクエリア */
.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px; /* スッと動く演出 */
}

/* 下部のコピーライト */
.footer-bottom {
    max-width: 1100px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    font-size: 0.75rem;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-info { margin: 0 auto; }
    .footer-links {
        width: 100%;
        justify-content: center;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

/* スマホ版のメニュー項目は少し大きめに（ダサさ解消） */
@media (max-width: 768px) {
    .nav-links li a {
        font-size: 1.5rem;
        font-weight: 700;
    }
}

@media (max-width: 768px) {
    .hero-text { font-size: 2.8rem !important; }

    .nav-btn {
        display: flex !important; flex-direction: column; justify-content: space-between;
        width: 30px; height: 20px; cursor: pointer; z-index: 2001; position: relative;
    }

    .nav-btn span { display: block; height: 2px; width: 100%; background-color: var(--primary-color); transition: 0.3s; }

    .nav-links {
        position: fixed; top: 0; right: -100%; width: 75%; height: 100vh;
        background: rgba(18, 18, 23, 0.98); backdrop-filter: blur(15px);
        flex-direction: column; align-items: center; justify-content: center;
        gap: 40px !important; transition: 0.4s ease; z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    #nav-check:checked ~ .nav-links { right: 0 !important; }
    #nav-check:checked ~ .nav-btn span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    #nav-check:checked ~ .nav-btn span:nth-child(2) { opacity: 0; }
    #nav-check:checked ~ .nav-btn span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .info-row { flex-direction: column; gap: 5px; }
    .info-label, .info-value { width: 100%; }
}

@media (min-width: 769px) {
    .nav-btn { display: none !important; }
}