/*
Theme Name: GoGenkiLife
Theme URI: https://gogenkilife.com
Author: gogenkilife.com
Description: 健康・スポーツ・ライフスタイル向けの2カラムブログテーマ。Wygląd → Dostosuj pozwala edytować linki afiliacyjne, obrazki, ankietę i teksty.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: gogenkilife
*/

:root{
  --green:#2e9e6b; --green-d:#1f7a50; --green-l:#e6f5ed;
  --orange:#ff8a3d; --ink:#22302a; --muted:#6b7a72;
  --bg:#f5faf7; --card:#fff; --line:#dfeae3; --radius:14px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);line-height:1.8;
  font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic",Meiryo,sans-serif;font-size:16px}
img{max-width:100%;height:auto;display:block}
a{color:var(--green-d);text-decoration:none}
a:hover{color:var(--orange)}
.gl-wrap{max-width:1180px;margin:0 auto;padding:0 20px}

/* Header */
.gl-header{background:#fff;border-bottom:3px solid var(--green)}
.gl-header__inner{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding:18px 20px;max-width:1180px;margin:0 auto}
.gl-brand{grid-column:2;display:flex;flex-direction:column;align-items:center;text-align:center;color:var(--ink)}
.gl-brand:hover{color:var(--ink)}
.gl-brand__logo{width:56px;height:56px}
.gl-brand__logo img{width:56px;height:56px;object-fit:contain}
.gl-brand__name{font-size:26px;font-weight:800;letter-spacing:.02em;color:var(--green-d);line-height:1.2;margin-top:4px}
.gl-brand__tag{font-size:12px;color:var(--muted)}
.gl-util{grid-column:3;justify-self:end;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.gl-util__links{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 14px;font-size:13px}
.gl-util__links a{color:var(--muted)}
.gl-util__links a:hover{color:var(--green-d)}
.gl-search{display:flex;align-items:center;gap:6px}
.gl-search__btn{background:none;border:0;cursor:pointer;padding:6px;color:var(--green-d);display:flex}
.gl-search__btn svg{width:22px;height:22px}
.gl-search__form{display:none;gap:6px}
.gl-search.is-open .gl-search__form{display:flex}
.gl-search__form input[type=search]{border:1px solid var(--line);border-radius:999px;padding:6px 14px;font-size:14px;width:190px;font-family:inherit}
.gl-search__form button{border:0;background:var(--green);color:#fff;border-radius:999px;padding:6px 14px;cursor:pointer;font-family:inherit}

/* Layout */
.gl-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:32px;padding:32px 0 48px;align-items:start}
.gl-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 24px}
.gl-heading{font-size:22px;margin:0 0 20px;padding-left:12px;border-left:5px solid var(--green)}

/* Post tile */
.gl-item{display:flex;flex-direction:column;gap:10px}
.gl-card{background:var(--card);border-radius:var(--radius);overflow:hidden;box-shadow:0 2px 10px rgba(30,90,60,.08);flex:1;transition:transform .2s,box-shadow .2s}
.gl-card:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(30,90,60,.14)}
.gl-card__img{display:block;aspect-ratio:16/10;background:var(--green-l);overflow:hidden}
.gl-card__img img{width:100%;height:100%;object-fit:cover}
.gl-card__ph{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#cfeedd,#e9f7ef)}
.gl-card__ph svg{width:64px;height:64px;opacity:.7}
.gl-card__body{padding:16px 18px 18px}
.gl-card__date{font-size:12px;color:var(--muted)}
.gl-card__title{font-size:18px;line-height:1.5;margin:4px 0 8px}
.gl-card__title a{color:var(--ink)}
.gl-card__title a:hover{color:var(--green-d)}
.gl-card__excerpt{font-size:14px;color:#47564e;margin:0}
.gl-more{align-self:flex-start;background:var(--green);color:#fff;border-radius:999px;padding:7px 20px;font-size:14px;font-weight:700}
.gl-more:hover{background:var(--orange);color:#fff}

/* Full width blocks */
.gl-full{grid-column:1/-1}
.gl-news{background:linear-gradient(135deg,var(--green),#4cc08a);color:#fff;border-radius:var(--radius);padding:32px 28px;text-align:center}
.gl-news h2{margin:0 0 6px;font-size:24px}
.gl-news p{margin:0 0 18px;opacity:.95}
.gl-news form{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.gl-news input[type=email]{padding:12px 18px;border-radius:999px;border:0;min-width:280px;font-size:15px;font-family:inherit}
.gl-news button{padding:12px 28px;border-radius:999px;border:0;background:var(--orange);color:#fff;font-weight:700;font-size:15px;cursor:pointer;font-family:inherit}
.gl-news button:hover{background:#e87725}
.gl-news__thanks{display:none;font-size:18px;font-weight:700;padding:10px 0}
.gl-news.is-done form,.gl-news.is-done p{display:none}
.gl-news.is-done .gl-news__thanks{display:block}

.gl-poll{background:#fff;border:2px solid var(--green-l);border-radius:var(--radius);padding:28px}
.gl-poll__label{display:inline-block;background:var(--green-l);color:var(--green-d);font-size:12px;font-weight:700;border-radius:999px;padding:2px 12px}
.gl-poll h2{font-size:21px;margin:8px 0 16px}
.gl-poll__opt{position:relative;display:block;width:100%;text-align:left;background:#f3f8f5;border:1px solid var(--line);border-radius:10px;padding:12px 16px;margin-bottom:10px;cursor:pointer;overflow:hidden;font-size:15px;font-family:inherit;color:var(--ink)}
.gl-poll__opt:hover:not(:disabled){border-color:var(--green)}
.gl-poll__bar{position:absolute;inset:0 auto 0 0;background:#bfe6d0;width:0;transition:width .6s ease;z-index:0}
.gl-poll__row{position:relative;z-index:1;display:flex;justify-content:space-between;gap:12px}
.gl-poll__opt.is-mine{border-color:var(--green);font-weight:700}
.gl-poll__opt:disabled{cursor:default}
.gl-poll__meta{font-size:13px;color:var(--muted);margin-top:6px}

/* Sidebar */
.gl-side{position:sticky;top:20px;display:flex;flex-direction:column;gap:24px}
.gl-aff{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:12px;text-align:center}
.gl-aff__pr{font-size:11px;color:var(--muted);text-align:left;margin-bottom:6px}
.gl-aff__img{border-radius:10px;overflow:hidden;display:block}
.gl-aff__img img{width:100%}
.gl-aff__ph{background:linear-gradient(135deg,#ffb84d,#ff8a3d);color:#fff;font-weight:800;padding:60px 12px;border-radius:10px;font-size:20px}
.gl-aff__note{font-size:11px;color:var(--muted);margin:8px 0 0;line-height:1.5}

/* Single */
.gl-article{background:#fff;border-radius:var(--radius);padding:28px;box-shadow:0 2px 10px rgba(30,90,60,.08)}
.gl-article h1{font-size:26px;line-height:1.4;margin:0 0 8px}
.gl-article .gl-card__date{display:block;margin-bottom:16px}
.gl-article__thumb{margin-bottom:20px;border-radius:10px;overflow:hidden}
.gl-article__content h2{border-left:5px solid var(--green);padding-left:10px;font-size:21px;margin-top:2em}
.gl-article__content h3{font-size:18px;color:var(--green-d)}

/* Pagination */
.navigation.pagination{grid-column:1/-1;margin-top:8px}
.nav-links{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.page-numbers{background:#fff;border:1px solid var(--line);border-radius:999px;padding:6px 16px;font-size:14px}
.page-numbers.current{background:var(--green);color:#fff;border-color:var(--green)}

/* Footer */
.gl-footer{background:#1f3a2d;color:#cfe3d7;padding:32px 0 24px;font-size:13px}
.gl-footer__notes{max-width:900px;margin:0 auto 20px;display:flex;flex-direction:column;gap:8px;text-align:center;line-height:1.7}
.gl-footer__notes p{margin:0}
.gl-footer__copy{text-align:center;border-top:1px solid rgba(255,255,255,.15);padding-top:16px;font-size:14px;color:#fff;letter-spacing:.05em}

@media(max-width:900px){
  .gl-layout{grid-template-columns:1fr}
  .gl-side{position:static}
}
@media(max-width:640px){
  .gl-header__inner{grid-template-columns:1fr;justify-items:center}
  .gl-brand,.gl-util{grid-column:1}
  .gl-util{align-items:center;justify-self:center}
  .gl-util__links{justify-content:center}
  .gl-grid{grid-template-columns:1fr}
  .gl-news input[type=email]{min-width:0;width:100%}
}
