/*
Theme Name: スダチサービスサイトテーマ
Theme URI: https://example.com/
Author: Sudachi
Author URI: https://example.com/
Description: 最小構成のWordPressテーマ
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sudachi-service-theme
*/

/* デザインシステム: フォント/カラーの共通変数 */
:root {
  /* ブランドカラー */
  --brand-white: #ffffff;
  --brand-black: #282828;
  --brand-gray-dark: #414141;
  --brand-gray: #e6e6e6;
  --brand-orange: #f9c066;

  /* セマンティック */
  --color-text: var(--brand-black);
  --color-muted: var(--brand-gray-dark);
  --color-border: var(--brand-black);
  --color-border-soft: #bdbdbd;
  --color-surface: var(--brand-gray);
  --color-ink: var(--brand-black);
  --color-accent: var(--brand-orange);

  /* タイポグラフィ（フォント） */
  --font-gothic: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-mincho: "ten-mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-title: var(--font-mincho);

  /* タイポグラフィ（ウェイト: Noto Sans JP） */
  --weight-gothic-demilight: 300;
  --weight-gothic-regular: 400;
  --weight-gothic-medium: 500;
  --weight-gothic-bold: 700;

  /* タイポグラフィ（ウェイト: ten-mincho） */
  --weight-mincho-regular: 400;

  /* タイポグラフィ（スタイル: ten-mincho） */
  --font-style-mincho-regular: normal;
  --font-style-mincho-italic: italic;

  /* タイポグラフィ（サイズ・SP/共通） */
  --font-size-base: 15px;
  --h1-size: 30px;
  --h2-size: 19px;
  --h3-size: 16px;
  --page-title-size: 40px;
  --page-sub-title-size: 19px;
}

/* リセット: すべての要素をborder-boxに統一 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ページ内リンク: アンカー移動を滑らかにする */
html {
  scroll-behavior: smooth;
}

/* ベース: 本文の書体/色/行間 */
body {
  margin: 0;
  font-family: var(--font-gothic);
  font-size: var(--font-size-base);
  font-weight: var(--weight-gothic-demilight);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--color-text);
  background: var(--brand-white);
  line-height: 1.8;
}

h1 {
  font-family: var(--font-title);
  font-size: var(--h1-size);
  font-weight: var(--weight-mincho-regular);
  line-height: 1.3;
}

h2 {
  font-family: var(--font-gothic);
  font-size: var(--h2-size);
  font-weight: var(--weight-gothic-medium);
  line-height: 1.4;
}

h3 {
  font-family: var(--font-gothic);
  font-size: var(--h3-size);
  font-weight: var(--weight-gothic-medium);
  line-height: 1.4;
}

@media (min-width: 768px) {
  :root {
    /* タイポグラフィ（サイズ・PC） */
    --h1-size: 40px;
    --h2-size: 24px;
    --h3-size: 19px;
    --page-title-size: 80px;
    --page-sub-title-size: 40px;
  }
}

/* 画像: レイアウトのはみ出し防止 */
img {
  max-width: 100%;
  display: block;
}

/* リンク: デザインに合わせた色継承 */
a {
  color: inherit;
  text-decoration: none;
}

/* Contact Form 7 の reCAPTCHA バッジは通常ページで非表示。
   問い合わせページを作る場合だけ、そのページ専用 CSS で再表示する。 */
.grecaptcha-badge {
  visibility: hidden;
}

/* レイアウト: センター寄せの共通コンテナ */
.container {
  width: calc(100% - 70px);
  margin: 0 auto;
}

/* レイアウト: 画面幅いっぱいの横端回避コンテナ */
.container-wide {
  width: 100%;
  padding: 0 5%;
}

@media (min-width: 768px) {
  /* 共通コンテナ: PCは従来の可変余白 */
  .container {
    width: min(1200px, 90vw);
  }

  /* 横端回避コンテナ: PCの余白 */
  .container-wide {
    padding: 0 10%;
  }
}

/* ボタン: 共通の基本スタイル */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease;
}

/* ボタン: 矢印付きパターン */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 22px 10px 29px;
  font-weight: var(--weight-gothic-demilight);
  font-size: 15px;
}

.btn-arrow::after {
  content: "";
  width: 18px;
  height: 18px;
  background: url("assets/arrow-right.webp") no-repeat center / contain;
  flex-shrink: 0;
}

/* ボタン: ホバー時の浮き上がり */
.btn:hover {
  transform: translateY(-1px);
}

/* ボタン: 2行表示に対応した行間 */
.btn-multiline {
  display: inline-block;
  text-align: center;
  line-height: 1.4;
}

/* ボタン: 枠線タイプ */
.btn-outline {
  border-color: var(--color-border);
  background: var(--brand-white);
  color: var(--color-text);
}

/* ボタン: ダーク塗り */
.btn-dark {
  background: var(--brand-black);
  color: var(--brand-white);
}

/* ボタン: アクセントカラー塗り */
.btn-accent {
  background: var(--brand-orange);
  color: var(--brand-black);
}

/* ボタン: CTA */
.btn-cta {
  background: var(--brand-orange);
  color: var(--brand-black);
  width: 240px;
  height: 68px;
  padding: 0 18px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: var(--weight-gothic-medium);
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 768px) {
  /* ボタン: CTA（PC） */
  .btn-cta {
    width: 268px;
    height: 82px;
    font-size: 19px;
    line-height: 1.33;
  }
}

/* アイコン: 折り紙モチーフのサイズ */
.origami-icon {
  width: 42px;
  height: 26px;
  display: inline-block;
}

/* アイコン: 折り紙の線スタイル */
.origami-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

/* 強調: テキスト下のハイライト */
.highlight {
  position: relative;
  display: inline-block;
  padding: 0 6px;
  z-index: 0;
}

/* 強調: ハイライトの塗り */
.highlight::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0;
  height: 0.6em;
  background: var(--brand-orange);
  z-index: -1;
  transform: skewX(-12deg);
}
