/* ベーシックなリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #30c4ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
    z-index: 1000;
}

.logo a {
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.nav-links{
    margin-right: 20px;
}

.nav-links a {
    margin-left: 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #0077b3;
}

/* ファーストビュー全体を画面いっぱいに表示 */
.first-view {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* ビューポートの高さ100% */
    padding: 20px;
    background: #f0f8ff;
}

/* ファーストビューの左側テキスト */
.first-view-text {
    width: 50%;
    padding-left: 16%;
    position: relative;
}

.first-view-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #333;
}

.first-view-text p {
    display: inline-block;
    padding: 20px 15px 30px; /* 楕円ではなく正円にするため幅を調整 */
    border-radius: 50%; /* 正円にする */
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
    background: #30c4ff;
    text-align: center;
    line-height: 1.5;
    position: absolute; /* 絶対配置にする */
    top: -30%; /* 上からの距離 */
    left: 20%; /* 左からの距離 */
}

.first-view-text p span.qr {
    font-size: 2rem; /* QRを大きく */
    font-weight: bold;
}

.first-view-text p span.text {
    font-size: 1rem; /* コードや簡単管理を小さく */
}

.cta-button1 {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1rem;
    color: #ffffff;
    background: #30c4ff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
}

.cta-button1:hover {
    background: #0099cc;
}

/* ファーストビューの右側画像 */
.first-view-image {
    width: 45%;
}

.first-view-image img {
    width: 100%;
    max-width: 600px; /* 画像の最大幅を制限 */
    border-radius: 10px;
}

.milestone-wrapper {
    position: relative;
    width: 360px;
    margin: 35px 0;
  }
  
  .milestone-laurel {
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* 上の丸背景「ユーザー数」 */
  .milestone-label {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background:linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    font-weight: bold;
    padding: 5px;
    width: 67%;
    text-align: center;
    border-radius: 999px;
    font-size: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  /* 真ん中の大きな文字 */
  .milestone-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 0 #fff;
  }

  .suu {
    position: absolute;
    transform: translate(-62%, -49%);
    font-size: 6rem;
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 0 #fff;
  }

  .hito {
    position: absolute;
    transform: translate(180%, -10%);
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 0 #fff;
  }

  .too {
    position: absolute;
    transform: translate(-40%, -15%);
    font-size: 3.5rem;
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 0 #fff;
    width: 160px;
  }



/* セクション1全体のスタイル */
.section1 {
    padding: 80px 20px;
    background: #f9f9f9;
    text-align: center;
    scroll-margin-top: 50px;
}

.section1 h2 {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 50px;
    font-weight: bold;
}

.features-scroll-hint2 {
    display: none;
  }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.feature-card {
    background: #ffffff;
    border-radius: 3px;
    padding: 30px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.feature-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #30c4ff;
    margin-bottom: 20px;
    position: absolute;
    top: -6%;
    left: 47.5%;
}

.feature-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.6rem;
    color: #0077b3;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    color: #ffffff;
    background: #30c4ff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #0077b3;
}

/* セクション2全体 */
.section2 {
    padding: 50px 10%;
    background: linear-gradient(180deg, #e3f2fd 0%, #ffffff 100%);
    scroll-margin-top: 50px;
}

.section2-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 20px;
    border-left: 5px solid #30c4ff; /* 左側にアクセントカラー */
    overflow: hidden;
}

.section2-item.reverse{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 20px;
    border-right: 5px solid #30c4ff; /* 左側にアクセントカラー */
    border-left: none;
    overflow: hidden;
}

.section2-image img {
    width: 35%;
}

.section2-content {
    width: 100%;
    padding: 0 20px;
    text-align: left;
}

.section2-content h2 {
    font-size: 2rem;
    color: #30c4ff;
    margin-bottom: 10px;
}

.section2-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.section2-item.reverse {
    flex-direction: row-reverse;
}

/* セクション3の全体レイアウト */
.section3{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px;
    background: #f0f8ff;
    scroll-margin-top: 50px;
}

.section3-content{
    width: 50%;
    padding: 20px;
}

.section3 h2{
    font-size: 2.5rem;
    color: #0077b3;
    margin-bottom: 20px;
}

.section3-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
}

.section3-image {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}


.catchphrase {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}
.qr-points li{
    font-size: 1.2rem;
    list-style: none;
}

/* 管理の流れのセクション */
.qr-flow-section {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    background: #f0f8ff;
    border-bottom: 2px solid #ddd;
    border-bottom: 2px solid #ddd;
}

.qr-flow-section h3 {
    font-size: 2rem;
    color: #0077b3;
    margin-bottom: 10px;
}

.qr-flow-text {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* 管理の流れのステップごとのブロック（横並び） */
.qr-flow-images {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.qr-step {
    width: 23%;
    text-align: center;
}

.qr-step img {
    width: 100%;
    max-width: 250px;
    border-radius: 8px;
}

.qr-step p {
    font-size: 1.2rem;
    font-weight: bold;
    color: #555;
    margin-top: 10px;
}

/* セクション4の全体レイアウト */
.section4 {
    padding: 60px;
    background: #f5fbff;
    scroll-margin-top: 50px;
}

/* 上部：画像と説明の横並び */
.section4-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.section4-top .section4-image {
    flex: 1 1 45%;
    text-align: center;
}

.section4-top .section4-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section4-top .section4-text {
    flex: 1 1 50%;
    padding: 20px;
}

.section4-top .section4-text h2 {
    font-size: 2.5rem;
    color: #0077b3;
    margin-bottom: 12px;
}

.section4-top .section4-text .catchphrase {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    line-height: 1.6;
}

/* 下部：3つの説明項目 */
.section4-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    padding-bottom: 30px;
}

.detail-text {
    flex: 1 1 60%;
    padding: 0 10%;
}

.detail-text h2 {
    font-size: 2rem;
    color: #30c4ff;
    margin-bottom: 10px;
}

.detail-text p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    padding: 0 50% 0 0;
}

.detail-image {
    flex: 1 1 30%;
}

.detail-image img {
    width: 100%;
    max-width: 220px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-image2 {
    flex: 1 1 30%;
}

.detail-image2 img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


/* 右下固定の登録ボタン */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #30c4ff;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 16px 18px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.floating-cta:hover {
    background-color: #0099cc;
    transform: scale(1.05);
}


.raw{
    color: #0077b3;
    font-size: 16px;
    padding: 0, 20px;
}







/* スマホ向けのレスポンシブデザイン */
@media screen and (max-width: 768px) {

    .logo-img {
        height: 30px;
    }

    .nav-links {
        margin-right: 10px;
    }

    .first-view {
        flex-direction: column-reverse; /* 縦方向に逆に配置 */
        text-align: center;
        padding: 20px;
        background: linear-gradient(170deg, #30c4ff 28%, #f0f8ff 28%); /* 上半分と下半分で異なる色 */
    }

    .first-view-image {
        width: 100%;
        margin-bottom: -100px; /* 画像とテキストの間にスペース */
        margin-top: 25px;
    }

    .first-view-image img {
        width: 80%; /* スマホでは画像を画面幅に合わせる */
        max-width: 300px; /* 最大幅を制限 */
        margin: 0 auto; /* 中央揃え */
        display: block;
    }

    .first-view-text {
        width: 100%;
        padding: 0; /* スマホでは余白をなくす */
        position: relative; /* 必要なら調整 */
        margin-bottom: 100px;
    }

    .first-view-text p {
        position: relative; /* 絶対配置を解除 */
        top: 20px;
        left: -38%;
        margin-bottom: 20px; /* テキストとボタンの間にスペース */
        padding: 20px 7px 25px;
        display: inline-block;
        border-radius: 50%; /* 正円を維持 */
        font-size: 1.2rem; /* サイズを調整 */
        line-height: 1;
    }

    .first-view-text p span.qr {
        font-size: 1.5rem; /* QRを大きく */
        font-weight: bold;
    }
    
    .first-view-text p span.text {
        font-size: 0.7rem; /* コードや簡単管理を小さく */
    }

    .first-view-text h1 {
        font-size: 2rem; /* テキストサイズを調整 */
        margin-bottom: 20px;
        color: #333;
    }

    .cta-button1 {
        font-size: 1rem;
        padding: 12px 20px;
        border-radius: 5px;
        width: 80%;
    }

    .milestone-label {
        font-size: 1.2rem;
    }

    .milestone-wrapper {
        position: relative;
        width: 250px;
        margin: 15px auto;
    }

    .milestone-label {
        top: -20px;
        padding: 3px;
        width: 71%;
        font-size: 1rem;
    }

    .suu {
        transform: translate(-62%, -44%);
        font-size: 4rem;
    }
    .hito {
        transform: translate(262%, 20%);
        font-size: 1rem;
    }
    .too {
        transform: translate(-47%, -27%);
        font-size: 2.5rem;
        width: 150px;
    }



     /* セクション1の調整 */
     .section1{
        padding: 10px;
     }

     .section1 h2{
        font-size: 2rem;
     }

     .feature-image img {
        max-width: 120px;
    }
    .feature-number{
        top: -5%;
    }

    .features-indicator {
        display: flex;
        justify-content: center;
        margin-top: 12px;
        gap: 8px;
      }
      
      .dot {
        width: 10px;
        height: 10px;
        background-color: #ccc;
        border-radius: 50%;
        display: inline-block;
        transition: all 0.3s ease;
      }
      
      .dot.active {
        width: 20px;
        border-radius: 10px;
        background-color: #30c4ff;
      }

      .features-grid-wrapper {
        position: relative;
      }
      
      .features-scroll-hint2 {
        display: block;
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        font-size: 2rem;
        color: #30c4ff;
        animation: hint-bounce 1.5s infinite;
        pointer-events: none;
      }

      @keyframes hint-bounce {
        0%, 100% { transform: translateY(-50%) translateX(0); }
        50% { transform: translateY(-50%) translateX(5px); }
      }

     .features-grid {
        display: flex;
        flex-direction: row; /* 横並び */
        overflow-x: auto; /* 横スクロール可能に */
        gap: 20px;
        padding: 10px;
        scroll-snap-type: x mandatory;
    }

    .feature-card {
        min-width: 100%; /* 横スクロール時に1枚が見やすいサイズ */
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    .feature-number {
        font-size: 2rem;
    }

    .cta-button{
        font-size: 0.6rem;
        padding: 8px 15px;
    }

    /* セクション2の調整 */
    .section2{
        padding: 10px;
    }
    .section2-content h2 {
        font-size: 1.3rem;
        text-align: center;
    }

    .section2-item {
        display: flex;
        flex-direction: column; /* スマホでは縦レイアウト */
        text-align: center;
        padding: 20px;
    }

    .section2-content {
        width: 100%;
        padding: 20px;
    }

    .section2-content p {
        font-size: 0.6rem;
        line-height: 1.6;
    }

    .section2-image {
        display: flex;
        justify-content: center;
        gap: 10px; /* 画像間のスペース */
        margin-top: 20px;
    }

    .section2-image img {
        width: 48%; /* 2つを均等に並べる */
        max-width: 300px;
        border-radius: 8px;
    }

    .section2-item.reverse {
        flex-direction: column;
    }

    /* セクション3の調整 */
    .section3 {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .section3-content {
        width: 100%;
        padding: 10px;
    }

    .section3-image img {
        width: 100%;
        max-width: 320px;
        margin: 10px auto;
    }

    .section3-image {
        width: 100%;
    }

    .section3 h2{
        font-size: 1.3rem;
    }

    .catchphrase {
        font-size: 0.7rem;
    }

    .qr-flow-images {
        display: flex;
        flex-direction: row;
        overflow-x: auto; /* 横スクロール */
        gap: 20px;
        padding: 10px;
        scroll-snap-type: x mandatory;
    }

    .qr-step {
        min-width: 148px;
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    .features-scroll-hint{
        color: #0077b3;
    }

    .qr-step img {
        width: 100%;
    }

    .qr-points li{
        font-size: 0.8rem;
    }

    .qr-step p {
        font-size: 0.8rem;
    }

    /* セクション4の調整 */
    .section4 {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 20px;
    }

    .section4-top {
        flex-direction: column-reverse;
    }

    .section4-top .section4-text .catchphrase {
        font-size: 0.9rem;
    }

    .section4-top .section4-text h2 {
        font-size: 1.3rem;
    }

    .detail-item {
        flex-direction: column;
    }

    .detail-text h2 {
        font-size: 1.3rem;
    }

    .detail-text p {
        font-size: 0.7rem;
        text-align: left;
        padding: 0;
    }
    .detail-image {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .detail-image img {
        width: 50%;
    }

    .detail-image2 {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .detail-image2 img {
        width: 100%;
    }



    .floating-cta {
        padding: 20px 22px;
        font-size: 0.8rem;
        bottom: 15px;
        right: 15px;
    }
}