/* ===================================
   1. VARIABLES
====================================== */
:root {
  --cp-color-blue-dark: #054986;
  --cp-color-red: #e34b33;
  --cp-color-text: #333;
  --cp-color-white: #fff;
  --cp-color-blue-light: #ebf5fe;
  --cp-color-yellow-light: #fef7e2;
  --cp-font-body: 'Noto Sans JP', sans-serif;
  --cp-font-title: "M PLUS Rounded 1c";
  --cp-container-width: 1100px;
  --cp-container-width-small: 800px;
  --cp-transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ===================================
   2. COMMON & BASE STYLES
====================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--cp-font-body);
  color: var(--cp-color-text);
  background-color: var(--cp-color-white);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.85;
  margin: 0;
  overflow-x: hidden;
  min-width: inherit;
}

ul,
li {
  list-style: none;
  padding: 0;
  margin: 0;
}

#cp-page {
  font-family: var(--cp-font-body) !important;
  color: var(--cp-color-text) !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.85 !important;
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.hidden-sp {
  display: none;
}

.hidden-pc {
  display: block;
}

.cp-container {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--cp-container-width);
}

.cp-container-small {
  max-width: var(--cp-container-width-small);
}

.cp-text,
.cp-overview-desc {
  font-size: 18px;
  font-family: var(--cp-font-body) !important;
  font-weight: 500 !important;
  line-height: 1.85 !important;
}

.cp-text {
  color: var(--cp-color-text);
}

.apply-button .notice .cp-text {
  color: var(--cp-color-white) !important;
}

.cp-overview-desc {
  color: var(--cp-color-white) !important;
}

.cp-text-bold {
  font-weight: 700;
}

.cp-text-center {
  text-align: center;
}

.cp-text-link {
  text-decoration: underline !important;
  font-weight: 700;
  align-items: center;
  padding-right: 4px;
}



.cp-text-external-link::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background-image: url(../images/window.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin-inline: 0.3em 0.2em;
  vertical-align: text-bottom;
}

.cp-text-link:hover {
  opacity: .7;
}

.cp-text-link:visited {
  color: var(--cp-color-red) !important;
}

.cp-button {
  display: block;
  padding-block: 12px;
  background-color: var(--cp-color-red) !important;
  color: var(--cp-color-white) !important;
  border: none;
  border-radius: 4px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.8;
  margin-inline: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#greetings .cp-button,
#nav-how-to .cp-button,
.apply-button .cp-button {
  width: min(100%, 360px);
}

.cp-button:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  opacity: .7;
}

.cp-section {
  padding: 60px 0;
}

.cp-section-accent-bg {
  background-color: var(--cp-color-yellow-light);
  margin-block: 40px;
}

.cp-section-dark-bg {
  background-color: var(--cp-color-blue-dark);
  color: var(--cp-color-white);
  padding: 80px 0;
}

.cp-section-title {
  font-family: var(--cp-font-title);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--cp-color-blue-dark);
  text-align: center;
  margin: 0 auto 30px;
  line-height: 1.3;
  max-width: 90%;
}


.apply-button-box {
  margin-block: 40px 10px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(1, 1fr);
  justify-content: center;
}

.pt-20 {
  padding-top: 16px;
}

@media (min-width: 768px) {
  body {
    font-size: 18px;
  }

  .hidden-sp {
    display: initial;
  }

  .hidden-pc {
    display: none;
  }

  .cp-button {
    font-size: 22px;
  }

  .apply-button-box {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .apply-button .cp-button {
    width: 100%;
  }
}

/* ===================================
   3. HERO
====================================== */
.cp-hero {
  background: var(--cp-color-blue-dark);
}

.cp-hero-image {
  text-align: center;
  font-size: 0;
}

/* ===================================
   4. NAVIGATION
====================================== */
.cp-nav {
  background: var(--cp-color-blue-dark);
}

.cp-nav-list {
  margin: 0 auto;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cp-color-blue-dark);
}

.cp-nav-item {
  background-color: transparent;
  border-right: 2px solid var(--cp-color-white);
  border-bottom: 2px solid var(--cp-color-white);
  box-sizing: border-box;
}

.cp-nav-item a::after {
  content: '';
  width: 8px;
  height: 8px;
  border: 0;
  border-bottom: solid 2px var(--cp-color-white);
  border-right: solid 2px var(--cp-color-white);
  transform: rotate(45deg);
  margin-left: 8px;
}

.cp-nav-item:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.cp-nav-item a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  min-height: 30px;
  font-size: 20px;
  color: var(--cp-color-white) !important;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  text-decoration: none !important;
  letter-spacing: 0.08em;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .cp-nav-item a {
    font-size: 22px;
  }

  .cp-nav-item a::after {
    content: '';
    width: 8px;
    height: 8px;
    border: 0;
    border-bottom: solid 2px var(--cp-color-white);
    border-right: solid 2px var(--cp-color-white);
    transform: rotate(45deg);
    margin-left: 10px;
  }

  .cp-nav-item a:hover::after {
    margin-left: 15px;
  }
}

@media (max-width: 1023px) {
  .cp-nav-list .cp-nav-item:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .cp-nav-list {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: none;
    max-width: 1200px;
  }

  .cp-nav-item a {
    padding: 15px 5px;
    min-height: 60px;
  }

  .cp-nav-item {
    border-bottom: none;
  }

  .cp-nav-item:last-child {
    border-right: none;
  }
}

/* ===================================
   5. GREETINGS
====================================== */
#greetings {
  position: relative;
}

#greetings .cp-text-link {
  color: var(--cp-color-blue-dark) !important;
}

#greetings .cp-button {
  margin-top: 40px;
}

@media (min-width: 768px) {
  #greetings .cp-text {
    text-align: center;
  }
}

/* ===================================
   6. GIFT (#nav-gift)
====================================== */
#nav-gift .cp-text-link {
  color: var(--cp-color-blue-dark) !important;
}

.nav-gift-h3 {
  font-family: var(--cp-font-title);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--cp-color-white) !important;
  background: var(--cp-color-blue-dark);
  padding: 8px !important;
  margin: 0 0 15px;
}

.prize-grid {
  margin-bottom: 40px;
  margin-block: 24px;
}

.prize-item>.nav-gift-h4 {
  font-size: 24px;
  margin: 0;
  width: 100%;
  text-align: center;
  color: var(--cp-color-blue-dark);
}

.prize-item {
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.prize-item>.prize-image-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.prize-item>.prize-text-content {
  width: 100%;
  text-align: center;
}

.prize-image-content img {
  width: 200px;
  height: auto;
  display: block;
  margin-inline: auto;
}

.calendar-border {
  border: 1px solid #c6c6c6;
}

@media (min-width: 540px) {
  .prize-item {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: auto auto;
    align-items: center;
    grid-column-gap: 16px;
    grid-row-gap: 8px;
    flex-direction: row;
    grid-template-areas:
      "h4 image-content"
      "text image-content";
  }

  .prize-item>.nav-gift-h4 {
    grid-area: h4;
    align-self: flex-start;
    text-align: left;
    margin-bottom: 0;
    width: auto;
  }

  .prize-item>.prize-text-content {
    grid-area: text;
    text-align: left;
    width: auto;
    align-self: flex-start;
    padding-top: 0;
  }

  .prize-item>.prize-image-content {
    grid-area: image-content;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .prize-item>.nav-gift-h4 {
    font-size: 28px;
    line-height: 1.5;
  }
}

@media (min-width: 1024px) {
  .prize-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .prize-item {
    margin-bottom: 0;
    padding-inline: 20px;
  }

  .prize-item-wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 16px;
    padding-left: 240px;
  }

  .prize-item-wide>.nav-gift-h4,
  .prize-item-wide>.prize-text-content {
    flex-basis: 50%;
    text-align: left;
  }

  .prize-item-wide>.prize-image-content {
    flex-basis: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 200px;
  }
}

/* ===================================
   7. HOW-TO (#nav-how-to)
====================================== */
#nav-how-to {
  position: relative;
}

#nav-how-to .cp-text-link {
  color: var(--cp-color-blue-dark) !important;
}

#nav-how-to .cp-container {
  margin-bottom: 40px;
}

#nav-how-to .cp-button {
  margin-top: 40px;
}

.cp-step-group {
  margin-top: 60px;
  background: var(--cp-color-blue-light);
  padding: 20px;
  border-radius: 8px;
  line-height: 1.4;
}

.cp-step-group-title {
  font-family: var(--cp-font-title);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--cp-color-blue-dark);
  letter-spacing: 0.1em;
  border-bottom: 4px solid var(--cp-color-blue-pale);
  padding-bottom: 10px !important;
  margin-block: 0;
  padding-top: 12px !important;
  text-align: center;
  background: var(--cp-color-white);
}

.cp-step-flow {
  padding: 0;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  position: relative;
}

.cp-step-item {
  background: var(--cp-color-white);
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 70px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  position: relative;
}

.cp-label {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--cp-color-blue-dark);
  color: var(--cp-color-white);
  font-size: 30px;
  font-weight: 900;
  padding: 5px 20px;
  border-radius: 0 0 12px 0;
  border: 4px solid var(--cp-color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cp-step-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: var(--cp-color-blue-dark);
  font-family: var(--cp-font-title);
  line-height: 1.5;
  width: 100%;
}

.cp-step-image {
  border-radius: 8px;
  border: 4px solid #ddd;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-inline: auto;
  width: min(100%, 400px);
}

.cp-step-item>.cp-text {
  width: 100%;
}

li.cp-step-item>.cp-text {
  text-align: left !important;
}

@media (min-width: 768px) {
  .cp-step-group {
    padding: 40px 40px 60px;
  }
}

@media (min-width: 1024px) {
  .cp-step-flow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto 1fr;
    margin-top: 40px;
  }

  .cp-step-flow::after {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--cp-color-blue-dark);
    font-weight: 900;
    z-index: 1;
  }

  .cp-step-item {
    display: grid;
    grid-row: span 3;
    /* grid-template-rows: subgrid; */
    margin: 0;
    padding: 30px 20px 20px;
    gap: 15px;
    align-content: start;
    justify-items: center;
  }

  .cp-step-item>.cp-step-title {
    grid-row: 1;
  }

  .cp-step-item>.cp-step-image {
    grid-row: 2;
    align-self: start;
  }

  #nav-how-to .cp-text {
    text-align: center;
  }

  .cp-step-item>.cp-text {
    grid-row: 3;
    align-self: start;
  }

  .cp-step-group {
    padding: 60px;
  }
}

/* ===================================
   8. 全国のソニーストアで配布予定 (#how-to-receive)
====================================== */
.how-to-receive-wrapper {
  margin-block: 40px;
}

.how-to-receive-box {
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--cp-color-blue-light);
}

.how-to-receive-h3 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: var(--cp-color-blue-dark);
  font-family: var(--cp-font-title);
  letter-spacing: 0.1em;
  margin: 40px 0 15px !important;
  line-height: 1.5;
}

.how-to-receive-h4 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: var(--cp-color-blue-dark);
  font-family: var(--cp-font-title);
  letter-spacing: 0.1em;
  margin: 0 0 15px !important;
  line-height: 2;
  background: var(--cp-color-white);
}

.how-to-receive-box img {
  width: 300px;
  height: auto;
  display: flex;
  margin-inline: auto;
  margin-top: 20px;
  border-radius: 50%;
  background: var(--cp-color-white);
}

.store {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.store-list {
  width: 100%;
  display: block;
  padding: 12px 0;
  background-color: var(--cp-color-red) !important;
  color: var(--cp-color-white) !important;
  border: none;
  border-radius: 4px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  margin-inline: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.store-list:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.store-list p {
  text-align: center;
  margin: 0;
}

.store-list p a {
  color: var(--cp-color-white) !important;
  font-size: 22px;
  line-height: 1.8;
}

.store-list :hover {
  opacity: .7;
}

@media (min-width: 768px) {
  .how-to-receive-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
  }

  .how-to-receive-box {
    margin-bottom: 0;
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .store {
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
  }
}

/* ===================================
   9. OVERVIEW (#nav-overview)
====================================== */
#nav-overview .cp-text-link {
  color: var(--cp-color-white) !important;
}

.cp-overview-list {
  margin: 0;
}

.cp-overview-title {
  font-family: var(--cp-font-title);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  border-bottom: 4px solid var(--cp-color-red);
  padding-bottom: 10px;
  margin-block: 40px 15px;
}

.cp-overview-list dt:first-of-type {
  margin-top: 0;
}

.cp-overview-desc {
  margin: 0 0 15px 0;
}

/* ===================================
   10. ARCHIVE (#nav-archive)
====================================== */
#nav-archive {
  background: var(--cp-color-blue-light);
}

.cp-tips-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
}

.cp-tips-content {
  border-radius: 8px;
  width: min(100%, 380px);
  height: auto;
}

.cp-tips-content:last-child {
  margin-top: 20px;
}

.cp-banner-link-tips {
  width: 100%;
  max-width: 400px;
}

#nav-archive h3 {
  font-family: var(--cp-font-title);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--cp-color-blue-dark);
  text-align: center;
  margin: 8px 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#nav-archive .cp-banner-link {
  border-radius: 0;
}

.loop_wrap {
  width: 100vw;
  height: 240px;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

.slider {
  width: max-content;
  display: flex;
  animation: scroll 50s linear infinite;
}

.slider img {
  width: auto;
  height: 240px;
  margin-right: 10px;
  border: 1px solid #c6c6c6;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.loop_wrap:hover .slider {
  animation-play-state: paused;
}


@media (min-width: 768px) {

  .cp-tips-content-wrapper {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
  }

  #nav-archive p {
    text-align: center;
  }

  .cp-tips-content:last-child {
    margin-top: 0;
  }
}

@media (min-width: 1024px) {

  .loop_wrap {
    margin-top: 30px;
  }
}

/* ===================================
   11. BANNERS & RECOMMENDED
====================================== */
.cp-section-flat-bg {
  background-color: var(--cp-color-yellow-light);
  margin-top: 40px;
}

.cp-recipe-logo {
  max-width: 200px;
  margin: 0 auto 20px;
  display: block;
}

.cp-banner-link {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all var(--cp-transition);
  margin-inline: auto;
  text-align: center;
}

.cp-banner-link-recipe {
  width: 100%;
}

.cp-banner-link:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cp-banner-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

.cp-banner-grid li {
  width: min(100%, 380px);
  margin-inline: auto;
}


@media (min-width: 768px) {
  .cp-banner-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (min-width: 1024px) {
  .cp-banner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}