/*
Theme Name: 1ask Theme
Theme URI: https://1asklocal.local
Author: 1ask
Author URI: https://1asklocal.local
Description: 1ask サービスサイト用のオリジナルテーマ。親テーマに依存せず単体で動作する。
Version: 2.0.0
Requires at least: 5.6
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 1ask-theme
Tags: custom-colors, custom-menu, custom-logo, blog
*/

/* =============================================================
   ベーススタイル（全ページ共通）

   旧バージョンは Twenty Twenty-One の子テーマで、リセット・本文の
   基本書体・フォーム部品などを親テーマに任せていた。
   ここではそのうち本テーマの見た目に必要なものだけを自前で定義する。
   トークンは docs/DESIGN.md に準拠。
============================================================= */
:root {
  --1ask-primary-50:   #FDF5F0;
  --1ask-primary-100:  #FBE4D4;
  --1ask-primary-400:  #F07230;
  --1ask-primary-500:  #D4500A;
  --1ask-primary-800:  #f2952c;
  --1ask-accent:       #F7C948;
  --1ask-dark:         #3D2B1F;
  --1ask-dark-sub:     #2B1E12;
  --1ask-neutral-50:   #FAF8F5;
  --1ask-neutral-100:  #F5EDE8;
  --1ask-neutral-200:  #E8D8CE;
  --1ask-neutral-800:  #2D2420;
  --shadow-card: 0 10px 15px -3px rgba(168,58,8,.08), 0 4px 6px -2px rgba(168,58,8,.04);
  --shadow-cta:  0 2px 4px -1px rgba(168,58,8,.3), 0 4px 6px -1px rgba(168,58,8,.3);

  --font-inter:        "Inter", sans-serif;
  --font-noto-sans-jp: "Noto Sans JP", sans-serif;
  --font-base:         "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

/* -------------------------------------------------------------
   リセット
------------------------------------------------------------- */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-base);
  line-height: 1.7;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

html, body, p, ol, ul, li, dl, dt, dd, blockquote, figure, fieldset, form,
legend, textarea, pre, iframe, hr, h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

body {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--1ask-neutral-800);
  background: #fff;
  text-align: left;
}

main { display: block; }

h1, h2, h3, h4, h5, h6 {
  clear: both;
  font-weight: 400;
  line-height: 1.3;
}

b, strong { font-weight: 700; }

a {
  color: inherit;
  background-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  border-style: none;
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}

embed, iframe, object, video { max-width: 100%; }

pre, code, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1em;
}
pre {
  white-space: pre;
  overflow-x: auto;
}

hr {
  box-sizing: content-box;
  height: 0;
  border: none;
  border-bottom: 1px solid var(--1ask-neutral-200);
  clear: both;
}

table {
  width: 100%;
  border-collapse: collapse;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

/* ボタンは各コンポーネント側で装飾する前提で、素の状態にしておく */
button {
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-transform: none;
  -webkit-appearance: button;
}

/* -------------------------------------------------------------
   フォーム（検索フォーム等）
------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea {
  border: 2px solid var(--1ask-neutral-200);
  border-radius: 8px;
  color: var(--1ask-neutral-800);
  background: #fff;
  line-height: 1.7;
  padding: 8px 14px;
  max-width: 100%;
}
input:focus,
textarea:focus {
  outline: 2px solid var(--1ask-primary-800);
  outline-offset: 1px;
  border-color: var(--1ask-primary-800);
}

input[type="submit"],
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  background: var(--1ask-primary-800);
  border: 2px solid var(--1ask-primary-800);
  border-radius: 1000px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s;
}
input[type="submit"]:hover,
.c-btn:hover { opacity: .85; }

.c-btn--outline {
  background: transparent;
  color: var(--1ask-primary-800);
}
.c-btn--outline:hover {
  background: var(--1ask-primary-800);
  color: #fff;
  opacity: 1;
}

.search-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.search-form label { flex: 1 1 240px; }
.search-form .search-field { width: 100%; font-size: 16px; }

/* -------------------------------------------------------------
   WordPress コアが出力するクラス
------------------------------------------------------------- */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
  word-break: normal !important;
}
.screen-reader-text:focus {
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  clip-path: none;
  color: var(--1ask-dark);
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 8px;
  padding: 12px 20px;
  text-decoration: none;
  top: 8px;
  width: auto;
  z-index: 100000;
}

.alignleft {
  float: left;
  margin: 0 24px 16px 0;
}
.alignright {
  float: right;
  margin: 0 0 16px 24px;
}
.aligncenter {
  clear: both;
  display: block;
  float: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.alignwide,
.alignfull { clear: both; }

.wp-caption { max-width: 100%; }
figcaption,
.wp-caption-text {
  font-size: 13px;
  text-align: center;
  margin-top: 8px;
}

.sticky,
.gallery-caption,
.bypostauthor { /* WordPress テーマチェック用の必須クラス */ }

/* ページ送り（the_posts_pagination / wp_link_pages） */
.page-links {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  font-size: 14px;
}
.page-links .post-page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 2px solid var(--1ask-neutral-200);
  border-radius: 1000px;
  text-decoration: none;
}
.page-links .post-page-numbers.current {
  background: var(--1ask-primary-800);
  border-color: var(--1ask-primary-800);
  color: #fff;
}

/* -------------------------------------------------------------
   サイト構造
------------------------------------------------------------- */
.site-content::after,
.entry-content::after {
  content: "";
  display: table;
  clear: both;
}

