* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "M PLUS Rounded 1c", sans-serif;
  line-height: 1.6;
  color: #1b1b1b;
  background-color: #f8eee2;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 20px;
}

h2 {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 16px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 50px 0;
}

/* Two columns */
.columns {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.columns > div,
.columns > figure {
  flex: 1;
}

.logo {
  background-color: #d7262c;
  color: white;
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
  text-decoration: none;
  padding: 6px 16px;
  border: 3px solid white;
  border-radius: 50%;
}

nav a {
  margin-right: 18px;
  font-weight: 800;
  text-decoration: none;
}

nav a:hover,
nav a.active {
  text-decoration: underline;
  text-decoration-color: #d7262c;
  text-decoration-thickness: 3px;
}

.button {
  display: inline-block;
  background-color: #f1b8aa;
  color: white;
  font-weight: 800;
  text-decoration: none;
  padding: 10px 26px;
  border: 3px solid white;
  border-radius: 30px;
}

.button:hover {
  background-color: #e89f8e;
}

.center {
  text-align: center;
}


/*stripes*/

.stripes {
  flex-grow: 1;
}

.stripes div {
  height: 14px;
  border-bottom: 4px solid white;
}

.pink {
  background-color: #f3c6bc;
}

.teal {
  background-color: #3a8a76;
}

.red {
  background-color: #d7262c;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  background-color: white;
  padding: 14px 24px;
  border-bottom: 6px solid #d9d1c1;
}


/*sky and mt Fuji*/

.sky {
  background-color: #c6e3f6;
  padding-top: 20px;
}

.sky-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mountain {
  display: block;
  width: 100%;
  height: 280px;
}


/*convenience store*/

.store {
  background-color: #f3eee4;
  padding-bottom: 30px;
}

.fascia {
  display: flex;
  align-items: center;
  padding: 10px 0;
  background-color: white;
  border-top: 8px solid #d9d1c1;
  border-bottom: 8px solid #d9d1c1;
}

.fascia .stripes div {
  height: 20px;
}

.sign {
  text-align: center;
  padding: 6px 40px;
}

.sign-title {
  color: #d7262c;
  font-size: 40px;
  font-weight: 900;
  font-style: italic;
  line-height: 1.1;
  margin: 0;
}

.sign-subtitle {
  color: #3a8a76;
  font-weight: 900;
  letter-spacing: 6px;
  margin: 0;
}

.store-guide {
  text-align: center;
  letter-spacing: 5px;
  font-weight: 700;
  color: #5b5b5b;
  margin: 30px 0 20px;
}

/*three windows*/
.windows {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0 24px;
}

.window {
  width: 240px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.window img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border: 8px solid white;
  border-radius: 120px 120px 4px 4px;
}

.window:hover img {
  border-color: #f3c6bc;
}

/*Teal*/

.band {
  background-color: #3a8a76;
  color: white;
}

.lucky {
  display: flex;
  align-items: center;
  gap: 40px;
}

.big-japanese {
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
  writing-mode: vertical-rl;
  text-shadow: 4px 4px 0 #d7262c;
}


/* photos */

.photo {
  margin: 0;
  background-color: white;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: rotate(2deg);
}

.photo img {
  display: block;
  width: 100%;
}

.photo figcaption {
  font-size: 13px;
  padding-top: 8px;
}

.tilt-left {
  transform: rotate(-2deg);
}


/*History*/

.pink-page {
  background-color: #f8e6e6;
}

.timeline {
  display: flex;
  border-top: 5px solid white;
  margin-top: 30px;
}

.event {
  flex: 1;
  padding-right: 10px;
  font-size: 14px;
}

.event b {
  display: block;
  font-size: 20px;
}

.dot {
  width: 24px;
  height: 24px;
  margin-top: -15px;
  margin-bottom: 8px;
  background-color: #3a8a76;
  border: 5px solid white;
  border-radius: 50%;
}

.note {
  background-color: white;
  border-left: 8px solid #d7262c;
  border-radius: 0 14px 14px 0;
  padding: 16px 22px;
  margin-top: 24px;
}


/* Varieties */

.blue-page {
  background-color: #c6e3f6;
}

.white-title {
  color: white;
  text-shadow: 3px 3px 0 #1d3f6e;
}

.salmon-box {
  background-color: #f1b8aa;
  color: #1d3f6e;
  padding: 26px;
  border: 4px solid white;
  border-radius: 24px;
}

.map svg {
  width: 100%;
  height: auto;
}

.land {
  stroke: white;
  stroke-width: 1;
}

.hokkaido .land { fill: #f08a8a; }
.tohoku .land   { fill: #f4e37a; }
.kanto .land    { fill: #86d97a; }
.chubu .land    { fill: #7fdccc; }
.kansai .land   { fill: #8080f0; }
.chugoku .land  { fill: #f59a52; }
.shikoku .land  { fill: #c27ef0; }
.kyushu .land   { fill: #b9b9c4; }

.region:hover .land {
  fill: #d7262c;
}

.info {
  display: none;
}

.region:hover .info {
  display: inline;
}

.info-box {
  fill: #f1b8aa;
}

.info text {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 24px;
  fill: #1d3f6e;
}

.info .info-title {
  font-size: 30px;
  font-weight: 900;
  fill: white;
}

/* The flavor wall */
.flavors {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flavors li {
  padding: 6px 14px;
  background-color: #f3c6bc;
  color: #1b1b1b;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #1b1b1b;
  border-radius: 20px;
}

.flavors li:nth-child(2n) {
  background-color: #fff3a8;
}

.flavors li:nth-child(3n) {
  background-color: #c6e3f6;
}


footer {
  background-color: #1d3f6e;
  color: white;
  text-align: center;
  padding: 30px 24px;
}

@media (max-width: 700px) {
  h1 {
    font-size: 34px;
  }

  .columns,
  .lucky,
  .timeline {
    flex-direction: column;
  }

  .topbar,
  .sky-nav {
    flex-wrap: wrap;
  }

  .topbar .stripes {
    width: 100%;
  }

  .mountain {
    height: 150px;
  }

  .sign {
    padding: 6px 16px;
  }

  .sign-title {
    font-size: 28px;
  }

  .windows {
    gap: 10px;
  }

  .window {
    font-size: 14px;
  }

  .window img {
    height: 160px;
    border-width: 5px;
  }

  .big-japanese {
    font-size: 48px;
    writing-mode: horizontal-tb;
  }

  .timeline {
    border-top: none;
  }

  .dot {
    margin-top: 10px;
  }
}
