/* ===============================
   基本設定
   =============================== */
body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f9fafb;
    color: #333;
}

/* ===============================
   ヘッダー
   =============================== */
header {
    background:  linear-gradient(135deg, #43cea2, #185a9d);
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* 小さい画面で折り返す */
}

header h1 a {
    color: #fff;
    text-decoration: none;
    font-size: 2.1rem !important;
    font-weight: bold;
}

h1 a .katakana {
    font-size: 1.1rem;        /* カタカナ部分を小さく */
    font-weight: normal;    /* 必要なら太さも調整 */
}
nav ul {
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap; /* 狭い画面で折り返し */
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

nav ul li a:hover {
    text-decoration: underline;
}

header .subtitle {
  font-size: 1rem;
  color: #f6f0f0;
  letter-spacing: 0.05em;
}

/* ===============================
   メインコンテンツ
   =============================== */
main {
    padding: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.app-title {
    font-size: 1.4rem;
    color: #db4848;
    margin-bottom: 10px;
}

/* ===============================
   ボタン
   =============================== */
.cta-buttons {
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn {
    display: inline-flex;          
    align-items: center;           
    justify-content: center;       
    gap: 0.5em;
    flex: 1 1 auto; 
    min-width: 140px;
    text-align: center;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #43cea2, #185a9d);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn:hover {
    filter: brightness(0.9);   /* 少し暗く＝濃く */
    transform: translateY(-2px); /* ふわっと浮く演出 */
}

.btn-secondary {
    background: #6b7280;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* ===============================
   フッター
   =============================== */
footer {
    text-align: center;
    padding: 1rem;
    background: #e5e7eb;
    color: #555;
    margin-top: 2rem;
    font-size: 0.9rem;
    border-top: 1px solid #d1d5db;
}

/* ===============================
   ホームページ使い方セクション
   =============================== */
.how-to {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step img {
    max-width: 250px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
}

/* トースト全体のコンテナ */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 各トースト */
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  max-width: 320px;
  padding: 12px 18px;
  border-radius: 12px;
  color: #fff;
  font-weight: 500;
  font-family: "Noto Sans JP", sans-serif;
  background: rgba(0,0,0,0.6); /* 黒半透明 */
  border: 2px solid rgba(255,255,255,0.5); /* 光る枠 */
  box-shadow: 0 0 8px rgba(255,255,255,0.3);
  opacity: 0;
  transform: translateX(100%); /* 右から入る */
  animation: glowBorder 1.5s ease-in-out infinite, slideIn 0.6s cubic-bezier(0.25,1.2,0.5,1) forwards;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* 光る枠アニメーション */
@keyframes glowBorder {
  0%, 100% {
    box-shadow: 0 0 8px rgba(255,255,255,0.3), 0 0 15px rgba(255,255,255,0.2);
  }
  50% {
    box-shadow: 0 0 12px rgba(255,255,255,0.6), 0 0 20px rgba(255,255,255,0.4);
  }
}

/* アイコン用 */
.toast .icon {
  font-size: 1.2rem;
}

/* ボーダー色で種類を判別 */
.toast.success { border-color: #4caf50; }  /* 緑 */
.toast.error   { border-color: #f44336; }  /* 赤 */
.toast.warning { border-color: #ff9800; }  /* オレンジ */
.toast.info    { border-color: #2196f3; }  /* 青 */

/* スライドイン右→中央 */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(100%) scale(0.95);
  }
  60% {
    opacity: 1;
    transform: translateX(-10px) scale(1.02);
  }
  100% {
    transform: translateX(0) scale(1);
  }
}

/* スライドアウト左 */
@keyframes slideOut {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-120%) scale(0.95);
  }
}





/* ===============================
   レスポンシブ対応
   =============================== */
/* タブレット以上 */
@media (min-width: 768px) {
    header h1 a {
        font-size: 1.6rem;
    }

    nav ul {
        margin: 0;
    }

    section {
        padding: 2rem;
    }

    .cta-buttons {
        justify-content: flex-start;
    }

    .how-to {
        flex-direction: row;
        justify-content: space-between;
    }
    .step img {
        max-width: 200px;
    }
}

/* PC以上 */
@media (min-width: 1024px) {
    body {
        font-size: 1.1rem;
    }

    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    section {
        padding: 2.5rem;
    }
}
