@charset "UTF-8";
/*!
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Template: astra
Author: Custom Theme
Description: Astra child theme styles based on theme.json design settings (Underline issue fixed).
Version: 1.0.2
Text Domain: astra-child
*/

/* ==========================================================================

Web Fonts (Google Fonts Import)
========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Zen+Kaku+Gothic+New:wght@500;700&display=swap');

/* ==========================================================================
2. CSS Custom Properties (Variables)
========================================================================== /
:root {
/ Colors */
--wp--preset--color--primary: #EE727C;
--wp--preset--color--primary-light: #FCECEE;
--wp--preset--color--secondary: #8DBE74;
--wp--preset--color--secondary-bg: #EDF5E8;
--wp--preset--color--accent: #E63956;
--wp--preset--color--accent-hover: #C5223E;
--wp--preset--color--bg-base: #FFFFFF;
--wp--preset--color--bg-surface: #FFFDF9;
--wp--preset--color--text-main: #3A2F30;
--wp--preset--color--text-sub: #736365;
--wp--preset--color--border: #F0E8E4;

/* Typography */
--wp--preset--font-family--heading: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
--wp--preset--font-family--body: 'Noto Sans JP', 'Hiragino Sans', sans-serif;

/* Layout */
--wp--style--global--content-size: 720px;
--wp--style--global--wide-size: 1280px;
}

/* ==========================================================================
3. Base Styles (Body & Typography)
========================================================================== */
body {
background-color: var(--wp--preset--color--bg-base);
color: var(--wp--preset--color--text-main);
font-family: var(--wp--preset--font-family--body);
font-size: 17px;
line-height: 1.9;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.entry-title,
.entry-title a {
font-family: var(--wp--preset--font-family--heading);
font-weight: 700;
line-height: 1.5;
color: var(--wp--preset--color--text-main);
text-decoration: none !important;
}

/* ==========================================================================
4. Links & Underline Reset (Fix for Astra defaults)
========================================================================== /
/ 基本のリンク：不要な下線をリセット */
a {
color: var(--wp--preset--color--primary);
text-decoration: none;
transition: color 0.2s ease-in-out;
}

a:hover,
a:focus {
color: var(--wp--preset--color--accent-hover);
text-decoration: none;
}

/* Astraのヘッダーメニュー、フッター、Elementorウィジェット内のアンダーライン強制解除 */
.main-header-menu a,
.ast-header-custom-item a,
.ast-builder-menu a,
.footer-widget-area a,
.ast-footer-copyright a,
.elementor a {
text-decoration: none !important;
}

/* 本文（記事コンテンツ内）のテキストリンクのみ下線を付けたい場合 */
.entry-content p a:not(.wp-element-button):not(.wp-block-button__link):not(.elementor-button) {
text-decoration: underline;
text-underline-offset: 3px;
}
.entry-content p a:not(.wp-element-button):not(.wp-block-button__link):not(.elementor-button):hover {
text-decoration: underline;
}

/* ==========================================================================
5. Buttons (WordPress Blocks, Elementor, and Native Elements)
========================================================================== /
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.wp-element-button,
.wp-block-button__link,
.elementor-button,
.elementor-button-link {
background-color: var(--wp--preset--color--accent);
color: #ffffff !important;
font-family: var(--wp--preset--font-family--body);
font-size: 18px;
font-weight: 700;
line-height: 1.5;
text-align: center;
text-decoration: none !important; / ボタンの下線を完全に無効化 */
border: none;
border-radius: 999px;
padding: 0.7em 1.8em;
cursor: pointer;
transition: background-color 0.2s ease-in-out, transform 0.15s ease-in-out;
}

button:hover,
button:focus,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
.elementor-button:hover,
.elementor-button:focus,
.elementor-button-link:hover {
background-color: var(--wp--preset--color--accent-hover);
color: #ffffff !important;
text-decoration: none !important;
}

/* ==========================================================================
6. Color & Background Utility Classes
========================================================================== /
/ Text Colors */
.has-primary-color          { color: var(--wp--preset--color--primary) !important; }
.has-primary-light-color    { color: var(--wp--preset--color--primary-light) !important; }
.has-secondary-color        { color: var(--wp--preset--color--secondary) !important; }
.has-secondary-bg-color     { color: var(--wp--preset--color--secondary-bg) !important; }
.has-accent-color           { color: var(--wp--preset--color--accent) !important; }
.has-accent-hover-color     { color: var(--wp--preset--color--accent-hover) !important; }
.has-bg-base-color          { color: var(--wp--preset--color--bg-base) !important; }
.has-bg-surface-color       { color: var(--wp--preset--color--bg-surface) !important; }
.has-text-main-color        { color: var(--wp--preset--color--text-main) !important; }
.has-text-sub-color         { color: var(--wp--preset--color--text-sub) !important; }
.has-border-color           { color: var(--wp--preset--color--border) !important; }

/* Background Colors */
.has-primary-background-color       { background-color: var(--wp--preset--color--primary) !important; }
.has-primary-light-background-color { background-color: var(--wp--preset--color--primary-light) !important; }
.has-secondary-background-color     { background-color: var(--wp--preset--color--secondary) !important; }
.has-secondary-bg-background-color  { background-color: var(--wp--preset--color--secondary-bg) !important; }
.has-accent-background-color        { background-color: var(--wp--preset--color--accent) !important; }
.has-accent-hover-background-color  { background-color: var(--wp--preset--color--accent-hover) !important; }
.has-bg-base-background-color       { background-color: var(--wp--preset--color--bg-base) !important; }
.has-bg-surface-background-color    { background-color: var(--wp--preset--color--bg-surface) !important; }
.has-text-main-background-color     { background-color: var(--wp--preset--color--text-main) !important; }
.has-text-sub-background-color      { background-color: var(--wp--preset--color--text-sub) !important; }
.has-border-background-color        { background-color: var(--wp--preset--color--border) !important; }

/* Font Family Utility Classes */
.has-heading-font-family { font-family: var(--wp--preset--font-family--heading) !important; }
.has-body-font-family    { font-family: var(--wp--preset--font-family--body) !important; }