/* =========================================================
   common_v26.css
   Scope: v26 base for new pages (no dependency on v25)
   Notes:
   - Base styling / tokens / component appearance
   - Responsive positioning lives in responsive_v26.css
========================================================= */

/* ---------------------------------------------------------
   Design tokens
--------------------------------------------------------- */
:root {
  --page-w: 1000px;
  --nav-w: 250px;
  --gap: 10px;

  --prm-navy: #18415b;
  --prm-gold: #876d4a;
  --prm-ivory: #faf7f2;
  --prm-gray: #e5e5e5;
  --prm-text: #3e3e3e;
  --prm-subtext: #666666;

  /* Optional stripe vars (used by #left-nav .stripe) */
  --stripe-01-light: #f4f9fc;
  --stripe-01-dark:  #eaf3f8;
}

/* ---------------------------------------------------------
   Base
--------------------------------------------------------- */
html { height: 100%; }

body {
  margin: 0;
  height: 100%;
  text-align: left;

  font-family: "montserrat", "source-han-sans-japanese", sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  font-style: normal;
  line-height: 170%;
  color: var(--prm-text);
  background-color: #fff;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;

  /* Allow v26 to be responsive (v25 had min-width:1000px) */
  min-width: 0;
  overflow-wrap: anywhere;
}

p { margin: 0 8px 12px 0; }

a {
  color: #827a73;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.13em;
}

a:hover { color: #d7b4a3; }

/* ---------------------------------------------------------
   Header (full-width bars + 1000px inner)
--------------------------------------------------------- */
header {
  position: relative;
  background-color: #fff;
  margin: 0 auto;
}

/* Top bar (full width) */
.header_box {
  position: relative;
  display: flex;
  align-items: center;
  height: 2.4em;
  width: 100%;
  background-color: #002645;
}

.header_box a { line-height: 1; }

.header_box .box_imageRight {
  position: absolute;
  right: 1em;
  margin-top: 0.3em;

  font-size: 11px;
  color: #fff;
  text-decoration: none;
}

.header_box .box_imageRight a {
  color: #fff;
  text-decoration: underline;
}

.header_box .box_imageRight a:hover { color: #ccc; }

/* Logo bar (inner 1000px) */
.header_box2 {
  position: relative;
  display: flex;
  align-items: center;

  width: var(--page-w);
  height: 5em;
  margin: 0 auto;
}

.header_box2 .box_imageLeft {
  position: static;
  margin: 0;
  display: block;
}

.header_box2 .box_Right {
  position: absolute;
  margin: 2.1em 0 0 848px;
  text-align: right;
}

.header_box3 {
  position: relative;
  height: 1px;
  border-bottom: 1px solid #eee;
}

/* PC default */
.header_sp { display: none; }

@media (min-width: 901px) {
  .header_box2 { padding-top: 0.2em; }
}

/* MENU button (appearance only; positioning is in responsive_v26.css) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;

  margin: 0;
  padding: 8px 12px;
  border: 1px solid #ccc;
  background: #fff;
  color: #3e3e3e;
  border-radius: 6px;
  cursor: pointer;

  z-index: 10002;
}

/* ---------------------------------------------------------
   Footer (full-width bar)
--------------------------------------------------------- */
footer {
  height: 3.5em;
  background-color: #002645;
  margin: 0 auto;
}

.footer_box {
  position: relative;
  background-color: #002645;
}

.footer_box .box_imageRight {
  font-family: "p22-underground", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 11px;
  color: #fff;

  position: absolute;
  right: 1em;
  margin: 1.2em;
}

/* ---------------------------------------------------------
   Main container (1000px shell)
--------------------------------------------------------- */
.container {
  display: flex;
  width: var(--page-w);
  margin: 0 auto;
  overflow: hidden;
}

/* ---------------------------------------------------------
   Left navigation (base)
--------------------------------------------------------- */
#left-nav {
  width: var(--nav-w);
  margin: 10px 0 0 0;
  background: #f7f7f7;
}

#left-nav a.is-current { font-weight: 700; }

/* Link hygiene (scope to #left-nav) */
#left-nav a {
  color: inherit;
  text-decoration: none;
}

#left-nav a:hover { text-decoration: none; }

/* When JS injects wrappers */
#left-nav .bg_white { background: #fff; }

#left-nav .stripe {
  background: repeating-linear-gradient(
    -45deg,
    var(--stripe-01-light),
    var(--stripe-01-light) 5px,
    var(--stripe-01-dark)  5px,
    var(--stripe-01-dark)  10px
  );
}

/* ---------------------------------------------------------
   Left nav SNS (v26) - single source of truth
   Scope: #left-nav only
--------------------------------------------------------- */
#left-nav .navi_sns {
  display: block;
  box-sizing: border-box;

  width: calc(100% - 2px);
  margin: 1px 1px 6px;
  padding: 10px;

  border: 1px solid #876d4a;
  border-radius: 3px;

  font-weight: 500;
  color: #876d4a;

  /* robust in case parent becomes flex */
  align-self: stretch;
}

#left-nav .navi_sns.stripe {
  background-image: repeating-linear-gradient(
    -45deg,
    #f4f9fc,
    #f4f9fc 5px,
    #eaf3f8 5px,
    #eaf3f8 10px
  );
}

#left-nav .box_sns {
  display: grid;
  grid-template-columns: repeat(4, minmax(46px, 1fr));
  gap: 10px;
  align-items: center;
}

#left-nav .box_sns1 {
  grid-column: 1 / -1;
  text-align: center;
  margin: 0;
  padding: 0;
}

#left-nav .box_sns2,
#left-nav .box_sns3,
#left-nav .box_sns4,
#left-nav .box_sns5 {
  margin: 0;
  padding: 0;
  justify-self: center;
}

#left-nav .follow-me {
  list-style: none;
  margin: 0;
  padding: 0;
}

#left-nav .follow-me li {
  margin: 0;
  padding: 0;
}

#left-nav .follow-me li a {
  display: block;
  width: 46px;
  height: 46px;
  text-decoration: none;
}

#left-nav .follow-me li a::before {
  display: inline-block;
  width: 46px;
  height: 46px;
  line-height: 49px;
  text-align: center;

  border: 1px solid transparent;
  border-radius: 50%;
  color: #fff;

  transition: all 0.3s ease;
  font-family: "Font Awesome 6 Brands";
  font-size: 18px;
}

#left-nav .follow-me li a[href*="twitter.com"]::before {
  background-color: #000;
  border-color: #000;
  content: "\e61b";
}

#left-nav .follow-me li a[href*="facebook.com"]::before {
  background-color: #1877f2;
  border-color: #1877f2;
  content: "\f39e";
}

#left-nav .follow-me li a[href*="instagram.com"]::before {
  background: linear-gradient(to right, #5478f2 0%, #f23f79 60%, orange 100%);
  border-color: #f23f79;
  content: "\f16d";
}

#left-nav .follow-me li a[href*="youtube.com"]::before {
  background-color: #ff0000;
  border-color: #ff0000;
  content: "\f167";
}

#left-nav .follow-me li a:hover::before { background-color: #fff; }
#left-nav .follow-me li a[href*="twitter.com"]:hover::before { color: #000; }
#left-nav .follow-me li a[href*="facebook.com"]:hover::before { color: #1877f2; }
#left-nav .follow-me li a[href*="instagram.com"]:hover::before { color: #f23f79; }
#left-nav .follow-me li a[href*="youtube.com"]:hover::before { color: #ff0000; }

/* ---------------------------------------------------------
   Left navigation UI (v26 port from v25)
   Scope: #left-nav only
--------------------------------------------------------- */
#left-nav .navi_title {
  display: inline-block;
  position: relative;
  vertical-align: middle;

  width: calc(var(--nav-w) - 2px);
  height: 48px;
  margin: 0 0 5px 0;
  overflow: hidden;

  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  transition: all 0.2s;

  font-family: "source-han-sans-japanese", sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.01em;
  font-feature-settings: "palt";
  line-height: 46px;
  text-align: left;
  color: #8a6d4d;
}

#left-nav .navi_title:hover {
  background-color: #8a6d4d;
  border-color: #8a6d4d;
  color: #fff;
  text-decoration: none;
}

#left-nav .navi_title a:hover {
  color: #fff;
  text-decoration: none;
}

#left-nav .navi_title span {
  position: absolute;
  left: 15px;
  top: 52.5%;
  transform: translate(0, -50%);
  display: block;
  white-space: nowrap;
  transition: all 0.5s;
}

#left-nav .navi_title span:nth-child(2) { opacity: 0; }
#left-nav .navi_title:hover span:nth-child(1) { opacity: 0; }
#left-nav .navi_title:hover span:nth-child(2) { opacity: 1; }

/* ---------------------------------------------------------
   Main (right column)
--------------------------------------------------------- */
main {
  flex: 1;
  width: auto;
  margin: 0 0 0 var(--gap);
  background-color: #fff;
  min-width: 0;
}

@media (min-width: 901px) {
  main { padding-bottom: 0.8em; }
}

/* Breadcrumb */
.navilink_i {
  display: flex;
  align-items: center;
  justify-content: left;

  height: 23px;
  padding: 9px 8px 7px 8px;
  margin: 11px 0 14px 0;

  background-color: #f5f5f5;
  border: 1px solid #dcdcdc;
  border-left: none;
  border-right: none;
}

.navilink_i i {
  line-height: 1;
  margin-top: 1px;
}

.navilink_i i.fa-house {
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* Title bar */
.box_mds {
  margin: 0 0 18px 0;
  padding: 6px 8px 3px 8px;
  border-bottom: 1px solid var(--prm-gold);
}

.box_mds p {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.45;
  color: var(--prm-gold);
  margin: 0;
  padding: 0;
  position: relative;
  top: 1px;
}

/* ---------------------------------------------------------
   Superscript-like marks
--------------------------------------------------------- */
.supmark {
  font-size: 0.75em;
  font-weight: normal;
  position: relative;
  top: -0.38em;
  transform: translateX(0.03em);
  line-height: 1;

  display: inline-block;
  white-space: nowrap;
}

a .supmark { text-decoration: none; }

/* Pitch wrapper */
.pitch {
  display: inline-block;
  position: relative;
}

/* ---------------------------------------------------------
   Trademark word wrapper (no line breaks)
--------------------------------------------------------- */
.tmword {
  display: inline-block;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

/* Hard stop for Rovner pages */
.rovner-page .tmword {
  display: inline-block !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

.rovner-page .tmword .supmark {
  display: inline-block !important;
  white-space: nowrap !important;
}

/* ---------------------------------------------------------
   Page top button (as v25)
--------------------------------------------------------- */
#page_top {
  position: fixed;
  right: 5px;
  bottom: 45px;
  width: 45px;
  height: 45px;
  background: #b2916e;
  opacity: 0.6;
  border-radius: 50%;
  z-index: 9999;
}

#page_top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

#page_top a::before {
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  content: "\f102";
}