:root {
    --primary: #2b7fd4;
    --primary-light: #5ba2e6;
    --secondary: #f07820;
    --bg-color: #ffffff;
    --card-bg: #f8fafc;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --gradient: linear-gradient(135deg, #2b7fd4 0%, #f07820 100%);
    --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

img {
    max-width: 100%;
    height: auto;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    padding: 1.5rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 72px;
    width: auto;
}

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

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

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

/* ハンバーガーボタン（モバイルのみ表示） */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1100;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px auto;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* バックドロップ（メニュー開閉時） */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* モバイルナビ（スライドイン式） */
@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
    }
    .nav {
        padding: 0 1rem;
    }
    .logo-img {
        height: 48px;
    }
    .nav-toggle {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(82vw, 320px);
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.75rem;
        padding: 5rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        box-shadow: -12px 0 36px rgba(0, 0, 0, 0.12);
        z-index: 1050;
    }
    .nav-links.open {
        transform: translateX(0);
    }
    .nav-links a {
        font-size: 1.1rem;
        font-weight: 600;
        white-space: nowrap;
    }
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    gap: 4rem;
}

@media (max-width: 991px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
    }
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4.2vw, 3.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    word-break: keep-all;
}

.hero-line {
    display: block;
    white-space: nowrap;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

@media (max-width: 991px) {
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

@media (max-width: 991px) {
    .hero-actions {
        justify-content: center;
    }
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(43, 127, 212, 0.2);
    filter: brightness(1.1);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f1f5f9;
}

.hero-image-container {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-image-overlay {
    position: absolute;
    inset: -5px;
    background: var(--gradient);
    border-radius: 28px;
    opacity: 0.3;
    filter: blur(20px);
    z-index: -1;
}

.features {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid #e2e8f0;
    padding: 3rem;
    border-radius: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    height: 100px;
    width: 100px;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

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

.footer {
    padding: 6rem 2rem 4rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (max-width: 991px) {
    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-address {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, auto);
    column-gap: 2rem;
    row-gap: 0.75rem;
    justify-content: start;
}

@media (max-width: 600px) {
    .footer-links {
        grid-template-columns: repeat(2, auto);
        column-gap: 1.5rem;
    }
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 3rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

/* Confirmation Page Styles */
.confirm-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

.confirm-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid #e2e8f0;
    padding: 4rem 2rem;
    border-radius: 32px;
    max-width: 500px;
    width: 100%;
}

.confirm-icon {
    margin-bottom: 2rem;
    animation: bounce 2s infinite ease-in-out;
}

.confirm-logo-img {
    height: 120px;
    width: auto;
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.confirm-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.confirm-text {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

/* Page Header Section */
.page-hero {
    padding: 12rem 2rem 4rem;
    text-align: center;
    background: radial-gradient(circle at top, rgba(43, 127, 212, 0.05) 0%, transparent 70%);
}

.page-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.breadcrumb {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 3rem;
}

.breadcrumb a {
    color: var(--primary-light);
    text-decoration: none;
}

/* Content Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem 8rem;
}

/* Services Page Styles */
.service-section {
    margin-bottom: 6rem;
}

.service-card-wide {
    background: var(--card-bg);
    border: 1px solid #e2e8f0;
    border-radius: 32px;
    padding: 4rem;
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

@media (max-width: 991px) {
    .service-card-wide {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }
}

.service-image-mini {
    flex: 1;
    max-width: 440px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.service-info {
    flex: 1.2;
}

.service-info h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--primary);
    font-weight: 800;
}

.service-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 100%;
}

.service-info ul {
    list-style: none;
    padding: 0;
}

.service-info li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.service-info li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* About Page Styles (Company Profile Table) */
.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.company-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.company-table th,
.company-table td {
    padding: 2rem;
    text-align: left;
}

.company-table th {
    background: #f1f5f9;
    color: var(--text-primary);
    font-weight: 600;
    width: 30%;
}

.company-table td {
    color: var(--text-secondary);
}

/* News Page Styles */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-item {
    background: var(--card-bg);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    border-radius: 0 16px 16px 0;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.news-item:hover {
    transform: translateX(10px);
    background: #f1f5f9;
}

.news-date {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Contact Form Styles */
.contact-form {
    background: #ffffff;
    padding: 4rem;
    border-radius: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.form-submit {
    width: 100%;
    cursor: pointer;
    border: none;
}

/* CTA Section */
.cta {
    padding: 8rem 2rem;
    background: #f8fafc;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.cta-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding: 60px 20px 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    cursor: zoom-out;
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: min(90vw, 1000px);
    max-height: calc(100vh - 120px);
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: zoom 0.3s;
}

@keyframes zoom {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
}

.zoomable {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.zoomable:hover {
    transform: scale(1.02);
}
/* ==========================================================
   Screenshot Gallery / Device Mockups (新規追加)
   ========================================================== */

.screens-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.screens-section .section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 4rem;
}

.screens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    align-items: start;
}

.screen-card {
    text-align: center;
}

.screen-frame {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 36px;
    padding: 8px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    margin: 0 auto 1.25rem;
    max-width: 280px;
}

.screen-frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.22);
}

.screen-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 28px;
    cursor: zoom-in;
}

.screen-caption {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.screen-sub {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* iPad 訴求セクション */
.ipad-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.ipad-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

@media (max-width: 991px) {
    .ipad-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
}

.ipad-copy h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.ipad-copy p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.ipad-frame {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.ipad-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

/* App Store / Google Play バッジ */
.store-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.5rem;
    background: #111827;
    color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, opacity 0.3s ease;
    min-width: 180px;
}

.store-badge:hover {
    transform: translateY(-2px);
}

.store-badge.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.store-badge .badge-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.store-badge .badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
}

.store-badge .badge-small {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: 400;
}

.store-badge .badge-big {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* キャッチピル（Hero 上に置く小さなラベル） */
.hero-pill {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: rgba(43, 127, 212, 0.08);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(43, 127, 212, 0.2);
}

/* 機能カードに画像を入れるバリアント */
.feature-card.with-screen {
    padding: 2rem;
}

.feature-card.with-screen .screen-frame {
    max-width: 200px;
    margin-bottom: 1.5rem;
}

.feature-card.with-screen h3 {
    font-size: 1.2rem;
}

/* ヒーロー画像のスクショフレーム化 */
.hero-screen-frame {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.18);
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    transition: transform 0.5s ease;
    max-width: 340px;
    margin: 0 auto;
}

.hero-screen-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-screen-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 32px;
}

/* ヒーロー画像の iPad フレーム化 */
.hero-ipad-frame {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 24px;
    padding: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
    transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
    transition: transform 0.5s ease;
    max-width: 460px;
    margin: 0 auto;
}

.hero-ipad-frame:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.hero-ipad-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

/* セクション見出し副題 */
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: -2.5rem;
    margin-bottom: 4rem;
    padding: 0 2rem;
}
