/* 新デザイン 下層ページ用CSS
 * 親テーマのCSSは本文の表示に使うため残し、ヘッダー・フッター・ページ見出しだけを新デザインにする。
 * 適用範囲は body.nn-sub（functions.php の nn_sub_body_class）
 * ヘッダー・フッター部分は css/nn-front.css から抜き出したもの（TOPと同じ見た目）
 */
:root{--teal:#1b9fa3; --teal-d:#0d7479; --teal-dd:#0a4f53; --teal-l:#e5f4f4;
  --red:#e02020; --ink:#1d2427; --ink-2:#465157; --muted:#6c777d; --line:#dde3e5; --bg:#f3f6f6; --white:#fff;
  --font:"Noto Sans JP","Hiragino Kaku Gothic ProN","Meiryo",sans-serif;
  --num:"Barlow Semi Condensed","Noto Sans JP",sans-serif;
  --w:1240px;}
body.nn-sub .wrap{max-width:var(--w);margin:0 auto;padding:0 24px;}
body.nn-sub .num{font-family:var(--num);font-variant-numeric:tabular-nums;letter-spacing:.01em;}
body.nn-sub .hd{position:sticky;top:0;z-index:50;background:var(--white);border-bottom:1px solid var(--line);}
body.nn-sub .hd .wrap{display:flex;align-items:center;gap:20px;height:76px;}
body.nn-sub .hd-logo{display:flex;align-items:center;gap:14px;flex:none;}
body.nn-sub .hd-logo img{height:44px;width:auto;}
body.nn-sub .hd-logo small{font-size:12px;color:var(--muted);line-height:1.4;border-left:1px solid var(--line);padding-left:14px;}
body.nn-sub .hd-nav{display:flex;gap:4px;margin-left:auto;}
body.nn-sub .hd-nav a{white-space:nowrap;font-size:15px;font-weight:700;padding:8px 10px;border-radius:4px;color:var(--ink-2);}
body.nn-sub .hd-nav a:hover{color:var(--teal-d);background:var(--teal-l);}
body.nn-sub .hd-act{display:flex;align-items:center;gap:10px;flex:none;}
body.nn-sub .hd-tel{flex:none;white-space:nowrap;display:flex;flex-direction:column;align-items:flex-end;line-height:1.15;}
body.nn-sub .hd-tel b{font-family:var(--num);font-size:24px;font-weight:700;color:var(--ink);}
body.nn-sub .hd-tel small{font-size:11px;color:var(--muted);}
body.nn-sub .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;border-radius:4px;padding:12px 20px;font-size:15px;line-height:1.2;cursor:pointer;border:0;font-family:inherit;}
body.nn-sub .btn-teal{background:var(--teal-d);color:#fff;}
body.nn-sub .btn-teal:hover{background:var(--teal-dd);}
body.nn-sub .btn-line{background:#fff;color:var(--teal-d);border:1.5px solid var(--teal-d);}
body.nn-sub .hd-fav{position:relative;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;color:var(--teal-d);}
body.nn-sub .hd-fav i{position:absolute;top:-3px;right:-3px;background:var(--red);color:#fff;font-style:normal;font-family:var(--num);font-weight:700;font-size:12px;min-width:19px;height:19px;border-radius:10px;display:grid;place-items:center;padding:0 5px;}
body.nn-sub .hd-menu{display:none;}
body.nn-sub .btn-wh{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.7);}
body.nn-sub .btn-wh:hover{background:rgba(255,255,255,.1);}
body.nn-sub .btn-lg{background:#06c755;color:#fff;}
body.nn-sub .ft{background:var(--ink);color:#c9d1d4;font-size:13.5px;}
body.nn-sub .ft .wrap{display:flex;justify-content:space-between;gap:20px;padding-top:28px;padding-bottom:28px;}
body.nn-sub .ft b{color:#fff;}
@media (max-width:1320px){
body.nn-sub .hd-logo small{display:none;}
}
@media (max-width:1100px){
body.nn-sub .hd-nav{display:none;}
body.nn-sub .hd-menu{display:grid;place-items:center;width:44px;height:44px;border-radius:4px;border:1px solid var(--line);background:#fff;}
body.nn-sub .hd-act{margin-left:auto;}
}
@media (max-width:760px){
body.nn-sub .wrap{padding:0 16px;}
body.nn-sub .hd .wrap{height:60px;gap:10px;}
body.nn-sub .hd-logo img{height:32px;}
body.nn-sub .hd-logo small,body.nn-sub .hd-tel,body.nn-sub .hd-act .btn{display:none;}
body.nn-sub .ft .wrap{flex-direction:column;}
}
body.nn-sub [hidden]{display:none !important;}
body.nn-sub .hd-nav-sp{display:none;}
body.nn-sub .hd-fav i[hidden]{display:none;}
body.nn-sub .ft{background:var(--ink);color:#c9d1d4;font-size:13.5px;}
body.nn-sub .ft .ft-top{display:grid;grid-template-columns:auto 1fr;gap:48px;padding-top:44px;padding-bottom:36px;justify-content:normal;}
body.nn-sub .ft-brand img{height:40px;width:auto;background:#fff;padding:6px 10px;border-radius:4px;box-sizing:content-box;}
body.nn-sub .ft-brand p{margin:14px 0 0;line-height:1.8;}
body.nn-sub .ft-sns{display:flex;gap:14px;margin-top:14px;}
body.nn-sub .ft-sns a{color:#fff;font-weight:700;border-bottom:1px solid rgba(255,255,255,.4);}
body.nn-sub .ft-nav{display:grid;grid-template-columns:repeat(4,max-content);gap:12px 36px;align-content:start;justify-content:end;}
body.nn-sub .ft-nav a{color:#e6ecee;}
body.nn-sub .ft-nav a:hover{color:#fff;text-decoration:underline;}
body.nn-sub .ft-copy{border-top:1px solid rgba(255,255,255,.12);}
body.nn-sub .ft-copy .wrap{display:block;padding-top:16px;padding-bottom:16px;font-size:12.5px;}
@media (max-width:1100px){
body.nn-sub .hd-nav{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:0;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 12px 24px rgba(0,0,0,.08);padding:6px 16px 14px;}
body.nn-sub .hd-nav.is-open{display:flex;}
body.nn-sub .hd-nav a{padding:13px 4px;border-bottom:1px solid var(--line);border-radius:0;font-size:16px;}
body.nn-sub .hd-nav a:last-child{border-bottom:0;}
body.nn-sub .hd-nav-sp{display:block;}
body.nn-sub .hd .wrap{position:relative;}
body.nn-sub .ft .ft-top{grid-template-columns:1fr;gap:28px;}
body.nn-sub .ft-nav{grid-template-columns:repeat(2,1fr);justify-content:start;}
}


/* ===== ヘッダー・フッター内のリセット（親テーマのCSSの影響を受けないように） ===== */
body.nn-sub{font-family:var(--font);color:var(--ink);-webkit-font-smoothing:antialiased;}
body.nn-sub .hd,body.nn-sub .hd *,body.nn-sub .ft,body.nn-sub .ft *,body.nn-sub .ft-cta,body.nn-sub .ft-cta *{box-sizing:border-box;font-family:var(--font);}
body.nn-sub .hd a,body.nn-sub .ft a,body.nn-sub .ft-cta a{text-decoration:none;color:inherit;}
body.nn-sub .hd img,body.nn-sub .ft img{max-width:100%;display:block;}
body.nn-sub .hd p,body.nn-sub .ft p,body.nn-sub .ft-cta p,body.nn-sub .ft-cta h2{margin:0;}
body.nn-sub .hd{line-height:1.75;font-size:16px;}
body.nn-sub .ft{line-height:1.75;}
body.nn-sub .hd-tel b,body.nn-sub .ft-cta-tel b{font-family:var(--num);}
body.nn-sub .hd-fav,body.nn-sub .hd-menu{flex:none;}
body.nn-sub .hd .btn-teal{color:#fff;}
body.nn-sub .hd-nav a[aria-current="page"]{color:var(--teal-d);background:var(--teal-l);}

/* 親テーマのスマホ用メニュー・固定ヘッダー用の余白は使わない */
body.nn-sub #drawer_menu,body.nn-sub #header[hidden],body.nn-sub #footer_bar,body.nn-sub .footer_bar{display:none !important;}
body.nn-sub #container{padding-top:0 !important;margin-top:0 !important;}

/* ===== ページ見出し（親テーマの #wide_page_header を新デザインの帯にする） ===== */
body.nn-sub #wide_page_header{position:relative;height:auto !important;min-height:0 !important;padding:52px 0 48px !important;margin:0 !important;
  background:var(--teal-dd) !important;background-image:none !important;overflow:hidden;}
body.nn-sub #wide_page_header::after{content:"";position:absolute;right:-60px;top:-40px;width:380px;height:380px;border-radius:50%;border:56px solid rgba(255,255,255,.05);pointer-events:none;}
body.nn-sub #wide_page_header .overlay,body.nn-sub #wide_page_header .bg_image,body.nn-sub #wide_page_header .image{display:none !important;}
body.nn-sub #wide_page_header .catch,body.nn-sub #wide_page_header h1,body.nn-sub #wide_page_header h2{position:relative !important;top:auto !important;left:auto !important;transform:none !important;
  max-width:var(--w);margin:0 auto !important;padding:0 24px !important;text-align:left !important;box-sizing:border-box;
  font-family:var(--font) !important;font-size:34px !important;font-weight:900 !important;line-height:1.35 !important;letter-spacing:.04em;color:#fff !important;text-shadow:none !important;z-index:1;}
body.nn-sub #wide_page_header .desc,body.nn-sub #wide_page_header p{box-sizing:border-box;position:relative !important;max-width:var(--w);margin:10px auto 0 !important;padding:0 24px !important;text-align:left !important;color:rgba(255,255,255,.85) !important;font-size:15px !important;z-index:1;}

/* 本文の文字をゴシック（Noto Sans JP）にそろえる */
body.nn-sub #main_contents,body.nn-sub #main_contents .rich_font,body.nn-sub #main_contents .rich_font_1,body.nn-sub #main_contents .rich_font_2,body.nn-sub #main_contents .rich_font_3{font-family:var(--font);}

/* ===== フッター上のお問合せ帯 ===== */
body.nn-sub .ft-cta{background:var(--teal-d);color:#fff;}
body.nn-sub .ft-cta .wrap{display:grid;grid-template-columns:1fr auto;gap:32px;align-items:center;padding-top:44px;padding-bottom:44px;}
body.nn-sub .ft-cta h2{font-size:24px;font-weight:900;line-height:1.4;color:#fff;}
body.nn-sub .ft-cta p{margin-top:6px;font-size:14.5px;opacity:.9;}
body.nn-sub .ft-cta-act{display:flex;align-items:center;gap:12px;flex-wrap:nowrap;}
body.nn-sub .ft-cta-tel{display:flex;flex-direction:column;line-height:1.15;margin-right:8px;color:#fff;flex:none;white-space:nowrap;}
body.nn-sub .ft-cta-tel b{font-size:30px;font-weight:700;}
body.nn-sub .ft-cta-tel small{font-size:12px;opacity:.85;}
body.nn-sub .ft-cta .btn{height:52px;padding:0 22px;flex:none;white-space:nowrap;width:auto;min-width:0;max-width:none;}
body.nn-sub .ft-cta .btn-lg{color:#fff;}
body.nn-sub .ft-cta .btn-wh-solid{background:#fff;color:var(--teal-d);}
body.nn-sub .ft-cta .btn-wh-solid:hover{background:var(--teal-l);}

@media (max-width:1100px){
  body.nn-sub .ft-cta .wrap{grid-template-columns:1fr;gap:20px;}
}
@media (max-width:760px){
  body.nn-sub #wide_page_header{padding:34px 0 30px !important;}
  body.nn-sub #wide_page_header .catch,body.nn-sub #wide_page_header h1,body.nn-sub #wide_page_header h2{font-size:24px !important;padding:0 16px !important;}
  body.nn-sub #wide_page_header::after{width:220px;height:220px;border-width:36px;right:-70px;}
  body.nn-sub .ft-cta .wrap{padding-top:32px;padding-bottom:32px;}
  body.nn-sub .ft-cta h2{font-size:20px;}
  body.nn-sub .ft-cta-act{display:grid;grid-template-columns:1fr 1fr;}
  body.nn-sub .ft-cta .btn{white-space:normal;}
  body.nn-sub .ft-cta-tel{grid-column:1/-1;}
  body.nn-sub .ft-cta .btn{width:100%;padding:0 10px;}
}
@media (prefers-reduced-motion:reduce){
  body.nn-sub .hd *,body.nn-sub .ft *{transition:none !important;}
}

/* ===== 右下のボタン（目次・ページの先頭へ）・写真の拡大（js/nn-front.js が作る） ===== */
.nn-fab{position:fixed;right:18px;bottom:18px;z-index:60;display:flex;align-items:center;gap:10px;font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Meiryo",sans-serif;}
.nn-fab button{border:0;cursor:pointer;font-family:inherit;}
.nn-fab-toc{display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 20px;border-radius:24px;background:#fff;color:#1d2427;font-size:15px;font-weight:700;box-shadow:0 6px 20px rgba(10,40,45,.18);}
.nn-fab-toc:hover{background:#e5f4f4;}
.nn-fab-top{width:52px;height:52px;border-radius:50%;background:#1d2427;color:#fff;display:grid;place-items:center;box-shadow:0 6px 20px rgba(10,40,45,.25);opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s,transform .2s,visibility .2s;}
.nn-fab.is-scrolled .nn-fab-top{opacity:1;visibility:visible;transform:none;}
.nn-fab-top:hover{background:#0d7479;}
.nn-fab button:focus-visible{outline:3px solid #1b9fa3;outline-offset:2px;}
.nn-toc{position:absolute;right:0;bottom:62px;width:300px;max-height:min(70vh,560px);overflow:auto;background:#fff;border:1px solid #dde3e5;border-radius:8px;box-shadow:0 18px 40px rgba(10,40,45,.22);padding:14px 8px 10px;}
.nn-toc[hidden]{display:none;}
.nn-toc-ttl{margin:0 12px 6px;font-size:12.5px;font-weight:700;color:#6c777d;}
.nn-toc ol{list-style:none;margin:0;padding:0;}
.nn-toc a{display:block;padding:8px 12px;border-radius:4px;color:#1d2427;font-size:14.5px;font-weight:700;line-height:1.45;text-decoration:none;}
.nn-toc a:hover{background:#e5f4f4;color:#0d7479;}
.nn-toc a[aria-current]{color:#0d7479;background:#e5f4f4;}
.nn-toc-sub{margin:0 0 6px 12px !important;border-left:2px solid #dde3e5;}
.nn-toc-sub a{font-size:13px;font-weight:500;padding:5px 10px;}
dialog.nn-zoom{border:0;padding:0;background:transparent;max-width:min(92vw,1100px);max-height:90vh;overflow:visible;}
dialog.nn-zoom::backdrop{background:rgba(10,20,22,.82);}
dialog.nn-zoom img{display:block;max-width:min(92vw,1100px);max-height:86vh;border-radius:6px;background:#fff;}
dialog.nn-zoom button{position:absolute;border:0;cursor:pointer;background:rgba(255,255,255,.95);color:#1d2427;border-radius:50%;width:44px;height:44px;font-size:24px;line-height:1;}
.nn-zoom-x{top:-14px;right:-14px;}
.nn-zoom-p{left:-22px;top:50%;transform:translateY(-50%);}
.nn-zoom-n{right:-22px;top:50%;transform:translateY(-50%);}
.nn-zoom button[hidden]{display:none;}
@media (max-width:760px){
  .nn-fab{right:12px;bottom:12px;gap:8px;}
  .nn-fab-toc{height:44px;padding:0 16px;font-size:14px;}
  .nn-fab-top{width:46px;height:46px;}
  .nn-toc{width:calc(100vw - 24px);bottom:56px;}
  .nn-zoom-x{top:-52px;right:0;}
  .nn-zoom-p{left:4px;}
  .nn-zoom-n{right:4px;}
}
@media (prefers-reduced-motion:reduce){ .nn-fab-top{transition:none;} }
@media print{ .nn-fab{display:none;} }
body.nn-sub #main_contents [id]{scroll-margin-top:92px;}

/* ===== 背景：幾何学模様 ===== */
/* 幾何学模様（旧テーマのページ：本文エリア上部） ===== */
body.nn-sub #main_contents{position:relative;isolation:isolate;}
body.nn-sub #main_contents::before{content:"";position:absolute;z-index:-1;pointer-events:none;top:0;right:0;width:58%;height:min(500px,100%);background-image:linear-gradient(rgba(13,116,121,.11) 1px,transparent 1px),linear-gradient(90deg,rgba(13,116,121,.11) 1px,transparent 1px);background-size:28px 28px;background-position:right top;-webkit-mask-image:radial-gradient(90% 100% at 100% 0,#000 25%,transparent 85%);mask-image:radial-gradient(90% 100% at 100% 0,#000 25%,transparent 85%);}
@media print{ body.nn-sub #main_contents::before{display:none;} }

/* ===== フッター：カテゴリ・メーカーへのリンクと拠点一覧 ===== */
body.nn-sub .ft .ft-links{display:grid;grid-template-columns:1fr 1fr;gap:28px 48px;padding-top:0;padding-bottom:28px;}
body.nn-sub .ft-lk h3{margin:0 0 10px;font-size:13px;font-weight:700;color:#fff;letter-spacing:.04em;}
body.nn-sub .ft-lk p{margin:0;display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12.5px;line-height:1.6;}
body.nn-sub .ft-lk a{color:#aeb9bd;}
body.nn-sub .ft-lk a:hover{color:#fff;text-decoration:underline;}
body.nn-sub .ft .ft-bases{display:grid;grid-template-columns:repeat(4,1fr);gap:16px 24px;padding-top:24px;padding-bottom:28px;border-top:1px solid rgba(255,255,255,.12);}
body.nn-sub .ft-base{display:flex;flex-direction:column;font-size:12.5px;line-height:1.6;color:#aeb9bd;}
body.nn-sub .ft-base b{color:#fff;font-size:13px;}
body.nn-sub .ft-base a{color:#e6ecee;font-family:var(--num);font-size:15px;font-weight:600;margin-top:2px;}
body.nn-sub .ft-hours{grid-column:1/-1;margin:0;font-size:12.5px;color:#aeb9bd;}
@media (max-width:1100px){ body.nn-sub .ft .ft-bases{grid-template-columns:repeat(2,1fr);} }
@media (max-width:760px){ body.nn-sub .ft .ft-links,body.nn-sub .ft .ft-bases{grid-template-columns:1fr;} }

/* ===== 言語切り替え（日本語 / English） ===== */
body.nn-sub .hd-lang{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 12px;border:1px solid var(--line);border-radius:999px;font-size:13px;font-weight:700;color:var(--ink-2);white-space:nowrap;flex:none;text-decoration:none;}
body.nn-sub .hd-lang:hover{color:var(--teal-d);border-color:var(--teal-d);background:var(--teal-l);}
@media (max-width:760px){ body.nn-sub .hd-lang{height:36px;padding:0 10px;font-size:12px;} }
/* 英語版：スマホでロゴが横にはみ出さないように（英語ロゴは横長） */
@media (max-width:760px){ body.nn-sub .hd-logo img[src*="logo_nannichi_en"]{width:min(218px,calc(100vw - 210px))!important;height:auto!important;} body.nn-sub .hd-lang svg{display:none;} }

/* 日本語ロゴ：赤い「ナンニチ」部分だけを表示（上の英字表記を隠す） */
.hd-logo img[src*="logo_en_100x368"],.ft-brand img[src*="logo_en_100x368"]{object-fit:cover;object-position:50% 100%;}
.hd-logo img[src*="logo_en_100x368"]{height:34px!important;width:172px!important;}
.ft-brand img[src*="logo_en_100x368"]{height:30px!important;width:152px!important;}
@media (max-width:760px){.hd-logo img[src*="logo_en_100x368"]{height:26px!important;width:132px!important;}}
/* フッターのロゴと説明文の間隔 */
.ft-brand img + p{margin-top:22px!important;}
