/* ========================================
   基本スタイル
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

:root {
    --primary-color: #5B4ECC;
    --secondary-color: #3B82F6;
    --accent-color: #8B5CF6;
    --dark-color: #1F2937;
    --light-color: #F9FAFB;
    --gray-color: #6B7280;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #5B4ECC 0%, #3B82F6 100%);
    --gradient-alt: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
    overflow-x: hidden;
}

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

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary-color);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-list a:not(.btn-nav) {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-list a:not(.btn-nav):hover {
    color: var(--primary-color);
}

.nav-list a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-list a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav::after {
    display: none !important;
}

.btn-nav {
    background: var(--gradient);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white) !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    touch-action: manipulation;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ========================================
   ヒーローセクション
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.05;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

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

.hero-content {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(91, 78, 204, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.gradient-text {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    white-space: nowrap;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-stats {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    width: 100%;
    -webkit-box-flex: 1;
}

.hero-stats .stat-item {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
}

.stat-item {
    text-align: center;
    background: var(--white);
    padding: 1.8rem 1rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
    min-width: 0;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--gray-color);
    font-weight: 600;
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

.btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    min-height: 48px;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-top: 1.5rem;
}

/* ========================================
   研修について
======================================== */
.about {
    background-color: var(--light-color);
}

.about-intro {
    text-align: center;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--dark-color);
    margin-bottom: 4rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

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

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--gray-color);
    line-height: 1.8;
}

/* ========================================
   解決する課題
======================================== */
.problem {
    background: var(--white);
}

.problem-visual {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.problem-side {
    flex: 1;
    min-width: 280px;
}

.problem-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.user-company {
    border: 3px solid #3B82F6;
}

.vendor-company {
    border: 3px solid #8B5CF6;
}

.problem-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.problem-role {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.problem-text {
    color: #DC2626;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.problem-text i {
    font-size: 1.5rem;
}

.problem-gap {
    text-align: center;
    flex: 0 0 auto;
}

.gap-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.gap-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #DC2626;
}

.solution {
    text-align: center;
}

.solution-arrow {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.solution-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--gradient);
    color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.solution-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.solution-box h3 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.5;
}

/* ========================================
   研修内容
======================================== */
.training {
    background-color: var(--light-color);
}

.training-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.training-type {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.training-type:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.training-type-header {
    padding: 2rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
}

.training-type-header.virtual {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.training-type-header.fun {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.training-type-header i {
    font-size: 2rem;
}

.training-type-content {
    padding: 2rem;
}

.training-type-desc {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.training-example {
    color: var(--gray-color);
    font-style: italic;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

.training-points {
    list-style: none;
}

.training-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    line-height: 1.6;
}

.training-points i {
    color: var(--primary-color);
    margin-top: 3px;
    flex-shrink: 0;
}

/* ========================================
   研修パッケージ
======================================== */
.training-package {
    margin-top: 4rem;
}

.package-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.package-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.package-header {
    background: var(--gradient);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.package-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
}

.package-content {
    padding: 2.5rem 3rem;
}

.package-description {
    margin-bottom: 2.5rem;
}

.package-description p {
    line-height: 1.8;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.package-details {
    display: grid;
    gap: 2rem;
}

.package-detail-item h5 {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.package-detail-item ul {
    list-style: none;
    padding-left: 0;
}

.package-detail-item li {
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
    position: relative;
    line-height: 1.6;
    color: var(--dark-color);
}

.package-detail-item li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ========================================
   実績
======================================== */
.results {
    background: var(--white);
}

.timeline {
    max-width: 750px;
    margin: 0 auto 5rem;
    position: relative;
    padding: 0 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    width: 3px;
    height: 100%;
    background: var(--gradient);
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 60px;
}

.timeline-date {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    position: relative;
    width: 100%;
    max-width: 700px;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -60px;
    width: 15px;
    height: 15px;
    background: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
}

.timeline-content h4 {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--dark-color);
}

/* ========================================
   メディア実績
======================================== */
.media-section {
    margin-top: 4rem;
}

.media-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.media-card {
    background: var(--light-color);
    border-radius: 20px;
    padding: 3rem 3.5rem;
    display: flex;
    gap: 2rem;
    box-shadow: var(--shadow-sm);
}

.media-icon {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.media-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.media-content p {
    line-height: 1.8;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.media-future {
    font-weight: 600;
    color: var(--primary-color);
    padding: 1rem;
    background: rgba(91, 78, 204, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
}

/* ========================================
   お問い合わせ
======================================== */
.contact {
    background-color: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-box {
    background: var(--white);
    padding: 2rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.info-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.info-box p {
    color: var(--gray-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.info-list i {
    color: var(--primary-color);
}

.trademark-info {
    background: var(--gradient);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
}

.trademark-info p {
    margin-bottom: 0.5rem;
}

.trademark-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.required {
    color: #DC2626;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 78, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    justify-content: center;
}

/* ========================================
   フッター
======================================== */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-nav h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.7rem;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.7;
}

/* ========================================
   トップへ戻るボタン
======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

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

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .gradient-text {
        font-size: 2.2rem;
        white-space: nowrap;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        max-width: 100%;
        padding: 0;
    }
    
    .stat-item {
        padding: 1.3rem 0.8rem;
    }
    
    .stat-number {
        font-size: 2.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    /* PCでは2列レイアウトを維持 */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .training-types {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .timeline {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-left: 60px;
    }
    
    .timeline-date {
        flex: none;
        width: auto;
        text-align: left;
        margin-bottom: 0.8rem;
    }
    
    .timeline-content {
        max-width: 100% !important;
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .timeline-content::before {
        left: -60px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    
    .container {
        padding: 0 20px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    section {
        padding: 4rem 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 4rem;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .hero-content {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.5;
        width: 100%;
        max-width: 100%;
    }
    
    .gradient-text {
        font-size: 1.5rem;
        display: inline-block;
        max-width: 100%;
        white-space: nowrap;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
        white-space: normal;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.8;
        margin-bottom: 2.5rem;
    }
    
    .hero-stats {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        gap: 0.8rem;
        max-width: 100%;
        margin-bottom: 2.5rem;
        padding: 0;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
    
    .hero-stats .stat-item {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 30%;
        flex: 1 1 30%;
        min-width: 0;
    }
    
    .stat-item {
        padding: 1.3rem 0.6rem;
        border-radius: 12px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
        line-height: 1.3;
        white-space: nowrap;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }
    
    .nav-list a {
        font-size: 1.1rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .training-types {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .training-type-header {
        padding: 1.5rem;
        font-size: 1.2rem;
    }
    
    .training-type-content {
        padding: 1.5rem 1.8rem;
    }
    
    .package-card {
        margin-bottom: 1rem;
    }
    
    .package-header {
        padding: 1.5rem;
    }
    
    .package-header h4 {
        font-size: 1.2rem;
    }
    
    .package-content {
        padding: 1.5rem 2rem;
    }
    
    .package-details {
        gap: 1.5rem;
    }
    
    .timeline {
        padding: 0 20px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-date {
        flex: none;
        width: auto;
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
        text-align: left;
        padding: 0;
        display: block;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-bottom: 2.5rem;
        padding-left: 50px;
    }
    
    .timeline-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 1.3rem 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .timeline-content::before {
        left: -50px !important;
        right: auto !important;
        width: 12px;
        height: 12px;
        border-width: 2px;
    }
    
    .timeline-content h4 {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .media-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 2.5rem;
    }
    
    .media-icon {
        margin: 0 auto 1.5rem;
    }
    
    .media-content h4 {
        font-size: 1.3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .info-box {
        padding: 1.5rem 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    section {
        padding: 3rem 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .hero {
        padding-top: 85px;
        padding-bottom: 3rem;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .hero-content {
        padding: 0 10px;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    .hero-title {
        margin-bottom: 1.2rem;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 1.35rem;
        line-height: 1.6;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-title br {
        display: block;
    }
    
    .gradient-text {
        display: inline-block;
        font-size: 1.25rem;
        max-width: 100%;
        white-space: nowrap;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1.5rem;
        white-space: normal;
        line-height: 1.4;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 2rem;
        line-height: 1.7;
    }
    
    .hero-stats {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        gap: 0.6rem;
        margin-bottom: 2rem;
        max-width: 100%;
        padding: 0;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
    
    .hero-stats .stat-item {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 30%;
        flex: 1 1 30%;
        min-width: 0;
    }
    
    .stat-item {
        width: 100%;
        padding: 1.3rem 0.5rem;
        display: block;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
        line-height: 1.2;
        white-space: normal;
        word-break: keep-all;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        padding: 0;
    }
    
    .btn {
        width: 100%;
        padding: 1.1rem 1.5rem;
        font-size: 0.95rem;
        white-space: nowrap;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-title::after {
        width: 50px;
        height: 3px;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .feature-card {
        padding: 1.8rem 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .about-intro {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
    
    .training-type-header {
        padding: 1.2rem;
        font-size: 1.1rem;
    }
    
    .training-type-header h3 {
        font-size: 1.1rem;
    }
    
    .training-type-header i {
        font-size: 1.5rem;
    }
    
    .training-type-content {
        padding: 1.5rem 1.5rem;
    }
    
    .training-type-desc {
        font-size: 1rem;
    }
    
    .training-example {
        font-size: 0.9rem;
    }
    
    .training-points li {
        font-size: 0.95rem;
    }
    
    .package-title {
        font-size: 1.5rem;
    }
    
    .package-header {
        padding: 1.2rem;
    }
    
    .package-header h4 {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .package-content {
        padding: 1.5rem 1.8rem;
    }
    
    .package-description p {
        font-size: 0.95rem;
    }
    
    .package-detail-item h5 {
        font-size: 1.1rem;
    }
    
    .package-detail-item li {
        font-size: 0.95rem;
    }
    
    .timeline {
        padding: 0 15px;
    }
    
    .timeline::before {
        left: 25px;
    }
    
    .timeline-item {
        padding-left: 45px;
        margin-bottom: 2rem;
    }
    
    .timeline-date {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }
    
    .timeline-content {
        padding: 1.2rem 1.3rem;
    }
    
    .timeline-content::before {
        left: -45px !important;
        width: 10px;
        height: 10px;
        border-width: 2px;
    }
    
    .timeline-content h4 {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .media-title {
        font-size: 1.5rem;
    }
    
    .media-card {
        padding: 2rem 1.8rem;
    }
    
    .media-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .media-content h4 {
        font-size: 1.2rem;
    }
    
    .media-content p {
        font-size: 0.95rem;
    }
    
    .contact-form {
        padding: 2rem 1.8rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    .info-box {
        padding: 1.5rem 1.8rem;
    }
    
    .info-box h3 {
        font-size: 1.3rem;
    }
    
    .info-box p {
        font-size: 0.95rem;
    }
    
    .info-list li {
        font-size: 0.95rem;
    }
    
    .trademark-info {
        padding: 1.2rem;
    }
    
    .trademark-info p {
        font-size: 0.9rem;
    }
    
    .footer-logo h3 {
        font-size: 1.3rem;
    }
    
    .footer-nav h4 {
        font-size: 1rem;
    }
    
    .footer-nav a {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
    }
}

/* ========================================
   Safari専用の修正
======================================== */
@supports (-webkit-touch-callout: none) {
    /* Safari iOS専用 */
    html, body {
        -webkit-text-size-adjust: 100% !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .hero, section {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .hero-title {
        -webkit-font-smoothing: antialiased;
        width: 100% !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        -webkit-hyphens: auto !important;
    }
    
    .gradient-text {
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        -webkit-box-decoration-break: clone !important;
        display: inline-block !important;
        max-width: 100% !important;
        white-space: nowrap !important;
    }
    
    .hero-description, .about-intro {
        width: 100% !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }
    
    .btn {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }
    
    input, textarea, select {
        -webkit-appearance: none;
        -webkit-border-radius: 0;
        border-radius: 10px;
    }
}