*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: none; background: none;}

    :root {
      --font-sans: 'Noto Sans JP', sans-serif;
      --font-serif: 'Noto Serif JP', serif;
      --color-primary: #5f3b8b; /*#7A4E9E;*/
      --color-primary-dark: #291759; /* #291d5b; */
      --color-primary-vibrant: #7e4faa; /*#814faa;*/
      --color-primary-very-light: #d6d2e2;
      --color-off-white: #fbfaf7;
      --color-off-white-alt: #ece8e2;
      --color-border: #cfc7e3;
      --text-dark: var(--color-primary);
      --text-light: var(--color-off-white);
      /* Breakpoints here for reference/suggestion only. Variables do not work for media queries. */
      --breakpoint-xxs: 320px;
      --breakpoint-xs: 425px;
      --breakpoint-sm: 640px;
      --breakpoint-md: 768px;
      --breakpoint-lg: 1024px;
      --breakpoint-xl: 1280px;
      --breakpoint-xxl: 1536px;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    @media (max-width: 50em){
      .hide-menu-narrow-view {
        visibility: hidden;
        opacity: 0; 
        width: 0;
        height: 0;
      }
    }

    html {
      min-width: 320px;
      display: flex;
      align-items: stretch;
      background: var(--color-primary-dark);
    }

    body {
      background: var(--color-off-white);
      color: var(--text-dark);
      font-family: var(--font-sans);
      font-weight: 400;
      min-height: 100vh;
      max-width: 1200px;
      width: 100%;
      margin-left: auto;
      margin-right: auto;
    }



    .w-full {
      width: 100%;
      max-width: 100%;
    }

    .content-section {
      padding: 1rem .5rem;
      text-align: center;
      border-bottom: 0.5px solid var(--color-border);
    }
    .content-section a:link {
      text-decoration: underline;
    }
      @media (min-width: 640px) {
        .content-section { 
          padding: 2rem 1rem; 
        }
      }
      @media (min-width: 900px) {
        .content-section { 
          padding: 4rem 3rem; 
        }
      }



    p, .content-text {
      margin: 0 auto;
      font-size: 18px;
      font-weight: 500;
      line-height: 1.95;
    }
    .content-text {
      max-width: 520px;
    }

    .content-section-label-heading {
      font-size: 18px;
      font-weight: 700;
      letter-spacing: 0.3em;
      color: var(--color-primary);
      text-transform: uppercase;
      margin-bottom: 1.75rem;
    }

    .text-center {
      text-align: center;
    }
    .text-left {
      text-align: left;
    }

    a {
      text-decoration: none;
      color: var(--color-primary-vibrant);
    }
      a:hover, a:focus {
        color: var(--color-primary);
        text-decoration: none;
      }






    /* ── NAV ── */
    .nav-top {
      /* display: none; hide until wider breakpoint */
      background: var(--color-off-white);
      position: sticky;
      top: 0;
      z-index: 999;
      display: flex;
      max-width: 100%;
      border-bottom: 0.5px solid var(--color-border);
      align-items: center;
      align-items: stretch;
      justify-content: space-between;
      padding: 0;
      overflow-x: hidden;
    }
      @media (min-width: 640px) {
        .nav-top{ 
          padding-left: 1em;
        }
      }


    .nav-top-logo {
      font-family: var(--font-serif);
      font-size: 26px;
      font-weight: 600;
      color: var(--text-dark);
      color: var(--color-primary-vibrant);
      text-decoration: none;
      letter-spacing: 0.12em;
      cursor: pointer;
      display: block;
      cursor:pointer;
      padding: 10px 15px;     
      border:none;
      flex-shrink: 0;
    }
      .nav-top-logo:hover, .nav-top-logo:focus { 
        background: var(--color-primary);
        color: var(--color-off-white);
        outline: none;
        border: none;
      }

    .nav-disciplines {
      display: flex;  
      /* overflow-x: auto; */
      flex-shrink: 1;
      flex-grow: 0;
      align-items:stretch;
      /* border-right: 0.5px solid var(--color-border); */
      padding: 0;
      justify-content: end;
      justify-items:end;
    }
    .nav-top-link {
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 0.22em;
      color: #564868;
      text-transform: uppercase;
      text-decoration: none;
      padding: 0 1rem;
      display: flex;
      /* align-items: center; */
      align-items: center;
      border-left: 0.5px solid var(--color-border);
      transition: color 0.2s;
      cursor: pointer;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .nav-top-link:hover, .nav-top-link:focus { 
      background: var(--color-primary);
      color: var(--color-off-white);
    }




   


    /* ── HERO ── */
    .hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 5rem 2rem 4rem;
      text-align: center;
      border-bottom: 0.5px solid var(--color-border);
    }
    .hero-kanji {
      font-family: var(--font-serif);
      font-size: clamp(52px, 10vw, 80px);
      font-weight: 600;
      color: var(--color-primary);
      letter-spacing: 0.15em;
      line-height: 1;
      margin-bottom: 0.6rem;
    }
    .hero-name {
      font-family: var(--font-serif);
      font-size: clamp(24px, 4.5vw, 33px);
      font-weight: 700;
      letter-spacing: 0.45em;
      color: var(--color-primary-dark);
      text-transform: uppercase;
      margin-bottom: 0.85rem;
    }
    .hero-tagline {
      font-size: 18px;
      font-weight: 700;
      letter-spacing: 0.3em;
      color: #5e5074;
      text-transform: uppercase;
    }
    .hero-location {
      font-size: 16px;
      font-weight: 700;
      letter-spacing: 0.2em;
      color: #5e5074;
      padding-top: .5em;
    }
    .hero-divider {
      width: 42px;
      height: 1px;
      background: var(--color-primary);
      margin: 2rem auto 1rem;
    }




    /* ── MENU:  DISCIPLINE CARDS ── */




    .menu-disciplines {
      display: flex;
      flex-wrap: wrap;
    }
      @media (min-width: 700px) {
        .menu-disciplines { 
          flex-wrap: nowrap; 
        }
      }
    .menu-disc-card {
      padding: 1.75rem 1rem;
      text-align: center;
      border-right: 0.5px solid var(--color-border);
      cursor: pointer;
      text-decoration: none;
      transition: background 0.2s;
      border-bottom: 0.5px solid var(--color-border);
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      width: 50%;
    }
    

    @media (min-width: 700px) {
      .menu-disc-card { 
        width: 20%;
        padding: 2.25rem 1rem;
      }
    }
    @media (max-width: 699.99px) {
      .menu-disc-card:last-child:nth-child(odd) {width:100%;}
    }
    .menu-disc-card > * { 
      width:100%;
      min-width: 100%;
      max-width: 100%;
    }
    .menu-disc-card:last-child { border-right: none; }
      .menu-disc-card:hover,.menu-disc-card:focus 
      { 
        background: var(--color-off-white-alt); 
      }
      .menu-disc-card:hover .menu-disc-kanji, 
      .menu-disc-card:focus .menu-disc-kanji { color: var(--color-primary); }



    .menu-disc-kanji {
      font-family: var(--font-serif);
      font-size: 30px;
      font-weight: 600;
      color: var(--color-primary-vibrant);
      margin-bottom: 0.4em;
      transition: color 0.2s;
      align-self: flex-start;
      flex-grow: 0;
      flex-shrink: 0;
      flex-basis: 1;
    }
    .menu-disc-name {
      font-size: 15px;
      font-weight: 700;
      letter-spacing: 0.25em;
      color: #2d1b4e;
      text-transform: uppercase;
      margin-bottom: 0.4em;
      align-self: flex-start;
      flex-grow: 0;
      flex-shrink: 0;
      flex-basis: auto;
    }
    @media (min-width: 640px) {
      .menu-disc-name {
        margin-bottom: 1em;
      }
    }
    .menu-disc-desc {
      font-size: 16.5px;
      font-weight: 700;
      color: #564868;
      line-height: 1.4;
      align-self: stretch;
      flex-grow: 1;
      flex-shrink: 0;
      flex-basis: auto;
    }
    .menu-disc-arrow {
      font-size: 16.5px;
      font-weight: 700;
      color: #c4bcd4;
      margin-top: .5rem;
      transition: color 0.2s;
      align-self: flex-end;
      flex-grow: 0;
      flex-shrink: 0;
    }
    .menu-disc-card:hover .menu-disc-arrow, 
    .menu-disc-card:focus .menu-disc-arrow  { 
      color: var(--color-primary); 
    }




     /* ── PAGES ── */
    /* TODO: REMOVE if we don't use the original "page" toggling method? Or adapt?*/
    
    #pages {
      scroll-behavior: smooth;
    }
    #pages * {
      scroll-behavior: smooth;
    }

    .page { 
      display: none; 
      visibility: hidden;
      max-width: 1200px;
      height:0;
      overflow-y: hidden;
      margin: 0 auto;
      text-align: left;
    }
    .page.active { 
      display: flex;
      visibility: visible;
      row-gap: 2em;
      flex-direction: column;
      overflow-y: auto;
      height: auto;
    }
    @media (min-width: 640px) {
      .page.active { 

      }
    }

    .page-disc-header {
      width: 100%
    }
    .page-disc-header-divider {

    }
    
    .page-disc-title-kanji {
      font-family: var(--font-serif);
      font-size: clamp(30px, 6vw, 50px);
      font-size: 2em;
      font-weight: 600;
      color: var(--color-primary-vibrant);
      letter-spacing: 0.15em;
      display: inline-block;
      margin-bottom: 0.75rem;
    }
    
    .page-disc-title-romaji {
      font-family: var(--font-serif);
      font-size: 1em;
      font-weight: 700;
      letter-spacing: 0.45em;
      color: var(--color-primary-dark);
      text-transform: uppercase;
      display: inline-block;
      margin-bottom: 0.75rem;
    }

    .page-disc-description {
      font-size: 18px;
      font-weight: 700;
      letter-spacing: 0.3em;
      color: #5e5074;
      text-transform: uppercase;
      position: relative;
      display: inline-block;
      margin-bottom: 2em;
    }


    .page-disc-description:after {
      content: '';
      display: block;
      width: 100%;
      height: 1px;
      background: var(--color-primary);
      position: absolute;
      bottom: -.75em;
    }

    .page-disc-content {
      max-width: 900px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 3em;
    }
      @media (min-width: 640px) {
        .page-disc-content {
          /* display: flex;
          gap: 2rem; */
        }
      }
      @media (min-width: 900px) {
        .page-disc-content {
          /* gap: 3rem; */
        }
      }

    .page-disc-content p:not(:last-child) {
      margin-bottom: 2em;
    }
    

    .page-disc-section-heading {
      text-transform: uppercase;
      font-size: 17px;
      font-weight: 700;
      letter-spacing: 0.15em;
      margin-bottom: 0.75em;
    }
    
    .page-disc-overview, .page-disc-training {
      font-weight: 400;
      flex-shrink: 0;
      flex-grow: 0;
    }
    @media (min-width: 640px) {
      .page-disc-overview {
        /* max-width: 60%; */
      }
    }
    @media (min-width: 900px) {
      .page-disc-overview {
        /* max-width: 65%; */
      }
    }
    








    /* ── ABOUT (HOME) ── */




    .about {
      padding: 4rem 2rem;
      text-align: center;
      border-bottom: 0.5px solid var(--color-border);
    }

    .about-text {
      max-width: 520px;
      margin: 0 auto;
      font-size: 18px;
      font-weight: 700;
      line-height: 1.95;
    }
    .affiliations {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 1rem;
      flex-wrap: wrap;
      /* margin-top: 2.5rem;
      padding-top: 2.5rem; */
      /* border-top: 0.5px solid var(--color-border); */
    }
      @media  (min-width: 640px) {
        .affiliations { 
          gap: 2rem;
        }
      }
      @media  (min-width: 1024) {
        .affiliations { 
          gap: 3rem;
        }
      }

    .affil-heading {

    } 
    .affil-link {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.85rem;
      text-decoration: none;
      opacity: .9;
      transition: all 0.25s;
      border: 2px solid transparent;
      padding: 1em;
    }
      .affil-link:hover, .affil-link:focus { 
        opacity: 1; 
        border: 2px solid var(--color-primary-vibrant);
      }

    .affil-logo {
      height: 60px;
      width: auto;
      max-width: 150px;
      object-fit: contain;
    }
    .affil-placeholder {
      height: 60px;
      width: 150px;
      border: 0.5px solid #1a1230;
      display: none;
      align-items: center;
      justify-content: center;
    }
    .affil-placeholder span {
      font-size: 16.5px;
      font-weight: 700;
      color: var(--color-primary);
      text-align: center;
      padding: 0 10px;
      letter-spacing: 0.04em;
    }
    .affil-name {
      font-size: 15px;
      font-weight: 700;
      letter-spacing: 0.15em;
      text-transform: uppercase;
    }

    /* ── CONTACT and CTA ── */
    .contact {
      text-align: center;
      padding: 3rem 2rem;
      border-top: 0.5px solid var(--color-border);
      margin-top: 2rem;
    }
    .cta-btn {
      display: inline-block;
      padding: 0.8rem 2.75rem;
      margin: 2em auto;
      border: 0.5px solid var(--color-primary-vibrant);
      color: var(--color-primary-vibrant);
      font-size: 18px;
      font-weight: 700;
      letter-spacing: 0.2em;
      text-transform: none;
      background: transparent;
      text-decoration: none;
      transition: background 0.2s, color 0.2s;
      cursor: pointer;
      line-height: 1.5;
    }
    .cta-btn:hover { background: var(--color-primary-vibrant); color: #fbfaf7;  }
    .email {text-transform:none; letter-spacing:0.125em;}









    /* ── DISCIPLINE PAGE HERO ── */

    /*
    .disc-page-hero {
      padding: 4rem 2rem 3rem;
      text-align: center;
      border-bottom: 0.5px solid var(--color-border);
    }
    .disc-page-kanji {
      font-family: var(--font-serif);
      font-size: clamp(40px, 8vw, 64px);
      font-weight: 600;
      color: var(--color-primary-vibrant);
      letter-spacing: 0.2em;
      margin-bottom: 0.5rem;
    }
    .disc-page-name {
      font-family: var(--font-serif);
      font-size: clamp(21px, 3.75vw, 27px);
      font-weight: 700;
      letter-spacing: 0.5em;
      color: #2d1b4e;
      text-transform: uppercase;
    }
    .disc-page-tagline {
      font-size: 16.5px;
      font-weight: 700;
      color: #564868;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      margin-top: 0.6rem;
    }
    .disc-divider {
      width: 28px;
      height: 0.5px;
      background: var(--color-primary-vibrant);
      margin: 2rem auto 0;
    }

    */





    /* ── DISCIPLINE PAGE CONTENT ── */

/* 
    .disc-content {
      max-width: 760px;
      margin: 0 auto;
      padding: 3.5rem 2rem;
    }
    .disc-section-heading {
      font-size: 13.5px;
      font-weight: 700;
      letter-spacing: 0.35em;
      color: #7a4e9e;
      text-transform: uppercase;
      margin-bottom: 1.25rem;
    }
    .disc-body {
      font-size: 21px;
      font-weight: 700;
      color: #6e5e84;
      line-height: 1.95;
      margin-bottom: 1.5rem;
    }
    .disc-body:last-of-type { margin-bottom: 3rem; } */



   

    /* Training details */

    /* .disc-details {
      border-top: 0.5px solid #e4e0d8;
      padding-top: 2.5rem;
      margin-bottom: 3.5rem;
    }
    .detail-row {
      display: flex;
      gap: 2rem;
      padding: 1rem 0;
      border-bottom: 0.5px solid #e8e2f0;
    }
    .detail-row:last-child { border-bottom: none; }
    .detail-label {
      font-size: 13.5px;
      font-weight: 700;
      letter-spacing: 0.25em;
      color: var(--color-primary-vibrant);
      text-transform: uppercase;
      width: 100px;
      flex-shrink: 0;
      padding-top: 0.15rem;
    }
    .detail-value {
      font-size: 19.5px;
      font-weight: 700;
      color: #5e5074;
      line-height: 1.7;
    } */

    .page-disc-training-details {
      /* border-top: 0.5px solid #e4e0d8; */
      /* padding-top: 2.5rem; */
      /* margin-bottom: 3.5rem; */
    }

    .training-detail-list {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      /* gap: 2em; */
      border-top: 1px solid var(--color-border); 
      max-width: 1000px;
    }

    .training-detail-row {
      width: 50%;
      max-width: 50%;
      flex-grow: 0;
      flex-shrink: 0;
      padding: .75em .5em .75em .5em;
      border-bottom: 1px solid var(--color-border);
      padding-right: .75em;
    }
    .training-detail-row:nth-child(even) {
      border-left: 1px solid var(--color-border); 
    }
    .training-detail-row:nth-last-child(1):nth-child(odd) {
        width: 100%;
        max-width: 100%;
        flex-grow: 1;
      }
    @media (max-width: 767px) {
      
      .training-detail-row:nth-child(even) {
        padding-left: .5em;
        border-left: 1px solid var(--color-border); 
      }
    }

    .training-detail-label {
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 0.25em;
      color: var(--color-primary-vibrant);
      text-transform: uppercase;
      /* width: 100px;
      flex-shrink: 0; */
      padding-top: 0.15rem;
      padding-bottom: .5em;
    }
    .training-detail-value {
      font-size: 16px;
      font-weight: 500;
      color: #5e5074;
      line-height: 1.6;
    }






     /* Gallery */
    .gallery {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: #e0dcd6;
      border: 1px solid #e0dcd6;
      margin-bottom: 3.5rem;
    }
    .gallery-slot {
      aspect-ratio: 4 / 3;
      background: #eeeae4;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 0.65rem;
      position: relative;
    }
    .gallery-slot img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.7;
      transition: opacity 0.3s;
    }
    .gallery-slot img:hover { opacity: 0.9; }
    .ph-kanji {
      font-family: var(--font-serif);
      font-size: 28px;
      color: #dad6e4;
      line-height: 1;
      position: relative;
    }
    .ph-label {
      font-size: 13.5px;
      font-weight: 700;
      color: #d6d2e2;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      text-align: center;
      padding: 0 1rem;
      position: relative;
    }








    












    /* Niten callout */
    .niten-callout {
      border: 0.5px solid #120e2a;
      padding: 2.5rem;
      position: relative;
    }
    .niten-callout-tag {
      position: absolute;
      top: -1px;
      left: 2rem;
      background: #fbfaf7;
      padding: 0 0.75rem;
      font-size: 13.5px;
      font-weight: 700;
      letter-spacing: 0.3em;
      color: #1e1034;
      text-transform: uppercase;
    }
    .niten-inner {
      display: flex;
      gap: 2.5rem;
      align-items: flex-start;
    }
    .niten-kanji-block {
      font-family: var(--font-serif);
      font-size: 34px;
      font-weight: 600;
      color: #100e26;
      line-height: 1.2;
      flex-shrink: 0;
      letter-spacing: 0.05em;
    }
    .niten-name {
      font-size: 15px;
      font-weight: 700;
      letter-spacing: 0.32em;
      color: #361650;
      text-transform: uppercase;
      margin-bottom: 0.75rem;
    }
    .niten-desc {
      font-size: 19.5px;
      font-weight: 700;
      color: #28183e;
      line-height: 1.9;
      margin-bottom: 1.25rem;
    }
    .niten-cta {
      font-size: 13.5px;
      font-weight: 700;
      letter-spacing: 0.28em;
      color: #1e1034;
      text-transform: uppercase;
      text-decoration: none;
      cursor: pointer;
      border-bottom: 0.5px solid #14102a;
      padding-bottom: 2px;
      transition: color 0.2s, border-color 0.2s;
      display: inline-block;
    }
    .niten-cta:hover { 
      color: var(--color-primary-vibrant); 
      border-color: var(--color-primary-vibrant); 
    }



















    /* ── FOOTER ── */
    
    footer {
      padding: 1.75rem;
      text-align: center;
      font-size: 16.5px;
      font-weight: 700;
      letter-spacing: 0.12em;
      border-top: 0.5px solid var(--color-border);
    }
    footer p {
      margin-bottom: 0.5rem;
    }
    footer .mailto {
      font-size:1.2em; 
      font-weight: 700;
      vertical-align:baseline; 
      display:inline-block; 
      padding: .125em .25em;
      line-height: 1;
      position:relative;
      top: .02em;
    }
    footer .mailto:hover, footer .mailto:focus {
      background: var(--color-primary);
      color: var(--color-off-white);
    }

