@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400&family=Noto+Sans+JP:wght@300;400&display=swap');

:root {
    --bg: #f9f9f9;
    --text: #111;
    --muted: #666;
    --accent: #0f0f0f;
    --shadow: rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #fff, #f1f1f1);
    color: var(--text);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    letter-spacing: 0.04em;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-bottom: 6rem;
}

section {
    display: none;
    animation: fade 0.5s ease;
}

section.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

header {
    position: absolute;
    top: 3rem;
    width: 100%;
    text-align: center;
}

h1 {
    font-weight: 300;
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: 0.06em;
}
h4 {
    font-weight: 75;
    font-size: 1.0rem;
    margin: 0;
    letter-spacing: 0.06em;
}
.subtitle {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.card-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 0;
}

/* 各カード */
.card {
  position: relative;
  width: 280px;
  height: 440px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.3);
}

/* ベクターアイコン部分 */
.card-vector {
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-vector img {
    width: 64px;
    height: 64px;
    opacity: 0.85;
}

/* テキスト */
.card h3 {
    margin: 0.6rem 0 0.6rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.card p {
    font-weight: 300;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 240px;
}

/* === bottom nav === */
.bottom-nav {
    position: fixed;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
}

.bottom-nav button {
    background: none;
    border: none;
    font-size: 0.85rem;
    color: #444;
    font-family: inherit;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.bottom-nav button.active {
    background: #111;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
