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

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

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

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

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

/* ==========================================================
   スマートフォン開発メモ リニューアル用CSS
   貼り付け先: 子テーマ (cocoon-child-master) の style.css の末尾
   すべて .sdm- で始まるクラスなので、既存ページには影響しません
   ========================================================== */

:root {
  --sdm-ink: #1D2A44;
  --sdm-muted: #4A5468;
  --sdm-accent: #C2410C;
  --sdm-accent-dark: #9A3412;
  --sdm-bg: #F7F5F0;
  --sdm-card: #FFFFFF;
  --sdm-line: #DDD8CC;
  --sdm-tag: #E4E9F2;
}

/* 横スクロール防止（全幅セクション用） */
body { overflow-x: hidden; }

/* ---------- 全幅セクションの土台 ---------- */
.sdm-top,
.sdm-detail {
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  color: var(--sdm-ink);
  line-height: 1.8;
}
.sdm-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
}
.sdm-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.sdm-section { padding: 88px 0; }
.sdm-section--white {
  background: var(--sdm-card);
  border-top: 1px solid var(--sdm-line);
  border-bottom: 1px solid var(--sdm-line);
}
.sdm-h2 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sdm-ink);
}
.sdm-lead { font-size: 15px; color: #5B6270; margin: 8px 0 0; }

/* ---------- ボタン ---------- */
.sdm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none !important;
  box-sizing: border-box;
  border: 2px solid transparent;
}
.sdm-btn--primary { background: var(--sdm-accent); color: #fff !important; }
.sdm-btn--primary:hover { background: var(--sdm-accent-dark); }
.sdm-btn--ghost { border-color: var(--sdm-ink); color: var(--sdm-ink) !important; }
.sdm-btn--ghost:hover { background: var(--sdm-ink); color: #fff !important; }
.sdm-btn--white { background: #fff; color: var(--sdm-ink) !important; }
.sdm-btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- ヒーロー ---------- */
.sdm-hero { padding: 88px 0 96px; }
.sdm-hero__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}
.sdm-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--sdm-accent);
  margin: 0 0 20px;
}
.sdm-hero h1 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.4;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  background: none;
}
.sdm-hero p { font-size: 18px; line-height: 1.9; color: var(--sdm-muted); margin: 0 0 32px; max-width: 520px; }
.sdm-hero__shots { display: flex; gap: 24px; justify-content: center; align-items: flex-end; }
.sdm-hero__shots img { width: 46%; height: auto; border-radius: 28px; box-shadow: 0 8px 28px rgba(29,42,68,.14); }
.sdm-hero__shots img:first-child { margin-bottom: 40px; }

/* ---------- 作品カード ---------- */
.sdm-apps__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.sdm-apps__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sdm-app-card {
  display: flex;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--sdm-line);
  border-radius: 20px;
  background: var(--sdm-bg);
  align-items: flex-start;
}
.sdm-app-card__icon {
  width: 96px !important;
  height: 96px !important;
  flex-shrink: 0;
  border-radius: 22px;
  object-fit: cover;
  background: #EFEBE2;
}
.sdm-app-card__body { flex: 1; min-width: 0; }
.sdm-app-card__name { font-size: 22px; font-weight: 700; line-height: 1.4; margin: 0 0 8px; }
.sdm-app-card__desc { font-size: 15px; line-height: 1.7; color: var(--sdm-muted); margin: 0 0 12px; }
.sdm-app-card__foot { display: flex; align-items: center; gap: 8px; }
.sdm-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--sdm-tag);
  color: var(--sdm-ink);
}
.sdm-more { margin-left: auto; font-weight: 700; font-size: 15px; color: var(--sdm-accent); text-decoration: none; }
.sdm-more:hover { text-decoration: underline; }
.sdm-apps__foot { text-align: center; margin-top: 40px; }

/* ---------- お知らせ・開発メモ ---------- */
.sdm-notes__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.sdm-notes__list { border-top: 1px solid var(--sdm-line); margin: 0; padding: 0; list-style: none; }
.sdm-notes__item {
  display: grid;
  grid-template-columns: 120px 140px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--sdm-line);
  margin: 0;
}
.sdm-notes__date { font-size: 15px; color: #5B6270; }
.sdm-notes__item a { font-size: 17px; font-weight: 500; color: var(--sdm-ink); text-decoration: none; }
.sdm-notes__item a:hover { color: var(--sdm-accent); }

/* ---------- つくっている人 ---------- */
.sdm-about-wrap { padding-bottom: 88px; }
.sdm-about {
  background: var(--sdm-ink);
  color: #fff;
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}
.sdm-about .sdm-h2 { color: #fff; font-size: 30px; margin-bottom: 14px; }
.sdm-about p { color: #E4E9F2; margin: 0; }
.sdm-about__cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

/* ---------- スマホ ---------- */
@media (max-width: 834px) {
  .sdm-section { padding: 48px 0; }
  .sdm-inner { padding: 0 16px; }
  .sdm-h2 { font-size: 26px; }
  .sdm-hero { padding: 40px 0 48px; }
  .sdm-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .sdm-hero h1 { font-size: 30px; }
  .sdm-hero p { font-size: 15px; }
  .sdm-btn-row { flex-direction: column; }
  .sdm-btn { width: 100%; }
  .sdm-hero__shots { gap: 12px; }
  .sdm-apps__head { flex-direction: column; align-items: flex-start; }
  .sdm-apps__grid { grid-template-columns: 1fr; gap: 14px; }
  .sdm-app-card { padding: 16px; gap: 16px; border-radius: 18px; align-items: center; }
  .sdm-app-card__icon { width: 72px !important; height: 72px !important; border-radius: 16px; }
  .sdm-app-card__name { font-size: 18px; margin-bottom: 4px; }
  .sdm-app-card__desc { font-size: 13px; margin-bottom: 6px; }
  .sdm-notes__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sdm-notes__item { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .sdm-notes__item a { font-size: 16px; }
  .sdm-about { grid-template-columns: 1fr; padding: 28px 24px; gap: 20px; }
  .sdm-about__cta .sdm-btn { width: 100%; }
}


/* ==========================================================
   作品詳細ページ用CSS
   貼り付け先: 子テーマの style.css の末尾
   ※ 先に配布した sdm-style.css（共通部品・変数）が入っていることが前提です
   ========================================================== */

.sdm-detail h1,
.sdm-detail h2,
.sdm-detail h3 { border: 0; background: none; padding: 0; }

/* ---------- ストアボタン ---------- */
.sdm-btn--store {
  background: var(--sdm-ink);
  color: #fff !important;
  border-radius: 12px;
  min-height: 56px;
}
.sdm-btn--store:hover { background: #111A2E; }
.sdm-btn--sub {
  border: 2px solid var(--sdm-ink);
  color: var(--sdm-ink) !important;
  border-radius: 12px;
  min-height: 56px;
}
.sdm-btn--sub:hover { background: var(--sdm-ink); color: #fff !important; }

/* ---------- アプリの顔 ---------- */
.sdm-app-head { padding: 40px 0 64px; }
.sdm-app-head__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}
.sdm-app-head__title { display: flex; gap: 24px; align-items: center; margin-bottom: 24px; }
.sdm-app-head__icon {
  width: 120px !important;
  height: 120px !important;
  flex-shrink: 0;
  border-radius: 27px;
  object-fit: cover;
}
.sdm-app-head h1 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.3;
  margin: 0 0 8px;
}
.sdm-app-head__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.sdm-app-head__catch { font-size: 20px; font-weight: 500; line-height: 1.7; margin: 0 0 24px; }
.sdm-app-head__meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--sdm-line);
  font-size: 14px;
  color: #5B6270;
}
.sdm-app-head__main img { width: 100%; height: auto; border-radius: 28px; display: block; }

/* ---------- セクション共通（詳細用は少し詰める） ---------- */
.sdm-detail .sdm-section { padding: 64px 0; }
.sdm-detail .sdm-h2 { font-size: 28px; margin-bottom: 28px; }

/* ---------- スクリーンショット ---------- */
.sdm-shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.sdm-shots img { width: 100%; height: auto; border-radius: 24px; display: block; }

/* ---------- 主な機能 ---------- */
.sdm-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sdm-feature {
  padding: 28px;
  border: 1px solid var(--sdm-line);
  border-radius: 20px;
  background: var(--sdm-card);
}
.sdm-feature__no {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--sdm-accent);
  line-height: 1.2;
  margin-bottom: 12px;
}
.sdm-feature h3 { font-size: 20px; font-weight: 700; line-height: 1.4; margin: 0 0 12px; }
.sdm-feature p { font-size: 15px; line-height: 1.8; color: var(--sdm-muted); margin: 0; }

/* ---------- FAQ と 更新履歴（2列） ---------- */
.sdm-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: start; }

.sdm-faq { border-top: 1px solid var(--sdm-line); }
.sdm-faq details { border-bottom: 1px solid var(--sdm-line); padding: 4px 0; }
.sdm-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 32px 16px 0;
  font-size: 16px;
  font-weight: 700;
  position: relative;
  min-height: 24px;
}
.sdm-faq summary::-webkit-details-marker { display: none; }
.sdm-faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 22px;
  font-weight: 400;
  color: var(--sdm-accent);
}
.sdm-faq details[open] summary::after { content: '−'; }
.sdm-faq details p { margin: 0 0 16px; font-size: 15px; line-height: 1.8; color: var(--sdm-muted); }

.sdm-history { border-top: 1px solid var(--sdm-line); margin: 0; padding: 0; list-style: none; }
.sdm-history li {
  display: grid;
  grid-template-columns: 90px 110px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  margin: 0;
  border-bottom: 1px solid var(--sdm-line);
  font-size: 15px;
  line-height: 1.7;
}
.sdm-history__ver { font-weight: 700; }
.sdm-history__date { color: #5B6270; }
.sdm-history__note { color: var(--sdm-muted); }

/* ---------- サポート帯 ---------- */
.sdm-support-wrap { padding-bottom: 0; }
.sdm-support {
  background: var(--sdm-ink);
  color: #fff;
  border-radius: 24px;
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.sdm-support h2 { color: #fff; font-size: 24px !important; margin: 0 0 8px !important; }
.sdm-support p { margin: 0; color: #E4E9F2; font-size: 15px; }
.sdm-support__btns { display: flex; gap: 12px; flex-shrink: 0; }
.sdm-btn--outline-white { border-color: #fff; color: #fff !important; }
.sdm-btn--outline-white:hover { background: #fff; color: var(--sdm-ink) !important; }

/* ---------- ほかの作品 ---------- */
.sdm-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sdm-related a {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--sdm-line);
  border-radius: 18px;
  background: var(--sdm-card);
  color: var(--sdm-ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
}
.sdm-related a:hover { border-color: var(--sdm-accent); }
.sdm-related img { width: 64px !important; height: 64px !important; border-radius: 14px; flex-shrink: 0; object-fit: cover; }

/* ---------- スマホ ---------- */
@media (max-width: 834px) {
  .sdm-app-head { padding: 24px 0 40px; }
  .sdm-app-head__grid { grid-template-columns: 1fr; gap: 28px; }
  .sdm-app-head__title { gap: 16px; margin-bottom: 20px; }
  .sdm-app-head__icon { width: 88px !important; height: 88px !important; border-radius: 20px; }
  .sdm-app-head h1 { font-size: 26px; }
  .sdm-app-head__catch { font-size: 17px; }
  .sdm-app-head .sdm-btn-row { flex-direction: column; }
  .sdm-app-head .sdm-btn { width: 100%; }
  .sdm-app-head__meta { flex-direction: column; gap: 4px; font-size: 13px; }

  .sdm-detail .sdm-section { padding: 40px 0; }
  .sdm-detail .sdm-h2 { font-size: 22px; margin-bottom: 20px; }

  /* スクリーンショットは横スワイプ */
  .sdm-shots {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .sdm-shots img { width: 200px; flex-shrink: 0; scroll-snap-align: start; border-radius: 20px; }

  .sdm-features { grid-template-columns: 1fr; gap: 14px; }
  .sdm-feature { padding: 20px; border-radius: 16px; }
  .sdm-feature__no { font-size: 26px; margin-bottom: 6px; }
  .sdm-feature h3 { font-size: 17px; margin-bottom: 6px; }
  .sdm-feature p { font-size: 14px; }

  .sdm-two { grid-template-columns: 1fr; gap: 40px; }
  .sdm-history li { grid-template-columns: 1fr; gap: 2px; padding: 16px 0; }

  .sdm-support { flex-direction: column; align-items: stretch; padding: 28px 24px; gap: 20px; }
  .sdm-support h2 { font-size: 20px !important; }
  .sdm-support__btns { flex-direction: column; }
  .sdm-support__btns .sdm-btn { width: 100%; }

  .sdm-related { grid-template-columns: 1fr; gap: 14px; }
  .sdm-related a { padding: 14px; font-size: 16px; }
  .sdm-related img { width: 56px !important; height: 56px !important; }
}
