/* Global Styles & Variables */
:root {
    --color-primary: #0056b3;
    /* Intelligent Blue */
    --color-secondary: #ff8c00;
    /* Warm Orange */
    --color-text: #333333;
    --color-bg: #ffffff;
    --color-bg-light: #f9f9f9;
    --color-white: #ffffff;
    --font-main: 'Noto Sans JP', sans-serif;
    --spacing-unit: 1rem;
    --container-width: 1200px;
    --transition-speed: 0.3s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Layout Utilities */
.container {
    max-width: 1100px;
    width: 100%;
    /* ← これで中の要素が広がれるように！ */
    margin: 0 auto;
    /* 画面中央に配置 */
    padding: 0 20px;
    /* ← これで左端から少し内側に入る！ */
}

section {
    padding: 80px 0;
    /* 4rem -> 80px */
}

.bg-light {
    background-color: var(--color-bg-light);
}

/* Header */
header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    /* ← これで固定！ */
    width: 100%;
    /* ← これで横幅いっぱい！ */
    top: 0;
    /* ← これで一番上！ */
    z-index: 1000;
    /* ← 他の要素より手前に表示 */
    height: 80px;
    /* ← 高さの設定 */
    display: flex;
    align-items: center;
}

/* ロゴとメニューを包む箱 */
.header-container {
    display: flex;
    /* Flexboxを使う宣言 */
    justify-content: space-between;
    /* ← これでロゴは左端、メニューは右端へ！ */
    align-items: center;
    /* ← これで上下の真ん中へ！ */
    width: 100%;
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo a {
    text-decoration: none;
    color: var(--color-primary);
    display: flex;
    align-items: baseline;
}

.logo-sub {
    font-size: 0.9rem;
    margin-left: 10px;
    color: #666;
    font-weight: 400;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 30px;
    /* 余白を確保: 40px -> 30px */
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    /* 1rem -> 0.95rem */
    font-weight: 500;
    transition: color var(--transition-speed);
    color: var(--color-text);
    /* 明示的に指定 */
}

.nav-links a:hover {
    color: var(--color-secondary);
}

/* Hero Section */
.hero {
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Dark Overlay for better visibility */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-color: var(--color-primary);
    /* Fallback */
    color: var(--color-white);
    margin-top: 80px;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    background: rgba(0, 0, 0, 0.4);
    /* optional if you want a subtle box behind text, but let's keep it clean */
    padding: 2rem;
    border-radius: 10px;
}

.open-badge {
    display: inline-block;
    background-color: #ff4757;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.05em;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.btn-large {
    font-size: 1.2rem;
    padding: 15px 40px;
    border-radius: 50px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
}

/* Feature Section (Updated from Concept) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform var(--transition-speed);
    border-bottom: 4px solid var(--color-secondary);
    /* Accent color border */
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Tenjin Section */
.tenjin-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tenjin-lead {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.8;
}

.tenjin-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tenjin-card {
    background: var(--color-white);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #ff4757;
    /* Tenjin Red */
    text-align: center;
    transition: transform var(--transition-speed);
}

.tenjin-card:hover {
    transform: translateY(-5px);
}

.tenjin-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tenjin-card h4 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Course Section (New) */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
}

.course-card:hover {
    transform: translateY(-5px);
}

.img-placeholder {
    height: 200px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: 700;
    font-size: 1.2rem;
}

.course-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.course-content {
    padding: 25px;
}

.course-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-secondary);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 5px;
    width: fit-content;
}

.badge-tenjin {
    background-color: #ff4757;
    /* Eye-catching red/pink */
    color: var(--color-white);
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: none;
    box-shadow: 0 2px 5px rgba(255, 71, 87, 0.4);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.pricing-card {
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-header {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 20px;
    text-align: center;
}

.pricing-header h3 {
    margin-bottom: 0;
    color: var(--color-white);
    font-size: 1.5rem;
}

.pricing-body {
    padding: 30px 20px;
    flex: 1;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #ddd;
    padding: 15px 0;
}

.price-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.price-label {
    font-weight: 700;
    color: var(--color-text);
}

.price-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-secondary);
    display: flex;
    align-items: flex-end;
    line-height: 1;
}

.price-currency {
    font-size: 1rem;
    margin-left: 5px;
    color: var(--color-text);
    font-weight: normal;
    margin-bottom: 2px;
}

.pricing-note {
    text-align: right;
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

/* Access Section */
.access-box {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    background: var(--color-bg-light);
    border-radius: 8px;
    overflow: hidden;
}

.access-info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
}

.access-map {
    flex: 1;
    min-width: 300px;
}

.access-note {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-container {
    text-align: center;
}

.contact-btn-wrapper {
    margin: 3rem 0;
    /* 2rem -> 3rem */
}

.tel-info {
    margin-top: 3rem;
    /* 2rem -> 3rem */
    padding: 40px;
    /* 2rem -> 40px */
    background-color: var(--color-white);
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tel-number {
    font-size: 2.5rem;
    /* 2rem -> 2.5rem */
    font-weight: bold;
    color: var(--color-primary);
    margin: 1rem 0;
    /* 0.5rem -> 1rem */
}

/* Typography Updates */
h2 {
    font-size: 2.2rem;
    /* 2rem -> 2.2rem */
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 50px;
    /* 2rem -> 50px */
    letter-spacing: 0.1em;
    /* 文字間隔追加 */
}

.footer-info p {
    margin-bottom: 0.8rem;
    /* 0.5rem -> 0.8rem */
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    /* Mobile Navigation */
    header {
        position: relative;
        /* 固定解除または調整 */
    }

    nav {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
    }

    .nav-links {
        display: flex;
        /* 表示する */
        flex-direction: column;
        /* 縦並び */
        gap: 1rem;
        margin-top: 1rem;
        text-align: center;
    }

    .hero {
        margin-top: 0;
        /* ヘッダーがrelativeになった場合の調整 */
    }
}

/* Company Section */
.bg-gray {
    background-color: #f4f6f9;
}

.company-info {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.company-list dl {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.company-list dl:first-child {
    padding-top: 0;
}

.company-list dl:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.company-list dt {
    width: 30%;
    font-weight: 700;
    color: var(--color-primary);
}

.company-list dd {
    width: 70%;
    color: var(--color-text);
}

.company-list a {
    color: var(--color-primary);
    transition: color 0.3s;
}

.company-list a:hover {
    color: var(--color-secondary);
}

@media (max-width: 768px) {
    .company-list dl {
        flex-direction: column;
    }

    .company-list dt {
        width: 100%;
        margin-bottom: 5px;
    }

    .company-list dd {
        width: 100%;
    }

    .company-info {
        padding: 20px;
    }
}