@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* =========================
   いろたね：フォント設定
========================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Noto+Sans+JP:wght@400;500;600;700&family=Zen+Maru+Gothic:wght@500&display=swap');

/* サイト全体：日本語本文・見出し */
body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  color: #3D3B37;
}

/* 英数字をLato優先 */
:lang(en),
input,
button,
select,
textarea {
  font-family: "Lato", "Noto Sans JP", sans-serif;
}

/* 記事タイトル */
.entry-title,
.article h1 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
}

/* H2 */
.article h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
}

/* H3 */
.article h3 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
}

/* H4 */
.article h4 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
}

/* =========================
   いろたね：ヘッダーブランド
========================= */

/* サイト名 */
.logo-text {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  color: #3D3B37;
}

/* キャッチフレーズ */
.tagline {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  color: #3D3B37;
}

/* トップメニュー（右寄せ）時のキャッチフレーズ表示 */
.logo-header.logo-text > a {
  display: flex;
  align-items: baseline;
  text-decoration: none;
}

.logo-header.logo-text > a::after {
  content: "くらしの自由研究";
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #3D3B37;
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin-left: 18px;
  position: relative;
  top: -5px;
}

/* ヘッダー背景 */
.header-container,
.header-container-in,
.logo-header {
  background-color: #FAF8F2;
}

/* ヘッダー内リンク */
.header-container a,
.navi-in a {
  color: #3D3B37;
}

/* ホバー */
.header-container a:hover,
.navi-in a:hover {
  color: #D9825B;
}

/* ヘッダー：芽ロゴマーク */
.logo-header.logo-text > a::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background-image: url("https://irotanelife.com/wp-content/uploads/2026/09/04C90FFA-0EE9-4B32-BF98-7F96051E114F.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* =========================
   ヘッダー文字位置の微調整
========================= */

/* 「いろたね」の文字だけ少し上へ */
#header .site-name-text {
  display: inline-block;
  transform: translateY(-4px);
}

/* =========================
   いろたね：グローバルナビ
========================= */

#navi .navi-in > ul > li > a {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #3D3B37;
  padding-left: 22px;
  padding-right: 22px;
}

/* ホバー時 */
#navi .navi-in > ul > li > a:hover {
  color: #D9825B;
  background-color: transparent;
}

/* =========================
   いろたね：検索アイコン
========================= */

#navi .irotane-search {
  width: 44px;
  flex: 0 0 44px;
}

/* 検索リンク */
#navi .irotane-search > a {
  width: 44px;
  min-width: 44px;
  padding: 0;
  overflow: hidden;

  /* 虫眼鏡 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233D3B37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 21px 21px;
}

/* Cocoonが出力する「検索」という文字を完全に非表示 */
#navi .irotane-search > a,
#navi .irotane-search > a * {
  font-size: 0 !important;
  color: transparent !important;
}

/* ホバー時 */
#navi .irotane-search > a:hover {
  background-color: transparent;
}

/* =========================
   いろたね：ヘッダー検索パネル
========================= */

.irotane-search-panel {
  display: none;
  background: #FAF8F2;
  border-top: 1px solid rgba(61, 59, 55, 0.10);
  border-bottom: 1px solid rgba(61, 59, 55, 0.10);
  padding: 18px 24px;
}

.irotane-search-panel.is-open {
  display: block;
}

.irotane-search-form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.irotane-search-form input[type="search"] {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(61, 59, 55, 0.25);
  border-radius: 10px;
  background: #fff;
  color: #3D3B37;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
}

.irotane-search-form input[type="search"]:focus {
  outline: 2px solid #7FB8CF;
  outline-offset: 2px;
  border-color: #7FB8CF;
}

.irotane-search-form button {
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: #D9825B;
  color: #FAF8F2;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.irotane-search-form button:hover {
  filter: brightness(0.94);
}

/* 検索アイコンのフォーカス表示もブランドカラーに */
#navi .irotane-search > a:focus-visible {
  outline: 2px solid #7FB8CF;
  outline-offset: -4px;
  border-radius: 8px;
}

@media screen and (max-width: 834px) {
  .irotane-search-panel {
    padding: 14px 16px;
  }

  .irotane-search-form {
    gap: 8px;
  }

  .irotane-search-form button {
    padding: 0 14px;
  }
}

/* =========================
   いろたね：記事一覧カード
========================= */

.ect-vertical-card .entry-card-wrap {
  box-sizing: border-box;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid #e8e4e1;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(61, 59, 55, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

/* マウスを重ねたとき */
.ect-vertical-card .entry-card-wrap:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 59, 55, 0.18);
  box-shadow: 0 8px 20px rgba(61, 59, 55, 0.10);
}

/* =========================
   About：書いている人
========================= */

.entry-content .about-profile {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) !important;
  gap: 32px;
  align-items: start;
  margin: 24px 0 48px;

  /* PC：上下40px、左右28px */
  padding: 40px 28px;

  background-color: #fbf8f4;
  border: 1px solid #eee7e2;
  border-radius: 12px;
}

.entry-content .about-profile .wp-block-media-text__media {
  align-self: start !important;
  margin: 0;
}

.entry-content .about-profile .wp-block-media-text__media img {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 3px 12px rgba(61, 59, 55, 0.08);
}

.entry-content .about-profile .wp-block-media-text__content {
  padding: 0;
}

.entry-content .about-profile .wp-block-media-text__content > :first-child {
  margin-top: 0;
}

.entry-content .about-profile .wp-block-media-text__content > :last-child {
  margin-bottom: 0;
}

/* =========================
   About：テーマカード
========================= */

.entry-content .about-topic-row {
  gap: 20px;
  margin: 20px 0;
}

.entry-content .about-topic-row > .wp-block-column {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  padding: 24px;
  background-color: #fff;
  border: 1px solid #e8e4e1;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(61, 59, 55, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.entry-content .about-topic-row > .wp-block-column::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background-color: #D9825B;
}

.entry-content .about-topic-row > .wp-block-column:nth-child(even)::before {
  background-color: #7FB8CF;
}

.entry-content .about-topic-row > .wp-block-column:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(61, 59, 55, 0.10);
}

.entry-content .about-topic-row h3 {
  display: block;
  margin: 0 0 12px;
  padding: 0;
  color: #3D3B37;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
}

.entry-content .about-topic-row p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.9;
}

/* =========================
   About：スマホ表示
========================= */

@media screen and (max-width: 781px) {
  .entry-content .about-profile {
    display: block;
    margin-bottom: 40px;

    /* スマホ：上下36px、左右20px */
    padding: 36px 20px;
  }

  .entry-content .about-profile .wp-block-media-text__media {
    margin: 0 0 24px;
    text-align: center;
  }

  .entry-content .about-profile .wp-block-media-text__media img {
    width: 140px;
    height: 140px;
  }

  .entry-content .about-topic-row {
    display: block;
    margin: 16px 0;
  }

  .entry-content .about-topic-row > .wp-block-column {
    margin-bottom: 16px;
    padding: 22px 20px;
  }
}

/* スマホ：H2の1行に入る文字数を少し増やす */
@media screen and (max-width: 834px) {
  .entry-content h2 {
    padding-right: 32px;
    padding-left: 32px;
  }
}

/* =========================
   Aboutページ：最終調整
========================= */

/* PC・スマホ共通：プロフィール枠の内側に上下余白 */
.entry-content .about-profile {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

/* スマホ調整 */
@media screen and (max-width: 834px) {

  /* H2の左右余白を狭め、1行に入る文字数を増やす */
  .entry-content h2 {
    padding-right: 28px !important;
    padding-left: 28px !important;
  }

  /* プロフィール枠 */
  .entry-content .about-profile {
    padding-top: 36px !important;
    padding-right: 20px !important;
    padding-bottom: 36px !important;
    padding-left: 20px !important;
  }

  /* アイコンと本文の間隔 */
  .entry-content .about-profile .wp-block-media-text__media {
    margin: 0 0 24px !important;
  }
}

/* =========================
   トップページ：プロフィール
========================= */

.entry-content .home-profile {
  box-sizing: border-box;
  max-width: 1120px;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  gap: 56px;
  align-items: center;
  margin: 32px auto 88px;
  padding: 40px 48px;
  background-color: #fbf8f4;
  border: 1px solid #eee7e2;
  border-radius: 16px;
}

.entry-content .home-profile .wp-block-media-text__media {
  margin: 0;
  text-align: center;
}

.entry-content .home-profile .wp-block-media-text__media img {
  display: block;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  object-fit: contain;
}

.entry-content .home-profile .wp-block-media-text__content {
  padding: 0;
}

.entry-content .home-profile .wp-block-media-text__content > :first-child {
  margin-top: 0;
}

/* =========================
   トップページ：いろたねについて
========================= */

.entry-content .home-about {
  box-sizing: border-box;
  max-width: 1000px;
  margin: 32px auto 88px;
  padding: 44px 52px;
  background-color: #f5fafc;
  border: 1px solid #dcebf0;
  border-radius: 16px;
}

.entry-content .home-about > :first-child {
  margin-top: 0;
}

.entry-content .home-about > :last-child {
  margin-bottom: 0;
}

/* トップページ内のボタン */
.entry-content .home-profile .wp-block-button__link,
.entry-content .home-about .wp-block-button__link {
  padding: 13px 26px;
  background-color: #D9825B;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.entry-content .home-profile .wp-block-button__link:hover,
.entry-content .home-about .wp-block-button__link:hover {
  background-color: #c66f49;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(61, 59, 55, 0.12);
}

/* =========================
   トップページ：スマホ表示
========================= */

@media screen and (max-width: 781px) {
  .entry-content .home-profile {
    display: block;
    margin: 24px auto 64px;
    padding: 28px 20px 32px;
  }

  .entry-content .home-profile .wp-block-media-text__media {
    margin-bottom: 24px;
  }

  .entry-content .home-profile .wp-block-media-text__media img {
    width: 200px;
    height: 200px;
  }

  .entry-content .home-profile .wp-block-media-text__content {
    padding: 0;
  }

  .entry-content .home-about {
    margin: 24px auto 64px;
    padding: 30px 22px;
  }

  .entry-content .home-profile .wp-block-buttons,
  .entry-content .home-about .wp-block-buttons {
    justify-content: center;
  }
}

/* =========================
   トップページ：ファーストビュー
========================= */

.entry-content .home-hero {
  box-sizing: border-box;
  margin: 0 0 88px;
  padding: 72px 80px;
  background-color: #FAF8F2;
  border-radius: 16px;
}

.entry-content .home-hero .wp-block-columns {
  align-items: center !important;
  gap: 64px;
  margin: 0;
}

.entry-content .home-hero-copy {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #3D3B37;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.03em;
}

/* 経験・失敗・種 */
.entry-content .home-hero-copy .hero-terra {
  color: #D9825B;
}

/* 未来を彩る */
.entry-content .home-hero-copy .hero-blue {
  color: #7FB8CF;
}

.entry-content .home-hero-logo {
  margin: 0;
  text-align: center;
}

.entry-content .home-hero-logo img {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin: 0 auto;
}

/* スマホ：コピー→ロゴの縦積み */
@media screen and (max-width: 781px) {
  .entry-content .home-hero {
    margin-bottom: 64px;
    padding: 44px 24px 36px;
  }

  .entry-content .home-hero .wp-block-columns {
    gap: 28px;
  }

  .entry-content .home-hero-copy {
    font-size: 1.6rem;
    line-height: 1.65;
    letter-spacing: 0.02em;
  }

  .entry-content .home-hero-logo img {
    width: 150px;
  }
}

/* =========================
   ファーストビュー：最終サイズ調整
========================= */

/* PC：指定した改行位置以外では折り返さない */
@media screen and (min-width: 835px) {
  .entry-content .home-hero-copy {
    font-size: clamp(2rem, 2.5vw, 2.8rem) !important;
    white-space: nowrap;
  }

  .entry-content .home-hero .wp-block-columns {
    gap: 40px;
  }

  .entry-content .home-hero .wp-block-column:first-child {
    flex-basis: 74% !important;
  }

  .entry-content .home-hero .wp-block-column:last-child {
    flex-basis: 26% !important;
  }
}

/* スマホ・タブレット：コピー→小さなロゴ */
@media screen and (max-width: 834px) {
  .entry-content .home-hero {
    margin-bottom: 64px;
    padding: 38px 20px 30px;
  }

  .entry-content .home-hero .wp-block-columns {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
  }

  .entry-content .home-hero .wp-block-column {
    width: 100% !important;
    flex-basis: auto !important;
  }

  .entry-content .home-hero-copy {
    font-size: 1.45rem !important;
    line-height: 1.65;
    white-space: normal;
  }

  .entry-content .home-hero .home-hero-logo,
  .entry-content .home-hero .wp-block-image {
    margin: 0 !important;
    text-align: center;
  }

  .entry-content .home-hero .home-hero-logo img,
  .entry-content .home-hero .wp-block-image img {
    width: 110px !important;
    max-width: 110px !important;
    height: auto !important;
    margin: 0 auto !important;
  }
}

/* =========================
   トップページ：カテゴリーカード
========================= */

.entry-content .home-categories {
  gap: 20px;
  margin: 20px 0;
}

.entry-content .home-categories > .wp-block-column {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  min-height: 210px;
  padding: 30px;
  background-color: #fff;
  border: 1px solid #e8e4e1;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(61, 59, 55, 0.05);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* カード上部のアクセント線 */
.entry-content .home-categories > .wp-block-column::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background-color: #D9825B;
}

/* 各段の右側カードはブルー */
.entry-content .home-categories > .wp-block-column:nth-child(even)::before {
  background-color: #7FB8CF;
}

/* カテゴリー名 */
.entry-content .home-categories h3 {
  display: block;
  margin: 0 0 14px;
  padding: 0;
  color: #3D3B37;
  font-size: 1.15rem;
  font-weight: 700;
  border: none;
}

/* 説明文 */
.entry-content .home-categories p {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* 「見る →」をカード下部にそろえる */
.entry-content .home-categories p:last-child {
  margin-top: auto;
  margin-bottom: 0;
  color: #D9825B;
  font-weight: 600;
}

/* 右側カードの「見る →」 */
.entry-content .home-categories > .wp-block-column:nth-child(even) p:last-child {
  color: #5F9FB8;
}

/* リンク設定後の文字色 */
.entry-content .home-categories p:last-child a {
  color: inherit;
  text-decoration: none;
}

/* PC：マウスを重ねたとき */
.entry-content .home-categories > .wp-block-column:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 59, 55, 0.18);
  box-shadow: 0 8px 20px rgba(61, 59, 55, 0.10);
}

/* スマホ：1列に並べる */
@media screen and (max-width: 781px) {
  .entry-content .home-categories {
    display: block;
    margin: 16px 0;
  }

  .entry-content .home-categories > .wp-block-column {
    min-height: 0;
    margin-bottom: 16px;
    padding: 25px 22px;
  }

  .entry-content .home-categories h3 {
    font-size: 1.05rem;
  }

  .entry-content .home-categories p {
    font-size: 0.92rem;
  }
}

/* =========================
   カテゴリーカード：サイズ・見出し調整
========================= */

/* カード群の横幅を絞る */
.entry-content .home-categories {
  max-width: 1120px;
  margin: 16px auto !important;
}

/* カードをコンパクトに */
.entry-content .home-categories > .wp-block-column {
  min-height: 175px !important;
  padding: 26px 28px !important;
}

/* カテゴリー名をラベル風に強調 */
.entry-content .home-categories h3 {
  display: inline-block !important;
  align-self: flex-start;
  margin: 0 0 18px !important;
  padding: 7px 14px !important;
  background-color: #faeee8;
  color: #b85f3d;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.4;
  border: none !important;
  border-radius: 999px;
}

/* 右側カードはブルー */
.entry-content .home-categories > .wp-block-column:nth-child(even) h3 {
  background-color: #eaf5f8;
  color: #4f8fa8;
}

/* 本文を少しコンパクトに */
.entry-content .home-categories p {
  margin-bottom: 14px !important;
  font-size: 0.9rem !important;
  line-height: 1.7;
}

/* 「見る →」は下端に配置 */
.entry-content .home-categories p:last-child {
  margin-top: auto !important;
  margin-bottom: 0 !important;
}

/* スマホ */
@media screen and (max-width: 781px) {
  .entry-content .home-categories {
    max-width: none;
    margin: 14px 0 !important;
  }

  .entry-content .home-categories > .wp-block-column {
    min-height: 0 !important;
    margin-bottom: 14px;
    padding: 22px 20px !important;
  }

  .entry-content .home-categories h3 {
    margin-bottom: 14px !important;
    padding: 6px 12px !important;
    font-size: 1.05rem !important;
  }

  .entry-content .home-categories p {
    margin-bottom: 12px !important;
    font-size: 0.9rem !important;
  }
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/

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

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

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