/* =============================================
   main.css - 完全版
   ============================================= */

/* --- 1. CSS変数 --- */
:root {
    --color-primary:   #4a8c3f;
    --color-accent:    #c8a96e;
    --color-text:      #333333;
    --color-text-sub:  #666666;
    --color-bg:        #ffffff;
    --color-bg-light:  #f8f6f1;
    --color-border:    #e0ddd6;
    --font-base:   "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    --font-mincho: "Noto Serif JP", "Hiragino Mincho ProN", serif;
    --container-width: 1100px;
    --container-pad:   clamp(16px, 4vw, 40px);
}

/* --- 2. リセット・ベース --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-base); color: var(--color-text); background-color: var(--color-bg); line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- 3. 共通レイアウト --- */
.container { max-width: var(--container-width); margin-inline: auto; padding-inline: var(--container-pad); }
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

/* --- 4. セクションタイトル --- */
.section-title { font-family: var(--font-mincho); font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 600; color: var(--color-text); line-height: 1.5; }
.section-title::after { content: ''; display: block; width: 40px; height: 3px; background-color: var(--color-primary); margin-top: 12px; }

/* --- 5. ボタン --- */
.btn { display: inline-block; padding: 12px 36px; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.05em; border-radius: 2px; transition: opacity 0.2s ease, background-color 0.2s ease; cursor: pointer; }
.btn--primary { background-color: var(--color-primary); color: #fff; border: 2px solid var(--color-primary); }
.btn--primary:hover { opacity: 0.8; }
.btn--outline { background-color: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn--outline:hover { background-color: var(--color-primary); color: #fff; }

/* --- 6. ヘッダー --- */
.site-header { position: sticky; top: 0; z-index: 100; background-color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.header-inner { max-width: var(--container-width); margin-inline: auto; padding-inline: var(--container-pad); height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo img { height: 48px; width: auto; }
.site-logo .site-title { font-size: 1.1rem; font-weight: 700; color: var(--color-primary); }
.global-nav { margin-left: auto; }
.nav-list { display: flex; gap: 4px; }
.nav-list a { display: block; padding: 8px 14px; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.03em; color: var(--color-text); border-radius: 2px; transition: color 0.2s, background-color 0.2s; }
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--color-primary); background-color: rgba(74,140,63,0.08); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle__bar { display: block; width: 100%; height: 2px; background-color: var(--color-text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }

/* --- 7. ヒーロースライダー --- */
.hero-section { position: relative; overflow: hidden; }
.hero-slider--sp { display: none; }
.hero-slide__inner { position: relative; width: 100%; }
.hero-slide__img { width: 100%; height: 560px; object-fit: cover; }
.hero-slide__caption { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); width: 90%; text-align: center; color: #fff; font-family: var(--font-mincho); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.7; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.hero-slider .swiper-button-prev, .hero-slider .swiper-button-next { color: rgba(255,255,255,0.85); }
.hero-slider .swiper-pagination-bullet-active { background-color: #fff; }

/* --- 8. 多久市紹介 --- */
.about-section { padding-block: 80px; background-color: var(--color-bg-light); }
.about-inner--sp { display: none; }
.about-inner--pc { display: flex; align-items: center; gap: 60px; }
.about-text { flex: 1; }
.about-text__title { margin-bottom: 24px; }
.about-text__body { font-size: 0.95rem; line-height: 2; color: var(--color-text-sub); margin-bottom: 32px; }
.about-map { flex: 0 0 380px; }
.about-map__img { width: 100%; height: auto; }

/* --- 9. 特産品 --- */
.tokusan-section { padding-block: 80px; background-color: var(--color-bg); }
.tokusan-section__title { text-align: center; margin-bottom: 56px; }
.tokusan-section__title::after { margin-inline: auto; }
.tokusan-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.tokusan-item { display: flex; flex-direction: column; }
.tokusan-item__img-wrap { overflow: hidden; border-radius: 4px; aspect-ratio: 1 / 1; }
.tokusan-item__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tokusan-item:hover .tokusan-item__img { transform: scale(1.04); }
.tokusan-item__body { padding-top: 20px; flex: 1; }
.tokusan-item__name { font-family: var(--font-mincho); font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; color: var(--color-text); }
.tokusan-item__text { font-size: 0.875rem; line-height: 1.9; color: var(--color-text-sub); }

/* --- 10. おすすめ返礼品 --- */
.gifts-section { padding-block: 80px; background-color: var(--color-bg-light); }
.gifts-section__title { text-align: center; margin-bottom: 56px; }
.gifts-section__title::after { margin-inline: auto; }
.gifts-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.gifts-item { display: flex; flex-direction: column; background-color: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: box-shadow 0.3s ease, transform 0.3s ease; }
.gifts-item:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.12); transform: translateY(-4px); }
.gifts-item__img-wrap { aspect-ratio: 1 / 1; overflow: hidden; }
.gifts-item__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gifts-item:hover .gifts-item__img { transform: scale(1.04); }
.gifts-item__name { font-size: 0.9rem; font-weight: 600; line-height: 1.6; padding: 16px 16px 8px; color: var(--color-text); flex: 1; }
.gifts-item__links { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 20px; }
.gifts-item__btn { display: block; text-align: center; padding: 10px 12px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; border-radius: 2px; transition: opacity 0.2s; }
.gifts-item__btn:hover { opacity: 0.8; }
.gifts-item__btn--rakuten { background-color: #bf0000; color: #fff; }
.gifts-item__btn--choice  { background-color: #e87722; color: #fff; }
.gifts-section__more { text-align: center; margin-top: 48px; }

/* --- 11. Instagram --- */
.instagram-section { padding-block: 80px; background-color: var(--color-bg); }
.instagram-section__header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.instagram-section__title { margin-bottom: 0; }
.instagram-section__follow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.05em; color: var(--color-primary); border: 2px solid var(--color-primary); padding: 8px 20px; border-radius: 2px; transition: background-color 0.2s, color 0.2s; white-space: nowrap; }
.instagram-section__follow::before { content: ''; display: inline-block; width: 18px; height: 18px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a8c3f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: contain; }
.instagram-section__follow:hover { background-color: var(--color-primary); color: #fff; }
.instagram-section__follow:hover::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E"); }
.instagram-feed-wrap { width: 100%; }

/* --- 12. 寄附の使い道 --- */
.usage-section { padding-block: 80px; background-color: var(--color-bg-light); }
.usage-section__header { max-width: 760px; margin-inline: auto; text-align: center; margin-bottom: 64px; }
.usage-section__title { margin-bottom: 20px; }
.usage-section__title::after { margin-inline: auto; }
.usage-section__lead { font-size: 0.9rem; line-height: 2; color: var(--color-text-sub); }
.usage-list { display: flex; flex-direction: column; gap: 64px; }
.usage-item { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.usage-item--reverse { direction: rtl; }
.usage-item--reverse > * { direction: ltr; }
.usage-item__img-wrap { overflow: hidden; border-radius: 4px; }
.usage-item__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s ease; }
.usage-item__img-wrap:hover .usage-item__img { transform: scale(1.03); }
.usage-item__title { font-family: var(--font-mincho); font-size: 1.2rem; font-weight: 600; color: var(--color-text); margin-bottom: 16px; padding-left: 16px; border-left: 4px solid var(--color-primary); line-height: 1.5; }
.usage-item__text { font-size: 0.875rem; line-height: 2; color: var(--color-text-sub); }
.usage-section__more { text-align: center; margin-top: 64px; }

/* --- 13. SNS --- */
.sns-section { padding-block: 80px; background-color: var(--color-bg); }
.sns-section__title { margin-bottom: 48px; }
.sns-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.sns-col__header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--color-border); }
.sns-col__label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 2px; color: #fff; }
.sns-col__label--facebook  { background-color: #1877f2; }
.sns-col__label--twitter   { background-color: #000; }
.sns-col__label--instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.sns-col__link { font-size: 0.8rem; color: var(--color-text-sub); text-decoration: underline; transition: color 0.2s; }
.sns-col__link:hover { color: var(--color-primary); }
.sns-col__embed { overflow: hidden; }
.sns-col__embed iframe, .sns-col__embed .fb-page, .sns-col__embed .fb-page span, .sns-col__embed .fb-page iframe { width: 100% !important; max-width: 100% !important; }

/* --- 14. フェードインアニメーション --- */
.js-fadein { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js-fadein.is-visible { opacity: 1; transform: translateY(0); }
.js-fadein.delay-1 { transition-delay: 0.1s; }
.js-fadein.delay-2 { transition-delay: 0.2s; }
.js-fadein.delay-3 { transition-delay: 0.3s; }
.js-fadein.delay-4 { transition-delay: 0.4s; }
.js-fadein.delay-5 { transition-delay: 0.5s; }

/* --- 15. ヘッダースクロール・ナビ制御 --- */
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
body.nav-is-open { overflow: hidden; }

/* --- 16. 固定ページ共通 --- */
.page-header { background-color: var(--color-primary); background-size: cover; background-position: center; padding-block: 56px; position: relative; }
.page-header--has-image::before { content: ''; position: absolute; inset: 0; background-color: rgba(0,0,0,0.45); }
.page-header .container { position: relative; z-index: 1; }
.page-header__title { font-family: var(--font-mincho); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; color: #fff; margin-bottom: 16px; }
.breadcrumb__list { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb__item { font-size: 0.8rem; color: rgba(255,255,255,0.8); }
.breadcrumb__item a { color: rgba(255,255,255,0.8); text-decoration: underline; transition: color 0.2s; }
.breadcrumb__item a:hover { color: #fff; }
.breadcrumb__item + .breadcrumb__item::before { content: '›'; margin-right: 8px; color: rgba(255,255,255,0.6); }
.page-content { padding-block: 72px; }
.entry-content { max-width: 800px; margin-inline: auto; }
.entry-content h2 { font-family: var(--font-mincho); font-size: 1.5rem; font-weight: 600; margin-block: 48px 20px; padding-left: 16px; border-left: 4px solid var(--color-primary); }
.entry-content h3 { font-size: 1.15rem; font-weight: 600; margin-block: 32px 12px; color: var(--color-text); }
.entry-content p { font-size: 0.95rem; line-height: 2; color: var(--color-text-sub); margin-bottom: 20px; }
.entry-content img { border-radius: 4px; margin-block: 24px; }
.entry-content a { color: var(--color-primary); text-decoration: underline; }
.gifts-page-section { margin-bottom: 64px; }
.gifts-page-section__title { margin-bottom: 40px; }
.contact-wrap { max-width: 680px; margin-inline: auto; }
.contact-wrap__lead { font-size: 0.95rem; line-height: 2; color: var(--color-text-sub); margin-bottom: 40px; text-align: center; }
.contact-form .wpcf7-form label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; color: var(--color-text); }
.contact-form .wpcf7-form input[type="text"],
.contact-form .wpcf7-form input[type="email"],
.contact-form .wpcf7-form input[type="tel"],
.contact-form .wpcf7-form textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--color-border); border-radius: 2px; font-size: 0.95rem; font-family: var(--font-base); transition: border-color 0.2s; background-color: #fff; }
.contact-form .wpcf7-form input:focus,
.contact-form .wpcf7-form textarea:focus { outline: none; border-color: var(--color-primary); }
.contact-form .wpcf7-form textarea { min-height: 160px; resize: vertical; }
.contact-form .wpcf7-form p { margin-bottom: 24px; }
.contact-form .wpcf7-submit { background-color: var(--color-primary); color: #fff; border: none; padding: 14px 48px; font-size: 1rem; font-weight: 600; border-radius: 2px; cursor: pointer; transition: opacity 0.2s; display: block; margin-inline: auto; }
.contact-form .wpcf7-submit:hover { opacity: 0.8; }

/* --- 17. フッター --- */
.site-footer { background-color: var(--color-text); color: #fff; }
.footer-sns { padding-block: 48px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer-sns__list { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.footer-sns__item a { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; color: #fff; transition: opacity 0.2s; }
.footer-sns__item a:hover { opacity: 0.7; }
.footer-copyright { padding-block: 20px; }
.footer-copyright__text { text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.6); }