/* ============================================================
   リノベーション フォトコンテスト 2026｜リノベ不動産
   photocontest 専用スタイル（PC/SP共通・1ファイル）
   ============================================================ */

:root {
  --pc-bg: #EDE9E4;
  /* ページ外側の背景（PC） */
  --pc-white: #FFFFFF;
  --pc-ink: #3B302C;
  /* 本文・見出し */
  --pc-dark: #2A201C;
  /* ヒーロー下の帯 */
  --pc-accent: #8E3A2A;
  /* アクセント（ボタン・線） */
  --pc-accent-dark: #6E2A1E;
  /* アクセント hover */
  --pc-gray: #5A5250;
  /* サブ背景・補足文字 */
  --pc-beige: #D9D3CC;
  /* 応募方法セクション背景・罫線 */
  --pc-cream: #F3EEE9;
  /* 特典ボックス背景 */
  --pc-mincho: 'Shippori Mincho', serif;
  --pc-maru: 'Zen Maru Gothic', sans-serif;
  --pc-josefin: 'Josefin Sans', sans-serif;
  --pc-sticky-h: 100px;
  /* 追従CTAの高さ分の余白（注記1行を含む） */
}

/* ---------- ベース ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--pc-bg);
  color: var(--pc-ink);
  font-family: var(--pc-maru);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--pc-accent);
}

a:hover {
  color: var(--pc-accent-dark);
}

/* SPのみ改行 */
.pc-sp-only {
  display: none;
}

/* ページ本体（PC最大1080px） */
.pc-page {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--pc-white);
  padding-bottom: var(--pc-sticky-h);
}

/* 本文テキスト共通 */
.pc-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 2;
  letter-spacing: .06em;
  text-wrap: pretty;
}

.pc-text p {
  margin: 0;
}

/* 見出し（左右に罫線） */
.pc-heading-line {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pc-heading-line::before,
.pc-heading-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--pc-accent);
}

.pc-heading-line h2 {
  margin: 0;
  font-family: var(--pc-mincho);
  font-weight: 600;
  font-size: clamp(24px, 4.4vw, 36px);
  letter-spacing: .2em;
  color: var(--pc-ink);
}

/* ---------- ボタン ---------- */
.pc-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.pc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 420px);
  min-height: 60px;
  background: var(--pc-accent);
  color: var(--pc-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .14em;
  border-radius: 999px;
  transition: background-color .2s ease;
}

/* 矢印は疑似要素で表示 */
.pc-btn::after {
  content: "\203A";
  font-size: 20px;
  line-height: 1;
}

.pc-btn:hover {
  background: var(--pc-accent-dark);
  color: var(--pc-white);
}

.pc-btn:focus-visible {
  outline: 3px solid var(--pc-beige);
  outline-offset: 3px;
}

/* 白ボタン（最終CTA） */
.pc-btn--white {
  min-height: 64px;
  background: var(--pc-white);
  color: var(--pc-accent);
  font-size: 18px;
}

.pc-btn--white:hover {
  background: var(--pc-cream);
  color: var(--pc-accent-dark);
}

/* 追従CTAボタン */
.pc-btn--sticky {
  gap: 10px;
  min-height: 52px;
  font-size: 16px;
  letter-spacing: .12em;
}

.pc-btn--sticky::after {
  font-size: 18px;
}

/* ---------- ヒーロー ---------- */
.pc-hero {
  background: var(--pc-dark);
}

.pc-hero-visual {
  position: relative;
}

.pc-hero-img {
  width: 100%;
}

.pc-hero-logo {
  position: absolute;
  left: 4%;
  top: 3.2%;
  width: 28%;
}

.pc-hero-copy {
  margin-top: -2px;
  padding: 20px 20px 30px;
  text-align: center;
  color: var(--pc-white);
}

.pc-hero-catch {
  margin: 0;
  font-family: var(--pc-mincho);
  font-size: clamp(16px, 3.2vw, 26px);
  font-weight: 600;
  letter-spacing: .2em;
}

.pc-hero-lead {
  margin: 14px 0 0;
  font-size: clamp(13px, 2.2vw, 17px);
  letter-spacing: .14em;
  line-height: 1.8;
  opacity: .92;
}

/* ---------- イントロ ---------- */
.pc-intro {
  padding: clamp(48px, 8vw, 88px) clamp(20px, 5vw, 48px) clamp(40px, 6vw, 64px);
}

.pc-intro-title {
  margin: 0 0 28px;
  text-align: center;
  font-family: var(--pc-mincho);
  font-weight: 600;
  font-size: clamp(28px, 6vw, 56px);
  line-height: 1.4;
  letter-spacing: .04em;
}

.pc-intro-after {
  padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 48px) 0;
}

/* ---------- ギャラリー ---------- */
.pc-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 0 clamp(0px, 5vw, 48px);
}

.pc-gallery img {
  width: 100%;
  aspect-ratio: 391 / 274;
  object-fit: cover;
}

/* ---------- 賞・賞品 ---------- */
.pc-prizes {
  padding: clamp(56px, 9vw, 96px) clamp(20px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pc-prizes .pc-heading-line {
  margin-bottom: 12px;
}

.pc-top-prizes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}

.pc-top-prize {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  background: var(--pc-gray);
}

/* 左側：矢羽根型のラベル */
.pc-top-prize-label {
  background: var(--pc-accent);
  color: var(--pc-white);
  padding: 18px 20px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.pc-top-prize-sub {
  font-size: 13px;
  letter-spacing: .08em;
}

.pc-top-prize-name {
  font-family: var(--pc-mincho);
  font-weight: 700;
  font-size: clamp(26px, 5vw, 36px);
  letter-spacing: .06em;
  line-height: 1.2;
}

.pc-top-prize--second .pc-top-prize-name {
  font-size: clamp(22px, 4.2vw, 30px);
}

.pc-top-prize-count {
  font-size: 15px;
  margin-left: 4px;
  white-space: nowrap;
}

/* 右側：金額 */
.pc-top-prize-value {
  color: var(--pc-white);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  padding: 16px 8px;
  align-self: center;
}

.pc-paypay {
  font-family: var(--pc-josefin);
}

.pc-top-prize-value .pc-paypay {
  font-size: 16px;
}

.pc-top-prize-num {
  font-family: var(--pc-mincho);
  font-size: clamp(40px, 7vw, 56px);
  line-height: 1;
}

.pc-top-prize-unit {
  font-size: 17px;
  font-weight: 700;
}

.pc-top-prize--second .pc-paypay {
  font-size: 14px;
}

.pc-top-prize--second .pc-top-prize-num {
  font-size: clamp(34px, 6vw, 46px);
}

.pc-top-prize--second .pc-top-prize-unit {
  font-size: 16px;
}

/* 部門賞 */
.pc-awards {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px 12px;
}

.pc-award {
  position: relative;
  border: 1px solid var(--pc-accent);
  border-radius: 6px;
  padding: 26px 10px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--pc-accent);
}

.pc-award-name {
  position: absolute;
  top: -13px;
  left: 8px;
  right: 8px;
  background: var(--pc-accent);
  color: var(--pc-white);
  border-radius: 999px;
  padding: 3px 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
}

.pc-award-desc {
  font-size: 13px;
  line-height: 1.6;
  min-height: 42px;
}

.pc-award-value {
  font-weight: 700;
  font-size: 13px;
}

.pc-award-num {
  font-family: var(--pc-mincho);
  font-size: 24px;
}

/* 特典 */
.pc-bonus {
  margin-top: 20px;
  background: var(--pc-cream);
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pc-bonus-title {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--pc-mincho);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .16em;
  color: var(--pc-accent);
}

.pc-bonus-title::before,
.pc-bonus-title::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--pc-accent);
}

.pc-bonus-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 10px;
}

.pc-bonus-item {
  background: var(--pc-white);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.pc-bonus-tag {
  flex: none;
  background: var(--pc-accent);
  color: var(--pc-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 6px 10px;
}

.pc-bonus-tag--all {
  background: var(--pc-gray);
}

.pc-bonus-text {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
}

/* ---------- 応募方法 ---------- */
.pc-howto {
  background: var(--pc-beige);
  padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pc-howto-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pc-howto-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: .04em;
}

.pc-howto-titlerow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.pc-howto-titlerow h2 {
  margin: 0;
  font-family: var(--pc-mincho);
  font-weight: 600;
  font-size: clamp(24px, 4.6vw, 36px);
  letter-spacing: .06em;
}

.pc-howto-num {
  color: var(--pc-accent);
  font-size: 1.3em;
}

.pc-howto-chip {
  background: var(--pc-gray);
  color: var(--pc-white);
  font-size: 13px;
  letter-spacing: .12em;
  padding: 5px 14px;
}

.pc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}

.pc-step {
  background: var(--pc-white);
  border-radius: 999px;
  padding: 10px 24px 10px 10px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.pc-step-num {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--pc-accent);
  color: var(--pc-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pc-mincho);
  font-size: 30px;
  font-weight: 600;
}

.pc-step-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pc-step-title {
  font-weight: 700;
  color: var(--pc-accent);
  font-size: 16px;
  letter-spacing: .08em;
}

.pc-step-desc {
  font-size: 13px;
  line-height: 1.6;
}

/* スケジュール */
.pc-schedule {
  background: var(--pc-white);
  padding: clamp(24px, 4vw, 36px) clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  align-items: center;
}

.pc-schedule-dates {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--pc-mincho);
}

.pc-schedule-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}

.pc-schedule-row dt {
  font-size: clamp(20px, 3.6vw, 28px);
  font-weight: 700;
  letter-spacing: .2em;
}

.pc-schedule-row dd {
  margin: 0;
  font-size: clamp(36px, 7vw, 54px);
  font-weight: 600;
  line-height: 1.1;
}

.pc-schedule-dow {
  font-size: .45em;
  margin-left: 4px;
}

.pc-schedule-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pc-schedule-side img {
  width: 200px;
}

.pc-schedule-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--pc-gray);
}

/* 賞品下CTA直下の注記（Googleアカウント必須の案内）：中央のボタンに揃える */
.pc-cta-note {
  text-align: center;
}

/* ---------- 応募要項 ---------- */
.pc-reqs {
  padding: clamp(56px, 9vw, 96px) clamp(20px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pc-reqs-list {
  margin: 0;
  border-top: 1px solid var(--pc-beige);
}

.pc-reqs-row {
  display: grid;
  grid-template-columns: minmax(88px, 160px) minmax(0, 1fr);
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--pc-beige);
}

.pc-reqs-row dt {
  font-weight: 700;
  color: var(--pc-accent);
  font-size: 14px;
  letter-spacing: .1em;
}

.pc-reqs-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- 最終CTA ---------- */
.pc-final {
  background: var(--pc-accent);
  color: var(--pc-white);
  padding: clamp(48px, 8vw, 80px) 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.pc-final p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: .06em;
  text-wrap: pretty;
}

/* 最終CTA直下の注記（Googleアカウント必須の案内） */
.pc-final .pc-final-note {
  font-size: 12px;
  letter-spacing: .04em;
  opacity: .85;
}

/* ---------- フッター ---------- */
.pc-footer {
  padding: 48px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pc-footer img {
  width: 220px;
}

.pc-footer small {
  font-size: 11px;
  color: var(--pc-gray);
  letter-spacing: .06em;
}

/* ---------- 追従CTA ---------- */
.pc-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--pc-beige);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* 追従CTAのボタン上の注記（Googleアカウント必須の案内） */
.pc-sticky-note {
  line-height: 1.6;
  margin-bottom: 10px;
}

/* ============================================================
   SP（639px以下）
   ============================================================ */
@media (max-width: 639px) {
  .pc-sp-only {
    display: inline;
  }

  .pc-hero-logo {
    width: 40%;
  }

  /* 375px幅でも1行に収まるよう字間を調整 */
  .pc-hero-catch {
    letter-spacing: .1em;
  }

  /* ギャラリーは2列・左右余白なし */
  .pc-gallery {
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
  }

  /* 部門賞は2列 */
  .pc-awards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 特典は1列 */
  .pc-bonus-list {
    grid-template-columns: 1fr;
  }

  /* 追従CTAのボタン上の注記（Googleアカウント必須の案内） */
  .pc-sticky-note {
    line-height: 1;
    margin-bottom: 8px;
  }

}

/* ============================================================
   タブレット（640px〜899px）：部門賞を3列に
   ============================================================ */
@media (min-width: 640px) and (max-width: 899px) {
  .pc-awards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* アニメーションを減らす設定のユーザーへの配慮 */
@media (prefers-reduced-motion: reduce) {
  .pc-btn {
    transition: none;
  }
}