/* =========================================================
   CoreDrive theme.css
   - Tailwind CDN前提：補助CSSだけを置く（見た目は変えない）
   ========================================================= */

/* ---- Global behavior ---- */
html {
  scroll-behavior: smooth;
}

body {
  font-feature-settings: "palt";
}

/* ---- Grain Overlay ----
   header.php / body直下に <div class="grain-overlay"></div> を置く前提
*/
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ---- Scrollbar (WebKit only) ---- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0E0F12;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

/* =========================================================
   Contact page (フォームUIの細部)
   - 既存デザインを変えずに “違和感が出ない” 補助だけ
   ========================================================= */

/* 入力UIの自然な遷移（見た目は変わらない） */
select,
input,
textarea {
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* ---- Custom Select (Contact page) ----
   <div class="custom-select-wrapper"><select>...</select></div> 前提
*/
.custom-select-wrapper {
  position: relative;
}
.custom-select-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #111318;
  border-bottom: 2px solid #111318;
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
  opacity: 0.6;
}

/* ブラウザ標準の矢印を消して、上の疑似要素で統一 */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* =========================================================
   Privacy Policy（固定ページ本文を “文章だけ” で入力しても整う）
   - page-privacy-policy.php 側で <div class="policy-content">the_content()</div> を包む前提
   - Tailwindの紙面デザインを崩さずに可読性を寄せる
   ========================================================= */

.policy-content {
  /* 余計なデフォルトスタイルに引っ張られないように */
  word-break: break-word;
}

/* 見出し（h2/h3）と段落・リストの基本リズム */
.policy-content h2 {
  font-weight: 700;
  font-size: 1.125rem; /* text-lg相当 */
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: #111318; /* textPrimary */
}

.policy-content h3 {
  font-weight: 700;
  font-size: 1rem; /* base相当 */
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #111318;
}

.policy-content p {
  font-size: 0.95rem;
  line-height: 2;
  color: #4b5563; /* gray-600 */
  margin-bottom: 1rem;
}

/* リスト */
.policy-content ul,
.policy-content ol {
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
  color: #4b5563;
}

.policy-content li {
  margin: 0.5rem 0;
  line-height: 1.85;
}

/* “区切り” が欲しい人向け（管理画面で「区切り」ブロックを入れた時） */
.policy-content hr {
  border: 0;
  border-top: 1px solid rgba(17, 19, 24, 0.14); /* lineLight */
  margin: 2.5rem 0;
}

/* リンク（紙面上で浮きすぎない） */
.policy-content a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.policy-content a:hover {
  opacity: 0.85;
}
