/*
Theme Name: dondon-theme
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: Original WordPress theme for dondon project.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: dondon-theme
*/

* {
  box-sizing: border-box;
}

html,
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

body {
  margin: 0;
  background: #f4efe9;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.site-main {
  width: 100%;
}

.top-visual {
  width: 100%;
  background: #fff;
  position: relative;
}

.top-visual__inner {
  position: relative;
  margin: 0 auto;
  min-height: 100vh;
  background: url("src/images/mv_bg-pc.png") center top / cover no-repeat;
}

.top-visual__bg {
  position: absolute;
  inset: 0;
}

.top-visual__festival {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: min(66vw, 760px);
}

.top-visual__festival img {
  width: 100%;
}

.top-visual__festival--sp {
  display: none;
}

.top-visual__date-tag {
  position: absolute;
  left: 12%;
  top: 9%;
  width: min(16vw, 170px);
}

.top-visual__date-tag img {
  width: 100%;
}

.top-cards {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-1.2rem); /* translateYと合成します */
  width: min(1030px, 92vw);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.top-card {
  width: 100%;
}

.top-card__link {
  display: block;
}

.top-card__text{
    position: absolute;
    bottom: 15px;
    left: -80px;
}

.top-card__link img {
  width: 100%;
}

footer {
  width: 100%;
  background: #333;
  padding: 3px 0;
  text-align: center;
  color: #fff;
}

@media (max-width: 960px) {
  .top-visual__inner {
    height: 100vh;
    background-image: url("src/images/mv_bg-sm.png");
  }

  .top-visual__festival--pc {
    display: none;
  }

  .top-visual__festival--sp {
    display: block;
  }

  .top-visual__festival {
    width: min(78vw, 620px);
  }

  .top-visual__date-tag {
    left: 8%;
    top: 8%;
    width: min(22vw, 140px);
  }

  .top-cards {
    grid-template-columns: 1fr;
    gap: 5px 0;
    width: 100%;
    left: 0;
    transform: none;
    bottom: 5px;
  }
  .top-card__text{
    top: -15px;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-1.2rem);
  }
}

@media (max-width: 640px) {

  .top-visual__festival {
    top: 46%;
    width: min(84vw, 500px);
  }

  .top-visual__date-tag {
    position: static;
    margin: 0 auto;
    width: 110px;
    padding-top: 1rem;
  }
}
