/*
Theme Name: ohayo
Theme URI: https://ohayoventuresltd.com
Author: OHAYO VENTURES LTD
Description: OHAYO VENTURES LTD(ブコメロスキル高等学校)のためのオリジナルテーマ。文字・数字・画像は「外観 → カスタマイズ → OHAYO サイト設定」から変更できます。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: ohayo
*/

/* ===== 色の設定(ここを変えると全体の色が変わります) ===== */
:root {
  --dark-green: #10241A;
  --green: #1F4D36;
  --green-hover: #123222;
  --yellow: #F2B705;
  --black: #151515;
  --beige: #F6F4EF;
  --white: #FFFFFF;
  --line: #E6E2DA;
  --line-dark: #D6D1C7;
  --text: #3A3A36;
  --text-light: #4A4A45;
  --text-muted: #5A5A55;
  --green-panel: #2A3D33;
  --hero-dark: #2A2A27;
  --mint-text: #E3EEE7;
  --footer-text: #E9E6DF;
  --footer-muted: #C9C4B8;
  --placeholder: #DCD8D0;
}

/* ===== 基本 ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
}
h1, h2, h3 { margin: 0; padding: 0; font-size: inherit; line-height: 1.3; color: inherit; }
p { margin: 0; padding: 0; }
figure { margin: 0; }
blockquote { margin: 0; padding: 0; font-style: normal; }
ul, ol { margin: 0; }
table { margin: 0; border: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-hover); }
button, input, select, textarea { font-family: inherit; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
  background: var(--yellow); color: var(--black); padding: 12px 20px; border-radius: 999px; font-weight: 700;
}

/* ===== 共通パーツ ===== */
.oh-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.oh-ph {
  background: var(--placeholder); color: #3B3832; display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 14px; letter-spacing: .04em; border: 1px dashed #8C877D; padding: 12px;
}
.oh-img { display: block; width: 100%; object-fit: cover; }
.oh-eb {
  font-family: 'Archivo', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--green); margin: 0 0 12px;
}
.oh-h2 { font-family: 'Archivo', 'Noto Sans JP', sans-serif; font-size: 40px; line-height: 1.2; font-weight: 800; margin: 0 0 16px; }
.oh-lead { font-size: 17px; line-height: 1.9; color: var(--text); margin: 0; }
.oh-btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 15px; cursor: pointer;
}
.oh-by, .oh-by:hover { background: var(--yellow); color: var(--black); }
.oh-bd, .oh-bd:hover { background: var(--black); color: var(--white); }
.oh-bw, .oh-bw:hover { border: 2px solid var(--white); color: var(--white); }
.oh-nl, .oh-nl:hover { color: var(--black); text-decoration: none; }
.oh-fl, .oh-fl:hover { color: var(--footer-text); text-decoration: none; }
.oh-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.oh-sub, .oh-sub:hover {
  color: var(--black); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid var(--line-dark); background: var(--white);
}
.oh-amt {
  min-height: 56px; border-radius: 12px; border: 2px solid var(--line-dark); background: var(--white); font-size: 18px;
  font-weight: 700; font-family: 'Archivo', 'Noto Sans JP', sans-serif; cursor: pointer; color: var(--black);
}
.oh-amt.is-active { border-color: var(--green); background: #EEF4F0; }
.oh-freq { min-height: 44px; border-radius: 999px; border: none; background: transparent; color: var(--black); font-weight: 700; font-size: 15px; cursor: pointer; }
.oh-freq.is-active { background: var(--black); color: var(--white); }
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
summary { font-size: 17px; font-weight: 700; cursor: pointer; }
.oh-table th, .oh-table td { text-align: left; padding: 18px 16px; border-bottom: 1px solid var(--line); font-size: 15px; white-space: nowrap; }
.oh-fld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.oh-fld input, .oh-fld select, .oh-fld textarea {
  min-height: 48px; border-radius: 12px; border: 1px solid var(--line-dark); padding: 0 16px; font-size: 16px; background: var(--white);
}
.oh-tab {
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-dark); background: var(--white);
  font-size: 15px; font-weight: 500; cursor: pointer; color: var(--black);
}
.oh-tab.is-active { background: var(--black); color: var(--white); border-color: var(--black); }
.oh-prod { display: flex; flex-direction: column; gap: 6px; }
.oh-add, .oh-add:hover {
  min-height: 44px; border-radius: 999px; border: 2px solid var(--black); background: var(--white); font-weight: 700;
  font-size: 14px; cursor: pointer; margin-top: 8px; color: var(--black); display: flex; align-items: center; justify-content: center;
}

/* ===== ヘッダー ===== */
.oh-header { background: var(--white); border-bottom: 1px solid var(--line); }
.oh-topbar { background: var(--black); color: var(--white); font-size: 13px; }
.oh-topbar a { color: var(--white); }
.oh-topbar a.is-off { color: #BDB8AE; }
.oh-headrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.oh-logo { display: flex; align-items: center; min-height: 48px; }
.oh-logo img { max-height: 48px; width: auto; display: block; }
.oh-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; font-weight: 500; }
.oh-nav a { color: var(--black); }
.oh-nav .current-menu-item > a, .oh-nav .current_page_item > a, .oh-nav .current_page_parent > a, .oh-nav a.is-current {
  color: var(--green); text-decoration: underline;
}
.oh-headact { display: flex; gap: 12px; align-items: center; }
.oh-cart { white-space: nowrap; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.oh-menu-btn {
  display: none; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line-dark); background: var(--white);
  cursor: pointer; align-items: center; justify-content: center; padding: 0;
}
.oh-menu-btn span, .oh-menu-btn span::before, .oh-menu-btn span::after {
  display: block; width: 20px; height: 2px; background: var(--black); position: relative; content: ''; transition: transform .2s;
}
.oh-menu-btn span::before { position: absolute; top: -6px; }
.oh-menu-btn span::after { position: absolute; top: 6px; }
.oh-menu-btn[aria-expanded="true"] span { background: transparent; }
.oh-menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.oh-menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ===== フッター ===== */
.oh-footer { background: var(--dark-green); color: var(--footer-text); }
.oh-footer .oh-ph { background: var(--green-panel); color: var(--footer-text); border-color: #6E7F75; }
.oh-footer-logo img { max-height: 48px; width: auto; display: block; }
.oh-footcol { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.oh-footcol ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.oh-footcol a { color: var(--footer-text); }
.oh-foothead { font-weight: 700; color: var(--yellow); margin-bottom: 4px; }
.oh-legal ul { list-style: none; margin: 0; padding: 0; display: inline; }
.oh-legal li { display: inline; }
.oh-legal li + li::before { content: ' ・ '; }
.oh-legal a { color: var(--footer-text); }

/* ===== ブログ ===== */
.oh-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.oh-card .oh-img, .oh-card .oh-ph { height: 200px; border: none; }
.oh-card-meta { font-size: 13px; color: var(--text-muted); }
.oh-card-title { font-size: 18px; font-weight: 700; margin-top: 8px; line-height: 1.5; color: var(--black); }
a.oh-card:hover .oh-card-title { color: var(--green); }
.oh-pager { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.oh-pager .page-numbers {
  min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-dark);
  display: inline-flex; align-items: center; justify-content: center; color: var(--black); font-weight: 500;
}
.oh-pager .page-numbers.current { background: var(--black); color: var(--white); border-color: var(--black); }
.oh-pager .page-numbers.dots { border: none; }

/* 記事本文 */
.oh-prose { font-size: 17px; line-height: 1.95; color: var(--text); }
.oh-prose > * + * { margin-top: 1.4em; }
.oh-prose h2 { font-size: 28px; font-weight: 800; color: var(--black); margin-top: 2.2em; line-height: 1.4; padding-left: 16px; border-left: 4px solid var(--yellow); }
.oh-prose h3 { font-size: 21px; font-weight: 700; color: var(--black); margin-top: 1.8em; line-height: 1.5; }
.oh-prose h4 { font-size: 18px; color: var(--black); margin: 1.6em 0 0; }
.oh-prose ul, .oh-prose ol { padding-left: 1.4em; }
.oh-prose li + li { margin-top: .4em; }
.oh-prose a { text-decoration: underline; }
.oh-prose img { border-radius: 12px; }
.oh-prose figure { margin-left: 0; margin-right: 0; }
.oh-prose figcaption { font-size: 14px; color: var(--text-muted); margin-top: 8px; text-align: center; }
.oh-prose blockquote { border-left: 4px solid var(--yellow); background: var(--beige); padding: 20px 24px; border-radius: 0 12px 12px 0; }
.oh-prose table { border-collapse: collapse; width: 100%; }
.oh-prose th, .oh-prose td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; }
.oh-prose .alignleft { float: left; margin: 0 24px 16px 0; }
.oh-prose .alignright { float: right; margin: 0 0 16px 24px; }
.oh-prose .aligncenter { margin-left: auto; margin-right: auto; display: block; }
.oh-prose .wp-block-image img { height: auto; }
.oh-prose::after { content: ''; display: block; clear: both; }
.oh-tags a { display: inline-block; font-size: 13px; padding: 6px 14px; border-radius: 999px; background: var(--beige); color: var(--black); margin: 0 6px 6px 0; }

/* ===== スマホ表示の調整 ===== */
@media (max-width: 900px) {
  .oh-menu-btn { display: inline-flex; }
  .oh-headrow { flex-wrap: nowrap; }
  .oh-logo { flex: 1 1 auto; min-width: 0; }
  .oh-menu-btn { flex: none; }
  .oh-headact { flex: none; gap: 8px; }
  .oh-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); z-index: 50;
  }
  .oh-nav.is-open { display: block; }
  .oh-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .oh-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .oh-headwrap { position: relative; }
}
@media (max-width: 700px) {
  h1 { font-size: 36px !important; }
  .oh-h2 { font-size: 28px !important; }
  section > .oh-wrap, section.oh-wrap { padding-top: 64px !important; padding-bottom: 64px !important; }
  form { padding: 24px !important; }
  .oh-nl-form { padding: 0 !important; }
  .oh-pad-lg { padding: 28px !important; }
  .oh-headact .oh-btn { padding: 0 18px; }
  .oh-ph[style*="inset:0"] { font-size: 0; }
  .oh-logo .oh-ph { width: 112px !important; }
  .oh-logo img { max-width: 140px; height: auto; }
  .oh-cart { font-size: 14px; }
  .oh-prose h2 { font-size: 23px; }
  .oh-prose .alignleft, .oh-prose .alignright { float: none; margin: 0 0 16px; }
}

/* ===== プラグインのフォーム(Contact Form 7 など)をデザインに合わせる ===== */
.oh-form-plugin input[type="text"], .oh-form-plugin input[type="email"], .oh-form-plugin input[type="tel"],
.oh-form-plugin input[type="number"], .oh-form-plugin select, .oh-form-plugin textarea {
  width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line-dark); padding: 10px 16px; font-size: 16px; background: var(--white);
}
.oh-form-plugin label { font-size: 14px; font-weight: 500; }
.oh-form-plugin p { margin: 0 0 18px; }
.oh-form-plugin input[type="submit"], .oh-nl-plugin input[type="submit"], .oh-nl-plugin button {
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: none; font-weight: 700; font-size: 15px; cursor: pointer;
  background: var(--black); color: var(--white);
}
.oh-nl-plugin input[type="submit"], .oh-nl-plugin button { background: var(--yellow); color: var(--black); }
.oh-nl-plugin input[type="email"], .oh-nl-plugin input[type="text"] {
  width: 100%; min-height: 48px; border-radius: 999px; border: none; padding: 0 20px; font-size: 15px;
}
.oh-nl-plugin p { margin: 0 0 12px; }
.oh-nl-plugin label { color: var(--white); font-size: 13px; }

/* コメント欄 */
.comment-list { list-style: none; padding: 0; }
.comment-respond textarea, .comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"] {
  width: 100%; border-radius: 12px; border: 1px solid var(--line-dark); padding: 12px 16px; font-size: 16px;
}
.comment-respond .submit { min-height: 48px; padding: 0 26px; border-radius: 999px; border: none; background: var(--black); color: var(--white); font-weight: 700; cursor: pointer; }
.oh-nl-plugin form, .oh-form-plugin form { padding: 0 !important; }
