/* styles.css */

body {
  margin: 0;
  font-family: "Futura", Helvetica, sans-serif;
}

/* Navbar & Navmenu color */
:root {
  --background-navbar: rgba(51, 102, 255, 0.98); /* 透明度を0.98に設定 */
}

.header {
  background: var(--background-navbar);
  position: fixed;
  width: 100%;
  height: 52px;
}

/* Nav items */
.menu {
  list-style: none;
  position: absolute;
  width: 100%;
  height: auto;
  top: 0;
  margin-top: 52px;
  padding: 0 0 10px 0;
  clear: both;
  background: var(--background-navbar);
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
  transform: scale(1, 0);
  transform-origin: top;
}

/* Hamburger menu button */
.menu-btn:checked ~ .menu {
  transform: scale(1, 1);
  transform-origin: top;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

/* Hamburger menbu text */
.menu a {
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 2px;
  font-size: 16px;
  text-transform: capitalize;
  color: #ddd;
  opacity: 0;
  transition: 0.5s;
}

.menu li {
  border-top: 1px solid rgb(75, 75, 75);
  padding: 15px 0;
  margin: 0 54px;
  opacity: 0;
  transition: 0.5s;
}

.menu-btn:checked ~ .menu a,
.menu-btn:checked ~ .menu li {
  opacity: 1;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.2s;
}

.menu-btn {
  display: none;
}

.menu-icon {
  display: inline-block;
  position: relative;
  cursor: pointer;
  padding: 24px 14px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.navicon {
  background: #ddd;
  display: block;
  height: 3px;
  width: 26px;
  position: relative;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.navicon:before,
.navicon:after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  background: #ddd;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.navicon:before {
  top: 9px;
}

.navicon:after {
  bottom: 9px;
}

/* Hamburger Menu Animation Start */
.menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
}

.menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
}

.menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before {
  top: 0;
}
.menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
  bottom: 0;
}

.menu-btn:checked ~ .menu-icon .navicon {
  background: rgba(0, 0, 0, 0);
  transition: 0.2192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}
/* Hamburger Menu Animation End */

/* Navbar Container */
.navtext-container {
  width: 100%;
  height: 52px;
  position: absolute;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Navbar Text */
.navtext2 {
  position: absolute;
  text-transform: uppercase;
  color: #ddd;
  letter-spacing: 4px;
  font-size: 20px;
}

.navtext {
  text-decoration: none; /* 下線を消す */
  position: absolute;
  text-transform: uppercase;
  color: #fff; /* ロゴの色を白に変更 */
  letter-spacing: 4px;
  font-size: 24px; /* ロゴのフォントサイズを大きく */
  font-weight: bold; /* 太字にする */
  text-align: center;
  margin: 0;
  left: 50%;
  transform: translateX(-50%); /* 中央揃え */
}

.hero {
    background: #eef6fc;
    text-align: center;
    padding: 2rem 1rem;
}

.hero h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero input {
    padding: 0.5rem;
    font-size: 1rem;
    width: 80%;
    max-width: 400px;
    margin-top: 1rem;
}

.recommended, .categories, .popular, .newsletter, .ta-koo_home {
    padding: 2rem 1rem;
    background: #fff;
    margin: 1rem auto;
    max-width: 1200px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.recommended h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cards {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.card {
    background: #f1f1f1;
    padding: 1rem;
    border-radius: 8px;
    flex: 1;
    min-width: 250px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card a {
    display: inline-block;
    margin-top: 0.5rem;
    text-decoration: none;
    color: #0078d7;
    font-size: 30px;
}

.category-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.category-buttons button {
    padding: 0.5rem 1rem;
    border: none;
    background: #0078d7;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.category-buttons button:hover {
    background: #005bb5;
}

footer {
    text-align: center;
    padding: 1rem;
    background: #333;
    color: #fff;
}

.footer-links a {
    color: #fff;
    margin: 0 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}