/* ===== 共通レイアウト ===== */

body {
    font-family: "Helvetica Neue", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f9fc;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
  }

  main.container {
    flex: 1;
  }
  
  .layout-wrapper {
    display: flex;
    gap: 130px;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 40px;
    min-height: calc(100vh - 200px);
    align-items: center;
  }
  
  .main-content {
    flex: 1;
    flex-basis: 400px;
  }
  
  /* ===== ヘッダー固定 ===== */
  #header {
    background-color: #ffc0cb;
    color: #2c2c54; */
    padding: 40px 0;
    position: sticky;
    top: 0;
    z-index: 999;
  }

  .header-container {
    max-width: 960px;
    padding: 20px;
  }
  
  #header .container {
    position: relative;
    display: block;
  }

  /* .header-flex {
    display: flex;
    /* align-items: center; */
    /* justify-content: flex-start; */
    /* padding: 8px 0; */
  /* } */ 

  .logo-link {
    display: inline-block;
    margin-left: 20px;
  }
  .site-logo {
    height: 48px;
    width: auto;
  }
  
  /* #header .home-link {
    position: absolute;
    left: 0;
    bottom: 0;
    font-size: 14px;
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
    padding: 4px 10px;
    transition: all 0.2s ease;
  } */

  /* ===== サービス紹介 ===== */
  #services {
    margin-top: 40px;
  }
  
  .service-list {
    list-style: none;
    padding: 0;
  }

  #services,
    #contact {
    margin-bottom: 48px;
    padding: 0 8px;
  }
  
  .service-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-right: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    background-color: #e0e0e0;
  }
  
  .service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
  
  .service-text {
    font-size: 15px;
    line-height: 1.5;
  }
  
  .service-text a {
    display: block;
    margin-bottom: 8px; /* 🔹ここで説明文との間に明確なスペース */
    color: #0078d7;
    font-weight: bold;
    text-decoration: underline;
    width: 70%;
  }

  .service-text-app a {
    display: block;
    margin-bottom: 8px; /* 🔹ここで説明文との間に明確なスペース */
    color: #0078d7;
    font-weight: bold;
    text-decoration: underline;
    width: 50%;
  }

  .service-icon-text {
    font-size: 36px;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background-color: #e0e0e0;
    margin-right: 12px;
    flex-shrink: 0;
  }
  
  .service-text a:hover {
    text-decoration: underline;
  }
  
  /* ===== お問い合わせ ===== */
  #contact {
    margin-top: 40px;
  }

  #contact h2 {
    font-size: 20px;
  }

  /* ===== プロフィールエリア ===== */
  .profile-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .profile-box img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
    margin-right: 16px;
  }

  .profile-text {
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
    margin-top: 20px;
  }

  .profile-text p:nth-child(1) {
    margin-top: 0;
  }
  
  .profile-text p:nth-child(2) {
    margin: 4px 0 10px 0;
    line-height: 1.7;
  }

  .profile-text strong {
    font-size: 24px;
  }

  /* ===== サイドバー ===== */
  .sidebar {
    width: 280px;
    flex-basis: 300px;
  }

  /* ===== フッター固定 ===== */
  footer {
    background-color: #eaeaea;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    border-top: 1px solid #ccc;
    margin-top: auto;
    }

    /* ===== プライバシー・利用規約 ===== */

    .terms-container h1 {
        text-align: center;
        font-size: 35px;
    }

    .terms-container {
        max-width: 800px;
        margin: 40px auto;
        padding: 0 20px;
        font-size: 15px;
        line-height: 1.8;
        background-color: #f7f9fc;
        border-radius: 8px;
        
      }
      
      .terms-container h2 {
        font-size: 20px;
        margin-top: 1.6em;
        margin-bottom: 0.8em;
        color: #0078d7;
        border-bottom: 1px solid #ccc;
        padding-bottom: 6px;
      }
      
      .terms-container h3 {
        font-size: 16px;
        margin-top: 1.4em;
        margin-bottom: 0.6em;
        color: #333;
      }
      
      .terms-container p {
        margin-bottom: 1em;
      }
      
      .terms-container ul {
        margin-left: 1.2em;
        padding-left: 1em;
      }
      
      .terms-container ul li {
        margin-bottom: 0.5em;
        list-style-type: disc;
      }

      .privacy-container h1 {
        text-align: center;
        font-size: 35px;
    }

    .privacy-container {
        max-width: 800px;
        margin: 40px auto;
        padding: 0 20px;
        font-size: 15px;
        line-height: 1.8;
        background-color: #f7f9fc;
        border-radius: 8px;
        
      }
      
      .privacy-container h2 {
        font-size: 20px;
        margin-top: 1.6em;
        margin-bottom: 0.8em;
        color: #0078d7;
        border-bottom: 1px solid #ccc;
        padding-bottom: 6px;
      }
      
      .privacy-container h3 {
        font-size: 16px;
        margin-top: 1.4em;
        margin-bottom: 0.6em;
        color: #333;
      }
      
      .privacy-container p {
        margin-bottom: 1em;
      }
      
      .privacy-container ul {
        margin-left: 1.2em;
        padding-left: 1em;
      }
      
      .privacy-container ul li {
        margin-bottom: 0.5em;
        list-style-type: disc;
      }
  
  /* ===== アプリ紹介エリア ===== */
  .app-container h1 {
    text-align: center;
    font-size: 35px;
    }

.app-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-size: 15px;
    line-height: 1.8;
    background-color: #f7f9fc;
    border-radius: 8px;
    
  }
  .app-section {
    text-align: center;
    margin-top: 40px;
  }
  
  .app-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .app-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 16px;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .app-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
  }

  .app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 12px;
  }
  
  .app-info strong {
    font-size: 15px;
    margin-bottom: 6px;
    text-align: center;
  }

  .app-info {
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    
  }

  .app-info img:nth-child(2) {
    margin: 40px;
  }
  
  .app-info a:hover {
    text-decoration: underline;
  }
  
  /* === AIあみな用の画像アイコン === */
  .service-icon-amina {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
  }
  
  /* ===== スマホ対応のみメディアクエリ ===== */
  @media (max-width: 468px) {
    .layout-wrapper {
      flex-direction: column;
      gap: 5px;
      
    }

    .main-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
      }

      .main-content section {
        width: 100%;
        max-width: 480px;
      }

      /* ===== ヘッダー ===== */
      .site-logo {
        height: 40px;
      }
      
    /* ===== サイドバー ===== */
      .sidebar {
        max-width: 100%;
        order: -1;
        margin: auto;
      }
    /* ===== プロフィール ===== */
      .profile-box {
        align-items: center;
        min-height: auto;
        max-width: 100%;
      }
  
      .profile-box img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #ccc;
        margin-right: 16px;
        
      }

      .profile-text {
        text-align: center;
        margin-top: 10px;
      }

      .profile-text p {
        font-size: 16px;
        margin-bottom: 10px;
      }

      .profile-text strong {
        font-size: 24px;
        
      }
    /* ===== サービス ===== */
      .service-text {
        text-align: left;
      }
  
    .service-item {
        justify-content: center;
        text-align: left;
      }
  
    .service-icon,
    .service-icon-text {
      margin-bottom: 0;
      margin-right: 10px;
    }
    /* ===== お問い合わせ ===== */

    #contact h2 {
        font-size: 18px;
      }

    #contact p {
    font-size: 20px;
    }
    /* ===== footer ===== */
    footer {
      margin-top: auto;
    }

    /* ===== 利用規約・プライバシー ===== */

    .terms-container h1 {
        text-align: center;
        font-size: 30px;
    }

    .terms-container {
        max-width: 800px;  
        font-size: 12px;
        line-height: 1.4;
        background-color: #f7f9fc;
        border-radius: 8px;
      }

    .privacy-container h1 {
        text-align: center;
        font-size: 30px;
    }

    .privacy-container {
        max-width: 800px;
        font-size: 12px;
        line-height: 1.8;
        background-color: #f7f9fc;
        border-radius: 8px;
        
      }

      /* ===== アプリ紹介ページ ===== */
      .app-container h1 {
        text-align: center;
        font-size: 28px;
        }
    
    .app-container {
        font-size: 15px;
        line-height: 1.8;
        background-color: #f7f9fc;
        border-radius: 8px;
        
      }
    .app-list {
        flex-direction: column;
        align-items: center;
      }

      .app-item {
        width: 90%;
      }

      .app-info strong {
        font-size: 14px;
      }
     
      
  }
  