/*! Luxeritas Child CSS */
/* Luxeritas WordPress Theme - free/libre wordpress platform
 *
 * @copyright Copyright (C) 2015 Thought is free.
 * @license http://www.gnu.org/licenses/gpl-2.0.html GPL v2 or later
 * @author LunaNuko
 * @link http://thk.kanzae.net/
 * @translators rakeem( http://rakeem.jp/ )
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 *   Theme Name: GPDPS Luxeritas Child
 *   Template: luxeritas
 *   Text Domain: gpdps-luxech
 *   Theme URI: http://thk.kanzae.net/wp/
 *   Description: 一般社団法人国際歯科医療安全機構 公式サイト用 Luxeritas 子テーマ
 *   Author: GPDPS
 *   Author URI: http://thk.kanzae.net/
 *   License: GNU General Public License v2 or later
 *   License URI: http://www.gnu.org/licenses/gpl-2.0.html
 *   Tags: one-column, two-columns, three-columns, right-sidebar, left-sidebar, custom-header, custom-background, custom-colors, custom-menu, theme-options, featured-image-header, editor-style, sticky-post, threaded-comments, translation-ready
 *   Since: 20151206
 *   Modify: 20210517
 *   Version: 1.2.0
 *   Template Version: 3
 *
 * ここから上を消すと正しく動作しなくなることがあります。
 * ( Erasing the elements above here might cause system issues. )
 */

/* 以下、好みに応じて子テーマ用のスタイルをお書きください。
 * ( Below here, please write down your own styles for the child theme. )
 */

/*
 * GPDPS brand styles
 * 親テーマの更新に影響されない範囲で、既存ページ全体を整えています。
 */
:root {
  --gpdps-navy: #123b5d;
  --gpdps-blue: #176f91;
  --gpdps-teal: #16857b;
  --gpdps-mint: #e9f6f3;
  --gpdps-sky: #edf6fa;
  --gpdps-ink: #243746;
  --gpdps-muted: #647785;
  --gpdps-line: #d9e5ea;
  --gpdps-white: #ffffff;
  --gpdps-shadow: 0 10px 30px rgba(18, 59, 93, .09);
}

html { scroll-behavior: smooth; }

body {
  color: var(--gpdps-ink);
  background: #f7fafb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", Meiryo, sans-serif;
  font-feature-settings: "palt";
  line-height: 1.85;
}

a { color: var(--gpdps-blue); text-underline-offset: .18em; }
a:hover { color: var(--gpdps-teal); }

/* Header */
#header {
  background: var(--gpdps-white);
  border-top: 5px solid var(--gpdps-teal);
  box-shadow: 0 2px 16px rgba(18, 59, 93, .07);
}

#sitename a, #sitename { color: var(--gpdps-navy) !important; font-weight: 700; letter-spacing: .03em; }
#sitename span, #site-description { color: var(--gpdps-muted); letter-spacing: .08em; }

#gnavi, #navi { background: var(--gpdps-navy); }
#gnavi li a, #navi li a { color: var(--gpdps-white); font-weight: 600; letter-spacing: .02em; }
#gnavi li a:hover, #navi li a:hover,
#gnavi .current-menu-item > a, #navi .current-menu-item > a { background: var(--gpdps-teal); color: #fff; }

/* Main content */
#main, .grid #main { background: var(--gpdps-white); border: 1px solid var(--gpdps-line); border-radius: 10px; box-shadow: var(--gpdps-shadow); }
.breadcrumb { color: var(--gpdps-muted); font-size: .86rem; }
.entry-title, .entry-title a { color: var(--gpdps-navy); font-weight: 700; line-height: 1.45; }
.entry-content { font-size: 1.02rem; }
.entry-content p { margin: 0 0 1.65em; }

.entry-content h2 {
  position: relative;
  margin: 2.7em 0 1.2em;
  padding: .72em .85em .72em 1em;
  color: var(--gpdps-navy);
  background: linear-gradient(90deg, var(--gpdps-sky), #fff);
  border: 0;
  border-left: 6px solid var(--gpdps-teal);
  border-radius: 0 8px 8px 0;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  line-height: 1.5;
}

.entry-content h3 { margin: 2em 0 1em; padding-bottom: .55em; color: var(--gpdps-navy); border-bottom: 2px solid var(--gpdps-line); line-height: 1.55; }
.entry-content hr { margin: 3em 0; border: 0; border-top: 1px solid var(--gpdps-line); }
.entry-content img { height: auto; border-radius: 8px; }

/* Make prominent links in content easy to identify as actions. */
.entry-content p > a:only-child,
.entry-content p > strong:only-child > a:only-child,
.gpdps-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75em 1.55em;
  color: #fff !important;
  background: linear-gradient(135deg, var(--gpdps-blue), var(--gpdps-teal));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(23, 111, 145, .2);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.entry-content p > a:only-child:hover,
.entry-content p > strong:only-child > a:only-child:hover,
.gpdps-button:hover { color: #fff !important; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23, 111, 145, .28); }

/* Sidebar and footer */
#side .widget, #sidebar .widget { padding: 1.2rem; background: #fff; border: 1px solid var(--gpdps-line); border-radius: 8px; box-shadow: 0 5px 18px rgba(18, 59, 93, .05); }
#side h3, #sidebar h3, .widget-title { color: var(--gpdps-navy); border-bottom: 3px solid var(--gpdps-teal); }
#footer { margin-top: 3rem; color: rgba(255,255,255,.88); background: var(--gpdps-navy); border-top: 5px solid var(--gpdps-teal); }
#footer a { color: #fff; }

/* Forms and accessibility */
button, input[type="submit"], input[type="button"] { background: var(--gpdps-blue); border-color: var(--gpdps-blue); border-radius: 6px; color: #fff; }
input[type="text"], input[type="email"], input[type="search"], textarea, select { max-width: 100%; border: 1px solid #b9cbd3; border-radius: 6px; background: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f2b544; outline-offset: 3px; }

@media (max-width: 767px) {
  body { line-height: 1.75; }
  #header { border-top-width: 4px; }
  #main, .grid #main { border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
  .entry-content { font-size: 1rem; }
  .entry-content h2 { margin-top: 2.2em; padding: .65em .7em; }
  .entry-content p > a:only-child, .entry-content p > strong:only-child > a:only-child, .gpdps-button { width: 100%; box-sizing: border-box; }
}

/* Block editor pattern: OralScienceCafe entry (available on any page). */
.gpdps-osc-entry { margin: 2rem 0; padding: 1.5rem; background: #fff; border: 1px solid var(--gpdps-line); border-top: 4px solid #ed6b2c; }
.gpdps-osc-entry .wp-block-image { margin: 0 0 1.4rem; }
.gpdps-osc-entry .wp-block-image img { display: block; width: 100%; }
.gpdps-osc-entry h2 { margin-top: 0; }
.gpdps-osc-button .wp-block-button__link { color: #fff; background: #ed6b2c; border-radius: 4px; font-weight: 700; }
.gpdps-osc-button .wp-block-button__link:hover { color: #fff; background: #c9531d; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Online training portal */
.gpdps-training-portal { margin: 2.5rem 0; overflow: hidden; background: #fff; border: 1px solid var(--gpdps-line); border-radius: 12px; box-shadow: var(--gpdps-shadow); }
.gpdps-portal-head { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 1.6rem; color: #fff; background: linear-gradient(120deg, var(--gpdps-navy), var(--gpdps-teal)); }
.gpdps-portal-head h2 { margin: .15rem 0 0 !important; padding: 0 !important; color: #fff !important; background: none !important; border: 0 !important; font-size: clamp(1.3rem, 3vw, 1.8rem) !important; }
.gpdps-eyebrow { color: #bfeee6; font-size: .72rem; font-weight: 700; letter-spacing: .16em; }
.gpdps-button-light { flex: 0 0 auto; color: var(--gpdps-navy) !important; background: #fff; box-shadow: none; }
.gpdps-button-light:hover { color: var(--gpdps-teal) !important; }
.gpdps-iframe-wrap { position: relative; width: 100%; height: min(72vh, 760px); min-height: 540px; background: var(--gpdps-sky); }
.gpdps-iframe-wrap iframe { width: 100%; height: 100%; border: 0; }
.gpdps-portal-fallback { margin: 0 !important; padding: .7rem 1.2rem; color: var(--gpdps-muted); background: #f7fafb; font-size: .82rem; text-align: center; }
.gpdps-portal-notice { display: grid; gap: .3rem; margin: 2rem 0; padding: 2rem; background: var(--gpdps-sky); border: 1px dashed var(--gpdps-blue); border-radius: 10px; text-align: center; }

/* Clearly disclosed corporate advertising */
.gpdps-sponsors { margin: 3.5rem 0 2rem; padding-top: 1.2rem; border-top: 1px solid var(--gpdps-line); }
.gpdps-sponsor-label { margin-bottom: 1rem; color: var(--gpdps-muted); font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-align: center; }
.gpdps-ad-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gpdps-ad { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 160px; padding: 1.2rem; color: var(--gpdps-ink) !important; background: #fff; border: 1px solid var(--gpdps-line); border-radius: 8px; text-align: center; text-decoration: none !important; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.gpdps-ad[href]:hover { border-color: var(--gpdps-teal); transform: translateY(-2px); box-shadow: var(--gpdps-shadow); }
.gpdps-ad-label { position: absolute; top: 6px; right: 8px; color: var(--gpdps-muted); font-size: .62rem; letter-spacing: .08em; }
.gpdps-ad-media { display: grid; place-items: center; min-height: 74px; margin-bottom: .55rem; }
.gpdps-ad-media img { max-width: 100%; max-height: 70px; border-radius: 0; object-fit: contain; }
.gpdps-ad-placeholder { color: var(--gpdps-blue); font-size: 1.05rem; font-weight: 700; }
.gpdps-ad-description { margin-top: .35rem; color: var(--gpdps-muted); font-size: .76rem; line-height: 1.5; }
.gpdps-ad-recruit { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 2rem 0; padding: 1.5rem 1.7rem; background: var(--gpdps-mint); border-radius: 10px; }
.gpdps-ad-recruit span { display: block; color: var(--gpdps-teal); font-size: .68rem; font-weight: 700; letter-spacing: .14em; }
.gpdps-ad-recruit strong { display: block; color: var(--gpdps-navy); }

@media (max-width: 767px) {
  .gpdps-portal-head, .gpdps-ad-recruit { align-items: stretch; flex-direction: column; }
  .gpdps-iframe-wrap { height: 70vh; min-height: 480px; }
  .gpdps-ad-grid { grid-template-columns: 1fr; }
}
