/*
Theme Name: わたしの家府中 特別養護老人ホーム
Theme URI: 
Author: D-GROW
Author URI: 
Description: わたしの家府中 特別養護老人ホーム用のオリジナルテーマ
Version: 1.0.0
Text Domain: taiyoukai
*/

/* ---------------------------------------------------------
   Variables & Reset
   --------------------------------------------------------- */
:root {
    --color-primary: #f28b30;
    /* 太陽・温かみを感じるオレンジ系 */
    --color-secondary: #58a4b0;
    /* 少し柔らかいブルーグリーン */
    --color-accent: #e97686;
    /* さつきの里風の求人アクセントピンク */
    --color-text-main: #444444;
    --color-text-muted: #777777;
    --color-bg-light: #fff8f0;
    /* 温かみのあるごく薄い背景 */
    --color-bg-white: #ffffff;
    --color-border: #eaeaea;

    --font-heading: 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;

    --max-width: 1200px;
}

.site {
    overflow-x: hidden;
    overflow-y: visible;
}

html {
    box-sizing: border-box;
    font-size: 16px;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    /* 固定ヘッダー（高さ90px）分の余白を確保。モバイルでも同じ。 */
    padding: 90px 0 0 0;
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-top: 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* グローバルな a:hover の文字色変化は無効化（ユーザー要望）。
   個別に色変化が必要な要素は各コンポーネント側で指定する。 */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------------------------------------------------------
   Scroll Animations (sohgo-planning inspired)
   --------------------------------------------------------- */

/* フェードイン（下から） */
.ani-fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 2s cubic-bezier(0.075, 0.82, 0.165, 1),
                transform 2s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.ani-fade-up.is-animated {
    opacity: 1;
    transform: translateY(0);
}

/* フェードイン（左から） */
.ani-fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1.5s cubic-bezier(0.075, 0.82, 0.165, 1),
                transform 1.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.ani-fade-left.is-animated {
    opacity: 1;
    transform: translateX(0);
}

/* フェードイン（右から） */
.ani-fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1.5s cubic-bezier(0.075, 0.82, 0.165, 1),
                transform 1.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.ani-fade-right.is-animated {
    opacity: 1;
    transform: translateX(0);
}

/* フェードイン（その場） */
.ani-fade-in {
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.ani-fade-in.is-animated {
    opacity: 1;
}

/* ディレイ用ユーティリティ */
.ani-delay-1 { transition-delay: 0.15s; }
.ani-delay-2 { transition-delay: 0.3s; }
.ani-delay-3 { transition-delay: 0.45s; }
.ani-delay-4 { transition-delay: 0.6s; }
.ani-delay-5 { transition-delay: 0.75s; }

/* アクセシビリティ: モーション軽減設定を尊重 */
@media (prefers-reduced-motion: reduce) {
    .ani-fade-up,
    .ani-fade-left,
    .ani-fade-right,
    .ani-fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------------------------------------------------------
   Utility Classes
   --------------------------------------------------------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    box-shadow: 0 4px 6px rgba(242, 139, 48, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(232, 93, 4, 0.3);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-bg-white);
}

.btn-secondary:hover {
    background-color: #357abd;
    color: var(--color-bg-white);
    transform: translateY(-2px);
}