/* ====== Reset CSS ====== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

ul, ol {
  list-style: none;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}
.pc {
  display: block;
}
.sp {
  display: none;
}
@media (max-width: 768px) {
  .pc {
    display: none;
  }
  .sp {
    display: block;
  }
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: #000;
  color: #fff;
  font-family: 'Outfit', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN W3', 'Hiragino Kaku Gothic Pro W3', 'Meiryo', sans-serif;
}

header {
  background: #fff;
  padding: 20px 40px;
}
header .logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 50px 20px 180px;
  height: 100vh;
  overflow: hidden;
  background:
    url(../images/main_bg.svg) no-repeat center top/cover,
    radial-gradient(1200px 600px at 20% 85%, rgba(255,28,247,.25), transparent 60%),
    radial-gradient(1200px 600px at 85% 30%, rgba(0,240,255,.22), transparent 60%),
    #000;
}
@media (max-width: 768px) {
  .hero {
    background-position: bottom;
    background-size: contain;
  }
}
.hero::before {
  content:"";
  position:absolute; inset:0 0 40% 0;
  background: linear-gradient(180deg, rgba(170,20,240,.18), rgba(170,20,240,0));
  pointer-events:none;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-brand {
  font-size: clamp(32px, 5vw, 80px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(90deg, #FF1CF7, #00F0FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-brand-sub {
    -webkit-text-fill-color: #fff;
}

.hero-title {
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.15;
  margin: 0 0 24px;
}

.hero-lead {
  font-size: clamp(16px, 2.5vw, 26px);
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 16px;
}

.hero-desc {
  color: rgba(255,255,255,.8);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  margin-bottom: 100px;
  border-radius: 0.2rem;
  background: linear-gradient(180deg, #FF1CF7 0%, #a4069e 100%);
  color:#fff;
  font-size: 20px;
  font-weight: 500;
  transition: transform .15s ease, filter .15s ease;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-primary:active { transform: translateY(0); filter: brightness(.98); }

.hero-thumbs {
  position: absolute;
  left: 50%;
  bottom: -100px;
  width: 1200px;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0 20px;
  z-index: 0;
  filter: saturate(1.05);
  perspective: 1200px;
  transform: translateX(-50%);
  transform-style: preserve-3d;   /* ←重要 */
  z-index: 0;
}

.thumb-wrap {
  flex: 0 0 auto;
  width: 280px;
  margin: 0 -20px;
  position: relative;
  transform-origin: bottom center; /* 下を支点に傾ける */
  transform-style: preserve-3d;    /* ←重要 */
  opacity: 0;                      /* 出現はフェードのみ（transformに触れない） */
  animation: thumbsFade .8s ease-out forwards;
}
.thumb-wrap:first-child { margin-left: 0; }

.thumb-wrap:nth-child(1){ animation-delay:.10s; }
.thumb-wrap:nth-child(2){ animation-delay:.30s; }
.thumb-wrap:nth-child(3){ animation-delay:.50s; }
.thumb-wrap:nth-child(4){ animation-delay:.70s; }
.thumb-wrap:nth-child(5){ animation-delay:.90s; }

.thumb-wrap:nth-child(1) {
  transform: translateZ(-180px) rotateY(12deg)  scale(.92);
  z-index: 1;
}
.thumb-wrap:nth-child(2) {
  transform: translateZ(-60px)  rotateY( 6deg)  scale(.97);
  z-index: 100;
}
.thumb-wrap:nth-child(3) {
  transform: translateZ(120px)  rotateY( 0deg)  scale(1.05);
  z-index: 1000;
}
.thumb-wrap:nth-child(4) { 
  transform: translateZ(-60px)  rotateY(-6deg)  scale(.97);
  z-index: 100;
}
.thumb-wrap:nth-child(5) {
  transform: translateZ(-180px) rotateY(-12deg) scale(.92);
  z-index: 1;
}



.hero-thumbs img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}

.thumb-wrap:nth-child(3) { margin: 0 20px; }

@keyframes thumbsFade { to { opacity: 1; } }


@media (max-width: 768px) {
  .hero {
    padding: 26px 20px 80px;
    background-position: bottom;
    background-size: contain;
    height: auto;
  }
  .hero-thumbs { 
    display: flex;
    justify-content: center;
    perspective: none;
    bottom: -50px;
    width: 100%;
  }
  .thumb-wrap {
    width: auto;
    margin: 0 -20px;
    z-index: auto;
  }
  .hero-thumbs img {
    width: 100%;
    height: auto;
    border-radius: 4px;
  }
  .thumb-wrap:nth-child(3) {
    margin: 0;
  }
  .thumb-wrap img {
    height: 200px;
    width: auto;
  }
  .hero-desc {
    font-size: 12px;
  }
  .btn-primary {
    font-size: 18px;
  }
}

@media (max-width: 1200px) and (min-width: 769px) and (hover:hover) and (pointer:fine) {
  .hero {
    height: auto;
    padding: 30px 20px 180px;
  }
  .hero-thumbs {
    transform: translateX(-50%) translateY(50%);
    bottom: 0;
  }
}

/* hero の CTA を大きくする */
.hero-cta .btn-primary,
.hero-cta a.btn-primary {
    padding: 18px 70px; /* 横幅を広めに */
    font-size: 22px;    /* 文字サイズを大きく */
    border-radius: 0.35rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}

/* モバイルでは少し小さめに調整 */
@media (max-width: 768px) {
    .hero-cta .btn-primary,
    .hero-cta a.btn-primary {
        padding: 14px 22px;
        font-size: 18px;
    }
}

/* ===== Sections ===== */
main {
    background:
    radial-gradient(1200px 600px at 20% 85%, rgba(0,240,255,.22), transparent 60%),
    radial-gradient(1200px 600px at 85% 30%, rgba(255,28,247,.25), transparent 60%),
    #000;
}
section {
  max-width: 1000px;
  margin: 120px auto;
  padding: 0 20px;
}

.sec {
  position: relative;
}

.heading-en {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 200px;
  font-weight: 300;
  opacity: 0.2;
  background: linear-gradient(-130deg,#FF1CF7,#00F0FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  z-index: 99;
}

.panel {
  position: relative;
  border-radius: .45rem;
  background: linear-gradient(180deg,
              rgba(170,20,240,.22) 0%,
              rgba(170,20,240,.10) 35%,
              rgba(170,20,240,0) 100%);
  padding: 60px;
  backdrop-filter: blur(10px);
}

.heading-ja {
  font-size: 48px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 64px;
}

/* ===== About ===== */
.about-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.about-illust { flex: 1; }
.about-text { flex: 2; }

.item {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.item h3 {
  font-size: 16px;
  font-weight: 600;
  color: #8B2AE9;
  background: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  text-align: center;
}

/* makeshop セクション（About に近い位置に配置） */
.makeshop {
    max-width: 980px;
    margin: 48px auto 0;
    padding: 22px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
}

.makeshop-text {
    flex: 1 1 60%;
}
.makeshop-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}
.makeshop-text p { margin-bottom: 0.6rem; }

.makeshop-top {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.makeshop-top a {
    display: inline-block;
    background: #0070f3;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: transform .12s ease, box-shadow .12s ease, background .12s;
    min-width: 120px;
    text-align: center;
}

.makeshop-top a:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    background: #0057c7;
}
.makeshop-top a:focus{
    outline: 2px solid rgba(91, 143, 255, 0.6);
    outline-offset: 2px;
}
.makeshop-top a::after { content: none; }

/* ===== Schedule ===== */
.schedule-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}
.schedule-list {
  flex: 2;
  max-width: 460px;}
.schedule-illust { flex: 1; }

.schedule-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.schedule-item:last-child { border-bottom: none; }

.schedule-item dt {
  font-size: 16px;
  font-weight: 600;
  color: #8B2AE9;
  background: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  text-align: center;
}

/* ===== Criteria ===== */
.criteria-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.criteria-text {
    max-width: 640px;
    width: 100%;
}

.criteria-text ol {
    list-style: decimal;
    list-style-position: outside;
    margin: 0 0 0 1.2rem;
    padding: 0;
    color: #e6e6e6;
    font-size: 0.98rem;
}
.criteria-text li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    hyphens: auto;
}

.criteria-graph-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.criteria-graph-img {
  width: 400px;
  flex-shrink: 0;
}

.criteria-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-item {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  padding: 12px 24px;
  border: 2px solid;
  border-image: linear-gradient(90deg, #9b59b6, #00F0FF) 1;
  transform: skewX(-10deg);
  width: 260px;
}

.detail-item span {
  display: inline-block;
  transform: skewX(10deg); /* テキストを元に戻す */
}
.criteria-details .detail-item:nth-child(2) {
  margin-left: -10px;
}
.criteria-details .detail-item:nth-child(3) {
  margin-left: -20px;
}
.criteria-details .detail-item:nth-child(4) {
  margin-left: -30px;
}

.template-link { text-align: center; margin-top: 90px; }
.template-link a {
    display: inline-block;
    background: #0070f3;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: transform .12s ease, box-shadow .12s ease, background .12s;
}
.template-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    background: #0057c7;
}
.template-link a:focus {
    outline: 4px solid rgba(91, 143, 255, 0.18);
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    .template-link a { transition: none; transform: none; }
}

@media (max-width: 768px) {
    .criteria-graph-container {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: static;
    }
    .criteria-graph-img, .graph-labels div, .criteria-details {
        position: static;
        transform: none;
        margin-bottom: 20px;
        text-align: center;
    }
    .label-design, .label-editability, .label-versatility, .label-ux {
        left: auto; top: auto; right: auto; bottom: auto;
    }
}

/* ===== Prize ===== */
#prize .heading-ja {
  margin-bottom: 0;
}
.prize-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.prize-text { flex: 2; }
.prize-illust { flex: 1; }

.prize-text h3 {
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 16px;
}
.prize-text h3 span {
    font-size: 20px;
}

/* ===== Growth ===== */
.growth-content {
    text-align: center;
}
.growth-lead {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 16px;
}
.growth-amount {
    font-size: 64px;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 
        1px 1px 0 #FF1CF7,
        2px 2px 0 #3b0037,
        3px 3px 0 #00F0FF,
        4px 4px 5px rgba(0, 0, 0, 0.5);
}
.growth-content .btn-primary {
    margin-top: 32px;
    margin-bottom: 0;
}



@media (max-width: 768px) {
    section { margin: 80px auto; }
    .heading-en { font-size: 90px; top: -90px; }
    .heading-ja { font-size: 36px; margin-bottom: 40px; }
    .panel { padding: 30px; }
    .about-content, .schedule-content, .criteria-content, .prize-content {
        flex-direction: column;
    }
    #prize .heading-ja { margin-bottom: 40px; }

    /* makeshop のレスポンシブ調整 */
    .makeshop {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
        align-items: flex-start;
    }
    .makeshop-text { width: 100%; }
    .makeshop-title { font-size: 1.125rem; }
    .makeshop-top {
        margin-top: 6px;
        justify-content: flex-start;
        width: 100%;
        display: flex;
    }
    .makeshop-top a {
        min-width: auto;
        padding: 10px 14px;
        display: inline-block;
    }
    .logo img {
      width: 50%;
    }
}

/* SNS ボタン（横並び・白色） */
.sns-list {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    margin-top: 20px;
}

.sns-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: transparent;
    transition: transform .12s ease, box-shadow .12s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.sns-btn img {
    width: 28px;
    height: 28px;
    display: block;
    /* SVG を白く見せる（外部 SVG を img で読み込む場合） */
    filter: invert(1) saturate(0) brightness(1.2);
}

/* ホバー効果 */
.sns-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

/* モバイル調整 */
@media (max-width: 768px) {
    .sns-btn { width: 48px; height: 48px; }
    .sns-btn img { width: 22px; height: 22px; }
}