/*
Theme Name: NKTS Simply Theme
Theme URI: https://nk-ts.co.jp/
Description: NK Base Theme child theme for simple corporate sites. Header and footer are controlled by the child theme. Front page uses standard WordPress homepage settings and cleanly displays custom HTML, blocks, and shortcodes.
Author: NK Technical Support
Author URI: https://nk-ts.co.jp/
Template: nk-base-theme
Version: 1.0.6
Text Domain: nkts-simply
Tags: corporate, simple, custom-html, responsive, child-theme
*/

:root{
  --simply-bg:#f6f8fb;
  --simply-surface:#ffffff;
  --simply-ink:#152238;
  --simply-muted:#5c6f88;
  --simply-primary:#2357a5;
  --simply-primary-dark:#102848;
  --simply-accent:#4f8df7;
  --simply-line:#d9e3ef;
  --simply-header-bg:rgba(255,255,255,.96);
  --simply-header-text:#152238;
  --simply-footer-bg:#0f213b;
  --simply-footer-text:rgba(255,255,255,.74);
  --simply-radius:20px;
  --simply-container:1180px;
  --simply-content:1040px;
  --simply-shadow:0 18px 50px rgba(16,40,72,.08);
  --simply-shadow-soft:0 10px 28px rgba(16,40,72,.06);
  --simply-font:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
}

body.simply-theme{
  background:var(--simply-bg);
  color:var(--simply-ink);
  font-family:var(--simply-font);
  line-height:1.85;
}
body.simply-theme *{box-sizing:border-box;}
body.simply-theme a{color:inherit;text-underline-offset:.2em;}
.simply-container{width:min(var(--simply-container),calc(100% - 40px));margin-inline:auto;}
.simply-content-container{width:min(var(--simply-content),calc(100% - 40px));margin-inline:auto;}

/* ============================================================
   Header controlled by child theme
   ============================================================ */
.simply-header{
  position:relative;
  z-index:100;
  background:var(--simply-header-bg);
  color:var(--simply-header-text);
  border-bottom:1px solid rgba(16,40,72,.08);
  backdrop-filter:blur(14px);
}
.simply-header.is-sticky{position:sticky;top:0;}
.admin-bar .simply-header.is-sticky{top:32px;}
.simply-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:76px;
}
.simply-header__brand{display:flex;align-items:center;gap:12px;min-width:0;text-decoration:none;}
.simply-header__logo img,
.simply-header .custom-logo-link img{
  display:block;
  width:auto;
  max-width:260px;
  max-height:var(--simply-logo-height,46px);
  height:auto;
  object-fit:contain;
  filter:none!important;
  -webkit-filter:none!important;
  mix-blend-mode:normal!important;
  opacity:1!important;
  background:transparent!important;
}
.simply-header__site-name{display:grid;gap:0;line-height:1.25;min-width:0;}
.simply-header__title{font-size:1.05rem;font-weight:900;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--simply-header-text);}
.simply-header__tagline{font-size:.78rem;color:var(--simply-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.simply-header__nav-wrap{display:flex;align-items:center;gap:18px;margin-left:auto;}
.simply-menu{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin:0;padding:0;list-style:none;}
.simply-menu li{position:relative;margin:0;padding:0;list-style:none;}
.simply-menu a{
  display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:999px;
  color:var(--simply-header-text);text-decoration:none;font-weight:800;font-size:.94rem;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.simply-menu a:hover,.simply-menu .current-menu-item>a{background:rgba(35,87,165,.08);color:var(--simply-primary);}
.simply-header__cta{
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:999px;
  background:linear-gradient(135deg,var(--simply-primary),var(--simply-accent));color:#fff!important;text-decoration:none;font-weight:900;
  box-shadow:0 10px 26px rgba(35,87,165,.18);transition:transform .18s ease,box-shadow .18s ease;
}
.simply-header__cta:hover{transform:translateY(-1px);box-shadow:0 14px 34px rgba(35,87,165,.22);}
.simply-nav-toggle{display:none;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--simply-line);border-radius:14px;background:#fff;color:var(--simply-ink);cursor:pointer;}
.simply-nav-toggle span{display:block;width:20px;height:2px;background:currentColor;border-radius:9px;position:relative;}
.simply-nav-toggle span::before,.simply-nav-toggle span::after{content:"";position:absolute;left:0;width:20px;height:2px;background:currentColor;border-radius:9px;transition:transform .2s ease,top .2s ease;}
.simply-nav-toggle span::before{top:-7px}.simply-nav-toggle span::after{top:7px}
.simply-header.is-open .simply-nav-toggle span{background:transparent;}
.simply-header.is-open .simply-nav-toggle span::before{top:0;transform:rotate(45deg);}
.simply-header.is-open .simply-nav-toggle span::after{top:0;transform:rotate(-45deg);}

/* ============================================================
   Footer controlled by child theme
   ============================================================ */
.simply-footer{position:relative;background:var(--simply-footer-bg);color:var(--simply-footer-text);overflow:hidden;}
.simply-footer::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 10% 0%,rgba(79,141,247,.16),transparent 0 28%),radial-gradient(circle at 86% 16%,rgba(101,220,255,.10),transparent 0 24%);pointer-events:none;}
.simply-footer a{color:inherit;text-decoration:none;}
.simply-footer__inner{position:relative;z-index:1;padding:60px 0 22px;}
.simply-footer__top{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:30px;align-items:start;padding-bottom:30px;border-bottom:1px solid rgba(255,255,255,.10);}
.simply-footer__brand{display:grid;gap:14px;}
.simply-footer__logo img,.simply-footer .custom-logo-link img{display:block;max-width:min(280px,100%);max-height:58px;width:auto;height:auto;object-fit:contain;filter:none!important;-webkit-filter:none!important;mix-blend-mode:normal!important;opacity:1!important;background:transparent!important;}
.simply-footer__company{margin:0;color:#fff;font-size:1.24rem;font-weight:900;}
.simply-footer__desc{max-width:720px;margin:0;color:rgba(255,255,255,.72);line-height:1.95;}
.simply-footer__contact-card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);border-radius:24px;padding:24px;box-shadow:0 18px 42px rgba(0,0,0,.16);}
.simply-footer__contact-title{margin:0 0 10px;color:#fff;font-size:1.1rem;font-weight:900;}
.simply-footer__contact-list{list-style:none;margin:0;padding:0;display:grid;gap:8px;color:rgba(255,255,255,.72);}
.simply-footer__contact-list strong{color:#fff;font-weight:900;}
.simply-footer__nav-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:28px;padding:30px 0 24px;}
.simply-footer__col h3{margin:0 0 14px;color:#fff;font-size:1rem;font-weight:900;}
.simply-footer-menu,.simply-footer__links{list-style:none;margin:0;padding:0;display:grid;gap:10px;}
.simply-footer-menu a,.simply-footer__links a{color:rgba(255,255,255,.72);transition:color .18s ease,transform .18s ease;}
.simply-footer-menu a:hover,.simply-footer__links a:hover{color:#fff;transform:translateX(2px);}
.simply-footer__bottom{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:18px;border-top:1px solid rgba(255,255,255,.10);}
.simply-footer__copy,.simply-footer__legal{margin:0;color:rgba(255,255,255,.56);font-size:.84rem;}
.simply-footer__legal{display:flex;gap:14px;flex-wrap:wrap;}
.simply-footer__legal a{color:rgba(255,255,255,.62);}.simply-footer__legal a:hover{color:#fff;}

/* ============================================================
   Standard WordPress page/post rendering
   ============================================================ */
.simply-main{min-height:55vh;}
.simply-page{padding:clamp(44px,6vw,78px) 0;}
.simply-page--front{padding-top:0;}
.simply-article{background:transparent;}
.simply-article__header{margin-bottom:28px;}
.simply-page-title{font-size:clamp(2rem,4vw,3.2rem);line-height:1.22;margin:0;color:var(--simply-primary-dark);font-weight:950;letter-spacing:-.025em;}
.simply-meta{margin:.8rem 0 0;color:var(--simply-muted);font-size:.92rem;}
.simply-entry{font-size:1rem;line-height:1.95;color:var(--simply-ink);}
.simply-entry::after{content:"";display:block;clear:both;}
.simply-entry > *:first-child{margin-top:0;}
.simply-entry > *:last-child{margin-bottom:0;}
.simply-entry p{margin:0 0 1.25em;}
.simply-entry h1,.simply-entry h2,.simply-entry h3,.simply-entry h4,.simply-entry h5,.simply-entry h6{color:var(--simply-primary-dark);font-weight:950;line-height:1.28;letter-spacing:-.02em;margin:1.9em 0 .7em;}
.simply-entry h1{font-size:clamp(2.2rem,5vw,4rem);}.simply-entry h2{font-size:clamp(1.75rem,3vw,2.6rem);}.simply-entry h3{font-size:clamp(1.35rem,2vw,1.8rem);}.simply-entry h4{font-size:1.18rem;}
.simply-entry a{color:var(--simply-primary);font-weight:800;}
.simply-entry img{max-width:100%;height:auto;vertical-align:middle;}
.simply-entry figure{margin:1.7rem 0;}.simply-entry figcaption{color:var(--simply-muted);font-size:.88rem;text-align:center;margin-top:.6rem;}
.simply-entry ul,.simply-entry ol{margin:1.2em 0 1.4em;padding-left:1.45em;}.simply-entry li{margin:.35em 0;}
.simply-entry blockquote{margin:1.8rem 0;padding:1.2rem 1.4rem;border-left:5px solid var(--simply-primary);background:#fff;border-radius:0 16px 16px 0;box-shadow:var(--simply-shadow-soft);color:#31445f;}
.simply-entry table{width:100%;border-collapse:collapse;margin:1.6rem 0;background:#fff;border-radius:14px;overflow:hidden;box-shadow:var(--simply-shadow-soft);}
.simply-entry th,.simply-entry td{padding:14px 16px;border:1px solid var(--simply-line);vertical-align:top;}.simply-entry th{background:#eef4fb;color:var(--simply-primary-dark);font-weight:900;}
.simply-entry pre{max-width:100%;overflow:auto;border-radius:16px;background:#0f172a;color:#e5eefb;padding:1rem 1.1rem;line-height:1.7;}.simply-entry code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;}

/* Custom HTML / blocks display support */
.simply-entry .wp-block-group,.simply-entry .wp-block-cover,.simply-entry .wp-block-columns,.simply-entry .wp-block-media-text{margin-top:0;margin-bottom:0;}
.simply-entry .alignwide{width:min(1180px,calc(100vw - 40px));max-width:none;margin-left:50%;transform:translateX(-50%);}
.simply-entry .alignfull{width:100vw;max-width:none;margin-left:50%;transform:translateX(-50%);}
.simply-entry .wp-block-cover.alignfull,.simply-entry .wp-block-group.alignfull{padding-left:max(20px,calc((100vw - var(--simply-container))/2));padding-right:max(20px,calc((100vw - var(--simply-container))/2));}
.simply-entry .wp-block-button__link,.simply-entry a.button,.simply-entry .button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.78rem 1.15rem;border-radius:999px;background:linear-gradient(135deg,var(--simply-primary),var(--simply-accent));color:#fff!important;text-decoration:none;font-weight:900;border:0;box-shadow:0 12px 28px rgba(35,87,165,.16);}
.simply-entry .wp-block-button.is-style-outline .wp-block-button__link{background:#fff;color:var(--simply-primary)!important;border:1px solid rgba(35,87,165,.25);box-shadow:none;}
.simply-entry iframe,.simply-entry video,.simply-entry embed{max-width:100%;}
.simply-entry .wp-block-embed__wrapper{position:relative;}.simply-entry .wp-block-embed__wrapper iframe{width:100%;}
.simply-entry input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),.simply-entry textarea,.simply-entry select{width:100%;max-width:100%;border:1px solid var(--simply-line);border-radius:14px;padding:.9rem 1rem;background:#fff;color:var(--simply-ink);font:inherit;}
.simply-entry input[type="submit"],.simply-entry button[type="submit"]{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.78rem 1.3rem;border:0;border-radius:999px;background:linear-gradient(135deg,var(--simply-primary),var(--simply-accent));color:#fff;font-weight:900;cursor:pointer;box-shadow:0 12px 28px rgba(35,87,165,.16);}
.simply-entry .wpcf7,.simply-entry form{max-width:100%;}.simply-entry .wpcf7 p{margin-bottom:1rem;}
.simply-entry .nk-section,.simply-entry section{max-width:100%;}

/* Blog list */
.simply-post-list{display:grid;gap:20px;}
.simply-post-card{background:#fff;border:1px solid var(--simply-line);border-radius:22px;padding:24px;box-shadow:var(--simply-shadow-soft);}
.simply-post-card__title{margin:0;font-size:1.35rem;line-height:1.35;color:var(--simply-primary-dark);}.simply-post-card__title a{text-decoration:none;}
.simply-post-card__excerpt{color:var(--simply-muted);margin:1rem 0 0;}
.simply-pagination{margin-top:32px;}
.simply-pagination .nav-links{display:flex;gap:10px;flex-wrap:wrap;}.simply-pagination a,.simply-pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;border-radius:999px;background:#fff;border:1px solid var(--simply-line);text-decoration:none;font-weight:800;}.simply-pagination .current{background:var(--simply-primary);color:#fff;border-color:var(--simply-primary);}

/* Accessibility */
.simply-header a:focus-visible,.simply-footer a:focus-visible,.simply-entry a:focus-visible,.simply-nav-toggle:focus-visible{outline:3px solid rgba(79,141,247,.45);outline-offset:3px;}

@media (max-width:1024px){
  .simply-header__inner{min-height:68px;}
  .simply-nav-toggle{display:inline-flex;}
  .simply-header__nav-wrap{position:absolute;left:20px;right:20px;top:calc(100% + 10px);display:none;flex-direction:column;align-items:stretch;gap:12px;background:#fff;border:1px solid var(--simply-line);border-radius:22px;padding:16px;box-shadow:var(--simply-shadow);}
  .simply-header.is-open .simply-header__nav-wrap{display:flex;}
  .simply-menu{display:grid;gap:2px;align-items:stretch;justify-content:stretch;}
  .simply-menu a{border-radius:14px;justify-content:flex-start;}
  .simply-header__cta{width:100%;}
  .simply-footer__top,.simply-footer__nav-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:782px){.admin-bar .simply-header.is-sticky{top:46px;}}
@media (max-width:760px){
  .simply-container,.simply-content-container{width:min(100% - 32px,var(--simply-container));}
  .simply-header__tagline{display:none;}
  .simply-header__title{font-size:1rem;}
  .simply-page{padding:38px 0 56px;}
  .simply-entry{font-size:.98rem;line-height:1.9;}
  .simply-entry .alignwide{width:calc(100vw - 32px);}
  .simply-footer__inner{padding:48px 0 18px;}
  .simply-footer__top,.simply-footer__nav-grid,.simply-footer__bottom{display:grid;grid-template-columns:1fr;}
}

/* fallback wp_page_menu */
.simply-menu-wrap ul{display:flex;align-items:center;gap:4px;margin:0;padding:0;list-style:none;}
.simply-menu-wrap li{list-style:none;margin:0;padding:0;}
.simply-menu-wrap a{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:999px;color:var(--simply-header-text);text-decoration:none;font-weight:800;font-size:.94rem;}
.simply-menu-wrap a:hover{background:rgba(35,87,165,.08);color:var(--simply-primary);}
.simply-footer__col h2{margin:0 0 14px;color:#fff;font-size:1rem;font-weight:900;}
body.simply-content-style-lp .simply-content-container{width:min(var(--simply-container),calc(100% - 40px));}
body.simply-content-style-plain{background:#fff;}
body.simply-content-style-plain .simply-page{padding:36px 0;}
body.simply-content-style-plain .simply-entry blockquote,
body.simply-content-style-plain .simply-entry table,
body.simply-content-style-plain .simply-post-card{box-shadow:none;}
@media (max-width:1024px){.simply-menu-wrap ul{display:grid;gap:2px;align-items:stretch;}.simply-menu-wrap a{border-radius:14px;justify-content:flex-start;}}


/* ============================================================
   v1.0.1 Header refinement
   Long menu labels are grouped into "その他" by PHP and never break vertically.
   ============================================================ */
.simply-header{
  background:rgba(255,255,255,.98);
  box-shadow:0 1px 0 rgba(16,40,72,.06),0 12px 36px rgba(16,40,72,.04);
}
.simply-header__container{width:min(var(--simply-container),calc(100% - 48px));}
.simply-header__inner{
  min-height:74px;
  display:flex;
  align-items:center;
  gap:22px;
}
.simply-header__brand{
  flex:0 0 auto;
  width:min(330px,28vw);
  min-width:210px;
  display:flex;
  align-items:center;
  gap:12px;
  overflow:hidden;
}
.simply-header__logo{
  flex:0 0 auto;
  display:flex;
  align-items:center;
}
.simply-header__logo img,
.simply-header .simply-header__logo-img{
  max-height:var(--simply-logo-height,44px);
  max-width:120px;
  width:auto;
  object-fit:contain;
  filter:none!important;
  -webkit-filter:none!important;
  mix-blend-mode:normal!important;
}
.simply-header__site-name{
  min-width:0;
  max-width:190px;
}
.simply-header__title{
  display:block;
  max-width:100%;
  color:#12233d;
  font-size:.98rem;
  line-height:1.25;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.simply-header__tagline{
  display:block;
  max-width:100%;
  color:#64748b;
  font-size:.72rem;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.simply-header__nav-wrap{
  flex:1 1 auto;
  min-width:0;
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
}
.simply-header__nav{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.simply-menu{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
  gap:4px;
  margin:0;
  padding:0;
  list-style:none;
}
.simply-menu__item{
  position:relative;
  flex:0 0 auto;
  list-style:none;
  margin:0;
  padding:0;
}
.simply-menu a,
.simply-menu__more-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  max-width:128px;
  padding:0 10px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:#16243a;
  font:inherit;
  font-size:.86rem;
  line-height:1.1;
  font-weight:850;
  letter-spacing:.01em;
  text-decoration:none;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  word-break:keep-all;
  overflow-wrap:normal;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease;
}
.simply-menu a span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:keep-all;overflow-wrap:normal;}
.simply-menu a:hover,
.simply-menu .current-menu-item > a,
.simply-menu__more.is-open > .simply-menu__more-toggle,
.simply-menu__more-toggle:hover{
  background:#eef5ff;
  color:var(--simply-primary);
}
.simply-menu__more-toggle::after{
  content:"";
  width:6px;
  height:6px;
  margin-left:7px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-1px);
  flex:0 0 auto;
}
.simply-submenu{
  position:absolute;
  right:0;
  top:calc(100% + 12px);
  display:none;
  min-width:240px;
  max-width:320px;
  margin:0;
  padding:10px;
  list-style:none;
  background:#fff;
  border:1px solid var(--simply-line);
  border-radius:18px;
  box-shadow:0 24px 60px rgba(16,40,72,.14);
}
.simply-menu__more.is-open .simply-submenu,
.simply-menu__more:hover .simply-submenu{display:grid;gap:4px;}
.simply-submenu a{
  width:100%;
  max-width:none;
  justify-content:flex-start;
  border-radius:12px;
  min-height:40px;
}
.simply-header__cta{
  flex:0 0 auto;
  min-height:44px;
  padding:0 18px;
  white-space:nowrap;
  font-size:.92rem;
}

@media (max-width:1180px){
  .simply-header__container{width:min(100% - 36px,var(--simply-container));}
  .simply-header__brand{width:auto;max-width:calc(100% - 58px);min-width:0;}
  .simply-header__site-name{max-width:220px;}
  .simply-nav-toggle{display:inline-flex;margin-left:auto;}
  .simply-header__nav-wrap{
    position:absolute;
    left:18px;
    right:18px;
    top:calc(100% + 10px);
    display:none;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:12px;
    background:#fff;
    border:1px solid var(--simply-line);
    border-radius:22px;
    padding:14px;
    box-shadow:0 24px 70px rgba(16,40,72,.16);
  }
  .simply-header.is-open .simply-header__nav-wrap{display:flex;}
  .simply-header__nav{display:block;width:100%;}
  .simply-menu{display:grid;grid-template-columns:1fr;gap:4px;align-items:stretch;justify-content:stretch;}
  .simply-menu__item{width:100%;}
  .simply-menu a,.simply-menu__more-toggle{width:100%;max-width:none;justify-content:flex-start;border-radius:14px;padding:0 12px;}
  .simply-menu__more-toggle{justify-content:space-between;}
  .simply-submenu{position:static;display:none;min-width:0;max-width:none;margin-top:6px;padding:6px;background:#f7faff;box-shadow:none;border-radius:14px;}
  .simply-menu__more:hover .simply-submenu{display:none;}
  .simply-menu__more.is-open .simply-submenu{display:grid;}
  .simply-header__cta{width:100%;}
}
@media (max-width:760px){
  .simply-header__inner{min-height:66px;}
  .simply-header__logo img,.simply-header .simply-header__logo-img{max-width:92px;}
  .simply-header__site-name{max-width:170px;}
  .simply-header__tagline{display:none;}
}


/* ============================================================
   v1.0.3 Header/Footer UX polish
   見やすさ・操作性・スマホ対応を強化
   ============================================================ */
:root{
  --simply-header-height:76px;
}
.simply-site{min-height:100vh;display:flex;flex-direction:column;}
.simply-main{flex:1 0 auto;}
.simply-header{
  border-bottom:1px solid rgba(16,40,72,.075);
  backdrop-filter:saturate(1.2) blur(18px);
  -webkit-backdrop-filter:saturate(1.2) blur(18px);
}
body.simply-header-design-glass .simply-header{background:rgba(255,255,255,.9);}
body.simply-header-design-solid .simply-header{background:#fff;box-shadow:0 1px 0 rgba(16,40,72,.08),0 16px 42px rgba(16,40,72,.06);}
body.simply-header-design-dark .simply-header{background:#102848;color:#fff;border-bottom-color:rgba(255,255,255,.1);}
body.simply-header-design-dark .simply-header__title,
body.simply-header-design-dark .simply-menu a,
body.simply-header-design-dark .simply-menu__more-toggle{color:#fff;}
body.simply-header-design-dark .simply-header__tagline{color:rgba(255,255,255,.7);}
body.simply-header-design-dark .simply-nav-toggle{background:rgba(255,255,255,.1);color:#fff;border-color:rgba(255,255,255,.18);}
.simply-header__container{width:min(var(--simply-container),calc(100% - 48px));}
.simply-header__inner{min-height:var(--simply-header-height);gap:clamp(14px,2vw,28px);}
.simply-header__brand{border-radius:18px;padding:8px 0;}
.simply-header__logo-mark,
.simply-footer__logo-mark{
  display:grid;place-items:center;width:42px;height:42px;border-radius:14px;
  background:linear-gradient(135deg,var(--simply-primary),var(--simply-accent));
  color:#fff;font-weight:950;font-size:1.12rem;box-shadow:0 12px 28px rgba(35,87,165,.2);
}
.simply-header__title{font-size:clamp(.92rem,1.2vw,1.04rem);letter-spacing:.015em;}
.simply-header__tagline{font-size:.74rem;}
.simply-nav-toggle{gap:8px;font-weight:900;}
.simply-nav-toggle em{font-style:normal;font-size:.78rem;line-height:1;}
.simply-header__cta{min-height:46px;padding:0 20px;border-radius:999px;}
.simply-header__cta::after{content:"›";font-size:1.1em;margin-left:.45em;line-height:1;}
.simply-header__cta:hover{filter:saturate(1.08);}
.simply-menu a,.simply-menu__more-toggle{min-height:42px;}
.simply-menu a span{line-height:1.2;}

.simply-footer{
  background:linear-gradient(180deg,#102848 0%,var(--simply-footer-bg) 100%);
}
.simply-footer::before{
  background:
    radial-gradient(circle at 12% 8%,rgba(79,141,247,.22),transparent 0 26%),
    radial-gradient(circle at 88% 16%,rgba(84,210,255,.12),transparent 0 24%),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(180deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:auto,auto,72px 72px,72px 72px;
}
.simply-footer__inner{padding:clamp(46px,6vw,72px) 0 22px;}
.simply-footer__top{grid-template-columns:minmax(0,1.05fr) minmax(300px,.95fr);gap:clamp(22px,4vw,46px);}
.simply-footer__brand{align-content:start;}
.simply-footer__company{font-size:clamp(1.15rem,2vw,1.55rem);letter-spacing:.01em;line-height:1.45;}
.simply-footer__desc{font-size:.96rem;}
.simply-footer__contact-card{
  background:rgba(255,255,255,.075);
  border:1px solid rgba(255,255,255,.13);
  box-shadow:0 24px 60px rgba(0,0,0,.18);
}
.simply-footer__contact-title{display:flex;align-items:center;gap:10px;}
.simply-footer__contact-title::before{content:"";width:10px;height:10px;border-radius:999px;background:var(--simply-accent);box-shadow:0 0 0 6px rgba(79,141,247,.12);}
.simply-footer__contact-list li{display:grid;grid-template-columns:88px minmax(0,1fr);gap:10px;align-items:start;}
.simply-footer__contact-list a{overflow-wrap:anywhere;}
.simply-footer__nav-grid{grid-template-columns:1fr 1fr minmax(220px,.8fr);}
.simply-footer__col h2,
.simply-footer__col h3{font-size:.92rem;letter-spacing:.08em;text-transform:uppercase;color:#fff;}
.simply-footer-menu a,.simply-footer__links a{display:inline-flex;align-items:center;gap:8px;min-height:32px;}
.simply-footer-menu a::before,.simply-footer__links a::before{content:"";width:5px;height:5px;border-radius:50%;background:rgba(79,141,247,.8);flex:0 0 auto;}
.simply-footer__home-button{
  display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:.78rem 1.15rem;border-radius:999px;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);color:#fff!important;font-weight:900;text-decoration:none;
}
.simply-footer__home-button:hover{background:#fff;color:var(--simply-primary-dark)!important;}
.simply-footer__bottom{font-size:.85rem;}
body.simply-footer-design-compact .simply-footer__inner{padding-top:40px;}
body.simply-footer-design-compact .simply-footer__top{grid-template-columns:1fr;}
body.simply-footer-design-compact .simply-footer__nav-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
body.simply-footer-design-simple .simply-footer::before{display:none;}
body.simply-footer-design-simple .simply-footer__contact-card{background:transparent;box-shadow:none;}

@media (max-width:1180px){
  .simply-header__container{width:min(100% - 36px,var(--simply-container));}
  .simply-header__inner{min-height:68px;}
  .simply-nav-toggle{display:inline-flex;margin-left:auto;}
  .simply-header__nav-wrap{
    position:absolute;left:18px;right:18px;top:calc(100% + 10px);
    display:none;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:12px;
    background:#fff;border:1px solid var(--simply-line);border-radius:24px;padding:14px;
    box-shadow:0 28px 80px rgba(16,40,72,.18);
  }
  body.simply-header-design-dark .simply-header__nav-wrap{background:#122b4c;border-color:rgba(255,255,255,.12);}
  .simply-header.is-open .simply-header__nav-wrap{display:flex;animation:simplyMenuIn .18s ease both;}
  .simply-header__nav{display:block;width:100%;}
  .simply-menu{display:grid;grid-template-columns:1fr;gap:4px;align-items:stretch;justify-content:stretch;}
  .simply-menu__item{width:100%;}
  .simply-menu a,.simply-menu__more-toggle{width:100%;max-width:none;justify-content:flex-start;border-radius:16px;padding:0 13px;min-height:46px;}
  .simply-menu__more-toggle{justify-content:space-between;}
  .simply-submenu{position:static;display:none;min-width:0;max-width:none;margin-top:6px;padding:7px;background:#f7faff;box-shadow:none;border-radius:16px;}
  body.simply-header-design-dark .simply-submenu{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.12);}
  .simply-menu__more:hover .simply-submenu{display:none;}
  .simply-menu__more.is-open .simply-submenu{display:grid;}
  .simply-header__cta{width:100%;min-height:50px;}
  .simply-footer__top,.simply-footer__nav-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:782px){.admin-bar .simply-header.is-sticky{top:46px;}}
@media (max-width:760px){
  .simply-container,.simply-content-container{width:min(100% - 32px,var(--simply-container));}
  .simply-header__container{width:min(100% - 28px,var(--simply-container));}
  .simply-header__inner{min-height:64px;}
  .simply-header__brand{max-width:calc(100% - 56px);}
  .simply-header__logo-mark{width:38px;height:38px;border-radius:13px;}
  .simply-header__site-name{max-width:200px;}
  .simply-header__title{font-size:.96rem;}
  .simply-header__tagline{display:none;}
  .simply-nav-toggle{width:44px;height:44px;}
  .simply-nav-toggle em{display:none;}
  .simply-header__nav-wrap{left:14px;right:14px;top:calc(100% + 8px);border-radius:20px;}
  .simply-footer__inner{padding:42px 0 18px;}
  .simply-footer__top,.simply-footer__nav-grid,.simply-footer__bottom{display:grid;grid-template-columns:1fr;}
  .simply-footer__contact-card{padding:20px;border-radius:20px;}
  .simply-footer__contact-list li{grid-template-columns:1fr;gap:2px;}
  .simply-footer__bottom{gap:8px;}
}
@keyframes simplyMenuIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}


/* v1.0.4: Simplyでは表示しないフッター説明文を保険的に非表示 */
.simply-footer__desc{display:none!important;}


/* ============================================================
   v1.0.5 Typography controls
   管理画面 Simply設定 → 文字・フォント設定 と連動
   ============================================================ */
body.simply-theme{
  font-family:var(--simply-font-body,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);
  color:var(--simply-text-color,var(--simply-ink));
  font-size:var(--simply-base-font-size,16px);
  line-height:var(--simply-line-height,1.9);
}
.simply-header,
.simply-footer,
.simply-entry,
.simply-page,
.simply-post-card{
  font-family:var(--simply-font-body,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);
}
.simply-page-title,
.simply-entry h1,
.simply-entry h2,
.simply-entry h3,
.simply-entry h4,
.simply-entry h5,
.simply-entry h6,
.simply-header__title,
.simply-footer__brand-title,
.simply-footer__col h2{
  font-family:var(--simply-font-heading,var(--simply-font-body));
  color:var(--simply-heading-color,var(--simply-primary-dark));
}
.simply-entry{font-size:var(--simply-base-font-size,16px);line-height:var(--simply-line-height,1.9);color:var(--simply-text-color,var(--simply-ink));}
.simply-entry h1,.simply-page-title{font-size:clamp(calc(var(--simply-h1-size,48px) * .72),5vw,var(--simply-h1-size,48px))!important;}
.simply-entry h2{font-size:clamp(calc(var(--simply-h2-size,36px) * .72),3.6vw,var(--simply-h2-size,36px))!important;}
.simply-entry h3{font-size:clamp(calc(var(--simply-h3-size,28px) * .78),2.8vw,var(--simply-h3-size,28px))!important;}
.simply-entry h4{font-size:var(--simply-h4-size,22px)!important;}
.simply-entry h5{font-size:var(--simply-h5-size,18px)!important;}
.simply-entry h6{font-size:var(--simply-h6-size,16px)!important;}
.simply-entry a{color:var(--simply-link-color,var(--simply-primary));}
.simply-menu a,
.simply-menu-wrap a,
.simply-menu__more-toggle{font-size:var(--simply-menu-font-size,15px);}
.simply-footer,
.simply-footer p,
.simply-footer a,
.simply-footer li{font-size:var(--simply-footer-font-size,14px);}


/* v1.0.6: 全体一括フォント統一モード */
body.simply-theme.simply-force-global-font{
  font-family:var(--simply-font-global,var(--simply-font-body))!important;
}
body.simply-theme.simply-force-global-font .simply-entry,
body.simply-theme.simply-force-global-font .simply-header,
body.simply-theme.simply-force-global-font .simply-footer,
body.simply-theme.simply-force-global-font .simply-menu,
body.simply-theme.simply-force-global-font .simply-page-title,
body.simply-theme.simply-force-global-font :where(h1,h2,h3,h4,h5,h6,p,a,span,li,button,input,textarea,select,label,strong,small){
  font-family:var(--simply-font-global,var(--simply-font-body))!important;
}
