/* Hero Section (Top) */
.hero {
    padding: 80px 0 80px;
    margin-top: -70px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9f4 100%);
    overflow: hidden;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.app-badge {
    display: inline-block;
    background: #E8F5E9;
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(45deg, var(--text-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span {
    display: inline-block;
}

.hero h1 .h1-line-break {
    display: block;
    height: 0.5em;
    width: 0;
}

.hero h1 .h1-line-break:nth-child(4) {
    height: 0.15em;
}

.hero p .p-line-break {
    display: block;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 480px;
}

/* App Store公式バッジ */
.app-store-badge {
    display: inline-block;
}


.app-store-badge:hover {
    opacity: 0.8;
}

.app-store-badge-container img {
    max-width: none !important;
    height: auto !important;
    display: block;
}


/* 旧スタイル（他の場所で使用） */
.download-btn {
    display: inline-flex;
    align-items: center;
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.2s;
}

.download-btn:hover {
    transform: translateY(-2px);
}

.download-btn i {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* Angled iPhone Logic */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

.iphone-frame {
    width: 300px;
    border-radius: 45px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2), inset 0 0 0 6px #333;
    background: #000;
    padding: 12px;
    transform: rotateY(-20deg) rotateX(10deg) rotateZ(-5deg);
    transition: transform 0.5s ease;
    position: relative;
}

.iphone-frame:hover {
    transform: rotateY(-10deg) rotateX(5deg) rotateZ(0deg);
}

.iphone-screen {
    width: 100%;
    border-radius: 35px;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 9/19.5; /* iPhone aspect ratio */
}

.iphone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Feature Sections */
.feature-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    min-width: 0; /* flexアイテムの縮小を許可 */
}

.feature-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.feature-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

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

.feature-points li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    font-weight: 500;
}

.feature-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.feature-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    min-width: 0; /* flexアイテムの縮小を許可 */
}

.feature-img-item {
    max-width: 280px;
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow);
    flex: 0 1 auto; /* 縮小は許可、拡大は内容に合わせる */
    object-fit: contain;
}




