/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #232f3e;
    --secondary-color: #37475a;
    --accent-color: #ff9900;
    --text-color: #0f1111;
    --light-bg: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --border-color: #eaeded;
}

html, body {
    height: 100%;
    min-height: 100%;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ヘッダー */
header {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

header.scroll-down {
    transform: translateY(-100%);
}

header.scroll-up {
    transform: translateY(0);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    transition: opacity 0.3s;
}

.logo a:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 2px 0;
    transition: 0.3s;
}

/* メインコンテンツ */
main {
    padding-top: 80px; /* ヘッダーの高さ分のパディング */
    flex: 1 0 auto;
}

.hero {
    position: relative;
    min-height: 48vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80') center center/cover no-repeat;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30, 40, 60, 0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1rem 2rem 1rem;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 0.08em;
    line-height: 1.3;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-breadcrumb {
    font-size: 1rem;
    opacity: 0.8;
}

.hero-lead {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
    margin-top: 1.5rem;
    line-height: 2;
    letter-spacing: 0.05em;
}

.lead-section, .lead-section h2, .lead-section p {
    display: none;
}

.hero-cta {
    margin-top: 3rem;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-cta .btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--accent-color);
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.features {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 0;
    margin-top: 3rem;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.features h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 0 2rem;
}

.feature-item {
    text-align: center;
    padding: 2.5rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* フッター */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 5% 1rem;
    margin-top: 4rem;
}

.footer-content.footer-horizontal {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0 1rem 0;
}

.footer-section {
    flex: 1 1 0;
    min-width: 180px;
    text-align: left;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .footer-content.footer-horizontal {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 0 0.5rem 0;
    }
    .footer-section {
        min-width: 0;
        text-align: center;
    }
}

.social-links { display: none; }

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    padding: 1rem 0 0.5rem 0;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-links a:not(:last-child)::after {
    content: '/';
    margin: 0 1.2rem;
    color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.95rem;
        padding: 0.7rem 0 0.3rem 0;
    }
    .footer-links a:not(:last-child)::after {
        content: '';
        margin: 0;
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        margin: 0;
        padding: 0 2rem;
        align-items: flex-start;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: 32vh;
    }

    .hero h1 {
        font-size: 1.3rem;
        white-space: normal;
    }

    .lead-section {
        padding: 2.5rem 0.5rem 2rem 0.5rem;
    }

    .lead-section h2 {
        font-size: 1.1rem;
    }

    .lead-section p {
        font-size: 0.95rem;
    }

    .features {
        margin-top: 2rem;
        padding: 4rem 5%;
    }

    .feature-grid {
        padding: 0;
    }
}

/* デフォルトは画像→テキスト（HTML順） */
.biz-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 3rem 1rem;
}

/* PC時のみreverseで左右反転 */
@media (min-width: 901px) {
  .biz-section.reverse {
    flex-direction: row-reverse;
  }
}

/* スマホ・タブレット時はすべて縦並び（画像→テキスト） */
@media (max-width: 900px) {
  .biz-section, .biz-section.reverse {
    flex-direction: column;
    padding: 0.5rem;
  }
}

.biz-col {
    flex: 1 1 0;
    min-width: 260px;
}

.img-col img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.text-col h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.text-col p {
    font-size: 1.1rem;
    color: #222;
    line-height: 2;
    letter-spacing: 0.05em;
}

.biz-section:last-of-type {
    padding-bottom: 0;
}

@media (max-width: 600px) {
    .logo a {
        font-size: 1.2rem;
    }
    .navbar {
        padding: 0.7rem 2%;
    }
    .img-col img {
        border-radius: 3px;
        box-shadow: none;
    }
    .text-col h2 {
        font-size: 1.05rem;
        margin-bottom: 0.7rem;
        line-height: 1.3;
    }
    .text-col p {
        font-size: 0.95rem;
        line-height: 1.8;
        letter-spacing: 0.02em;
    }
    .hero h1 {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 0.7rem;
    }
    .hero-lead {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    .features,
    .lead-section {
        padding: 1rem 2%;
        margin-top: 1.2rem;
    }
    .biz-section {
        gap: 0.7rem;
        padding: 0.5rem;
    }
    .text-col,
    .img-col {
        padding-left: 0.3rem;
        padding-right: 0.3rem;
    }
    .hero {
        margin-bottom: 1rem;
    }
    .biz-col.text-col {
        padding: 1rem;
    }
    footer {
        margin-top: 1rem;
    }
} 