/*
Theme Name: TT1 Child
Template: twentytwentyone
Text Domain: tt1-child
*/
/* =========================================================
   ITOKAGU: WordPress全体の表示幅をEC-CUBE寄りにそろえる
   対象テーマ: Twenty Twenty-One Child
   目的:
   - special だけでなく WP全体の本文幅を広げる
   - 左右余白を安定させる
   - 画像や記事一覧も横幅に合わせて見やすくする
   ========================================================= */

/* サイト全体の基本幅 */
:root {
  --itk-site-width: 1100px;   /* ← EC-CUBEに近い幅。必要なら後で調整 */
  --itk-side-padding: 20px;
}

/* 全体背景 */
body {
  background: #f7f1e8;
}

/* ヘッダー・本文・フッターの中身の横幅をそろえる */
.site-header,
.site-main,
.widget-area,
.site-footer {
  width: 100%;
}

/* Twenty Twenty-One の内側ラッパー類を共通幅にそろえる */
.site-header > .site-branding,
.primary-navigation,
#main,
.site-content,
.site-footer > * ,
.entry-header,
.entry-content,
.page-header,
.post-thumbnail,
.wp-block-group__inner-container,
.singular .entry-header,
.singular .post-thumbnail,
.singular .entry-content,
.archive-header,
.archive .page-content {
  max-width: var(--itk-site-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--itk-side-padding);
  padding-right: var(--itk-side-padding);
  box-sizing: border-box;
}

/* 記事本文を少し広めに */
.entry-content,
.singular .entry-content {
  max-width: var(--itk-site-width);
}

/* 一覧ページの各記事も幅をそろえる */
article,
.posts-loop .post,
.archive article,
.blog article,
.search article {
  max-width: var(--itk-site-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--itk-side-padding);
  padding-right: var(--itk-side-padding);
  box-sizing: border-box;
}

/* 画像がはみ出さないようにする */
.entry-content img,
.post-thumbnail img,
.wp-post-image {
  max-width: 100%;
  height: auto;
}

/* 特集ページ一覧・詳細も共通幅に合わせる */
.post-type-archive-special .site-main,
.single-special .site-main {
  max-width: var(--itk-site-width);
  margin: 0 auto;
  padding-left: var(--itk-side-padding);
  padding-right: var(--itk-side-padding);
  box-sizing: border-box;
}

/* スマホ時は余白だけ残して自然に縮む */
@media (max-width: 767px) {
  :root {
    --itk-side-padding: 16px;
  }
}
/* =========================================================
   ITOKAGU: WordPress共通ヘッダー・フッター調整
   対象: header.php / footer.php の実装済みクラスに合わせる
   ========================================================= */

:root {
  --itk-site-width: 1100px;
  --itk-pad-x: 20px;
  --itk-bg: #f6efe6;
  --itk-text: #333;
  --itk-line: #ddd2c4;
  --itk-white: #fff;
  --itk-accent: #ffffff;
  --itk-footer-bg: #070707;
}

/* 全体 */
html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--itk-bg);
  color: var(--itk-text);
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* =========================================================
   共通幅
   ========================================================= */
.itk-header__inner,
.it-footer__container,
.site-main {
  max-width: var(--itk-site-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--itk-pad-x);
  padding-right: var(--itk-pad-x);
  box-sizing: border-box;
}

/* =========================================================
   ヘッダー
   ========================================================= */
.itk-header {
  background: var(--itk-white);
  border-bottom: 1px solid var(--itk-line);
}

.itk-header__topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--itk-line);
}

.itk-header__toptext {
  margin: 0;
  padding: 8px 0;
  font-size: 12px;
  line-height: 1.6;
  color: #6f6254;
}

.itk-header__main {
  background: var(--itk-white);
}

.itk-header__mainInner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.itk-header__logo {
  flex: 0 0 auto;
}

.itk-header__logoLink {
  display: inline-block;
  text-decoration: none;
}

.itk-header__logoText {
  display: inline-block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: #2f2a24;
  letter-spacing: 0.03em;
}

.itk-header__simpleNav {
  flex: 0 0 auto;
}

.itk-header__shopLink {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--itk-line);
  background: #faf7f2;
  font-size: 14px;
  line-height: 1.4;
  color: #4e4337;
  text-decoration: none;
  transition: 0.2s ease;
}

.itk-header__shopLink:hover {
  background: #efe5d8;
  color: #3f3428;
  text-decoration: none;
}

/* =========================================================
   本文エリア
   ========================================================= */
.site {
  width: 100%;
}

.site-main {
  padding-top: 32px;
  padding-bottom: 48px;
}

/* Twenty Twenty-One 側の幅制限を弱める */
.entry-header,
.entry-content,
.page-header,
.page-content,
.post-thumbnail,
.navigation,
.archive-header {
  max-width: 100%;
}

/* タイトル */
.entry-title,
.page-title,
.archive-title {
  font-size: 36px !important;
  line-height: 1.4;
  margin: 0 !important;
  color: #2f2a24;
}

/* 本文 */
.entry-content,
.page-content {
  background: #fff;
  padding: 0px 28px !important;
  box-sizing: border-box;
  line-height: 2;
  font-size: 15px;
}

.entry-content p,
.page-content p {
  margin: 0 0 1.2em;
}

.entry-content h2,
.page-content h2 {
  margin: 40px 0 18px;
  padding-bottom: 8px;
  font-size: 24px;
  line-height: 1.5;
  border-bottom: 1px solid var(--itk-line);
  color: #2f2a24;
}

.entry-content h3,
.page-content h3 {
  margin: 30px 0 14px;
  font-size: 20px;
  line-height: 1.5;
  color: #2f2a24;
}

/* =========================================================
   special 一覧・詳細の土台
   ========================================================= */
.post-type-archive-special .site-main,
.single-special .site-main {
  max-width: var(--itk-site-width);
  margin: 0 auto;
  padding-left: var(--itk-pad-x);
  padding-right: var(--itk-pad-x);
  box-sizing: border-box;
}

/* =========================================================
   フッター
   ========================================================= */
.it-footer {
  margin-top: 60px;
  background: var(--itk-footer-bg);
  border-top: 1px solid var(--itk-line);
}

.it-footer__bleed {
  width: 100%;
}

.it-footer__container {
  padding-top: 36px;
  padding-bottom: 36px;
}

.it-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  align-items: start;
}

.it-footer__brand {
  min-width: 0;
}

.it-footer__logo {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  text-decoration: none;
}

.it-footer__note {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.9;
  color: #aaaaaa;
}

.it-footer__sns {
  margin-bottom: 18px;
}

.it-footer__snsLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #cdbdaa;
  border-radius: 9999px;
  background: #fff;
}

.it-footer__snsLink svg {
  width: 18px;
  height: 18px;
  fill: #5d5348;
}

.it-footer__copy {
  display: block;
  font-size: 12px;
  line-height: 1.8;
  color: #aaaaaa;
}

/* フッターナビ */
.it-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.it-footer__colTitle {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d4c6b7;
  font-size: 15px;
  font-weight: 700;
  color: #aaaaaa;
}

.it-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.it-footer__list li {
  margin: 0 0 10px;
}

.it-footer__list a {
  font-size: 14px;
  line-height: 1.7;
  color: #aaaaaa;
}

.it-footer__list a:hover {
  color: var(--itk-accent);
  text-decoration: underline;
}

/* =========================================================
   スマホ
   ========================================================= */
@media (max-width: 767px) {
  :root {
    --itk-pad-x: 16px;
  }

  .itk-header__mainInner {
    min-height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .itk-header__logoText {
    font-size: 24px;
  }

  .entry-content,
  .page-content {
    padding: 0 !important;
  }

  .it-footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .it-footer__nav {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
/* =========================================================
   ITOKAGU: WPトップ / カテゴリ一覧 共通アーカイブデザイン
   special一覧に寄せつつ、2列カードにする
   ========================================================= */

.itk-archive-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px 50px;
  box-sizing: border-box;
}

.itk-archive-header {
  margin-bottom: 28px;
}

.itk-archive-header .page-title {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.4;
  color: #2f2a24;
}

.itk-archive-lead {
  font-size: 15px;
  line-height: 1.9;
  color: #5e5449;
}

/* 2列グリッド */
.itk-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}

/* カード */
.itk-post-card {
  margin: 0;
}

.itk-post-card__link {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid #ddd2c4;
  text-decoration: none;
  color: #333;
  overflow: hidden;
  transition: 0.2s ease;
}

.itk-post-card__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.itk-post-card__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.itk-post-card__body {
  padding: 18px 18px 20px;
}

.itk-post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #7a6d5f;
}

.itk-post-card__cat {
  display: inline-block;
  padding: 2px 8px;
  background: #f3eadf;
  border: 1px solid #e0d2c2;
  border-radius: 9999px;
  line-height: 1.5;
}

.itk-post-card__title {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.6;
  color: #2f2a24;
}

.itk-post-card__excerpt {
  font-size: 14px;
  line-height: 1.9;
  color: #4f463d;
}

.itk-post-card__more {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: #8a6b45;
}

/* ページャー */
.itk-pagination {
  margin-top: 36px;
}

.itk-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.itk-pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #ddd2c4;
  color: #4f463d;
  text-decoration: none;
}

.itk-pagination .page-numbers.current {
  background: #f3eadf;
  font-weight: 700;
}

/* スマホ */
@media (max-width: 767px) {
  .itk-archive-page {
    padding: 24px 16px 40px;
  }

  .itk-post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .itk-post-card__title {
    font-size: 20px;
  }
}
/* カテゴリナビ */
.itk-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 30px;
}

.itk-category-nav a {
  display: inline-block;
  padding: 6px 12px;
  background: #f3eadf;
  border: 1px solid #e0d2c2;
  border-radius: 9999px;
  font-size: 13px;
  color: #5b5147;
  text-decoration: none;
}

.itk-category-nav a:hover {
  background: #e9dfd2;
}


/* 本文内の各要素の幅制限を解除 */
.single-special .entry-content > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* 画像ははみ出さないように */
.single-special .entry-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* =========================================================
   特集一覧ページ
   対象: archive-special.php
========================================================= */

/* -----------------------------
   全体レイアウト
------------------------------ */
.post-type-archive-special .site-main,
.post-type-archive-special .content-area {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 28px;
    padding-right: 28px;
    box-sizing: border-box;
}

/* Twenty Twenty-One の幅制限対策 */
.post-type-archive-special .entry-content > *,
.post-type-archive-special .site-main > *,
.post-type-archive-special article > * {
    max-width: 100%;
    box-sizing: border-box;
}

/* 背景になじませる */
.post-type-archive-special {
    color: #222;
}

/* -----------------------------
   ページヘッダー
------------------------------ */
.post-type-archive-special .special-page-header {
    margin: 0 0;
    padding: 8px 0 24px;
    border-bottom: 2px solid #1f1f1f;
    position: relative;
}

.post-type-archive-special .special-page-header::after {
    content: "";
    display: block;
    width: 90px;
    height: 2px;
    background: #8a6a3b;
    position: absolute;
    left: 0;
    bottom: -2px;
}

.post-type-archive-special .page-title {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #1a1a1a;
}

/* -----------------------------
   一覧全体
------------------------------ */
.post-type-archive-special .special-archive-list {
    display: grid;
    gap: 0;
}

/* 各記事 */
.post-type-archive-special .special-archive-article {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #d8d2c8;
}

.post-type-archive-special .special-archive-article:first-child {
    border-top: 1px solid #d8d2c8;
}

/* 記事内部 */
.post-type-archive-special .special-archive-item {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    align-items: center;
    padding: 30px 0;
}

/* -----------------------------
   サムネイル
------------------------------ */
.post-type-archive-special .special-archive-thumbnail {
    width: 100%;
}

.post-type-archive-special .special-archive-thumbnail-link {
    display: block;
    text-decoration: none;
}

/* 画像を整える */
.post-type-archive-special .special-archive-thumbnail img {
    display: block;
    width: 100%;
    object-fit: cover;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
}

/* hover */
.post-type-archive-special .special-archive-thumbnail-link:hover img {
    transform: scale(1.015);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
    opacity: 0.96;
}

/* -----------------------------
   本文エリア
------------------------------ */
.post-type-archive-special .special-archive-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* タイトル */
.post-type-archive-special .special-archive-title {
    margin: 0 0 16px;
    font-size: clamp(1.2rem, 1.8vw, 2.0rem) !important;
    line-height: 1.35;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.post-type-archive-special .special-archive-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.post-type-archive-special .special-archive-title a:hover {
    color: #6b4f2a;
}

/* 抜粋 */
.post-type-archive-special .special-archive-summary {
    margin-bottom: 24px;
    color: #2e2e2e;
    font-size: 1.00rem;
    line-height: 2;
    letter-spacing: 0.01em;
}

.post-type-archive-special .special-archive-summary p {
    margin: 0;
}

/* the_excerpt の続きリンクが出た時の整え */
.post-type-archive-special .special-archive-summary a {
    color: #6b4f2a;
    text-decoration: none;
}

.post-type-archive-special .special-archive-summary a:hover {
    text-decoration: underline;
}

/* -----------------------------
   ボタン
------------------------------ */
.post-type-archive-special .special-archive-button-wrap {
    margin: 0;
}

.post-type-archive-special .special-archive-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 10px 26px;
    border: 1px solid #1f1f1f;
    background: #1f1f1f;
    color: #fff;
    text-decoration: none;
    font-size: 0.90rem;
    line-height: 1.4;
    letter-spacing: 0.08em;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.post-type-archive-special .special-archive-button:hover {
    background: #6b4f2a;
    border-color: #6b4f2a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

/* -----------------------------
   ページネーション
------------------------------ */
.post-type-archive-special .special-pagination {
    margin-top: 56px;
}

.post-type-archive-special .navigation.pagination {
    margin-top: 0;
}

.post-type-archive-special .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-type-archive-special .nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #cfc7bb;
    background: #fff;
    color: #222;
    text-decoration: none;
    transition: all 0.25s ease;
}

.post-type-archive-special .nav-links .page-numbers:hover,
.post-type-archive-special .nav-links .page-numbers.current {
    background: #1f1f1f;
    border-color: #1f1f1f;
    color: #fff;
}

/* -----------------------------
   投稿なし
------------------------------ */
.post-type-archive-special .special-no-post {
    margin-top: 40px;
    font-size: 1rem;
    line-height: 1.8;
}

/* =========================================================
   タブレット
========================================================= */
@media (max-width: 1024px) {
    .post-type-archive-special .site-main,
    .post-type-archive-special .content-area {
        padding-left: 22px;
        padding-right: 22px;
    }

    .post-type-archive-special .special-page-header {
        margin-bottom: 48px;
    }

    .post-type-archive-special .special-archive-item {
        grid-template-columns: 300px 1fr;
        gap: 30px;
        padding: 34px 0;
    }

    .post-type-archive-special .special-archive-title {
        font-size: clamp(1.7rem, 3vw, 2.4rem);
    }

    .post-type-archive-special .special-archive-summary {
        font-size: 0.98rem;
        line-height: 1.9;
    }
}

/* =========================================================
   スマホ
========================================================= */
@media (max-width: 767px) {
    .post-type-archive-special .site-main,
    .post-type-archive-special .content-area {
        padding-left: 16px;
        padding-right: 16px;
    }

    .post-type-archive-special .special-page-header {
        margin-bottom: 32px;
        padding: 0 0 16px;
    }

    .post-type-archive-special .special-page-header::after {
        width: 64px;
    }

    .post-type-archive-special .page-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .post-type-archive-special .special-archive-item {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 28px 0;
        align-items: start;
    }

    .post-type-archive-special .special-archive-thumbnail img {
        aspect-ratio: 16 / 9;
    }

    .post-type-archive-special .special-archive-title {
        margin-bottom: 10px;
        font-size: 1.75rem;
        line-height: 1.4;
    }

    .post-type-archive-special .special-archive-summary {
        margin-bottom: 18px;
        font-size: 0.96rem;
        line-height: 1.85;
    }

    .post-type-archive-special .special-archive-button {
        width: 100%;
        min-width: 0;
        padding: 14px 18px;
    }

    .post-type-archive-special .nav-links {
        gap: 6px;
    }

    .post-type-archive-special .nav-links .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
    }
}