@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/



/* =========================================================
   SELFCOOK POST
   Single post only
========================================================= */

body.single-post #main .entry-content {
  color: #252525;
  font-family:
    "Yu Gothic Medium",
    "Yu Gothic",
    "YuGothic",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    Meiryo,
    sans-serif !important;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.015em;
}

body.single-post #main .entry-content p {
  color: #252525;
  font-family:
    "Yu Gothic Medium",
    "Yu Gothic",
    "YuGothic",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    Meiryo,
    sans-serif !important;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.015em;
}

body.single-post #main .entry-content strong {
  color: #1f1f1f;
  font-weight: 700;
}



/* H2 */

body.single-post #main .entry-content h2.wp-block-heading {
  margin: 72px 0 32px !important;
  padding: 0 0 18px !important;

  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;

  border: 0 !important;
  border-bottom: 1px solid #5b806e !important;
  border-radius: 0 !important;

  box-shadow: none !important;

  color: #292825 !important;

  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif !important;
  font-size: 30px !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
  letter-spacing: 0.04em !important;
}

body.single-post #main .entry-content h2.wp-block-heading::before,
body.single-post #main .entry-content h2.wp-block-heading::after {
  content: none !important;
  display: none !important;
}


/* H3 */

body.single-post #main .entry-content h3.wp-block-heading {
  position: relative !important;

  margin: 48px 0 24px !important;
  padding: 13px 18px 13px 20px !important;

  background: #f7f5ef !important;
  background-color: #f7f5ef !important;
  background-image: none !important;

  border: 0 !important;
  border-left: 4px solid #5b806e !important;
  border-radius: 2px !important;

  box-shadow: none !important;

  color: #252525 !important;

  font-family: "Yu Gothic Medium", "Yu Gothic", "YuGothic",
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif !important;

  font-size: 21px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
  letter-spacing: 0.02em !important;
}

body.single-post #main .entry-content h3.wp-block-heading::before,
body.single-post #main .entry-content h3.wp-block-heading::after {
  content: none !important;
  display: none !important;
}


/* Lists */

body.single-post #main .entry-content ul,
body.single-post #main .entry-content ol,
body.single-post #main .entry-content li {
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif !important;
  line-height: 1.9;
}


/* Mobile */

@media screen and (max-width: 768px) {

  body.single-post #main .entry-content {
    font-size: 16px;
    line-height: 1.9;
  }

  body.single-post #main .entry-content p {
    font-size: 16px;
    line-height: 1.9;
  }

  body.single-post #main .entry-content h2.wp-block-heading {
    margin: 56px 0 26px !important;
    padding: 0 0 14px !important;
    font-size: 24px !important;
  }

  body.single-post #main .entry-content h3.wp-block-heading {
    margin: 38px 0 20px !important;
    padding-left: 15px !important;
    font-size: 19px !important;
  }

  body.single-post #main .entry-content h3.wp-block-heading::before {
    width: 3px !important;
  }

}



/* =========================================================
   SELFCOOK POST SIDEBAR
========================================================= */

body.single-post .sidebar h2.wp-block-heading,
body.single-post #sidebar-scroll h2.wp-block-heading {
  margin: 28px 0 14px !important;
  padding: 0 0 8px !important;

  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;

  border: 0 !important;
  border-bottom: 1px solid #b8c8bf !important;
  border-radius: 0 !important;

  box-shadow: none !important;

  color: #333333 !important;

  font-family:
    "Yu Gothic Medium",
    "Yu Gothic",
    "YuGothic",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    sans-serif !important;

  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  letter-spacing: 0.02em !important;
}




/* =====================================
   SELFCOOK 投稿記事：目次のみ
   第1階層＝番号 / 第2階層＝黒丸
===================================== */

/* 第1階層（H2）：番号 */
body.single-post #toc .toc-content > ol {
  list-style-type: decimal !important;
}

/* 第2階層（H3）：黒丸 */
body.single-post #toc .toc-content > ol > li > ol {
  list-style-type: disc !important;
  padding-left: 1.5em;
}

/* H3階層の各項目も黒丸を明示 */
body.single-post #toc .toc-content > ol > li > ol > li {
  list-style-type: disc !important;
}












/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}







/* =====================================
   SELFCOOK お問い合わせページ
   Contact Form 7
   ===================================== */

body:has(.sc-contact) .article-header,
body:has(.sc-contact) .breadcrumb,
body:has(.sc-contact) .toc,
body:has(.sc-contact) .date-tags,
body:has(.sc-contact) .author-info,
body:has(.sc-contact) .sns-share,
body:has(.sc-contact) .sns-follow {
  display: none !important;
}

body:has(.sc-contact) #main,
body:has(.sc-contact) .entry-content {
  padding: 0;
}

body:has(.sc-contact) .entry-content {
  margin: 0;
}

.sc-contact {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  color: #282824;
  background: #fff;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho",
    "Hiragino Mincho ProN", serif;
}

.sc-contact *,
.sc-contact *::before,
.sc-contact *::after {
  box-sizing: border-box;
}

.sc-contact__hero {
  position: relative;
  min-height: 265px;
  padding: 45px 24px 96px;
  overflow: hidden;
  background: #faf8f4;
}

.sc-contact__hero-inner {
  position: relative;
  z-index: 3;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.sc-contact__title {
  margin: 0;
  padding: 0;
  border: 0;
  color: #252521;
  background: none;
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.13em;
}

.sc-contact__title::before,
.sc-contact__title::after {
  display: none;
}

.sc-contact__line {
  display: block;
  width: 52px;
  height: 2px;
  margin: 18px auto 23px;
  background: #4f7c68;
}

.sc-contact__lead {
  margin: 0;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.06em;
}

.sc-contact__branch,
.sc-contact__shadow {
  position: absolute;
  z-index: 1;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.sc-contact__branch {
  top: 8px;
  right: -120px;
  width: min(510px, 38vw);
  opacity: 0.88;
  transform: rotate(2deg);
  transform-origin: right center;
}

.sc-contact__shadow {
  top: -125px;
  left: -170px;
  width: 570px;
  opacity: 0.62;
  transform: scaleX(-1) rotate(-18deg);
  filter: blur(2px);
}

.sc-contact__body {
  position: relative;
  z-index: 4;
  max-width: 970px;
  margin: -52px auto 0;
  padding: 0 24px 46px;
}

.sc-contact__card {
  padding: 35px 43px 32px;
  border: 1px solid #d9d9d4;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(58, 66, 59, 0.05);
}

.sc-contact__row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  margin-bottom: 22px;
}

.sc-contact__row--message {
  align-items: start;
}

.sc-contact__row--message .sc-contact__label {
  padding-top: 16px;
}

.sc-contact__label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.sc-contact__required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 37px;
  min-height: 23px;
  padding: 2px 6px;
  border: 1px solid #ccd6ce;
  border-radius: 3px;
  color: #486958;
  background: #f3f6f2;
  font-size: 11px;
  font-weight: 500;
}

.sc-contact .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.sc-contact input[type="text"],
.sc-contact input[type="email"],
.sc-contact select,
.sc-contact textarea {
  width: 100%;
  margin: 0;
  border: 1px solid #d4d6d3;
  border-radius: 3px;
  color: #333;
  background: #fff;
  box-shadow: none;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sc-contact input[type="text"],
.sc-contact input[type="email"],
.sc-contact select {
  min-height: 45px;
  padding: 10px 15px;
}

.sc-contact select {
  appearance: auto;
}

.sc-contact textarea {
  min-height: 122px;
  padding: 13px 15px;
  resize: vertical;
}

.sc-contact input::placeholder,
.sc-contact textarea::placeholder {
  color: #aaa;
  opacity: 1;
}

.sc-contact input:focus,
.sc-contact select:focus,
.sc-contact textarea:focus {
  outline: none;
  border-color: #6d927f;
  box-shadow: 0 0 0 3px rgba(79, 124, 104, 0.11);
}

.sc-contact__consent {
  margin: 3px 0 24px 250px;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 14px;
  line-height: 1.8;
}

.sc-contact__consent .wpcf7-list-item {
  margin: 0;
}

.sc-contact__consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sc-contact__consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: #4f7c68;
  flex: 0 0 auto;
}

.sc-contact__consent a {
  color: #4f7c68;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sc-contact__submit {
  max-width: 390px;
  margin: 0 auto;
  text-align: center;
}

.sc-contact input[type="submit"] {
  width: 100%;
  min-height: 54px;
  margin: 0;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: #4f7c68;
  box-shadow: none;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.09em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.sc-contact input[type="submit"]:hover {
  background: #3f6856;
  transform: translateY(-1px);
}

.sc-contact .wpcf7-spinner {
  display: block;
  margin: 10px auto 0;
}

.sc-contact .wpcf7-not-valid-tip {
  margin-top: 5px;
  color: #b84a45;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 13px;
}

.sc-contact .wpcf7-response-output {
  margin: 22px 0 0 !important;
  padding: 12px 16px !important;
  border-width: 1px !important;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 14px;
  text-align: center;
}

.sc-contact__note {
  margin: 30px 0 0;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

@media (max-width: 767px) {
  .sc-contact__hero {
    min-height: 235px;
    padding: 42px 20px 82px;
  }

  .sc-contact__title {
    font-size: 30px;
    letter-spacing: 0.1em;
  }

  .sc-contact__line {
    width: 42px;
    margin: 14px auto 18px;
  }

  .sc-contact__lead {
    max-width: 310px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.9;
  }

  .sc-contact__branch {
    top: 24px;
    right: -105px;
    width: 285px;
    opacity: 0.48;
  }

  .sc-contact__shadow {
    top: -35px;
    left: -145px;
    width: 330px;
    opacity: 0.46;
  }

  .sc-contact__body {
    margin-top: -36px;
    padding: 0 15px 38px;
  }

  .sc-contact__card {
    padding: 27px 20px 25px;
  }

  .sc-contact__row {
    display: block;
    margin-bottom: 20px;
  }

  .sc-contact__row--message .sc-contact__label {
    padding-top: 0;
  }

  .sc-contact__label {
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
  }

  .sc-contact input[type="text"],
  .sc-contact input[type="email"],
  .sc-contact select {
    min-height: 48px;
    font-size: 16px;
  }

  .sc-contact textarea {
    min-height: 150px;
    font-size: 16px;
  }

  .sc-contact__consent {
    margin: 4px 0 23px;
    font-size: 13px;
  }

  .sc-contact input[type="submit"] {
    min-height: 52px;
    font-size: 16px;
  }

  .sc-contact__note {
    margin-top: 22px;
    font-size: 13px;
  }
}




/* SELFCOOKの考え方：アンカー位置調整 */
#selfcook-thinking {
  scroll-margin-top: 90px;
}



/* =====================================
   SELFCOOK 共通フッター
   ===================================== */

#footer,
.footer {
  margin-top: 0;
  color: #fff;
  background: #4f7c68 !important;
}

#footer-in,
.footer-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 27px 38px 19px !important;
}

.footer-bottom {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* 左側ロゴ */

.footer-bottom-logo {
  flex: 0 0 210px;
  margin: 0 !important;
  text-align: left;
}

.footer-bottom-logo .site-name-text,
.footer-bottom-logo .logo-text,
#footer .site-name-text {
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px !important;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  opacity: 1 !important;
}

.footer-bottom-logo img {
  max-width: 190px;
  max-height: 45px;
  opacity: 1 !important;
}

/* 右側メニューとコピーライト */

.footer-bottom-content {
  display: flex !important;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.footer-menu,
.navi-footer {
  width: 100%;
  margin: 0 !important;
}

.footer-menu ul,
.navi-footer-in > ul,
.menu-footer {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.footer-menu li,
.navi-footer-in > ul > li,
.menu-footer > li {
  position: relative;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  line-height: 1.4;
}

.footer-menu li + li::before,
.navi-footer-in > ul > li + li::before,
.menu-footer > li + li::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 15px;
  content: "";
  background: rgba(255, 255, 255, 0.55);
  transform: translateY(-50%);
}

#footer a,
.footer a,
.footer-menu a,
.navi-footer a {
  color: #fff !important;
  background: transparent !important;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-decoration: none !important;
}

#footer a:hover,
.footer a:hover {
  color: #fff !important;
  opacity: 0.72;
}

.copyright {
  width: 100%;
  margin: 13px 0 0 !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-family: Arial, sans-serif;
  font-size: 10px !important;
  line-height: 1.5;
  text-align: center !important;
}

/* タブレット・スマートフォン */

@media (max-width: 834px) {
  #footer-in,
  .footer-in {
    padding: 27px 20px 20px !important;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }

  .footer-bottom-logo {
    flex: none;
    width: 100%;
    text-align: center;
  }

  .footer-menu ul,
  .navi-footer-in > ul,
  .menu-footer {
    row-gap: 12px;
  }

  .footer-menu li,
  .navi-footer-in > ul > li,
  .menu-footer > li {
    padding: 0 12px !important;
  }
}

@media (max-width: 480px) {
  .footer-menu ul,
  .navi-footer-in > ul,
  .menu-footer {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px 8px;
    text-align: center;
  }

  .footer-menu li,
  .navi-footer-in > ul > li,
  .menu-footer > li {
    padding: 0 4px !important;
  }

  .footer-menu li + li::before,
  .navi-footer-in > ul > li + li::before,
  .menu-footer > li + li::before {
    display: none;
  }

  #footer a,
  .footer a,
  .footer-menu a,
  .navi-footer a {
    font-size: 11px;
  }

  .copyright {
    margin-top: 18px !important;
  }
}



/* フッター：SELFCOOKロゴを確実に表示 */

.footer-bottom-logo {
  display: none !important;
}

.footer-bottom::before {
  display: block;
  flex: 0 0 210px;
  color: #fff;
  content: "SELFCOOK";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-align: left;
}

@media (max-width: 834px) {
  .footer-bottom::before {
    flex: none;
    width: 100%;
    text-align: center;
  }
}



/* =====================================
   SELFCOOK フッター最終調整
   コンパクト化・リンク付きロゴへ変更
   ===================================== */

/* CSSで作ったクリックできないロゴを消す */
.footer-bottom::before {
  display: none !important;
}

/* Cocoon本来のリンク付きロゴを表示 */
.footer-bottom-logo {
  display: block !important;
  flex: 0 0 190px !important;
  width: 190px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.footer-bottom-logo a,
.footer-bottom-logo .logo-text {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.footer-bottom-logo .site-name-text {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0.08em;
  opacity: 1 !important;
}

/* フッター全体をコンパクトに */
#footer-in,
.footer-in {
  padding: 17px 38px 12px !important;
}

.footer-bottom {
  gap: 28px !important;
  min-height: 0 !important;
}

.footer-bottom-content {
  justify-content: center !important;
}

/* メニューの上下余白を縮小 */
.footer-menu,
.navi-footer {
  margin: 0 !important;
  padding: 0 !important;
}

.footer-menu li,
.navi-footer-in > ul > li,
.menu-footer > li {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* コピーライトを少し上へ */
.copyright {
  margin-top: 7px !important;
  margin-bottom: 0 !important;
}

/* タブレット以下 */
@media (max-width: 834px) {
  #footer-in,
  .footer-in {
    padding: 20px 18px 15px !important;
  }

  .footer-bottom {
    gap: 13px !important;
  }

  .footer-bottom-logo {
    flex: none !important;
    width: 100% !important;
    text-align: center !important;
  }

  .footer-bottom-logo a,
  .footer-bottom-logo .logo-text {
    text-align: center !important;
  }

  .footer-bottom-logo .site-name-text {
    font-size: 21px !important;
  }

  .copyright {
    margin-top: 10px !important;
  }
}



/* =====================================
   SELFCOOK 共通フッター：最終版
   LPフッターに合わせてコンパクト化
   ===================================== */

#footer,
.footer {
  background: #416f58 !important;
}

/* Cocoonロゴと疑似ロゴは使用しない */
.footer-bottom-logo,
.footer-bottom::before {
  display: none !important;
}

/* フッターの高さを縮小 */
#footer-in,
.footer-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 38px 10px !important;
}

.footer-bottom {
  display: block !important;
  min-height: 0 !important;
}

.footer-bottom-content {
  display: block !important;
  width: 100%;
}

/* メニュー全体 */
#navi-footer-in,
.navi-footer-in {
  width: 100%;
}

#navi-footer-in > ul {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

/* SELFCOOKを左側ロゴとして表示 */
#navi-footer-in > ul > li:first-child {
  margin: 0 auto 0 0 !important;
  padding: 0 !important;
}

#navi-footer-in > ul > li:first-child::before {
  display: none !important;
}

#navi-footer-in > ul > li:first-child a {
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px !important;
  font-weight: 400 !important;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-decoration: none !important;
}

/* ロゴと最初の通常リンク間には区切り線を出さない */
#navi-footer-in > ul > li:nth-child(2)::before {
  display: none !important;
}

/* 通常のフッターリンク */
#navi-footer-in > ul > li:not(:first-child) {
  position: relative;
  margin: 0 !important;
  padding: 0 15px !important;
}

#navi-footer-in > ul > li:not(:first-child) a {
  color: #fff !important;
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
  font-size: 11px !important;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.03em;
  text-decoration: none !important;
}

#navi-footer-in > ul > li:nth-child(n + 3)::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 13px;
  content: "";
  background: rgba(255, 255, 255, 0.45);
  transform: translateY(-50%);
}

#navi-footer-in a:hover {
  color: #fff !important;
  opacity: 0.75;
}

/* コピーライトは全体の中央 */
.copyright {
  width: 100%;
  margin: 6px 0 0 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-family: Arial, sans-serif;
  font-size: 9px !important;
  line-height: 1.5;
  text-align: center !important;
}

/* タブレット */
@media screen and (max-width: 834px) {
  #footer-in,
  .footer-in {
    padding: 20px 20px 14px !important;
  }

  #navi-footer-in > ul {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 12px;
  }

  #navi-footer-in > ul > li:first-child {
    flex: 0 0 100%;
    margin: 0 !important;
    text-align: center;
  }

  #navi-footer-in > ul > li:not(:first-child) {
    padding: 0 10px !important;
  }

  .copyright {
    margin-top: 12px !important;
  }
}

/* 小型スマートフォン */
@media screen and (max-width: 480px) {
  #navi-footer-in > ul {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 11px 8px;
    text-align: center;
  }

  #navi-footer-in > ul > li:first-child {
    grid-column: 1 / -1;
    margin-bottom: 5px !important;
  }

  #navi-footer-in > ul > li:not(:first-child) {
    padding: 0 3px !important;
  }

  #navi-footer-in > ul > li::before {
    display: none !important;
  }

  #navi-footer-in > ul > li:not(:first-child) a {
    font-size: 10.5px !important;
  }
	
	
	
/* =====================================
   iPhone・小型スマホ最終調整
===================================== */

@media screen and (max-width: 480px) {

  /* Safariによる文字の自動拡大を抑える */
  html {
    -webkit-text-size-adjust: 100%;
  }


  /* ---------------------------------
     ヘッダー下の大きな空白を削除
  --------------------------------- */

  body:not(.page-id-2) #content,
  body:not(.page-id-2) .content,
  body:not(.page-id-2) #content-in,
  body:not(.page-id-2) .content-in,
  body:not(.page-id-2) #main,
  body:not(.page-id-2) .main {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }


  /* ---------------------------------
     固定ページの大見出し
  --------------------------------- */

  body.page:not(.page-id-2) .entry-content h1 {
    font-size: 25px !important;
    line-height: 1.5 !important;
    letter-spacing: 0.04em !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }


  /* ---------------------------------
     スマホ版フッター
  --------------------------------- */

  #footer,
  .footer {
    min-height: 0 !important;
    padding: 0 !important;
  }

  #footer-in,
  .footer-in {
    min-height: 0 !important;
    padding: 18px 16px 14px !important;
  }

  #navi-footer-in > ul,
  .navi-footer-in > ul {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 10px !important;
    row-gap: 12px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  #navi-footer-in > ul > li,
  .navi-footer-in > ul > li {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
  }

  /* SELFCOOKロゴを1段目全体に配置 */
  #navi-footer-in > ul > li:first-child,
  .navi-footer-in > ul > li:first-child {
    grid-column: 1 / -1 !important;
    margin-bottom: 3px !important;
  }

  #navi-footer-in > ul > li:first-child a,
  .navi-footer-in > ul > li:first-child a {
    display: inline-block !important;
    width: auto !important;
    color: #fff !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.1em !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
  }

  /* フッター内リンク */
  #navi-footer-in > ul > li:not(:first-child) a,
  .navi-footer-in > ul > li:not(:first-child) a {
    display: inline-block !important;
    width: auto !important;
    color: #fff !important;
    font-size: 10px !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  /* 区切り線を非表示 */
  #navi-footer-in > ul > li + li::before,
  .navi-footer-in > ul > li + li::before {
    display: none !important;
  }

  /* コピーライト */
  #footer .copyright,
  .footer .copyright {
    margin: 12px 0 0 !important;
    padding: 0 !important;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 9px !important;
    line-height: 1.5 !important;
    text-align: center !important;
  }
}	

	
/* =====================================
   小型スマホ：固定ページ見出し再調整
===================================== */

@media screen and (max-width: 480px) {

  body.page:not(.page-id-2) .entry-content h1 {
    max-width: 100% !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
    font-size: 24px !important;
    line-height: 1.55 !important;
    letter-spacing: 0.02em !important;

    /* 長い見出しは自然に改行させる */
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    line-break: strict !important;
  }
}
	
/* =====================================
   スマホ：PC用ヘッダーの残存空間を削除
===================================== */

@media screen and (max-width: 480px) {

  #header-container,
  .header-container,
  #header-container-in,
  .header-container-in {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .mobile-header-menu-buttons {
    display: flex !important;
    margin-bottom: 0 !important;
  }
}	
	
	
	
	
/* =====================================
   SELFCOOK 404ページ
===================================== */

/* サイドバーを非表示にして1カラム化 */
.error404 #sidebar {
  display: none !important;
}

.error404 .content-in {
  display: block !important;
  max-width: none !important;
}

.error404 #main {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* Cocoon標準の巨大な404画像を非表示 */
.error404 img.not-found {
  display: none !important;
}

/* 404ページ本体 */
.error404 article.article {
  position: relative;
  box-sizing: border-box;
  min-height: 560px;
  margin: 0 !important;
  padding: 82px 24px 96px !important;
  overflow: hidden;
  background: #fbfaf7 !important;
  text-align: center;
}

/* 小さな404表示 */
.error404 article.article::before {
  content: "404";
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 24px;
  color: #4f7c68;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
}

/* 右下の葉 */
.error404 article.article::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -45px;
  bottom: -40px;
  width: 360px;
  height: 310px;
  background:
    url("https://selfcook.jp/wp-content/uploads/2026/07/contact-leaf-branch.png")
    right bottom / contain no-repeat;
  opacity: 0.16;
  pointer-events: none;
}

/* 見出し */
.error404 article.article .entry-title {
  position: relative;
  z-index: 2;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #252321 !important;
  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Noto Serif JP",
    serif !important;
  font-size: 32px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  letter-spacing: 0.04em !important;
  text-align: center !important;
}

/* 見出し下の線 */
.error404 article.article .entry-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin: 18px auto 28px;
  background: #4f7c68;
}

/* 説明文 */
.error404 article.article p {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
  color: #4d4944;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.03em;
}

/* TOPへ戻るボタン */
.error404 .sc-404__button {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: min(320px, 100%);
  min-height: 54px;
  margin: 34px auto 0;
  padding: 13px 24px;
  border-radius: 4px;
  background: #4f7c68;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none !important;
}

.error404 .sc-404__button:hover {
  color: #fff !important;
  opacity: 0.82;
}


/* =====================================
   404ページ：スマートフォン
===================================== */

@media screen and (max-width: 767px) {

  .error404 article.article {
    min-height: 520px;
    padding: 62px 22px 82px !important;
  }

  .error404 article.article::before {
    margin-bottom: 21px;
    font-size: 56px;
  }

  .error404 article.article .entry-title {
    font-size: 25px !important;
    line-height: 1.55 !important;
  }

  .error404 article.article p {
    font-size: 14px;
    line-height: 1.9;
  }

  .error404 article.article::after {
    right: -55px;
    bottom: -25px;
    width: 245px;
    height: 220px;
  }

  .error404 .sc-404__button {
    min-height: 52px;
    margin-top: 29px;
    font-size: 14px;
  }
}
	
	
	
/* =====================================
   LPスマホ：上部の予約領域とFV内余白を修正
===================================== */

@media screen and (max-width: 768px) {

  /* Cocoonモバイルヘッダーが残す外側の空白を削除 */
  body.page-id-2 #container {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* FV全体をページ上端へ詰める */
  body.page-id-2 .fv-cover {
    margin-top: 0 !important;
  }

  /* 写真内の文字には適切な上下余白を戻す */
  body.page-id-2 .fv-cover .wp-block-cover__inner-container {
    box-sizing: border-box !important;
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  body.page-id-2 .fv-copy {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}
	
		
	
/* =====================================
   LPスマホ：モバイルヘッダーの予約領域を解除
===================================== */

@media screen and (max-width: 1023px) {

  body.page-id-2.mblt-header-mobile-buttons {
    margin-top: 0 !important;
  }
}
	

	
	
	
	
	
