:root {
  --photo-max: 1180px;
  --photo-bg: #fff9e8;
  --photo-orange: #e95518;
  --photo-text: #393532;
  --photo-line: #df6d35;
  --photo-heading-line: rgba(233, 85, 24, .18);
  --photo-label: #f8ddb1;
}

* {
  box-sizing: border-box;
}

.photo-contest {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: #fdfbec;
  color: var(--photo-text);
}

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

.contest-inner {
  width: min(calc(100% - 40px), var(--photo-max));
  margin-inline: auto;
}

/* -------------------------
   img01
------------------------- */

.photo-hero {
  width: 100%;
}

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

/* -------------------------
   共通見出し
------------------------- */

.small-heading,
.summary-title,
.section-heading {
  width: fit-content;
  margin: 0 auto;
  padding: 0 4px 3px;
  background: linear-gradient(
    transparent 72%,
    var(--photo-heading-line) 72%
  );
  color: var(--photo-orange);
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

.small-heading {
  margin-bottom: 10px;
  font-size: 22px;
}

.summary-title {
  margin-bottom: 14px;
  font-size: 22px;
}

.section-heading {
  margin-bottom: 24px;
  font-size: 22px;
}

/* -------------------------
   img02 HTML
------------------------- */

.contest-summary {
  padding: 65px 0 72px;
  text-align: center;
}

.theme-block {
  margin-bottom: 55px;
}

.theme-block h1 {
  margin: 0;
  color: var(--photo-orange);
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.4;
}

.summary-item {
  width: 100%;
  margin: 0 auto 55px;
}

.summary-item:last-child {
  margin-bottom: 0;
}

.double-border-box {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 7px;
  border: 3px solid var(--photo-line);
  border-radius: 18px;
}

.deadline-text {
  margin: 0;
  padding: 30px 18px;
  border: 2px solid var(--photo-line);
  border-radius: 13px;
  line-height: 1;
  white-space: nowrap;
}

.deadline-year {
  margin-right: 8px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
}

.deadline-text strong {
  font-size: clamp(40px, 4.5vw, 46px);
}

.deadline-day {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
}

.deadline-time {
  margin-left: 8px;
  font-size: clamp(14px, 1.4vw, 19px);
  font-weight: 700;
}

.prize-frame {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 26px 28px;
  border: 3px solid var(--photo-line);
  border-radius: 14px;
}

.prize-frame p {
  margin: 0;
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.prize-frame strong {
  font-size: 1.3em;
}

.winner-label {
  position: absolute;
  top: -32px;
  left: -32px;
  padding: 9px 32px;
  background: var(--photo-orange);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  transform: rotate(-8deg);
  clip-path: polygon(0 15%, 85% 0, 100% 50%, 85% 100%, 0 85%);
}

.method-frame {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 27px 25px;
  border: 3px solid var(--photo-line);
  border-radius: 14px;
}

.method-frame strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(22px, 2.3vw, 30px);
}

.method-frame p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.method-frame b {
  color: var(--photo-orange);
}

/* -------------------------
   img03 一部画像
------------------------- */

.instagram-howto {
  padding: 22px 0 68px;
}

.instagram-steps {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.instagram-note {
  width: min(100%, 1050px);
  margin: 18px auto 0;
  font-size: 13px;
  line-height: 1.75;
  text-align: center;
}

.instagram-buttons {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
}

.orange-btn,
.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 28px;
  border-radius: 999px;
  background: var(--photo-orange);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

/* -------------------------
   img04 HTML
------------------------- */

.contest-condition {
  padding: 35px 0 62px;
}

.contest-condition .section-heading {
  margin-bottom: 26px;
}

.condition-main {
  width: 100%;
  padding: 26px 28px 24px;
  border-top: 2px solid var(--photo-line);
  border-bottom: 2px solid var(--photo-line);
}

.condition-main strong {
  display: block;
  font-size: clamp(18px, 1.9vw, 27px);
  line-height: 1.45;
}

.condition-main b {
  display: block;
  margin-top: 5px;
  color: var(--photo-orange);
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.4;
}

.condition-warning {
  margin: 20px 28px 16px;
  color: var(--photo-orange);
  font-size: 16px;
}

.condition-list {
  width: 100%;
  margin: 0;
  padding: 0 28px 26px;
  border-bottom: 2px solid var(--photo-line);
  list-style: none;
  font-size: 18px;
  line-height: 1.8;
}

.condition-list li {
  position: relative;
  padding-left: 1.1em;
}

.condition-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--photo-text);
  font-size: 1em;
}

/* -------------------------
   みんなの投稿
------------------------- */

.everyone-posts {
  padding: 32px 0 68px;
}

.everyone-posts .section-heading {
  margin-left: auto;
  margin-right: auto;
}

.photo-grid {
  width: min(100%, 900px);
  margin: 25px auto 0;
  columns: 5 160px;
  column-gap: 10px;
}

.photo-item {
  break-inside: avoid;
  margin: 0 0 10px;
}

.photo-item a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.photo-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-meta {
  padding: 7px 4px 12px;
}

.photo-meta p {
  margin: 0;
}

.photo-user {
  color: var(--photo-orange);
  font-weight: 700;
}

.photo-theme {
  margin-top: 3px !important;
  font-weight: 700;
}

.photo-comment {
  margin-top: 3px !important;
  font-size: 12px;
  line-height: 1.5;
}

.photo-empty {
  text-align: center;
}

.instagram-link {
  display: flex;
  width: 210px;
  margin: 28px auto 0;
}

/* -------------------------
   img05 HTML
------------------------- */

.contest-rules {
  padding: 28px 0 68px;
}

.rules-box {
  width: 100%;
  padding: 0 26px;
  border: 3px dotted var(--photo-orange);
}

.rule-row {
  display: block;
  width: 100%;
  padding: 26px 0;
  border-bottom: 3px dotted var(--photo-orange);
}

.rule-row:last-child {
  border-bottom: 0;
}

.rule-title {
  display: block;
  min-height: 0;
  margin: 0 0 15px;
  background: transparent;
}

.rule-title span {
  display: inline-block;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  padding: 7px 18px;
  background: var(--photo-label);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
}

.rule-row-large .rule-title {
  min-height: 0;
}

.rule-content {
  display: block;
}

.rule-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.75;
}

.rule-content li {
  position: relative;
  margin-bottom: 5px;
  padding-left: 1.1em;
}

.rule-content li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1em;
}

.contact-area {
  width: 100%;
  margin-top: 42px;
}

.contact-area h2 {
  width: fit-content;
  margin: 0 0 12px;
  padding-bottom: 3px;
  color: var(--photo-orange);
  font-size: 21px;
  background: linear-gradient(
    transparent 72%,
    var(--photo-heading-line) 72%
  );
}

.contact-box {
  width: 100%;
  padding: 20px 42px;
  border: 3px dotted var(--photo-orange);
}

.contact-box p {
  margin: 2px 0;
}

.contact-address {
  font-size: 16px;
}

.contact-company {
  margin: 8px 0 !important;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.contact-tel strong {
  font-size: 26px;
}

.contact-tel span {
  margin-left: 8px;
  font-size: 14px;
}

.contact-mail {
  font-size: 17px;
}

/* -------------------------
   セクション共通横幅
------------------------- */

.contest-summary .contest-inner,
.instagram-howto .contest-inner,
.contest-condition .contest-inner,
.everyone-posts .contest-inner,
.contest-rules .contest-inner {
  width: min(calc(100% - 56px), 1120px);
}

/* -------------------------
   SP
------------------------- */

@media (max-width: 767px) {

  .contest-inner {
    width: calc(100% - 28px);
  }

  .contest-summary .contest-inner,
  .instagram-howto .contest-inner,
  .contest-condition .contest-inner,
  .everyone-posts .contest-inner,
  .contest-rules .contest-inner {
    width: calc(100% - 28px);
  }

  .small-heading {
    font-size: 20px;
  }

  .summary-title {
    font-size: 20px;
  }

  .section-heading {
    font-size: 20px;
  }

  .contest-summary {
    padding: 42px 0 52px;
  }

  .theme-block {
    margin-bottom: 42px;
  }

  .theme-block h1 {
    font-size: 26px;
  }

  .summary-item {
    margin-bottom: 42px;
  }

  .deadline-text {
    padding: 22px 8px;
    white-space: normal;
  }

  .deadline-year {
    display: block;
    margin: 0 0 6px;
    font-size: 19px;
  }

  .deadline-text strong {
    font-size: 42px;
  }

  .deadline-day {
    font-size: 20px;
  }

  .deadline-time {
    display: block;
    margin: 8px 0 0;
    font-size: 14px;
  }

  .prize-frame {
    width: 100%;
    padding: 24px 8px 20px;
  }

  .prize-frame p {
    font-size: 20px;
    white-space: nowrap;
  }

  .winner-label {
    top: -24px;
    left: -8px;
    padding: 6px 20px;
    font-size: 16px;
  }

  .method-frame {
    width: 100%;
    padding: 21px 10px;
  }

  .method-frame strong {
    font-size: 23px;
  }

  .method-frame p {
    font-size: 13px;
  }

  .instagram-note {
    font-size: 11px;
  }

  .instagram-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .orange-btn {
    width: 100%;
  }

  .condition-main {
    padding: 21px 10px 18px;
  }

  .condition-main strong {
    font-size: 19px;
  }

  .condition-main b {
    font-size: 20px;
  }

  .condition-warning {
    margin: 16px 8px 13px;
    font-size: 12px;
  }

  .condition-list {
    margin: 0;
    padding: 0 8px 22px;
    font-size: 17px;
    line-height: 1.75;
  }

  .photo-grid {
    columns: 2 130px;
  }

  .rules-box {
    padding: 0 12px;
  }

  .rule-row {
    padding: 19px 0;
  }

  .rule-title {
    margin-bottom: 11px;
  }

  .rule-title span {
    padding: 6px 12px;
    font-size: 20px;
  }

  .rule-content ul {
    font-size: 17px;
    line-height: 1.7;
  }

  .contact-box {
    padding: 16px;
  }

  .contact-company {
    font-size: 18px;
  }

  .contact-tel strong {
    display: block;
    font-size: 21px;
  }

  .contact-tel span {
    display: block;
    margin-left: 0;
    font-size: 12px;
  }
}

/* =========================================================
   picture対応
========================================================= */

.photo-hero picture,
.instagram-steps-picture {
  display: block;
  width: 100%;
  line-height: 0;
}

.photo-hero picture img,
.instagram-steps-picture img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {

  /* メインビジュアル */
  .photo-hero {
    width: 100%;
  }

  .photo-hero picture,
  .photo-hero img {
    width: 100%;
  }


  /* Instagram応募方法 */

  .instagram-howto .contest-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .instagram-steps-picture {
    width: 100%;
    margin: 20px auto 0;
  }

  .instagram-steps {
    width: 100%;
    height: auto;
  }
  .contact-area h2{
    font-size: 24px;
  }
}

@media (max-width: 767px) {

  .deadline-text {
    margin: 0;
    padding: 14px 10px;
    text-align: center;
    line-height: 1.2;
  }

  .deadline-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
  }

  .deadline-year {
    display: inline;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
  }

  .deadline-text strong {
    font-size: 34px;
    font-weight: 800;
  }

  .deadline-day {
    font-size: 18px;
    font-weight: 700;
  }

  .deadline-time {
    display: block;
    margin-top: 2px;
    font-size: 16px;
    font-weight: 700;
  }

}
@media (max-width: 767px) {

  .instagram-note {
    margin: 16px 0 0;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
  }

}