* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #D97706;
    --primary-dark: #B45309;
    --accent: #2F855A;
    --text-dark: #3A2A1E;
    --text-light: #6B5B4E;
    --bg-light: #FDF8F2;
    --white: #FFFFFF;
    --border: #EADFD2;
    --shadow: rgba(80, 50, 20, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "游ゴシック Medium", "Yu Gothic Medium", Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ===== ヘッダー ===== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: "🐾";
    font-size: 1.4rem;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a:hover {
    color: var(--primary-dark);
}

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

/* ===== ヒーロー ===== */
.hero {
    margin-top: 80px;
    min-height: 88vh;
    background: linear-gradient(135deg, #EF9A3D 0%, #A8442A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
    padding: 2rem;
    max-width: 900px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.35;
    margin-bottom: 1.2rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    line-height: 1.9;
    animation: fadeInUp 1s ease 0.4s backwards;
}

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

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-shadow: none;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* ===== 共通セクション ===== */
.section {
    padding: 6rem 2rem;
}

.section--light {
    background: var(--bg-light);
}

.section--white {
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 4rem;
    font-size: 1.05rem;
}

/* ===== カードグリッド（事業内容・強み・機能） ===== */
/* カードは4枚構成のため、4列→2列→1列と切り替えて端数の行が出ないようにする */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1180px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(80, 50, 20, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.card p {
    color: var(--text-light);
    line-height: 1.8;
    text-align: left;
}

/* 白背景のセクション内ではカードが背景と同化するため、淡い色と枠線を付ける */
.section--white .card {
    background: var(--bg-light);
    border: 1px solid var(--border);
}

/* 機能一覧は少し小ぶりなカードで並べる */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-item .feature-emoji {
    font-size: 1.6rem;
    line-height: 1.2;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== プロダクト紹介 ===== */
.product-showcase {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--bg-light);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 5px 25px var(--shadow);
}

.product-visual {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-visual img {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.product-badge {
    display: inline-block;
    background: var(--primary-dark);
    color: var(--white);
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.product-body h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-body p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

.product-status {
    background: var(--white);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin-bottom: 0 !important;
}

.product-status strong {
    color: var(--text-dark);
}

/* プロダクトセクション内の小見出し（主な機能／アプリの特徴／アプリ画面） */
.product-heading {
    margin: 4.5rem 0 0.6rem;
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.product-heading + .card-grid,
.product-heading + .feature-grid,
.product-heading + .screens-grid {
    margin-top: 2rem;
}

/* ===== アプリ画面ギャラリー ===== */
.screens-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 0 2rem;
}

.screens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.screen {
    margin: 0;
}

.screen img {
    display: block;
    width: 100%;
    height: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 24px var(--shadow);
}

.screen figcaption {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
}

.screen figcaption span {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== 会社概要 ===== */
.about-box {
    max-width: 860px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px var(--shadow);
}

.about-table {
    width: 100%;
    border-collapse: collapse;
}

.about-table tr {
    border-bottom: 1px solid var(--border);
}

.about-table tr:last-child {
    border-bottom: none;
}

.about-table th,
.about-table td {
    padding: 1.2rem 1rem;
    text-align: left;
    vertical-align: top;
}

.about-table th {
    width: 30%;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.about-table td {
    color: var(--text-light);
    line-height: 1.9;
}

/* ===== お問い合わせ ===== */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px var(--shadow);
}

.contact-lead {
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.9;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.required {
    color: #C2410C;
    font-size: 0.85rem;
    margin-left: 0.3rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
    background: var(--white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #E8862E 0%, #B4451E 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(184, 83, 30, 0.4);
}

.form-note {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== フッター ===== */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
    .product-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .product-visual {
        padding: 2rem;
    }

    .product-visual img {
        max-width: 240px;
    }
}

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

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .card-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* スマホでは画面ギャラリーを2列にして縦の長さを抑える */
    .screens-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .screen figcaption {
        margin-top: 0.7rem;
        font-size: 0.85rem;
    }

    .screen figcaption span {
        font-size: 0.75rem;
    }

    .card {
        padding: 2rem;
    }

    .contact-content,
    .about-box {
        padding: 2rem 1.5rem;
    }

    .about-table th,
    .about-table td {
        display: block;
        width: 100%;
        padding: 0.6rem 0;
    }

    .about-table th {
        padding-top: 1.2rem;
    }

    .about-table td {
        padding-bottom: 1.2rem;
    }
}

/* ===== スクロール表示アニメーション ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero::before {
        animation: none;
    }
}
