???????????????????????

:root{
  --bg:#fbf7f2;
  --panel:#ffffff;
  --line:#eadfd6;
  --text:#47423d;
  --muted:#6e6660;
  --blue:#6f8fa8;
  --green:#5f7f74;
  --accent:#7a9d8f;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic","Meiryo",sans-serif;
  line-height:1.8;
}
/* ==========================
   Contents Hub: border color unify with Profile (safe add)
   ========================== */
.contents-hub-card{
  border-color: rgba(89, 217, 142, 0.28) !important; /* Profile???????? */
}

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

a{
  text-decoration:none;
  color:inherit;
}

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 16px;
}

.site-header{
  background:#fbf7f2;
  border-bottom:1px solid var(--line);
}

.site-header-inner{
  padding:16px 0;
}

.site-logo{
  font-weight:700;
  color:var(--green);
  margin-bottom:12px;
}

.site-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
}

.site-nav a{
  display:inline-block;
  font-size:14px;
  font-weight:600;
  color:var(--text);
}

.site-nav a.active{
  color:var(--accent);
}

.page-main{
  padding:24px 16px 40px;
}

.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:24px;
  padding:24px;
  margin-bottom:24px;
}

.hero{
  height:320px;
  border-radius:24px;
  border:1px solid var(--line);
  background:#f2ece7;
  overflow:hidden;
}

.hero img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.news-list .item{
  padding:12px 0;
  border-bottom:1px solid #eee4db;
}

.news-list .item:last-child{
  border-bottom:none;
}

.banner-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:16px;
}

.banner{
  height:120px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#f2ece7;
  overflow:hidden;
}

.banner img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.page-title{
  margin:0 0 12px;
  color:var(--accent);
  font-size:30px;
  line-height:1.4;
}

.info-grid{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:12px;
  border-top:1px solid #eee4db;
}

.info-grid > div{
  padding:12px 0;
  border-bottom:1px solid #eee4db;
}

.admin-grid{
  display:grid;
  grid-template-columns:300px minmax(900px, 1fr);
  min-height:100vh;
}

.admin-side{
  background:#fbf8f3;
  border-right:1px solid var(--line);
  padding:24px;
}

.admin-main{
  padding:28px 34px;
  min-width:900px;
}

.admin-main .card{
  max-width:1400px;
}

.admin-nav a{
  display:block;
  padding:12px 14px;
  border-radius:14px;
  margin-bottom:8px;
  font-size:15px;
  font-weight:600;
}

.admin-nav a.active{
  background:#e8f0ec;
  color:var(--green);
}

.tool-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:14px 0;
}

.tool-btn{
  display:inline-block;
  min-height:46px;
  padding:12px 16px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fcfaf7;
  font-size:14px;
  font-weight:700;
  line-height:1.4;
  cursor:pointer;
}

.preview-box{
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  background:#fff;
}

.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.input{
  width:100%;
  min-height:46px;
  padding:12px 14px;
  border:1px solid #ddd2c9;
  border-radius:14px;
  background:#fff;
  font-size:15px;
  line-height:1.5;
}

@media (max-width:900px){
  .banner-row,
  .info-grid,
  .form-row{
    grid-template-columns:1fr;
  }

  .hero{
    height:220px;
  }

  .page-title{
    font-size:26px;
  }
}


@media (max-width:1200px){
  body.admin-body{
    overflow-x:auto;
  }
}

@media (max-width: 767px){
  .wrap{
    margin-left:8px;
    margin-right:8px;
  }

  .card{
    padding:16px 12px;
  }
}

@media (max-width: 767px){
  body .wrap{
    width:auto !important;
    max-width:none !important;
    margin-left:8px !important;
    margin-right:8px !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }

  body .page-main{
    padding-top:18px !important;
    padding-bottom:24px !important;
  }

  body .card{
    padding:16px 12px !important;
  }
}
img,
.site-image-protect{
  -webkit-user-drag:none;
  user-drag:none;
  -webkit-touch-callout:none;
}

body.image-protect-mode{
  -webkit-touch-callout:none;
}

body.image-protect-mode img{
  -webkit-user-select:none;
  user-select:none;
  -webkit-user-drag:none;
  user-drag:none;
  -webkit-touch-callout:none;
}

body.image-protect-mode .live-hero-image,
body.image-protect-mode .repo-stage-slide img,
body.image-protect-mode .repo-thumb img,
body.image-protect-mode .banner img,
body.image-protect-mode .hero img{
  -webkit-user-select:none;
  user-select:none;
  -webkit-user-drag:none;
  user-drag:none;
  -webkit-touch-callout:none;
}

body.image-protect-mode .protect-image-wrap{
  position:relative;
  display:inline-block;
}

body.image-protect-mode .protect-image-wrap img{
  display:block;
}
/* ==========================
   Home Hero Redesign (safe add)
   ========================== */
.home-hero{
  padding:0;
  border:none;
  background:transparent;
}

.home-hero .hero{
  height:auto;
  aspect-ratio:1 / 1;
  border-radius:24px;
  border:1px solid var(--line);
  background:#fff;
  overflow:hidden;
}


.home-hero .hero img{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#fff;
}


@media (min-width:900px){
  .home-hero .hero{
    aspect-ratio:auto;
    height:clamp(420px, 60vh, 720px);
  }
}


.news-list .item a{
  display:block;
  padding:10px 0;
}

.news-list .item a:hover{
  text-decoration:underline;
}
/* ==========================
   Home page visual redesign
   safe add only
   ========================== */
body.home-page{
  background:#e6fff3;
  color:#ffffff;
}

body.home-page .wrap{
  max-width:1160px;
}

body.home-page .page-main{
  padding-top:34px;
  padding-bottom:54px;
}

body.home-page .page-title{
  color:#39b86f;
  letter-spacing:0.01em;
}

/* Header */
.home-header-bar{
  background:rgba(244, 241, 235, 0.94) !important;
  border-bottom:1px solid rgba(95, 127, 116, 0.14) !important;
}

.home-header-inner{
  padding-top:22px !important;
  padding-bottom:18px !important;
}

.home-site-title{
  font-size:26px !important;
  font-weight:700;
  letter-spacing:-0.02em;
  color:#587a70 !important;
  margin-bottom:14px !important;
}

.home-main-nav{
  display:flex;
  flex-wrap:wrap;
  gap:12px 22px;
  font-size:15px !important;
  line-height:1.8 !important;
}

.home-main-nav a{
  position:relative;
  color:#3f3b36;
  transition:opacity .2s ease;
}

.home-main-nav a:hover{
  opacity:0.68;
}

/* 2column layout */
.home-top-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap:18px;
  align-items:start;
}

/* Hero */
.home-hero{
  padding:0;
  margin-bottom:0;
  border:1px solid rgba(95, 127, 116, 0.10);
  border-radius:34px;
  background:rgba(255,255,255,0.78);
  box-shadow:0 12px 34px rgba(74, 64, 53, 0.05);
  overflow:hidden;
}

.home-hero .hero{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  border:none;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:hidden;
  height:auto;
  aspect-ratio:auto;
}

.home-hero .hero img{
  display:block;
  width:100%;
  height:auto;
  margin:0 auto;
  object-fit:contain;
  background:transparent;
}

/* News card */
.home-news-card{
  border-radius:30px;
  border:1px solid rgba(95, 127, 116, 0.10);
  background:#ffffff;
  box-shadow:0 10px 30px rgba(74, 64, 53, 0.04);
  min-height:100%;
}

.home-news-card{
  color:#000000;
}

.home-news-card a{
  color:#000000;
}

.home-news-card .page-title{
  margin-bottom:20px;
}

.home-news-card .news-list{
  margin-bottom:18px;
}

.home-news-card .news-list .item{
  border-bottom:1px solid rgba(122, 157, 143, 0.16);
}

.home-news-card .news-list .item a{
  display:block;
  padding:13px 0;
  font-size:15px;
  line-height:1.9;
}

.home-news-card .news-list .item a:hover{
  text-decoration:underline;
}

.home-news-more{
  margin:0 0 18px;
}

.home-news-more a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#000000;
  font-weight:600;
}

.home-news-more a::after{
content:"\2192";
  font-size:14px;
  line-height:1;
  color:#000000;
}

/* Banners */
.home-banner-row{
  grid-template-columns:1fr;
  gap:14px;
  margin-top:18px;
}

.home-banner{
  height:118px;
  border-radius:20px;
  border:1px solid rgba(95, 127, 116, 0.10);
  background:#ece7e0;
  box-shadow:0 6px 20px rgba(74, 64, 53, 0.04);
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.home-banner:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(74, 64, 53, 0.08);
  opacity:0.96;
}

.home-banner img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Footer */
body.home-page .site-footer{
  padding:8px 0 34px;
}

body.home-page .site-footer p{
  color:#5f5a54;
}

/* Responsive */
@media (max-width:1024px){
  .home-top-layout{
    grid-template-columns:1fr;
    gap:20px;
  }

  .home-banner-row{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:900px){
  .home-hero{
    border-radius:24px;
  }

  .home-hero .hero{
    padding:14px;
    border-radius:24px;
  }

  .home-main-nav{
    gap:8px 14px;
    font-size:14px !important;
  }

  .home-banner{
    height:116px;
  }
}

@media (max-width:767px){
  body.home-page .page-main{
    padding-top:20px !important;
    padding-bottom:26px !important;
  }

  .home-site-title{
    font-size:24px !important;
    margin-bottom:10px !important;
  }

  .home-main-nav{
    gap:6px 12px;
  }

  .home-top-layout{
    gap:18px;
  }

  .home-news-card{
    border-radius:22px;
  }

  .home-banner-row{
    grid-template-columns:1fr;
  }

  .home-banner{
    height:110px;
  }
}
/* ==========================
   Common Header Redesign (safe add)
   Applies to includes/header.php only
   ========================== */
.common-site-header{
  background:#e6fff3;
  border-bottom:1px solid rgba(95, 127, 116, 0.18);
}

.common-header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px 22px;
  padding-top:18px;
  padding-bottom:16px;
  align-items:baseline;
}

/* Site title */
.common-site-logo{
  position:relative;
  display:inline-block;
  font-weight:600;
  letter-spacing:-0.02em;
  font-size:23px;
  line-height:1.2;
  color:#2f6b45;
  padding:8px 14px 8px 16px;
  border:1px solid rgba(47, 107, 69, 0.18);
  border-radius:14px;
  background:rgba(255,255,255,0.42);
}

.common-site-logo::before{
  content:"";
  position:absolute;
  left:8px;
  top:8px;
  width:6px;
  height:6px;
  background:#7fd9ae;
  border-radius:999px;
}

/* Nav */
.common-site-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
}

.common-site-nav a{
  display:inline-block;
  font-size:16px;
  font-weight:700;
  letter-spacing:0.01em;
  color:#2f6b45;
  padding:4px 4px;
  border-radius:999px;
  transition:background-color .2s ease, opacity .2s ease;
}

.common-site-nav a:hover{
  background:rgba(255,255,255,0.65);
  opacity:0.92;
}

.common-site-nav a.active{
  background:rgba(255,255,255,0.92);
  border:1px solid rgba(47, 107, 69, 0.18);
  color:#2f6b45;
}

/* Responsive */
@media (max-width:900px){
  .common-header-row{
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
    padding-top:16px;
    padding-bottom:14px;
  }

  .common-site-logo{
    font-size:21px;
  }

  .common-site-nav{
    gap:8px 12px;
  }

  .common-site-nav a{
    font-size:13px;
    padding:6px 9px;
  }
}
/* ==========================
   Contents Hub (safe add)
   ========================== */
.contents-hub{
  max-width:860px;
  margin:0 auto;
}

.contents-hub-lead{
  margin:0 0 14px;
  line-height:1.8;
  color:var(--text);
  font-size:16px;
}

.contents-hub-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.contents-hub-card{
  display:block;
  border:1px solid rgba(95,127,116,0.18);
  border-radius:18px;
  background:#ffffff;
  padding:16px 16px;
  text-decoration:none;
  position:relative;
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  box-shadow:0 8px 18px rgba(0,0,0,0.03);
}

.contents-hub-card:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 26px rgba(0,0,0,0.06);
  opacity:0.98;
}

.contents-hub-card-title{
  font-weight:700;
  font-size:18px;
  line-height:1.4;
  color:#2f5f4c;
}

.contents-hub-card-desc{
  margin-top:6px;
  font-size:14px;
  line-height:1.7;
  color:#555555;
}

.contents-hub-card-arrow{
  position:absolute;
  right:14px;
  top:16px;
  font-weight:700;
  color:#2f5f4c;
}

.direct-body a.contents-hub-card{
  text-decoration:none !important;
}
.direct-body a.contents-hub-card:hover{
  text-decoration:none !important;
}
/* ==========================
   Global BG unify (safe add)
   ========================== */
:root{
  --bg:#fffafa;
}
/* Home BG also unify (safe add) */
body.home-page{
  background:var(--bg) !important;
}
/* ==========================
   Option 1: stronger line (safe add)
   ========================== */
:root{
  --line:#e1d6cf;
}
/* Header separator: soft gradient line (safe add) */
.site-header{
  position:relative;
}
.site-header::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:10px;
  background:linear-gradient(to bottom, rgba(95,127,116,0.10), rgba(95,127,116,0.00));
  pointer-events:none;
}
/* Home main top spacing unify (safe add) */
body.home-page .page-main{
  padding-top:24px !important;
}
/* ==========================
   Home banner: Jimdo-like (contain + center)
   ========================== */
body.home-page .home-banner{
  height:auto !important;
  overflow:hidden !important;
  background:#ffffff !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:10px 12px !important; 
}

body.home-page .home-banner img{
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:120px !important;
  object-fit:contain !important;
  display:block !important;
}
/* ==========================
   Information: topic spacing tighten (safe add)
   ========================== */
.information-news-list .item{
  padding:6px 0;
}

.information-news-list .item a{
  display:block;
  line-height:1.7;
}
/* ==========================
   Information: 2-line + readable weight (safe add)
   ========================== */
.information-news-list .item a{
  display:block;
}

.information-news-list .info-news-meta{
  display:block;
  font-size:16px;
  line-height:1.6;
  color:#4f7f6b;
  font-weight:600;
}

.information-news-list .info-news-title{
  display:block;
  margin-top:0px;
  font-size:16px;
  line-height:1.75;
  color:rgba(0,0,0,0.72);
  font-weight:600;
}
/* ==========================
   News 2-line layout (reusable)
   ========================== */
.news-list.two-line .item a{
  display:block;
  padding:6px 0;
  line-height:1.7;
  text-decoration:none;
}

.news-list.two-line .news-meta{
  display:block;
  font-size:15px;
  line-height:1.6;
  color:var(--muted);
  font-weight:600;
}

.news-list.two-line .news-title{
  display:block;
  margin-top:0px;
  font-size:16px;
  line-height:1.75;
  color:var(--text);
  font-weight:600;
}

.news-list.two-line .item{
  padding:6px 0;
}
body.home-page{
  color: var(--text);
}

/* PC */
.common-site-logo{
  white-space:nowrap;
  font-size:22px;
  padding:6px 12px;
}

.common-site-nav{
  gap:8px 14px;
}

.common-site-nav a{
  font-size:16px;
  padding:4px 6px;
}

/* Tablet / small PC */
@media (max-width: 900px){
  .common-header-row{
    gap:10px;
  }
  .common-site-logo{
    font-size:20px;
  }
  .common-site-nav{
    gap:6px 10px;
  }
  .common-site-nav a{
    font-size:15px;
    padding:6px 8px;
  }
}

/* Mobile */
@media (max-width: 767px){
  .common-header-row{
    gap:15px;
    padding-top:12px;
    padding-bottom:10px;
  }

  .common-site-logo{
    font-size:20px;
    padding:6px 10px;
    margin:0;
  }

  .common-site-nav{
    gap:6px 8px;
  }

  .common-site-nav a{
    font-size:17px;
    padding:4px 6px;
    line-height:1.2;
  }
}
/* ==========================
   Footer text tuning (safe add)
   ========================== */
.site-footer p{
  font-size: 13px;
  line-height: 1.6;
  color: rgba(0,0,0,0.55);
}

@media (max-width: 767px){
  .site-footer p{
    font-size: 12px;
  }
}

.common-header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px 18px;
  flex-wrap:wrap; 
}

.common-site-logo{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 1 auto;
  min-width:0;
  max-width:100%;
  padding:4px 10px !important;
  line-height:1.15;
}


.common-site-logo-text{
  display:block;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}


.common-header-mark{
  width:38px;
  height:38px;
  flex:0 0 auto;
  display:block;
  opacity:0.92;
}

/* ?? */
.common-site-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  justify-content:flex-end;
}


@media (max-width: 900px){
  .common-header-row{
    flex-wrap:wrap;
  }
  .common-site-nav{
    flex:1 1 100%;
    justify-content:flex-start; /* ? ??? */
    margin-top:10px;
  }
}


@media (max-width: 900px){
  .common-header-row{
    flex-wrap:wrap;
  }
  .common-site-nav{
    flex:1 1 100%;
    justify-content:flex-start;
    margin-top:10px;
  }
}
  .common-header-mark{
    width:32px;
    height:32px;
  }
}

@media (max-width: 900px){
  .common-header-row{
    gap: 10px 14px !important;
  }
  .common-site-nav{
    margin-top: 4px !important;
  }
}

@media (max-width: 900px){
  .common-header-row{
    gap: 8px 12px !important;
  }
  .common-site-nav{
    margin-top: 2px !important;
  }
}
/* ===== Header layout fix for desktop/mobile ===== */

/* PCでは1行維持 */
@media (min-width: 901px){
  .common-header-row{
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:space-between !important;
  }

  .common-site-logo{
    flex:0 0 auto !important;
    margin:0 !important;
  }

  .common-site-nav{
    flex:1 1 auto !important;
    justify-content:flex-end !important;
    margin-top:0 !important;
    min-width:0 !important;
  }

  .common-site-nav a{
    font-size:15px !important;
    padding:4px 4px !important;
  }

  .header-sub-link{
    font-size:11px !important;
    margin:0 -3px !important;
    padding:0 1px !important;
  }
}

/* スマホではロゴを左寄せ固定 */
@media (max-width: 900px){
  .common-header-row{
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:flex-start !important;
  }

  .common-site-logo{
    align-self:flex-start !important;
    justify-content:flex-start !important;
    text-align:left !important;
    margin:0 !important;
  }

  .common-site-logo-text{
    text-align:left !important;
  }

  .common-site-nav{
    width:100% !important;
    justify-content:flex-start !important;
    margin-top:2px !important;
  }
}

html{
  overflow-y: scroll;
}