/* ========================================
   共通コンポーネント - ヘッダー・フッター
   ======================================== */

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ベーススタイル */
body {
    font-family: 'Yu Gothic Pr6N', 'Yu Gothic', '游ゴシック', 'Meiryo', 'メイリオ', sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: 14px;
    background-color: #688C2F;
    position: relative;
}

/* body::after の背景画像 footer_bg.png は未配置のため削除。背景は body の background-color で表示 */

main {
    max-width: 390px;
    margin: 0 auto;
}

section {
    padding: 2rem 0;
}

@media (min-width: 768px) {
    section {
        padding: 3rem 0;
    }
}

/* SEO用：h1は画面上は非表示、クローラー・スクリーンリーダーには表示 */
h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

h2 {
    color: #6F9238;
    font-family: "Corporate Logo ver2", "Hiragino Sans", "ヒラギノ角ゴシック", "Yu Gothic", "游ゴシック", "Meiryo", "メイリオ", sans-serif;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.25rem;
    text-align: left;
    margin-bottom: 2rem;
}

h3 {
    font-family: 'Yu Gothic Pr6N', 'Yu Gothic', '游ゴシック', 'Meiryo', 'メイリオ', sans-serif;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.6;
    z-index: 1;
    margin-bottom: 1rem;
    position: relative;
}


h4 {
    margin-bottom: 1rem;
}

p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.container.container-max,
.container.container-sp-max {
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

@media (min-width: 768px) {
    .container.container-sp-max {
        max-width: 1000px;
        margin: 0 auto;
        padding: 0;
    }
}

.line-yellow {
    position: relative;
    display: inline-block;
}

.line-yellow::after {
    content: '';
    position: absolute;
    bottom: 0.1rem;
    left: 0;
    width: 100%;
    height: 0.8rem;
    background-color: #F4C900;
    z-index: -1;
    opacity: 0.8;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease-out;
}

.line-yellow.underline-visible::after {
    transform: scaleX(1);
}

.sp-only {
    display: none;
}

@media (max-width: 1024px) {
    .sp-only {
        display: block;
    }
}

.pc-only {
    display: none;
}

@media (min-width: 1024px) {
    .pc-only {
        display: block;
    }
}

/* ヘッダー */
.header {
    padding: 0.5rem 0;
    top: 0;
    width: 100%;
    z-index: 1000;
    position: relative;
}

.header__content {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    flex-direction: column;
}

.header__logo {
    font-size: 1rem;
    font-weight: 700;
    font-family: "A P-OTF Maru Folk ProN", "Hiragino Sans", "ヒラギノ角ゴシック", "Yu Gothic", "游ゴシック", "Meiryo", "メイリオ", sans-serif;
}

.header__contact {
    text-align: right;
}

.header__phone {
    font-family: "Futura PT", "Hiragino Sans", "ヒラギノ角ゴシック", "Yu Gothic", "游ゴシック", "Meiryo", "メイリオ", sans-serif;
    color: #EA4327;
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    outline: none;
}

.header__phone:focus {
    outline: none;
    opacity: 0.8;
}

.header__phone::before {
    content: url(../images/icon_tel.svg);
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
}

.header__hours {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* フッター */
.footer {
    color: #333;
    text-align: center;
    padding: 1rem 0;
    line-height: 1.3;
    position: relative;
    background: #E8D8B4;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.05);
}

@media (max-width: 1024px) {
    .footer {
        padding-bottom: 8rem;
    }
}

.footer__links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.footer__links li {
    font-size: 0.875rem;
}

.footer__links a {
    outline: none;
    text-decoration: none;
    color: inherit;
}

.footer__links a:hover {
    opacity: 0.7;
}

.footer__links a:focus {
    outline: none;
    text-decoration: underline;
}

.footer__copyright {
    font-size: 0.6rem;
    color: #996A02;
}


.footer__headline {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    margin: 0 0 24px 0;
    text-align: left;
}

.footer .btn-cta {
    margin: 0 auto;
}

.footer__deco {
    position: absolute;
    opacity: 0.5;
}

.footer__deco img {
    display: block;
    max-width: 72px;
    max-height: 56px;
    width: auto;
    height: auto;
}

.footer__trees {
    position: absolute;
    top: -2rem;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.footer__deco--l { top: 16px; left: 16px; }
.footer__deco--r { top: 16px; right: 16px; transform: scaleX(-1); }

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-top: 24px;
    margin-bottom: 5px;
    font-size: 12px;
}

.footer__nav a {
    color: #996A02;
    opacity: 0.95;
}

.footer__nav a:hover {
    opacity: 0.8;
}

.footer__copyright {
    font-size: 10px;
    opacity: 0.9;
}