:root{
      --brand:#0B3D91;
      --brand-dark:#072b68;
      --brand-soft:#eaf1ff;
      --accent:#c2185b;
      --accent-dark:#971247;
      --template-theme:{主题色};
      --ink:#172033;
      --muted:#657086;
      --line:#dfe4ec;
      --surface:#ffffff;
      --surface-soft:#f5f7fa;
      --shadow:0 18px 45px rgba(18,32,60,.10);
      --radius:18px;
      --container:1180px;
    }

    *{
      box-sizing:border-box;
    }

    html{
      scroll-behavior:smooth;
    }

    body{
      margin:0;
      min-width:320px;
      color:var(--ink);
      background:var(--surface-soft);
      font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
      line-height:1.7;
    }

    body.drawer-lock{
      overflow:hidden;
    }

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

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

    button,
    input{
      font:inherit;
    }

    button{
      color:inherit;
    }

    .container{
      width:min(var(--container),calc(100% - 40px));
      margin-inline:auto;
    }

    .topbar{
      color:#eaf1ff;
      background:#071d42;
      font-size:12px;
    }

    .topbar-inner{
      min-height:36px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:24px;
    }

    .topbar-contact{
      display:flex;
      align-items:center;
      gap:20px;
    }

    .topbar a{
      transition:color .2s ease;
    }

    .topbar a:hover{
      color:#ffffff;
    }

    .header{
      position:relative;
      z-index:50;
      background:rgba(255,255,255,.98);
      border-bottom:1px solid var(--line);
      box-shadow:0 8px 24px rgba(20,35,65,.05);
    }

    .header-inner{
      min-height:76px;
      display:flex;
      align-items:center;
      gap:24px;
    }

    .logo{
      flex:0 0 auto;
      display:inline-flex;
      align-items:center;
      gap:11px;
      color:var(--brand-dark);
      font-size:18px;
      font-weight:800;
      letter-spacing:.01em;
    }

    .logo img{
      width:42px;
      height:42px;
      object-fit:contain;
      border-radius:10px;
    }

    .main-nav{
      min-width:0;
      margin-left:auto;
    }

    .nav-list{
      display:flex;
      align-items:stretch;
      gap:2px;
      margin:0;
      padding:0;
      list-style:none;
    }

    .nav-item{
      position:relative;
      display:flex;
      align-items:center;
    }

    .nav-link{
      position:relative;
      display:flex;
      align-items:center;
      min-height:76px;
      padding:0 12px;
      color:#273249;
      border:0;
      background:none;
      font-size:14px;
      font-weight:700;
      white-space:nowrap;
      cursor:pointer;
    }

    .nav-link::after{
      position:absolute;
      right:12px;
      bottom:15px;
      left:12px;
      height:2px;
      content:"";
      background:var(--accent);
      transform:scaleX(0);
      transition:transform .2s ease;
    }

    .nav-item:hover > .nav-link,
    .nav-item:focus-within > .nav-link{
      color:var(--brand);
    }

    .nav-item:hover > .nav-link::after,
    .nav-item:focus-within > .nav-link::after{
      transform:scaleX(1);
    }

    .has-panel::after{
      position:absolute;
      top:100%;
      right:0;
      left:0;
      height:14px;
      content:"";
    }

    .dropdown-panel,
    .mega-menu{
      position:absolute;
      top:100%;
      z-index:80;
      visibility:hidden;
      padding:18px;
      background:#ffffff;
      border:1px solid var(--line);
      border-radius:0 0 18px 18px;
      box-shadow:0 24px 55px rgba(14,31,65,.18);
      opacity:0;
      transform:translateY(10px);
      transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
    }

    .dropdown-panel{
      left:0;
      width:330px;
    }

    .mega-menu{
      left:50%;
      width:min(820px,calc(100vw - 40px));
      transform:translate(-50%,10px);
    }

    .nav-item:hover > .dropdown-panel,
    .nav-item:focus-within > .dropdown-panel{
      visibility:visible;
      opacity:1;
      transform:translateY(0);
    }

    .nav-item:hover > .mega-menu,
    .nav-item:focus-within > .mega-menu{
      visibility:visible;
      opacity:1;
      transform:translate(-50%,0);
    }

    .dropdown-list{
      display:grid;
      gap:5px;
    }

    .dropdown-list a{
      padding:10px 12px;
      color:#3e4960;
      border-radius:10px;
      font-size:13px;
      font-weight:650;
    }

    .dropdown-list a:hover{
      color:var(--brand);
      background:var(--brand-soft);
    }

    .panel-entry{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:15px;
      margin-top:12px;
      padding:12px 14px;
      color:#ffffff;
      background:var(--brand);
      border-radius:11px;
      font-size:13px;
      font-weight:800;
    }

    .mega-heading{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:20px;
      margin-bottom:15px;
      padding-bottom:12px;
      border-bottom:1px solid var(--line);
    }

    .mega-heading strong{
      color:var(--ink);
      font-size:16px;
    }

    .mega-heading a,
    .mega-heading span{
      color:var(--brand);
      font-size:12px;
      font-weight:750;
    }

    .mega-categories{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin-bottom:15px;
    }

    .mega-categories a{
      padding:6px 11px;
      color:var(--brand);
      background:var(--brand-soft);
      border:1px solid #d3e1ff;
      border-radius:999px;
      font-size:12px;
      font-weight:700;
    }

    .mega-grid{
      display:grid;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:10px;
    }

    .mega-card{
      min-width:0;
      display:flex;
      align-items:flex-start;
      gap:10px;
      padding:11px;
      background:#f8fafc;
      border:1px solid #edf0f5;
      border-radius:12px;
      transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease;
    }

    .mega-card:hover{
      border-color:#bfd0f2;
      box-shadow:0 10px 22px rgba(11,61,145,.09);
      transform:translateY(-2px);
    }

    .mega-card img{
      flex:0 0 auto;
      width:48px;
      height:48px;
      object-fit:cover;
      background:#ffffff;
      border-radius:9px;
    }

    .mega-card span{
      min-width:0;
    }

    .mega-card strong{
      display:block;
      overflow:hidden;
      margin-bottom:3px;
      color:#202b41;
      font-size:13px;
      line-height:1.45;
      text-overflow:ellipsis;
      white-space:nowrap;
    }

    .mega-card p{
      display:-webkit-box;
      overflow:hidden;
      margin:0 0 3px;
      color:var(--muted);
      font-size:11px;
      line-height:1.5;
      -webkit-box-orient:vertical;
      -webkit-line-clamp:2;
    }

    .mega-card small{
      display:block;
      color:#758096;
      font-size:10px;
      line-height:1.5;
    }

    .header-btns{
      flex:0 0 auto;
      display:flex;
      align-items:center;
      gap:9px;
    }

    .header-btns > span{
      display:flex;
      align-items:center;
    }

    .header-btns > a{
      padding:10px 15px;
      color:#ffffff;
      background:var(--accent);
      border-radius:10px;
      font-size:13px;
      font-weight:800;
      box-shadow:0 8px 18px rgba(194,24,91,.2);
      transition:background .2s ease,transform .2s ease;
    }

    .header-btns > a:hover{
      background:var(--accent-dark);
      transform:translateY(-1px);
    }

    .hamburger{
      width:44px;
      height:44px;
      display:none;
      align-items:center;
      justify-content:center;
      flex-direction:column;
      gap:5px;
      padding:0;
      background:#ffffff;
      border:1px solid var(--line);
      border-radius:10px;
      cursor:pointer;
    }

    .hamburger span{
      width:20px;
      height:2px;
      background:var(--ink);
      border-radius:2px;
      transition:transform .2s ease,opacity .2s ease;
    }

    .hamburger.active span:nth-child(1){
      transform:translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2){
      opacity:0;
    }

    .hamburger.active span:nth-child(3){
      transform:translateY(-7px) rotate(-45deg);
    }

    .drawer-overlay{
      position:fixed;
      inset:0;
      z-index:90;
      visibility:hidden;
      background:rgba(5,14,31,.58);
      opacity:0;
      transition:opacity .25s ease,visibility .25s ease;
    }

    .drawer-overlay.open{
      visibility:visible;
      opacity:1;
    }

    .mobile-drawer{
      position:fixed;
      top:0;
      right:0;
      bottom:0;
      z-index:100;
      width:min(390px,92vw);
      overflow-y:auto;
      background:#ffffff;
      box-shadow:-24px 0 60px rgba(8,24,54,.25);
      transform:translateX(105%);
      transition:transform .28s ease;
    }

    .mobile-drawer.open{
      transform:translateX(0);
    }

    .drawer-head{
      position:sticky;
      top:0;
      z-index:2;
      min-height:72px;
      display:flex;
      align-items:center;
      gap:10px;
      padding:14px 18px;
      background:#ffffff;
      border-bottom:1px solid var(--line);
    }

    .drawer-head > span{
      min-width:0;
      display:flex;
      align-items:center;
    }

    .drawer-head > a{
      margin-left:auto;
      padding:8px 12px;
      color:#ffffff;
      background:var(--accent);
      border-radius:9px;
      font-size:12px;
      font-weight:800;
    }

    .drawer-close{
      width:38px;
      height:38px;
      padding:0;
      color:#33405a;
      background:#f1f4f8;
      border:0;
      border-radius:9px;
      font-size:24px;
      line-height:1;
      cursor:pointer;
    }

    .drawer-menu{
      padding:14px 18px 28px;
    }

    .drawer-link,
    .drawer-toggle{
      width:100%;
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding:14px 4px;
      color:#26324a;
      background:transparent;
      border:0;
      border-bottom:1px solid var(--line);
      font-size:14px;
      font-weight:800;
      text-align:left;
      cursor:pointer;
    }

    .drawer-toggle::after{
      content:"+";
      color:var(--brand);
      font-size:20px;
      font-weight:500;
    }

    .drawer-toggle.active::after{
      content:"−";
    }

    .drawer-submenu{
      display:none;
      padding:8px 0 10px 14px;
      border-bottom:1px solid var(--line);
    }

    .drawer-submenu.open{
      display:grid;
    }

    .drawer-submenu a{
      padding:9px 10px;
      color:#59657b;
      border-radius:8px;
      font-size:13px;
    }

    .drawer-submenu a:hover{
      color:var(--brand);
      background:var(--brand-soft);
    }

    .tag-page{
      min-height:680px;
    }

    .tag-page .tag-hero{
      position:relative;
      overflow:hidden;
      padding:72px 0 58px;
      color:#ffffff;
      background:
        radial-gradient(circle at 82% 18%,rgba(194,24,91,.42),transparent 30%),
        radial-gradient(circle at 18% 84%,rgba(72,132,232,.35),transparent 34%),
        linear-gradient(135deg,#061b3f 0%,#0B3D91 64%,#11336b 100%);
    }

    .tag-page .tag-hero::before,
    .tag-page .tag-hero::after{
      position:absolute;
      content:"";
      border:1px solid rgba(255,255,255,.12);
      border-radius:50%;
      pointer-events:none;
    }

    .tag-page .tag-hero::before{
      width:340px;
      height:340px;
      top:-210px;
      right:8%;
    }

    .tag-page .tag-hero::after{
      width:220px;
      height:220px;
      bottom:-150px;
      left:12%;
    }

    .tag-page .tag-breadcrumb{
      position:relative;
      z-index:1;
      display:flex;
      flex-wrap:wrap;
      align-items:center;
      gap:8px;
      margin-bottom:22px;
      color:rgba(255,255,255,.76);
      font-size:13px;
    }

    .tag-page .tag-breadcrumb a:hover{
      color:#ffffff;
    }

    .tag-page .tag-label{
      position:relative;
      z-index:1;
      display:inline-flex;
      align-items:center;
      gap:8px;
      margin-bottom:16px;
      padding:7px 12px;
      color:#ffffff;
      background:rgba(255,255,255,.12);
      border:1px solid rgba(255,255,255,.22);
      border-radius:999px;
      font-size:12px;
      font-weight:800;
      backdrop-filter:blur(10px);
    }

    .tag-page .tag-label::before{
      width:7px;
      height:7px;
      content:"";
      background:#ff78ad;
      border-radius:50%;
      box-shadow:0 0 0 5px rgba(255,120,173,.14);
    }

    .tag-page .tag-hero h1{
      position:relative;
      z-index:1;
      max-width:900px;
      margin:0;
      font-size:clamp(34px,6vw,64px);
      line-height:1.2;
      letter-spacing:-.035em;
      overflow-wrap:anywhere;
    }

    .tag-page .tag-hero p{
      position:relative;
      z-index:1;
      max-width:720px;
      margin:18px 0 0;
      color:rgba(255,255,255,.82);
      font-size:15px;
    }

    .tag-page .tag-count{
      position:relative;
      z-index:1;
      display:inline-flex;
      align-items:baseline;
      gap:7px;
      margin-top:24px;
      padding:10px 15px;
      color:#1c2941;
      background:#ffffff;
      border-radius:12px;
      box-shadow:0 12px 28px rgba(0,0,0,.14);
    }

    .tag-page .tag-count strong{
      color:var(--accent);
      font-size:23px;
      line-height:1;
    }

    .tag-page .tag-count span{
      color:#58647a;
      font-size:12px;
      font-weight:700;
    }

    .tag-page .tag-content{
      padding:56px 0 78px;
    }

    .tag-page .section-heading{
      display:flex;
      align-items:end;
      justify-content:space-between;
      gap:24px;
      margin-bottom:24px;
    }

    .tag-page .section-heading h2{
      margin:0;
      color:#18243a;
      font-size:28px;
      line-height:1.35;
    }

    .tag-page .section-heading p{
      margin:5px 0 0;
      color:var(--muted);
      font-size:13px;
    }

    .tag-page .tag-index-link{
      flex:0 0 auto;
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding:10px 14px;
      color:var(--brand);
      background:#ffffff;
      border:1px solid #cad7ee;
      border-radius:10px;
      font-size:13px;
      font-weight:800;
    }

    .tag-page .tag-index-link:hover{
      color:#ffffff;
      background:var(--brand);
      border-color:var(--brand);
    }

    .tag-page .tag-article-list{
      display:grid;
      gap:20px;
    }

    .tag-page .tag-article{
      min-width:0;
      display:grid;
      grid-template-columns:300px minmax(0,1fr);
      overflow:hidden;
      background:#ffffff;
      border:1px solid var(--line);
      border-radius:var(--radius);
      box-shadow:0 8px 28px rgba(18,34,65,.06);
      transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
    }

    .tag-page .tag-article:hover{
      border-color:#bdcce7;
      box-shadow:var(--shadow);
      transform:translateY(-3px);
    }

    .tag-page .article-image{
      position:relative;
      min-height:235px;
      overflow:hidden;
      background:#e5eaf2;
    }

    .tag-page .article-image img{
      width:100%;
      height:100%;
      object-fit:cover;
      transition:transform .35s ease;
    }

    .tag-page .tag-article:hover .article-image img{
      transform:scale(1.035);
    }

    .tag-page .article-image-badge{
      position:absolute;
      top:15px;
      left:15px;
      max-width:calc(100% - 30px);
      padding:6px 10px;
      overflow:hidden;
      color:#ffffff;
      background:rgba(194,24,91,.92);
      border-radius:999px;
      font-size:11px;
      font-weight:800;
      text-overflow:ellipsis;
      white-space:nowrap;
      backdrop-filter:blur(8px);
    }

    .tag-page .article-body{
      min-width:0;
      display:flex;
      flex-direction:column;
      padding:25px 28px;
    }

    .tag-page .article-meta{
      display:flex;
      flex-wrap:wrap;
      gap:6px 16px;
      margin-bottom:10px;
      color:#778297;
      font-size:12px;
    }

    .tag-page .article-meta span{
      display:inline-flex;
      align-items:center;
      gap:5px;
    }

    .tag-page .article-meta span::before{
      width:5px;
      height:5px;
      content:"";
      background:#9cacbf;
      border-radius:50%;
    }

    .tag-page .article-title{
      margin:0;
      color:#18243a;
      font-size:22px;
      line-height:1.45;
      overflow-wrap:anywhere;
    }

    .tag-page .article-title a{
      transition:color .2s ease;
    }

    .tag-page .article-title a:hover{
      color:var(--brand);
    }

    .tag-page .article-summary{
      display:-webkit-box;
      overflow:hidden;
      margin:12px 0 14px;
      color:#5d687d;
      font-size:14px;
      line-height:1.8;
      -webkit-box-orient:vertical;
      -webkit-line-clamp:3;
    }

    .tag-page .article-tags{
      margin:0 0 18px;
      color:#7a4562;
      font-size:12px;
      overflow-wrap:anywhere;
    }

    .tag-page .article-actions{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:18px;
      margin-top:auto;
      padding-top:16px;
      border-top:1px solid #edf0f4;
    }

    .tag-page .article-author{
      min-width:0;
      color:#6d788d;
      font-size:12px;
      overflow-wrap:anywhere;
    }

    .tag-page .article-read{
      flex:0 0 auto;
      display:inline-flex;
      align-items:center;
      gap:7px;
      color:var(--brand);
      font-size:13px;
      font-weight:850;
    }

    .tag-page .article-read span{
      transition:transform .2s ease;
    }

    .tag-page .article-read:hover span{
      transform:translateX(4px);
    }

    .tag-page .pagination{
      display:flex;
      flex-wrap:wrap;
      align-items:center;
      justify-content:center;
      gap:8px;
      margin-top:38px;
    }

    .tag-page .pagination a{
      min-width:42px;
      min-height:42px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      padding:8px 13px;
      color:#435068;
      background:#ffffff;
      border:1px solid var(--line);
      border-radius:10px;
      font-size:13px;
      font-weight:750;
      transition:color .2s ease,background .2s ease,border-color .2s ease;
    }

    .tag-page .pagination a:hover,
    .tag-page .pagination a.active,
    .tag-page .pagination a.current{
      color:#ffffff;
      background:var(--brand);
      border-color:var(--brand);
    }

    .tag-page .tag-note{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:24px;
      margin-top:54px;
      padding:28px 32px;
      color:#ffffff;
      background:linear-gradient(120deg,var(--accent-dark),var(--accent));
      border-radius:20px;
      box-shadow:0 18px 38px rgba(151,18,71,.18);
    }

    .tag-page .tag-note h2{
      margin:0 0 5px;
      font-size:21px;
    }

    .tag-page .tag-note p{
      margin:0;
      color:rgba(255,255,255,.8);
      font-size:13px;
    }

    .tag-page .tag-note a{
      flex:0 0 auto;
      padding:11px 16px;
      color:var(--accent-dark);
      background:#ffffff;
      border-radius:10px;
      font-size:13px;
      font-weight:850;
    }

    .footer{
      color:#d8e1f1;
      background:#071a3a;
    }

    .footer-grid{
      display:grid;
      grid-template-columns:1.45fr 1fr .9fr 1fr;
      gap:42px;
      padding:60px 0 42px;
    }

    .footer .logo{
      color:#ffffff;
    }

    .footer-brand p{
      margin:18px 0 0;
      color:#aebbd0;
      font-size:13px;
      line-height:1.85;
    }

    .footer h2{
      margin:5px 0 17px;
      color:#ffffff;
      font-size:14px;
    }

    .footer-links,
    .footer-contact{
      display:grid;
      gap:9px;
    }

    .footer-links a,
    .footer-contact a{
      color:#afbdd2;
      font-size:13px;
      transition:color .2s ease,transform .2s ease;
    }

    .footer-links a:hover,
    .footer-contact a:hover{
      color:#ffffff;
      transform:translateX(2px);
    }

    .footer-social{
      margin-top:5px;
      color:#ffffff;
    }

    .footer-bottom{
      min-height:66px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:24px;
      padding:16px 0;
      color:#8797b0;
      border-top:1px solid rgba(255,255,255,.1);
      font-size:11px;
    }

    @media (max-width:1120px){
      .main-nav{
        display:none;
      }

      .hamburger{
        display:flex;
      }

      .header-btns{
        margin-left:auto;
      }

      .footer-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
      }
    }

    @media (max-width:760px){
      .container{
        width:min(100% - 28px,var(--container));
      }

      .topbar-inner{
        min-height:42px;
        align-items:flex-start;
        flex-direction:column;
        justify-content:center;
        gap:1px;
        padding:5px 0;
      }

      .topbar-contact{
        flex-wrap:wrap;
        gap:2px 14px;
      }

      .header-inner{
        min-height:68px;
        gap:10px;
      }

      .logo{
        min-width:0;
        font-size:15px;
      }

      .logo img{
        width:36px;
        height:36px;
      }

      .header-btns > span{
        display:none;
      }

      .header-btns > a{
        padding:9px 11px;
        font-size:11px;
      }

      .tag-page .tag-hero{
        padding:52px 0 44px;
      }

      .tag-page .tag-hero h1{
        font-size:36px;
      }

      .tag-page .tag-content{
        padding:42px 0 60px;
      }

      .tag-page .section-heading{
        align-items:flex-start;
        flex-direction:column;
        gap:14px;
      }

      .tag-page .section-heading h2{
        font-size:24px;
      }

      .tag-page .tag-article{
        grid-template-columns:1fr;
      }

      .tag-page .article-image{
        min-height:220px;
        aspect-ratio:16/9;
      }

      .tag-page .article-body{
        padding:22px;
      }

      .tag-page .article-title{
        font-size:19px;
      }

      .tag-page .tag-note{
        align-items:flex-start;
        flex-direction:column;
        padding:24px;
      }

      .footer-grid{
        grid-template-columns:1fr;
        gap:30px;
        padding:46px 0 34px;
      }

      .footer-bottom{
        align-items:flex-start;
        flex-direction:column;
        justify-content:center;
        gap:5px;
      }
    }

    @media (max-width:480px){
      .header-btns > a{
        display:none;
      }

      .tag-page .article-actions{
        align-items:flex-start;
        flex-direction:column;
        gap:10px;
      }

      .tag-page .pagination a{
        min-width:38px;
        min-height:38px;
        padding:7px 10px;
      }
    }