/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #2563EB;
    --primary-light: #EFF6FF;
    --primary-dark: #1E40AF;
    --secondary: #F5F5F5;
    --success: #10B981;
    --warning: #F59E0B;
    --gray: #6B7280;
    --gray-light: #F9FAFB;
    --gray-dark: #1F2937;
    --text: #111827;
    --white: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "DM Sans", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

@media (min-width: 640px) {
    .container {
        padding: 0 32px;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    min-width: 44px;
    min-height: 44px;
}

.btn img {
    flex-shrink: 0;
}

.btn-icon-dark {
    filter: brightness(0);
}

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

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

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text);
}

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

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

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

.btn-white:hover {
    box-shadow: var(--shadow-lg);
}

.btn-icon-only {
    padding: 12px;
    min-width: 44px;
    background-color: var(--secondary);
}

.btn-icon-only:hover {
    background-color: var(--gray-light);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: none;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    max-width: 1280px;
    margin: 0 auto;
}

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

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

.nav-links {
    display: none;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-buttons {
    display: none;
    gap: 12px;
    align-items: center;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 80px;
    display: none;
    z-index: 1001;
}

.language-switcher.active .language-dropdown {
    display: block;
}

.language-option {
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}

.language-option:hover {
    background-color: var(--gray-light);
}

.language-option.active {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--text);
    transition: all 0.3s;
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 24px;
    box-shadow: var(--shadow);
}

.nav-mobile.active {
    display: block;
}

.nav-mobile ul {
    list-style: none;
    margin-bottom: 24px;
}

.nav-mobile li {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
}

.nav-mobile .nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    .nav-buttons {
        display: flex;
    }
    .nav-hamburger {
        display: none;
    }
}

/* Hero Section */
.hero {
    padding-top: 100px;
    padding-bottom: 64px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: visible;
}

.hero-content {
    display: grid;
    gap: 48px;
    align-items: center;
}

.hero-text {
    padding: 0 24px;
}

.hero-text h1 {
    font-size: 2.75rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #1C1C1C 0%, #1967D2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-align: center;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 32px;
    text-align: center;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-note {
    font-size: 14px;
    color: var(--gray);
}

.hero-image {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    position: relative;
    border-radius: 16px;
    padding: 40px 20px 0;
    height: 200px;
    overflow: visible;
    clip-path: inset(0 0 0 0 round 16px);
}

@media (min-width: 768px) {
    .hero-image {
        height: 360px;
    }
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #DDECFF 0%, #FFFFFF 100%);
    border-radius: 40px;
    z-index: 0;
}

.hero-image picture {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-screenshot {
    width: 100%;
    height: auto;
    transform: translateY(0px);
    position: relative;
    transition: transform 0.1s ease-out;
}

@media (min-width: 768px) {
    .hero {
        padding-top: 120px;
        padding-bottom: 120px;
    }
    .hero-text {
        padding: 0;
    }
    .hero-text h1 {
        font-size: 3rem;
    }
    .hero-buttons {
        flex-direction: row;
    }
    .hero-screenshot {
        width: 70%;
        transform: translateY(0px);
    }
}

@media (min-width: 1024px) {
    .hero-text h1 {
        font-size: 5.5rem;
    }
    .hero-screenshot {
        transform: translateY(0px);
    }
}

/* Section Styles */
.section {
    padding: 64px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 140px 0;
    }
}

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

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

.section-title {
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

/* Key Features Section */
.features-section {
    width: 100%;
    /* 1440pxの横幅をターゲットとするため、最大幅を設定 */
    max-width: 1440px; 
    margin: 0 auto;
    padding: 100px 20px;
    box-sizing: border-box;
}

.features-container {
    position: relative;
    padding: 190px 0 64px; 
    box-sizing: border-box;
    overflow: visible; 
}

@media (min-width: 768px) {
    .features-container {
        padding: 150px 0 80px;
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* 中央の青い背景 */
.blue-background {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 100%;
    background-color: #2a68ff; /* 画像のメインの青色 */
    border-radius: 40px; /* 角の丸み */
    z-index: 1; /* カードより下 */
}

.features-section .section-title {
    color: white;
    padding: 0 16px;
    font-size: 2.5em;
    line-height: 1.3;
    font-weight: 500;
    text-align: center;
    z-index: 2;
}

@media (min-width: 768px) {
    .features-section .section-title {
        padding: 0;
        font-size: 3em;
        white-space: nowrap;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateY(-50%) translateX(-50%);
    }
}

/* カードの配置ラッパー */
.feature-cards-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px; /* カードを配置する領域の最大幅 */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* カードが折り返せるように */
    z-index: 3; /* 青い背景より上 */
}

@media (min-width: 768px) {
    .feature-cards-wrapper {
        flex-direction: row;
        max-width: 90%;
    }
}

/* 各特徴カード */
.feature-card {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* 影の表現 */
    box-sizing: border-box;
    width: 380px; /* カードの幅 */
    min-height: 140px; /* 最小高さを設定 */
    z-index: 4; /* 青い背景とタイトルの上に表示 */
}

@media (min-width: 768px) {
    .feature-card {
        width: 30%;
    }
}

.live-tracking {
    margin-top: -270px;
}

@media (min-width: 768px) {
    .live-tracking {
        align-self: flex-start;
    }
}

.flexible-hierarchy {
    margin-top: -270px;
}

@media (min-width: 768px) {
    .flexible-hierarchy {
        align-self: flex-start;
    }
}

.easy-to-use {
    /* 下中央に配置するため、wrapperの外に配置したり、特別な配置を適用 */
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 380px;
}

/* カードのヘッダー（タイトルとアイコン） */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.4em;
    font-weight: 500;
    color: #333;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon {
    width: 32px;
    height: 32px;
}

.card-description {
    font-size: 0.95em;
    color: #666;
    line-height: 1.4;
}

/* 1440pxの最大幅での位置調整をより細かく行う場合のメディアクエリ */
@media (min-width: 1440px) {
    /* 1440pxビューポート全体に対して中央に配置したい場合に利用 */
    .features-section {
        /* 中央揃えの幅の調整がメイン */
        /* test */
    }
}

/* より小さなビューポートでのレスポンシブ対応（例: タブレット、モバイル） */
@media (max-width: 1000px) {
    .section-title {
        font-size: 2.5em;
    }
    .features-section .section-title {
        top: 0;
        left: 0;
        transform: unset;
        position: relative;
    }
    .feature-cards-wrapper {
        flex-direction: row;
        align-items: stretch;
        max-width: 95%;
    }

    .feature-card {
        width: 30%;
        margin-top: 0 !important;
        position: static;
        transform: none;
        height: auto;
    }

    .live-tracking {
        align-self: unset;
    }

    .blue-background {
        height: 100%; /* 高さをコンテンツに合わせる */
        padding: 50px 0;
    }
}

@media (max-width: 768px) {
    .features-container {
        padding: 180px 0 64px;
    }
    .feature-cards-wrapper {
        justify-content: center;
        gap: 0.75rem;
    }
    .feature-card {
        width: 90%;
    }
}

/* Hierarchy Section */
.container {
    padding: 0;
}

.hierarchy-content > h2 {
    font-size: 2.5rem;
    line-height: 1.3;
    font-weight: 500;
    margin-bottom: 12px;
    text-align: center;
    grid-column: 1 / -1;
    padding: 0 16px;
}

.hierarchy-content > h3 {
    font-size: 1rem;
    font-weight: 300;
    color: var(--gray);
    margin-bottom: 48px;
    text-align: center;
    grid-column: 1 / -1;
    padding: 0 16px;
}

.hierarchy-content {
    display: grid;
    align-items: center;
    grid-template-columns: 0.8fr 0.2fr;
}

.hierarchy-text {
    padding-left: 16px;
}

.hierarchy-visual {
    height: 100%;
    max-height: 436px;
}

.hierarchy-visual img {
    height: 100%;
    object-fit: cover;
    object-position: left;
}

@media (min-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hierarchy-content {
        grid-template-columns: 1fr 1fr;
    }

    .hierarchy-content > h2 {
        font-size: 3rem;
        padding: 0;
    }

    .hierarchy-content > h3 {
        font-size: 1.125rem;
        padding: 0;
    }

    .hierarchy-visual {
        max-height: 750px;
    }
}

.hierarchy-list {
    list-style: none;
    padding-right: 2.5rem;
}

.hierarchy-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0.5rem;
    padding: 24px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 1.125rem;
}

.check-icon {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

.hierarchy-visual {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hierarchy-demo {
    width: 100%;
}

.hierarchy-item {
    background-color: var(--gray-light);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 4px solid var(--primary);
}

.hierarchy-item.child {
    margin-left: 24px;
    border-left-color: var(--success);
}

.hierarchy-item.grandchild {
    margin-left: 48px;
    border-left-color: var(--warning);
}

/* Daily Tracking Section */
.daily-content > h2 {
    font-size: 2.5rem;
    line-height: 1.3;
    font-weight: 500;
    margin-bottom: 48px;
    text-align: center;
    grid-column: 1 / -1;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .daily-content > h2 {
        font-size: 3rem;
    }

    .hierarchy-list {
        padding-right: 0;
    }

    .hierarchy-list li {
        padding: 24px 32px;
    }
}

.daily-content {
    display: grid;
    align-items: center;
    grid-template-columns: 0.2fr 0.8fr;
}

@media (min-width: 768px) {
    .daily-content {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
}

.daily-image {
    height: 100%;
    min-height: 300px;
    max-height: 436px;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
}

@media (min-width: 768px) {
    .daily-image {
        max-height: 750px;
    }
}

.daily-image img {
    height: 100%;
    object-fit: cover;
    object-position: right;
}

.daily-text {
    padding-right: 16px;
    order: 2;
}

.daily-list {
    padding-left: 2.5rem;
    list-style: none;
}

@media (min-width: 768px) {
    .daily-list {
        padding-left: 0;
    }
}

.daily-list li {
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 8px;
    margin-bottom: 0.5rem;
    padding: 24px 24px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1.125rem;
}

@media (min-width: 768px) {
    .daily-list li {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 24px 32px;
    }
}

.daily-icon-wrapper {
    width: 32px;
    height: 32px;
    background-color: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .daily-icon-wrapper {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }
}

.daily-icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .daily-icon {
        width: 32px;
        height: 32px;
    }
}

/* Use Cases Section */
.personas-grid {
    display: grid;
    gap: 1rem;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .personas-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0;
    }
}

.persona-card {
    background-color: var(--white);
    padding: 32px;
    border-radius: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.persona-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.persona-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.persona-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.persona-icon-img {
    width: 32px;
    height: 32px;
}

.persona-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
}

.persona-card ul {
    list-style: none;
}

.persona-card li {
    color: var(--gray);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.persona-card li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
}

/* What You Can Do Section */
.what-you-can-do-section {
    padding: 60px 0;
    min-height: 400px;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px 0 40px;
    background-color: #f8f8f8;
    border-radius: 1.5rem;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 768px) {
    .content-wrapper {
        padding: 0 40px;
    }
}

.left-side {
    flex: 1;
}

.right-side {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* 右寄せ */
}

/* --- スクロールアニメーション関連のスタイル --- */

/* スクロールを見切るためのコンテナ */
.scrolling-list-container {
    height: 350px;
    width: 340px;
    overflow: hidden;
    position: relative;
}

/* 上下のぼかし加工 */
.scrolling-list-container::before,
.scrolling-list-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 80px;
    pointer-events: none;
    z-index: 1;
}

.scrolling-list-container::before {
    top: 0;
    background: linear-gradient(to bottom, #f8f8f8 0%, transparent 100%);
}

.scrolling-list-container::after {
    bottom: 0;
    background: linear-gradient(to top, #f8f8f8 0%, transparent 100%);
}

/* 実際にアニメーションするリスト */
.scrolling-list {
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    
    /* アニメーションの起点として、リスト項目全体が表示範囲の下から始まるように設定 */
    position: absolute;
    top: 0;
    
    /* アニメーション設定: moveUp (キーフレーム名), 45秒 (速さ), linear (等速), infinite (無限繰り返し) */
    animation: moveUp 45s linear infinite; 
}

/* リストアイテムのスタイル (元の画像のような角丸ボタン形式) */
.list-item {
    display: flex;
    justify-content: space-between;
    background-color: white;
    border: 1px solid #d9d9d9;
    border-radius: 24px;
    padding: 10px 20px;
    margin-bottom: 0.5rem;
    width: 100%;
    white-space: nowrap;
    font-size: 1rem;
    color: #333;
}

/* --- キーフレームアニメーションの定義 --- */

@keyframes moveUp {
    /* 0%の時点で、リストはコンテナの最上部に配置されている (top: 0) */
    0% {
        transform: translateY(0);
    }
    
    /* 100%の時点で、リストの半分 (繰り返しの手前) がスクロールし終わる */
    /* ここでは、項目の高さとマージンに基づいて、リストの9項目分の高さの分だけ上に移動させる */
    /* 9項目 + 9項目のマージンの高さ (約18アイテム分) を計算する必要があるが、
       今回は**繰り返し**のためにリストの項目を複製しているため、元の9項目分の高さだけ移動させれば良い */
    /* calc()を使ってリスト全体の高さの半分を移動量として設定するのが最も簡単で正確です */
    100% {
        /* リスト全体の高さ (複製を含む) の半分だけ移動させる */
        /* CSSで動的にリストの正確な高さを取得するのは困難なため、ここではリストの半分の高さに相当するvw値 (例: -100%) か、
           項目数に基づく概算値 (例: 9項目*50px = -450px) を使用します。
           ここでは、リスト項目を複製しているため、移動距離はリスト項目の**一巡分**の高さです。 */
        transform: translateY(-50%); /* 複製されたリストの半分 (元の9項目分) 上に移動 */
    }
}

@media (min-width: 768px) {
    .content-wrapper {
        flex-direction: row;
    }
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    padding: 0 16px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .faq-list {
        padding: 0;
    }
}

.faq-item {
    border-bottom: 1px solid #E5E7EB;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-weight: 500;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon-wrapper {
    width: 32px;
    height: 32px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-icon {
    width: 16px;
    height: 16px;
}

.faq-item.active .faq-icon-wrapper {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding-bottom: 20px;
    color: var(--gray);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    text-align: center;
}

@media (min-width: 768px) {
    .final-cta {
        padding: 100px 0;
    }
}

.final-cta h2 {
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 300;
    color: var(--white);
    padding: 0 16px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .final-cta h2 {
        font-size: 2.5rem;
        padding: 0;
    }
}

.final-cta > .container > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.final-cta-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    list-style: none;
}

@media (min-width: 768px) {
    .final-cta-list {
        flex-direction: row;
        justify-content: center;
        gap: 32px;
    }
}

.final-cta-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
}

.final-cta-list .check-icon {
    color: var(--white);
}

/* Footer */
.site-footer {
    width: 100%;
    height: 190px;
    display: flex;
    justify-content: center; /* コンテンツエリアを中央寄せ */
    align-items: center;
}

.footer-content {
    width: 1200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center; /* 垂直方向の中央揃え */
    padding: 0 20px; /* 1200pxより狭い画面でのための左右の余白（任意） */
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }
}

.footer-left {
    height: 100px;
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* フッター全体の高さを190pxとし、ロゴが垂直中央に来るように調整 */
    /* ロゴとコピーライトの配置を画像に合わせて調整 */
    position: relative;
    width: 100%;
    order: 2;
}

@media (min-width: 768px) {
    .footer-left {
        padding: 0;
        height: 100%;
        order: 1;
    }
}

.logo {
    width: 100vw;
    object-fit: cover;
    height: 100%;
    display: block;
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    overflow: visible;
}

@media (min-width: 768px) {
    .logo {
        width: auto;
    }
}

.copyright {
    font-size: 12px;
    line-height: 1;
    color: #333;
    position: absolute;
    bottom: 43px;
    left: 0;
    background: #fff;
}

@media (min-width: 768px) {
    .copyright {
        bottom: 16px;
    }
}

.footer-right {
    padding: 48px 0 32px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: flex-start;
    width: 100%;
    gap: 24px;
    order: 1;
    z-index: 1;
}

@media (min-width: 768px) {
    .footer-right {
        padding: 0;
        flex-direction: row;
        align-items: center;
        order: 2;
        gap: 30px;
    }
}

/* ナビゲーションリンク */
.footer-nav a {
    color: #333;
    text-decoration: none;
    margin-right: 30px; /* リンク間のスペース */
}
.footer-nav a:last-child {
    margin-right: 0;
}

/* コンタクトボタン */
.contact-button {
    display: flex;
    align-items: center;
    gap: 8px; /* テキストとアイコンの間隔 */
    padding: 15px 30px;
    background-color: #1e6ee4; /* ボタンの青色 */
    color: #fff;
    text-decoration: none;
    border-radius: 8px; /* 角丸 */
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.contact-button:hover {
    background-color: #134e9e;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Focus States for Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* Roadmap subtitle */
.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-top: -32px;
    margin-bottom: 48px;
}

/* Mockup styles for Daily Tracking section */
.mockup-title {
    font-weight: 600;
    margin-bottom: 16px;
}

.time-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #E5E7EB;
}

.time-value {
    color: var(--primary);
    font-weight: 600;
}

.time-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--primary);
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}
