/* =========================================================
   /assets/css/top.css
   トップページ専用
   今回の完成デザイン寄せ
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Chewy&display=swap');

/* =========================
   page only adjust
   ========================= */

.wrapper{
  max-width: 480px;
}

@media (min-width: 768px){
  .wrapper{
    max-width: 760px;
    padding-top: 24px;
    padding-bottom: 48px;
  }
}

/* =========================
   beta badge
   ========================= */

.top-beta-row{
  margin: 0 0 12px;
}

.top-badge-beta{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #7c5c13;
  background: #fff6dc;
  border: 1px solid #f2dfaa;
  border-radius: 999px;
  padding: 6px 10px;
}

.top-badge-dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

/* =========================
   hero
   ========================= */

.top-hero{
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 20px 18px 18px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
  margin-bottom: 18px;
  text-align: center;
}

.top-hero-pette{
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.top-hero-pette img{
  width: 200px;
  height: auto;
}

.top-hero-tag-wrap{
  text-align: center;
}

.top-hero-tag{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  padding: 6px 10px;
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--accent-main-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.top-hero-title{
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.28;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.top-hero-description{
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.top-hero-note{
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-soft);
}

/* =========================
   sections
   ========================= */

.top-section{
  margin-top: 18px;
}

.top-section-title{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.top-section-title-icon{
  font-size: 20px;
  line-height: 1;
  color: var(--accent-main-deep);
}

.top-section-subtitle{
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}


/* =========================
   food slider section
   ========================= */

.top-food-section{
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
  margin-top: 10px;
}

.top-food-section-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.top-food-section-note{
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.top-food-swipe-hint{
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
  flex: 0 0 auto;
}

.top-food-slider{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.top-food-slider::-webkit-scrollbar{
  display: none;
}

.top-food-card{
  flex: 0 0 calc((100% - 12px) / 2.6);
  min-width: calc((100% - 12px) / 2.6);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 8px 8px 10px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
  color: var(--text-main);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  scroll-snap-align: start;
  margin-top:4px;
}

.top-food-image{
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  background: transparent;

  /* 追加 */
  position: relative;
}

.top-food-image::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16%;
  transform: translateX(-50%);

  width: 60%;
  height: 24px; /* 👈 縦に厚み出す */

  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.14) 0%,
    rgba(0,0,0,0.08) 40%,
    rgba(0,0,0,0.03) 65%,
    rgba(0,0,0,0) 100%
  );

  filter: blur(3px);
  z-index: 0;
}

.top-food-image img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0 auto;

  /* 追加 */
  position: relative;
  z-index: 1;
}

.top-food-brand{
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  color: var(--accent-main-deep);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.35;
}

.top-food-name{
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  word-break: break-word;
}

/* =========================
   count
   ========================= */

.top-count-card{
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 18px 16px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}

.top-count-main{
  font-size: 22px;
  line-height: 1.5;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.top-count-main span{
  color: var(--accent-main-deep);
}

.top-count-sub{
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =========================
   about
   ========================= */

.top-about-box{
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}

.top-about-text{
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
}

.top-about-text:last-of-type{
  margin-bottom: 0;
}

.top-feature-grid{
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.top-feature-card{
  background: #f9fafb;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 12px;
}

.top-feature-title{
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}

.top-feature-icon{
  font-size: 16px;
  line-height: 1;
  color: var(--accent-main-deep);
  flex: 0 0 auto;
}

.top-feature-text{
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* =========================
   hover
   ========================= */

@media (hover: hover) and (pointer: fine){
  .top-food-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(15,23,42,0.05);
    border-color: #d7dfe8;
  }
}

/* =========================
   desktop
   ========================= */

@media (min-width: 768px){
  .top-hero{
    padding: 26px 24px 22px;
  }

  .top-hero-title{
    font-size: 34px;
  }

  .top-hero-pette img{
    width: 220px;
  }

  .top-feature-grid{
    grid-template-columns: 1fr 1fr 1fr;
  }

  .top-food-card{
    flex: 0 0 190px;
    min-width: 190px;
  }
}


/* =========================
   route CTA cards
========================= */

.route-grid{
  display:grid;
  gap:10px;
}

.route-card{
  position:relative;
  display:block;
  text-align:left;
  text-decoration:none;
  color:var(--text-main);
  background:#fff;
  border:1px solid var(--border-soft);
  border-radius:14px;
  padding:16px 14px 15px;
  box-shadow:var(--shadow-soft);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  overflow:hidden;
}

.route-card-main{
  background:#eef7fc;
  border-color:#cfe3f2;
  padding:18px 16px 17px;
}

.route-card-main::before{
  content:"";
  position:absolute;
  left:0;
  top:14px;
  bottom:14px;
  width:4px;
  border-radius:999px;
  background:var(--accent-main);
}

.route-icon{
  width:38px;
  height:38px;
  margin-bottom:12px;
}

.route-card-main .route-icon{
  width:46px;
  height:46px;
  margin-bottom:14px;
}

.route-icon img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  filter:brightness(0) saturate(100%) invert(44%) sepia(21%) saturate(1314%) hue-rotate(182deg);
}

.route-label{
  display:inline-flex;
  align-items:center;
  margin-bottom:5px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  color:var(--accent-main-deep);
}

.route-title{
  font-size:16px;
  font-weight:900;
  line-height:1.35;
  letter-spacing:-.01em;
}

.route-card-main .route-title{
  font-size:21px;
}

.route-text{
  margin-top:4px;
  font-size:12px;
  line-height:1.65;
  color:var(--text-muted);
}

.route-card-main .route-text{
  font-size:13px;
}

.route-mini-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px;
}

.route-mini-tags span{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(207,224,251,.85);
  color:#4b5563;
  font-size:11px;
  font-weight:700;
}

.route-sub-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.route-sub-grid .route-card{
  min-height:140px;
  padding-bottom:30px;
}

.route-sub-grid .route-icon{
  width:36px;
  height:36px;
  margin-bottom:13px;
}

.route-arrow{
  position:absolute;
  right:13px;
  bottom:11px;
  color:var(--text-soft);
  font-size:16px;
  font-weight:900;
}

@media (hover:hover) and (pointer:fine){
  .route-card:hover{
    transform:translateY(-1px);
    box-shadow:0 14px 32px rgba(15,23,42,.11);
    border-color:#d7dfe8;
  }
}

/* =========================
   preset cards
========================= */

.preset-section{
  margin-top:0;
}

.preset-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.preset-title{
  font-size:14px;
  font-weight:900;
  letter-spacing:-.01em;
}

.preset-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:9px;
}

.preset-item{
  min-height:96px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:10px 6px;
  background:#fff;
  border:1px solid var(--border-soft);
  border-radius:14px;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
  text-decoration:none;
  color:var(--text-main);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

@media (hover:hover) and (pointer:fine){
  .preset-item:hover{
    transform:translateY(-1px);
    box-shadow:0 12px 26px rgba(15,23,42,.09);
    border-color:#cfe3f2;
    background:#fbfdff;
  }
}
.preset-item-icon{
  width:44px;
  height:44px;
}

.preset-item-icon img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  filter:brightness(0) saturate(100%) invert(44%) sepia(21%) saturate(1314%) hue-rotate(182deg);
}

.preset-item span{
  font-size:11px;
  font-weight:850;
  line-height:1.25;
  text-align:center;
  letter-spacing:-.01em;
}

.preset-plus{
  font-size:24px;
  font-weight:900;
  line-height:1;
  color:var(--accent-main-deep);
}

.preset-item.more{
  background:#eef7fc;
  border-color:#cfe3f2;
}

.top-section-icon{
  width:20px;
  height:20px;
  object-fit:contain;
  filter:brightness(0) saturate(100%) invert(44%) sepia(21%) saturate(1314%) hue-rotate(182deg);
}

@media (max-width:360px){
  .preset-grid{
    grid-template-columns:repeat(2, 1fr);
  }
}

.top-copy-en {
    font-family: "Chewy", cursive;
    font-weight: 400;
    font-style: normal;

    font-size: 44px;
    line-height: 1.2;
    letter-spacing: 0.04em;

    color: #2f436b;

    text-align: center;
    margin-top: 28px;

    opacity: 0;
    transform: translateY(10px);
    animation: topCopyFade 1.2s ease forwards;
}

/* ふわっと表示 */
@keyframes topCopyFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .top-copy-en {
        animation:
            topCopyFade 1.2s ease forwards,
            topCopyFloat 4s ease-in-out infinite 1.2s;
    }

    @keyframes topCopyFloat {
        0%   { transform: translateY(0); }
        50%  { transform: translateY(-3px); }
        100% { transform: translateY(0); }
    }
}