@charset "utf-8";

/* CSS Document */
/*------------------------------------
ハピネスフォトコンテスト2026 結果発表
※photo-contest2026.css の後に読み込み
-------------------------------------*/

/*------------------------------------
MV
-------------------------------------*/
.result-mv {
  display: flex;
  flex-direction: column-reverse;
}

/* 入賞作品のコラージュ（優秀作品賞10点：4列×3段、横長2点は2マス分） */
.result-mv-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 3px;
  aspect-ratio: 4 / 3;
  background-color: var(--color-white);
}

.result-mv-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.result-mv-photo--wide {
  grid-column: span 2;
}

/* 作品ごとのトリミング位置 */
.result-mv-photo--e01 { object-position: 50% 60%; }
.result-mv-photo--e02 { object-position: 50% 80%; }
.result-mv-photo--e03 { object-position: 50% 78%; }
.result-mv-photo--e04 { object-position: 70% 45%; }
.result-mv-photo--e05 { object-position: 50% 65%; }
.result-mv-photo--e06 { object-position: 50% 40%; }
.result-mv-photo--e07 { object-position: 50% 25%; }
.result-mv-photo--e08 { object-position: 50% 40%; }
.result-mv-photo--e09 { object-position: 70% 45%; }
.result-mv-photo--e10 { object-position: 45% 45%; }

/* タイトル（グラデーション背景） */
.result-mv-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 84px 20px 44px;
  color: var(--color-white);
  background:
    radial-gradient(ellipse at 15% 90%, rgba(130, 226, 224, .8), transparent 55%),
    radial-gradient(ellipse at 90% 85%, rgba(30, 207, 238, .7), transparent 50%),
    radial-gradient(ellipse at 85% 5%, rgba(110, 230, 205, .8), transparent 45%),
    linear-gradient(160deg, #10dccd 0%, #36c4b6 40%, #26cad9 70%, #3fc3c7 100%);
}

.result-mv-heading {
  margin: 0;
  line-height: 1;
}

.result-mv-logo {
  display: block;
  width: 72vw;
  max-width: 340px;
  margin: 0 auto;
}

.result-mv-label {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 1.2em;
  background-color: var(--color-white);
  color: #2fb9b4;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: .2em;
  line-height: 1.4;
}

.result-mv-text {
  margin-top: 12px;
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: .08em;
}

@media screen and (min-width:769px) {
  .result-mv {
    flex-direction: row;
    height: min(47.7vw, 95vh);
    min-height: 420px;
  }

  .result-mv-photos {
    flex: 0 0 62.2%;
    aspect-ratio: auto;
  }

  .result-mv-panel {
    flex: 1;
    padding: 40px 3%;
  }

  .result-mv-logo {
    width: 82%;
    max-width: 560px;
  }

  .result-mv-label {
    margin-top: 2.4vw;
    font-size: clamp(2.2rem, 2.2vw, 4.0rem);
  }

  .result-mv-text {
    margin-top: 1.2vw;
    font-size: clamp(1.4rem, 1.2vw, 2.2rem);
  }
}

/*------------------------------------
intro
-------------------------------------*/
.intro-inner {
  max-width: 900px;
  padding: 0 20px;
  margin: 0 auto;
}

.intro-title {
  font-family: var(--font-family-accent);
  color: var(--color-blue);
  font-size: 7vw;
  line-height: 1.5;
  margin-bottom: 1em;
}

.intro-text {
  text-align: left;
  font-size: 1.4rem;
}

.intro-text span {
  background: linear-gradient(transparent 60%, #feff9f 40%);
  font-weight: 900;
}

.intro-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.intro-nav li {
  flex: 1;
  max-width: 200px;
}

.intro-nav a {
  display: block;
  height: 100%;
  padding: 12px 4px;
  border: solid 2px var(--color-blue);
  border-radius: 12px;
  color: var(--color-text);
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.4;
  transition: all .3s;
}

.intro-nav a:hover {
  background-color: var(--color-bg-footer);
}

.intro-nav-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-blue);
}

.intro-nav li:not(:last-child) .intro-nav-num::after {
  content: "名";
  font-size: 1.2rem;
  margin-left: 2px;
}

@media screen and (min-width:769px) {
  .intro-title {
    font-size: 4.4rem;
  }

  .intro-text {
    font-size: 1.6rem;
    text-align: center;
  }

  .intro-nav {
    gap: 20px;
  }

  .intro-nav a {
    font-size: 1.6rem;
  }

  .intro-nav-num {
    font-size: 3.0rem;
  }
}

/*------------------------------------
award（入賞作品）
-------------------------------------*/
.award-section {
  max-width: 1100px;
  padding: 0 20px;
}

.award-lead {
  margin: 32px auto 0;
}

/* 賞名見出し（リボン画像） */
.title-h3--img {
  width: 90%;
  max-width: 420px;
}

.award-ribbon {
  display: block;
  width: 100%;
}

.award-lead .prize-card-badge {
  margin-bottom: 4px;
}

.award-lead-text {
  font-size: 1.6rem;
  font-weight: normal;
}

.award-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
}

.award-card {
  background-color: var(--color-white);
  border: solid 2px var(--color-blue);
  border-radius: 16px;
  padding: 16px 16px 24px;
  text-align: left;
}

/* 縦横比が作品ごとに異なるため、正方形の領域に収めて表示 */
.award-card-img {
  aspect-ratio: 1 / 1;
  background-color: #eee;
  border-radius: 10px;
  overflow: hidden;
}

.award-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.award-card-title {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.5;
  margin-top: 16px;
}

/* 作品タイトル左端の装飾（メダル） */
.award-card-title {
  position: relative;
  padding-left: 36px;
}

.award-card-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 28px;
  height: 37px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.award-list--excellent .award-card-title::before {
  background-image: url(../../img/single/prize2026/prize01-tag.webp);
}

.award-list--palette .award-card-title::before {
  background-image: url(../../img/single/prize2026/prize02-tag.webp);
}

.award-card-label {
  display: block;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-blue);
}

.award-card-name {
  font-size: 1.3rem;
  color: var(--color-silver);
  margin-top: 4px;
}

.award-card-comment {
  font-size: 1.3rem;
  line-height: 1.7;
  margin-top: 12px;
}

.award-card-comment dt {
  font-weight: bold;
  color: var(--color-blue);
}

/* パレットプラザ賞（ギャラリー表示） */
.award-list--palette {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 12px;
}

.award-card--small {
  padding: 8px 8px 12px;
  border-radius: 12px;
}

.award-card--small .award-card-img {
  border-radius: 6px;
}

.award-card--small .award-card-title {
  font-size: 1.3rem;
  margin-top: 8px;
  padding-left: 22px;
}

.award-card--small .award-card-title::before {
  width: 17px;
  height: 22px;
}

.award-card--small .award-card-name {
  font-size: 1.1rem;
  margin-top: 0;
}

@media screen and (min-width:769px) {
  .award-list {
    gap: 40px;
  }

  .award-list--excellent {
    grid-template-columns: repeat(2, 1fr);
  }

  .award-list--palette {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .award-card {
    padding: 20px 20px 28px;
  }

  .award-card-title {
    font-size: 2.0rem;
  }

  .award-card--small {
    padding: 10px 10px 16px;
  }

  .award-card--small .award-card-title {
    font-size: 1.5rem;
  }

  .award-card--small .award-card-name {
    font-size: 1.2rem;
  }
}

/*------------------------------------
participation（参加賞）
-------------------------------------*/
#participation .prize-card {
  margin-top: 40px;
  background-color: var(--color-white);
}

.result-notice {
  max-width: 500px;
  margin: 24px auto 0;
  text-align: left;
  font-size: 1.2rem;
}

/*------------------------------------
closing（締めのメッセージ）
-------------------------------------*/
#closing {
  padding: 0 20px;
  margin-top: 0;
}

.closing-title {
  font-family: var(--font-family-accent);
  color: var(--color-blue);
  font-size: 7vw;
  line-height: 1.5;
  margin-bottom: 1em;
}

.closing-text {
  font-size: 1.4rem;
}

.closing-text span {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-blue);
}

@media screen and (min-width:769px) {
  .closing-title {
    font-size: 4.4rem;
  }

  .closing-text {
    font-size: 1.6rem;
  }

  .closing-text span {
    font-size: 2.0rem;
  }
}

/*------------------------------------
goods（フォトグッズ）
-------------------------------------*/
#goods {
  max-width: 1000px;
  padding: 0 20px;
}

.goods-text {
  font-size: 1.4rem;
  margin-top: 32px;
}

.goods-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.goods-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 10px 6px 8px;
  background-color: var(--color-white);
  border-radius: 12px;
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.4;
  transition: all .3s;
}

.goods-list a:hover {
  box-shadow: var(--box-shadow);
  transform: translateY(-2px);
}

.goods-list img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin-bottom: 6px;
}

#goods .btn {
  background: var(--color-blue);
}

#goods .btn:hover {
  background: var(--color-blue-light);
}

.result-contact {
  font-size: 1.4rem;
  line-height: 2.4;
  padding: 0 20px;
}

@media screen and (min-width:769px) {
  .goods-text {
    font-size: 1.6rem;
  }

  .goods-list {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }

  .goods-list a {
    font-size: 1.3rem;
  }

  .result-contact {
    font-size: 1.6rem;
  }
}

/*------------------------------------
入賞作品 クリックで拡大
-------------------------------------*/
.js-lightbox-open {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  position: relative;
  cursor: zoom-in;
}

.js-lightbox-open img {
  transition: transform .4s;
}

.js-lightbox-open:hover img {
  transform: scale(1.04);
}

/* 右下の拡大アイコン */
.js-lightbox-open::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--color-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E");
  background-size: 18px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .9;
}

.award-card--small .js-lightbox-open::after {
  right: 5px;
  bottom: 5px;
  width: 22px;
  height: 22px;
  background-size: 13px;
}

/*------------------------------------
ライトボックス
-------------------------------------*/
html.is-lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background-color: rgba(20, 30, 32, .88);
  opacity: 0;
  transition: opacity .3s;
}

.lightbox.is-active {
  opacity: 1;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 56px 16px 48px;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
}

.lightbox-img-box {
  min-height: 0;
  flex-shrink: 1;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 260px);
  max-height: calc(100dvh - 260px);
  object-fit: contain;
  border-radius: 6px;
  background-color: var(--color-gray);
}

.lightbox-caption {
  width: 100%;
  max-width: 640px;
  margin-top: 14px;
  color: var(--color-white);
  text-align: center;
  line-height: 1.6;
}

.lightbox-caption > span {
  display: block;
}

.lightbox-award {
  display: inline-block !important;
  padding: 0 12px;
  border-radius: 50px;
  background-color: var(--color-blue);
  font-size: 1.2rem;
  font-weight: bold;
}

.lightbox-title {
  margin-top: 6px;
  font-size: 1.7rem;
  font-weight: 900;
}

.lightbox-name {
  font-size: 1.3rem;
  opacity: .85;
}

.lightbox-count {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  font-size: 1.3rem;
  letter-spacing: .1em;
}

/* 閉じる */
.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
}

.lightbox-close::before,
.lightbox-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 2px;
  background-color: var(--color-white);
}

.lightbox-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* 左右送り */
.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: none;
  border-radius: 50%;
  background-color: rgba(63, 195, 199, .85);
  cursor: pointer;
  transition: background-color .3s;
}

.lightbox-nav:hover {
  background-color: var(--color-blue);
}

.lightbox-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-top: solid 3px var(--color-white);
  border-right: solid 3px var(--color-white);
}

.lightbox-prev {
  left: 8px;
}

.lightbox-prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.lightbox-next {
  right: 8px;
}

.lightbox-next::before {
  transform: translate(-70%, -50%) rotate(45deg);
}

.lightbox button:focus-visible {
  outline: solid 2px var(--color-white);
  outline-offset: 2px;
}

@media screen and (min-width:769px) {
  .lightbox-inner {
    padding: 64px 96px 48px;
  }

  .lightbox-img {
    max-height: calc(100vh - 280px);
    max-height: calc(100dvh - 280px);
  }

  .lightbox-title {
    font-size: 2.0rem;
  }

  .lightbox-nav {
    width: 56px;
    height: 56px;
    margin-top: -28px;
  }

  .lightbox-prev {
    left: 24px;
  }

  .lightbox-next {
    right: 24px;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
  }
}
