#pagehead:has(+ .pc), #pagehead:has(+ .s101-rules-page) {
  margin: 0;
  padding: clamp(42px, 6vw, 76px) 0 clamp(38px, 5vw, 62px);
  border-bottom: 1px solid #ded8d1;
  background: #f5f2ee;
}

#pagehead:has(+ .pc), #pagehead:has(+ .s101-rules-page) h2 {
  margin: 0;
  color: #302d2a;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
}
/* 撮影のルール・注意点（/pc/） */
.s101-rules-page > .pc { padding-top: clamp(48px, 6vw, 88px) !important; background: #fff; color: #302d2a; }
.pc > .in { width: min(calc(100% - 48px), 1120px); margin: 0 auto; }
.s101-rules-page { padding: clamp(28px, 5vw, 68px) 0 clamp(64px, 8vw, 112px); }
.s101-rules-page > .pc > .in > .cntmtitle:first-child { width: min(100%, 900px); margin: 0 auto; padding: 0; border: 0; color: #302d2a; font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(30px, 4.4vw, 52px); font-weight: 500; line-height: 1.35; letter-spacing: .08em; text-align: center; }
.s101-rules-page > .pc > .in > .cntmtitle:first-child::before { display: block; margin: 0 0 14px; color: #756e66; content: "PHOTO SESSION GUIDE"; font-family: Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .22em; }
.s101-rules-page > .pc > .in > .cnttext:nth-child(2) { width: min(100%, 680px); margin: 18px auto 0; color: #625d57; font-size: 15px; line-height: 2; text-align: center; }
.s101-rules-page > .pc > .in > .s101-shoot-flow { margin-top: clamp(42px, 7vw, 82px); margin-bottom: clamp(58px, 8vw, 98px); }
.s101-rules-page > .pc > .in > .s101-booking-guide { position: relative; margin-bottom: clamp(64px, 9vw, 112px); padding: clamp(42px, 6vw, 72px) clamp(22px, 5vw, 64px); background: #f5f2ee; }
.s101-rules-page > .pc > .in > .s101-booking-guide::before { position: absolute; top: 0; right: 0; left: 0; height: 1px; background: #d8d1c9; content: ""; }
.s101-rules-page > .pc > .in > .s101-booking-guide .s101-booking-guide__grid { gap: 18px; }
.s101-rules-page > .pc > .in > .s101-booking-guide .s101-booking-guide__card { border-color: #ded8d1; box-shadow: none; }
.s101-rules-page > .pc > .in > .flexbox.rightimg { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: stretch; width: min(100%, 960px); min-height: 340px; margin: 0 auto 24px; padding: 0 !important; border: 1px solid #ded8d1; background: #fff; }
.s101-rules-page > .pc > .in > .flexbox.rightimg.reverse { grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); }
.s101-rules-page > .pc > .in > .flexbox.rightimg .img { width: 100%; min-height: 100%; margin: 0; overflow: hidden; }
.s101-rules-page > .pc > .in > .flexbox.rightimg .img img { display: block; width: 100%; height: 100%; min-height: 338px; object-fit: cover; }
.s101-rules-page > .pc > .in > .flexbox.rightimg .text { display: flex; flex-direction: column; justify-content: center; width: auto; margin: 0; padding: clamp(28px, 4vw, 52px); background: #fff; }
.s101-rules-page > .pc > .in > .flexbox.rightimg .text h3, .s101-rules-page > .pc > .in > .cntmtitle:not(:first-child) { margin: 0 0 18px; padding: 0 0 14px; border: 0; border-bottom: 1px solid #d8d1c9; color: #302d2a; font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(22px, 2.5vw, 30px); font-weight: 500; line-height: 1.5; }
.s101-rules-page > .pc > .in > .flexbox.rightimg .text > div, .s101-rules-page > .pc > .in > .cnttext { color: #625d57; font-size: 15px; line-height: 2; }
.s101-rules-page > .pc > .in > .cntmtitle:not(:first-child) { width: min(100%, 960px); margin: clamp(46px, 6vw, 74px) auto 0; padding: 0 0 16px; }
.s101-rules-page > .pc > .in > .cntmtitle:not(:first-child) + .cnttext, .s101-rules-page > .pc > .in > .cntmtitle:not(:first-child) + .cnttext + .cnttext { width: min(100%, 960px); margin: 0 auto; padding: 0 0 20px; }
.s101-rules-page > .pc > .in > .cntmtitle:not(:first-child) + .cnttext + .cnttext { padding-top: 0; font-size: 13px; }
@media (max-width: 899px) {
  .s101-rules-page > .pc > .in { width: calc(100% - 28px); }
  .s101-rules-page { padding-top: 34px; }
  .s101-rules-page > .pc { padding-top: 46px !important; }
  .s101-rules-page > .pc > .in > .cntmtitle:first-child { font-size: 30px; line-height: 1.48; letter-spacing: .04em; }
  .s101-rules-page > .pc > .in > .cntmtitle:first-child::before { margin-bottom: 12px; font-size: 10px; }
  .s101-rules-page > .pc > .in > .cnttext:nth-child(2) { margin-top: 16px; font-size: 14px; line-height: 1.9; text-align: left; }
  .s101-rules-page > .pc > .in > .s101-shoot-flow { margin-top: 42px; margin-bottom: 58px; }
  .s101-rules-page > .pc > .in > .s101-booking-guide { width: calc(100vw - 28px); margin-left: calc(50% - 50vw + 14px); padding: 36px 14px 42px; }
  .s101-rules-page > .pc > .in > .flexbox.rightimg, .s101-rules-page > .pc > .in > .flexbox.rightimg.reverse { display: flex; flex-direction: column; min-height: 0; margin-bottom: 16px; }
  .s101-rules-page > .pc > .in > .flexbox.rightimg.reverse .img { order: 0; }
  .s101-rules-page > .pc > .in > .flexbox.rightimg .img img { min-height: 0; aspect-ratio: 4 / 3; }
  .s101-rules-page > .pc > .in > .flexbox.rightimg .text { padding: 26px 22px 28px; }
  .s101-rules-page > .pc > .in > .flexbox.rightimg .text h3, .s101-rules-page > .pc > .in > .cntmtitle:not(:first-child) { margin-bottom: 14px; padding-bottom: 12px; font-size: 21px; }
  .s101-rules-page > .pc > .in > .flexbox.rightimg .text > div, .s101-rules-page > .pc > .in > .cnttext { font-size: 14px; line-height: 1.9; }
  .s101-rules-page > .pc > .in > .cntmtitle:not(:first-child) { margin-top: 46px; }
}



#pagehead:has(+ .pc), #pagehead:has(+ .s101-rules-page) h2 { height: auto !important; min-height: 0 !important; display: block !important; }

#pagehead:has(+ .pc), #pagehead:has(+ .s101-rules-page) { height: auto !important; min-height: 0 !important; }

@media (max-width: 899px) { #pagehead:has(+ .pc), #pagehead:has(+ .s101-rules-page) { padding: 28px 16px 26px; } #pagehead:has(+ .pc), #pagehead:has(+ .s101-rules-page) h2 { font-size: 24px; line-height: 1.45; letter-spacing: .04em; white-space: nowrap; } }


/* 写真付きの案内に続く注意事項も、見出しと本文を一つの案内カードとして扱う。 */
.s101-rules-page > .pc > .in > .cntmtitle:not(:first-child) {
  margin-bottom: 0;
  padding: 26px 34px 14px;
  border: 1px solid #ded8d1;
  border-bottom: 0;
  background: #f5f2ee;
}

.s101-rules-page > .pc > .in > .cntmtitle:not(:first-child) + .cnttext {
  min-height: 92px;
  margin-top: 0;
  padding: 22px 34px 30px;
  border: 1px solid #ded8d1;
  border-top: 0;
  background: #fff;
}

.s101-rules-page > .pc > .in > .cntmtitle:not(:first-child) + .cnttext + .cnttext {
  margin-top: 0;
  padding: 0 34px 28px;
  border: 1px solid #ded8d1;
  border-top: 0;
  background: #fff;
}

@media (max-width: 899px) {
  .s101-rules-page > .pc > .in > .cntmtitle:not(:first-child) {
    margin-top: 28px;
    padding: 20px 20px 10px;
  }

  .s101-rules-page > .pc > .in > .cntmtitle:not(:first-child) + .cnttext {
    min-height: 0;
    padding: 17px 20px 22px;
  }

  .s101-rules-page > .pc > .in > .cntmtitle:not(:first-child) + .cnttext + .cnttext {
    padding: 0 20px 20px;
  }
}

@media (max-width: 899px) { .s101-rules-page > .pc > .in > .cntmtitle:first-child { font-size: 24px; line-height: 1.55; letter-spacing: .02em; } }


/* 写真が本文より強くなり過ぎないよう、PCの案内カードをコンパクトにする。 */
/* PCは写真と本文を別枠にして、写真本来の比率を保つ。 */
@media (min-width: 900px) {
  .s101-rules-page > .pc > .in > .flexbox.rightimg,
  .s101-rules-page > .pc > .in > .flexbox.rightimg.reverse {
    grid-template-columns: minmax(180px, .5fr) minmax(0, 1.5fr);
    align-items: start;
    gap: 22px;
    width: min(100%, 880px);
    min-height: 0;
    border: 0;
    background: transparent;
  }

  .s101-rules-page > .pc > .in > .flexbox.rightimg.reverse {
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, .5fr);
  }
  .s101-rules-page > .pc > .in > .flexbox.rightimg.reverse .text { grid-column: 1; grid-row: 1; }
  .s101-rules-page > .pc > .in > .flexbox.rightimg.reverse .img { grid-column: 2; grid-row: 1; }

  .s101-rules-page > .pc > .in > .flexbox.rightimg .img {
    align-self: start;
    min-height: 0;
    border: 1px solid #ded8d1;
  }

  .s101-rules-page > .pc > .in > .flexbox.rightimg .img img {
    display: block;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .s101-rules-page > .pc > .in > .flexbox.rightimg .text {
    border: 1px solid #ded8d1;
  }
}

@media (max-width: 899px) {
  .s101-rules-page > .pc > .in > .flexbox.rightimg .text h3 {
    overflow-wrap: normal;
    word-break: keep-all;
  }
}

@media (min-width: 900px) {
  .s101-rules-page > .pc > .in > .flexbox.rightimg .text h3 {
    font-size: 26px;
    letter-spacing: 0;
    word-break: normal;
    overflow-wrap: anywhere;
  }
}

.s101-rules-page .s101-rule-number { white-space: nowrap; }

@media (max-width: 899px) {
  .s101-rules-page > .pc > .in > .flexbox.rightimg .text h3 {
    word-break: normal;
    overflow-wrap: normal;
  }
}

/* テンプレートのインライン余白をこのページだけ解除する。 */
.s101-rules-page #pagehead { margin-top: 27px !important; }
@media (max-width: 899px) { .s101-rules-page #pagehead { margin-top: 36px !important; } }
@media (min-width: 768px) and (max-width: 899px) { .s101-rules-page #pagehead { margin-top: 89px !important; } }


