@charset "utf-8";

/* =============================================================
   オキナワ経理 — 子テーマ独自スタイル

   デザインは「D案 白と黒」（2026-09-26 決定）。白と黒を基調に、
   読みやすさを最優先する。参考は garni.co.jp だが、あちらの 11〜12px の
   本文はまねせず、本文 16px 以上・見出しは日本語を主にする。
     - 入力欄は 16px 未満にしない（iOS Safari が自動ズームするため）
     - タップ領域は最低 48px、主要ボタンは 52px
   ============================================================= */

:root {
  --ok-tap: 48px;   /* タップ領域の最小高 */
  --ok-btn: 52px;   /* 主要ボタンの高さ */
  --ok-radius: 0;
  --ok-line: #dadada;
  --ok-ink: #111111;
  --ok-text: #333333;  /* 本文。真っ黒より長文で疲れにくい */
  --ok-sub: #555555;   /* 補足。白地で 7:1 を確保 */
  --ok-focus: rgba(17, 17, 17, 0.12);
  --ok-focus-border: #111111;
  --ok-font-ja: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --ok-font-en: "Hanken Grotesk", var(--ok-font-ja);
}

/* 親テーマの基準文字サイズは 14px。日本語本文としてスマートフォンでは小さい。
   ルート(rem)は変えず body 側だけ引き上げ、rem 基準の寸法には影響させない。 */
@media (max-width: 767.98px) {
  body {
    font-size: 16px;
  }
}

/* 日本語を文節単位で折り返す（対応ブラウザのみ） */
h1, h2, h3, h4 {
  word-break: auto-phrase;
}

/* -------------------------------------------------------------
   お問い合わせフォーム（Contact Form 7）
   ------------------------------------------------------------- */
.wpcf7-form p {
  margin-bottom: 20px;
  line-height: 1.7;
}

/* 16px 未満にすると iOS Safari がフォーカス時に画面を拡大してしまう */
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
  font-size: 16px !important;
  line-height: 1.6;
  width: 100%;
  min-height: var(--ok-tap);
  padding: 12px 14px;
  border: 1px solid var(--ok-line);
  border-radius: var(--ok-radius);
  background-color: #fff;
  color: var(--ok-ink);
  -webkit-appearance: none;
  appearance: none;
}

.wpcf7 textarea {
  min-height: 180px;
  height: 200px;
  resize: vertical;
}

@media (min-width: 768px) {
  .wpcf7 textarea { height: 240px; }
}

/* appearance:none で消えるネイティブの矢印を描き直す */
.wpcf7 select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231f2933' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--ok-focus-border);
  box-shadow: 0 0 0 3px var(--ok-focus);
}

/* 同意チェックボックス: ラベル全体をタップ領域にする */
.wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: var(--ok-tap);
  padding: 10px 0;
  cursor: pointer;
}

.wpcf7-acceptance input[type="checkbox"] {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
}

.wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 15px;
  line-height: 1.6;
  padding-top: 2px;
}

/* 送信ボタン
   親テーマが input[type="submit"] で font-size を指定しているため、
   同等以上の詳細度になるようセレクタを組み合わせる。 */
input[type="submit"].wpcf7-submit {
  display: block;
  width: 100%;
  min-height: var(--ok-btn);
  padding: 14px 24px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--ok-radius);
  cursor: pointer;
}

input[type="submit"].wpcf7-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  input[type="submit"].wpcf7-submit {
    width: auto;
    min-width: 280px;
  }
}

/* エラー表示を見落とさない大きさにする */
.wpcf7 .wpcf7-not-valid-tip {
  font-size: 15px;
  margin-top: 6px;
}

.wpcf7 .wpcf7-response-output {
  font-size: 15px;
  line-height: 1.7;
  padding: 14px 16px;
  border-radius: var(--ok-radius);
}

/* -------------------------------------------------------------
   画像
   ------------------------------------------------------------- */
.entry-body img {
  max-width: 100%;
  height: auto;
}

/* =============================================================
   サイト全体（D案 白と黒）
   ============================================================= */
body {
  font-family: var(--ok-font-ja);
  color: var(--ok-ink);
  background: #fff;
}

/* 横幅いっぱいの帯（.ok-band）で横スクロールを出さない */
.site-body {
  overflow-x: clip;
}

/* ---- ヘッダー ---- */
.site-header {
  background: #fff;
  box-shadow: none;
  border-bottom: 1px solid var(--ok-line);
}

.site-header-logo a {
  color: var(--ok-ink);
  text-decoration: none;
}

.site-header-logo a > span {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--ok-ink);
}

.global-nav-list > li > a {
  color: var(--ok-ink);
}

.global-nav-list > li .global-nav-name {
  font-size: 15px;
  font-weight: 700;
}

/* 親テーマが現在地に付ける下線を消す（ページ内リンクばかりで意味を持たないため） */
.global-nav-list > li > a::after {
  display: none;
}

/* お問い合わせだけ黒いボタンにする（メニュー項目に ok-nav-cta クラス） */
@media (min-width: 992px) {
  .global-nav-list > li.ok-nav-cta > a {
    background: var(--ok-ink);
    color: #fff;
    padding-left: 28px;
    padding-right: 28px;
  }
  .global-nav-list > li.ok-nav-cta > a:hover {
    background: #333;
  }
}

/* ---- 下層ページの見出し
   トップの各セクションと同じく「大きな英字＋日本語」。英字は固定ページの
   カスタムフィールド ok_title_en から functions.php で差し込む。 ---- */
.page-header {
  background: #fff;
  color: var(--ok-ink);
  text-align: left;
  padding: 64px 0 36px;
}

.page-header .page-header-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  color: var(--ok-ink);
}

.ok-ph-en {
  font-family: var(--ok-font-en);
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ok-ph-ja {
  font-size: 15px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .page-header {
    padding: 104px 0 48px;
  }
  .page-header .page-header-title {
    gap: 12px 28px;
  }
  .ok-ph-ja {
    font-size: 18px;
  }
}

/* ---- フッター ---- */
.site-footer {
  background: #fff;
  color: var(--ok-sub);
  border-top: 1px solid var(--ok-line);
}

.site-footer .footer-nav-list a,
.site-footer a {
  color: var(--ok-sub);
}

.site-footer-copyright p {
  font-size: 14px;
}

/* =============================================================
   固定ページ本文（.ok-page 以下）。トップページと各下層ページで共用
   ============================================================= */
.ok-page {
  color: var(--ok-ink);
  font-size: 16px;
}

/* 親テーマの本文装飾（見出しの線・余白）を打ち消す */
.entry-body .ok-page h2,
.entry-body .ok-page h3,
.entry-body .ok-page p,
.entry-body .ok-page ul,
.entry-body .ok-page ol,
.entry-body .ok-page dl,
.entry-body .ok-page dd {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.entry-body .ok-page h2::before,
.entry-body .ok-page h2::after,
.entry-body .ok-page h3::before,
.entry-body .ok-page h3::after {
  display: none;
}

.entry-body .ok-page ul,
.entry-body .ok-page ol {
  list-style: none;
}

.entry-body .ok-page li {
  margin: 0;
}

.ok-page a {
  color: var(--ok-ink);
}

.ok-sp-only {
  display: inline;
}

/* ---- ボタン ---- */
.ok-page .ok-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 60px;
  padding: 0 24px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.ok-page .ok-btn--solid {
  background: var(--ok-ink);
  color: #fff;
}

.ok-page .ok-btn--solid:hover {
  background: #333;
  color: #fff;
}

/* 四隅のかぎ括弧 */
.ok-page .ok-btn--bracket {
  position: relative;
  justify-content: center;
  min-width: 300px;
  min-height: 76px;
}

.ok-page .ok-btn--bracket::before,
.ok-page .ok-btn--bracket::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 20px;
  border: 0 solid var(--ok-ink);
  transition: width 0.2s, height 0.2s;
}

.ok-page .ok-btn--bracket::before {
  left: 0;
  top: 0;
  border-top-width: 2px;
  border-left-width: 2px;
}

.ok-page .ok-btn--bracket::after {
  right: 0;
  bottom: 0;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.ok-page .ok-btn--bracket:hover::before,
.ok-page .ok-btn--bracket:hover::after {
  width: 44px;
  height: 28px;
}

.ok-page .ok-btn:focus-visible {
  outline: 3px solid var(--ok-ink);
  outline-offset: 3px;
}

/* ---- 見出し（大きな英字＋日本語） ---- */
.ok-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 28px;
}

.entry-body .ok-page .ok-heading__en {
  font-family: var(--ok-font-en);
  font-size: clamp(56px, 8.5vw, 112px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: inherit;
}

.entry-body .ok-page .ok-heading__ja {
  font-size: 15px;
  font-weight: 700;
}

/* ---- ファーストビュー ---- */
.ok-hero {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 72px 0 88px;
}

.entry-body .ok-page .ok-eyebrow {
  font-family: var(--ok-font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.entry-body .ok-page .ok-hero__title {
  font-size: clamp(36px, 6.2vw, 80px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  word-break: auto-phrase;
}

.entry-body .ok-page .ok-hero__lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--ok-text);
  max-width: 640px;
}

/* ---- 各セクション ---- */
.ok-section {
  padding-bottom: 96px;
}

.ok-services {
  border-top: 1px solid var(--ok-ink);
}

.ok-page a.ok-service {
  color: var(--ok-ink);
  text-decoration: none;
  transition: background-color 0.2s;
}

.ok-page a.ok-service:hover {
  background: #f5f5f5;
}

.ok-page a.ok-service:hover .ok-service__title {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.ok-service {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--ok-line);
}

.entry-body .ok-page .ok-service__no {
  font-family: var(--ok-font-en);
  font-size: 15px;
  font-weight: 600;
}

.entry-body .ok-page .ok-service__title {
  font-size: 22px;
  font-weight: 700;
}

.entry-body .ok-page .ok-service__text {
  flex-basis: 100%;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ok-text);
}

/* ---- 黒い帯（お預かりする資料） ---- */
.ok-band {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 96px;
  background: var(--ok-ink);
  color: #fff;
}

.ok-band__inner {
  box-sizing: border-box;
  /* 親テーマの .container（最大1140px・左右15px）と左右の端をそろえる */
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 15px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ok-band__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.entry-body .ok-page .ok-band__lead {
  font-size: 16px;
  line-height: 1.9;
  color: #cfcfcf;
}

.ok-materials li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-top: 1px solid #555;
}

.ok-materials li:first-child {
  border-top-color: #fff;
}

.ok-materials li:last-child {
  border-bottom: 1px solid #555;
}

.ok-materials__name {
  font-size: 20px;
  font-weight: 500;
}

.ok-materials__form {
  font-size: 14px;
  color: #cfcfcf;
}

/* ---- ご依頼の流れ ---- */
.ok-flow li {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--ok-line);
}

.ok-flow li:first-child {
  border-top-color: var(--ok-ink);
}

.ok-flow li:last-child {
  border-bottom: 1px solid var(--ok-line);
}

.ok-flow__no {
  flex: 0 0 28px;
  font-family: var(--ok-font-en);
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
}

.entry-body .ok-page .ok-flow__title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
}

.entry-body .ok-page .ok-flow__text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ok-text);
}

/* ---- 事業者情報 ---- */
.ok-profile {
  border-top: 1px solid var(--ok-ink);
}

.ok-profile > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ok-line);
}

.ok-profile dt {
  font-size: 14px;
  font-weight: 700;
}

.entry-body .ok-page .ok-profile dd {
  font-size: 16px;
  line-height: 1.7;
}

.ok-profile__kana {
  margin-left: 8px;
  font-size: 13px;
  color: var(--ok-sub);
}

/* ---- お問い合わせへの誘導 ---- */
.ok-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 72px 0 96px;
  border-top: 1px solid var(--ok-ink);
  text-align: center;
}

.entry-body .ok-page .ok-contact .ok-heading__en {
  font-size: clamp(64px, 10.5vw, 136px);
}

.entry-body .ok-page .ok-contact__lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ok-text);
}

/* ---- タブレット以上 ---- */
@media (min-width: 768px) {
  .ok-sp-only {
    display: none;
  }
  .ok-hero {
    padding: 120px 0 136px;
    gap: 44px;
  }
  .entry-body .ok-page .ok-eyebrow {
    font-size: 16px;
  }
  .entry-body .ok-page .ok-hero__lead {
    font-size: 19px;
    line-height: 2;
  }
  .ok-section {
    padding-bottom: 144px;
  }
  .ok-heading {
    margin-bottom: 56px;
    gap: 12px 28px;
  }
  .entry-body .ok-page .ok-heading__ja {
    font-size: 18px;
  }
  .ok-service {
    display: grid;
    grid-template-columns: 1fr 4fr 7fr;
    column-gap: 24px;
    padding: 44px 0;
  }
  .entry-body .ok-page .ok-service__no {
    font-size: 18px;
  }
  .entry-body .ok-page .ok-service__title {
    font-size: 28px;
  }
  .entry-body .ok-page .ok-service__text {
    font-size: 18px;
  }
  .ok-band {
    margin-bottom: 144px;
  }
  .ok-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
  .ok-flow li,
  .ok-flow li:last-child {
    flex-direction: column;
    gap: 16px;
    padding: 28px 0 0;
    border-top: 1px solid var(--ok-ink);
    border-bottom: 0;
  }
  .ok-flow__no {
    font-size: 56px;
    flex-basis: auto;
  }
  .entry-body .ok-page .ok-flow__title {
    font-size: 22px;
    margin-bottom: 16px;
  }
  .ok-profile > div {
    display: grid;
    grid-template-columns: 2fr 5fr;
    padding: 24px 0;
  }
  .ok-profile dt,
  .entry-body .ok-page .ok-profile dd {
    font-size: 18px;
  }
  .ok-contact {
    padding: 120px 0 144px;
    gap: 28px;
  }
  .entry-body .ok-page .ok-contact__lead {
    font-size: 19px;
  }
}

/* ---- パソコン ---- */
@media (min-width: 992px) {
  .ok-band__inner {
    display: grid;
    grid-template-columns: 5fr 1fr 6fr;
    padding-top: 120px;
    padding-bottom: 120px;
  }
  .ok-band__head {
    gap: 24px;
  }
  .ok-materials {
    grid-column: 3;
  }
  .ok-materials li {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    padding: 26px 0;
  }
  .ok-materials__name {
    font-size: 26px;
  }
  .ok-materials__form {
    font-size: 15px;
  }
  .ok-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ページ内リンクの飛び先が固定ヘッダーに隠れないようにする */
.ok-page [id] {
  scroll-margin-top: 96px;
}

/* スマホのメニューボタンをタップしやすい大きさに（親テーマは 34px） */
.vk-mobile-nav-menu-btn {
  width: 44px;
  height: 44px;
  border-color: var(--ok-ink);
  background-size: 26px;
}

/* ---- 下層ページの導入文 ---- */
.entry-body .ok-page .ok-intro {
  padding: 8px 0 64px;
  font-size: 18px;
  line-height: 2;
  color: var(--ok-text);
  max-width: 820px;
}

/* ---- 「詳しく見る」リンク（小さなかぎ括弧） ---- */
.entry-body .ok-page .ok-more-wrap {
  margin-top: 32px;
}

.entry-body .ok-page .ok-more-wrap--center {
  margin: 0 0 96px;
  text-align: center;
}

.ok-page .ok-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ok-ink);
  text-decoration: none;
}

.ok-page .ok-more::before,
.ok-page .ok-more::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 12px;
  border: 0 solid currentColor;
  transition: width 0.2s, height 0.2s;
}

.ok-page .ok-more::before {
  left: 0;
  top: 0;
  border-top-width: 2px;
  border-left-width: 2px;
}

.ok-page .ok-more::after {
  right: 0;
  bottom: 0;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.ok-page .ok-more:hover::before,
.ok-page .ok-more:hover::after {
  width: 28px;
  height: 18px;
}

.ok-page .ok-more:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .entry-body .ok-page .ok-intro {
    padding-bottom: 96px;
    font-size: 20px;
  }
  .entry-body .ok-page .ok-more-wrap--center {
    margin-bottom: 144px;
  }
}

/* サービスのドロップダウン。親テーマは 12px で小さい */
.global-nav-list .sub-menu a {
  font-size: 15px;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* ---- 1カラムの読み物ページ（お問い合わせ・プライバシーポリシー）
   横幅いっぱいだと1行が長すぎて読みにくいので、本文を 760px までに収める ---- */
.page-id-7 .entry-body,
.page-id-3 .entry-body {
  max-width: 760px;
}

.entry-body .ok-form-lead {
  margin-bottom: 32px;
  font-size: 17px;
  line-height: 1.9;
}

/* 日本語を文節単位で折り返す（対応ブラウザのみ） */
.ok-page p {
  word-break: auto-phrase;
}

/* 事業者情報の電話番号（スマホではタップで発信）。押せると分かるよう下線を付ける */
.ok-profile a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
