@charset "UTF-8";

/* =========================================
   Base & Variables
   ========================================= */
:root {
    --color-bg-home: #fcfaf2;
    --color-bg-white: #ffffff;
    --color-text-main: #111111;
    --color-text-light: #dcdcdc;
    --color-accent-news: rgba(59, 122, 87, 0.85);
    --color-accent-profile: #c9aa5a;
    --color-footer: #4a4538;
    --font-serif: 'Shippori Mincho', serif;
    --font-sans: 'Lato', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-serif);
    margin: 0; padding: 0;
    color: var(--color-text-main);
    min-height: 100vh;
    width: 100%;
    position: relative;
    /* Default for contact page */
    background-color: var(--color-bg-white);
    display: flex;
    flex-direction: column;
}

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


/* Accessible: hide visually but keep for SEO/screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* Home Specific Body Background */
body.home {
    background-color: var(--color-bg-home);
    overflow-x: hidden;
    display: block; /* Reset flex column */
}
body.home::before {
    content: ""; position: fixed; inset: 0;
    background-image: url('../images/bamboo.png');
    background-size: cover; background-position: center top;
    opacity: 0.15; mix-blend-mode: multiply; z-index: -5; pointer-events: none;
}

/* =========================================
   Animations
   ========================================= */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 1.0s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity 2s ease-out; }
.fade-in.is-visible { opacity: 1; }
.slide-left { opacity: 0; transform: translateX(-50px); transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.slide-left.is-visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.5s; }
.delay-4 { transition-delay: 0.7s; }

.hero-reveal { opacity: 0; animation: heroReveal 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes heroReveal { 0% { opacity: 0; transform: translateY(25px); } 100% { opacity: 1; transform: translateY(0); } }
.hero-delay-logo { animation-delay: 0.8s; }
.hero-delay-title { animation-delay: 1.1s; }
.hero-delay-sub { animation-delay: 1.4s; }

/* Light Effect (Home) */
.top-sun-light {
    position: fixed; top: 0; left: 0; width: 100%; height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1.0) 0%, rgba(255, 240, 190, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    z-index: 100; pointer-events: none; mix-blend-mode: hard-light;
    opacity: 0; transition: opacity 0.6s ease;
}
.top-sun-light.is-active { opacity: 1; animation: lightShimmer 4s ease-in-out infinite alternate; }
@keyframes lightShimmer { 0% { opacity: 0.9; } 100% { opacity: 1.0; transform: scaleY(1.05); } }

/* =========================================
   Header & Navigation
   ========================================= */
/* Topbar (Sticky on Contact, Absolute on Home) */
.topbar {
    width: 100%; height: 50px; background: #fff; z-index: 50;
    display: flex; align-items: center;
}
body.home .topbar { position: absolute; top: 0; left: 0; }
body.page-contact .topbar { position: fixed; top: 0; left: 0; height: 60px; border-bottom: 1px solid rgba(0,0,0,0.05); }

.topbar-inner {
    width: 100%; height: 100%; padding: 0 60px 0 12px;
    display: flex; justify-content: space-between; align-items: center; box-sizing: border-box;
}
body.page-contact .topbar-inner { padding: 0 20px 0 20px; padding-right: 70px; }

.brand-left { display: flex; align-items: center; gap: 10px; color: #111; }
.brand-stacked { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 0.92; }
.brand-stacked .b1, .brand-stacked .b2 {
    font-family: var(--font-sans); font-weight: 700; font-size: 12px;
    letter-spacing: 0.26em; margin: 0; line-height: 1; color: #111;
}
.brand-divider { width: 1px; height: 24px; background: rgba(0,0,0,0.18); }
.brand-logo { height: 20px; width: auto; display: block; }

/* Language Menu */
.topbar-right { position: relative; display: flex; align-items: center; justify-content: center; margin-left: auto; }
.lang-btn {
    width: 50px; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; border: 0; background: transparent; padding: 0; cursor: pointer; color: #111;
}
.lang-btn img { width: 22px; height: 22px; display: block; }
.lang-btn .lang-label { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.06em; line-height: 1; color: #111; }

.lang-menu {
    position: absolute; top: 50px; right: -10px;
    background: #fff; border: 1px solid #eee; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex; flex-direction: column; width: 80px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s ease; z-index: 10002;
}
.lang-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-item {
    display: block; padding: 12px 0; text-align: center;
    font-family: var(--font-sans); font-size: 0.9rem; color: #999;
    text-decoration: none; transition: 0.3s;
}
.lang-item:hover { background-color: var(--color-bg-home); color: #111; }
.lang-item.is-current { color: #111; font-weight: bold; pointer-events: none; }

/* Hamburger Menu */
.fixed-menu-btn {
    position: fixed; top: 0; right: 0; width: 50px; height: 50px;
    background-color: #000; z-index: 10001;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    cursor: pointer; transition: top 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.page-contact .fixed-menu-btn { width: 60px; height: 60px; }
.fixed-menu-btn.is-active-scroll { top: 50px; }

.fixed-menu-btn span {
    display: block; width: 24px; height: 1px; background-color: #fff;
    margin: 4px 0; transition: 0.4s;
}
.fixed-menu-btn.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.fixed-menu-btn.is-open span:nth-child(2) { opacity: 0; }
.fixed-menu-btn.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.menu-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.95); z-index: 10000;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    padding-left: 10%; opacity: 0; pointer-events: none; transition: opacity 0.5s;
}
.menu-overlay.is-open { opacity: 1; pointer-events: auto; }
.menu-link {
    font-family: var(--font-sans); font-size: 2rem; color: #fff; text-decoration: none;
    margin: 15px 0; letter-spacing: 0.1em; position: relative;
    will-change: letter-spacing, color;
    transition: letter-spacing 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease;
}
.menu-link.is-active, .menu-link:active, .menu-link:hover { letter-spacing: 0.3em; color: var(--active-color); }


/* =========================================
   Home: Hero Section
   ========================================= */
header.hero-header {
    position: relative; min-height: 100vh; width: 100%;
    display: flex; align-items: center; justify-content: center; text-align: center;
    background-image: url('../images/officialtop.png');
    background-size: 88%; background-position: 68% center;
    background-repeat: no-repeat; background-color: #000; color: #fff;
    opacity: 0; transition: opacity 2s ease;
}
header.hero-header.is-visible { opacity: 1; }
header.hero-header::before{ content:""; position:absolute; inset:0; background: rgba(0,0,0,0.46); z-index:0; pointer-events:none; }

.hero-inner { position: relative; z-index: 2; transform: translateY(-100px); text-align: center; }
.profile-image { width: 440px; max-width: 92vw; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 14px 30px rgba(0,0,0,0.40)); }
.english-name {
    font-family: var(--font-sans); font-size: 4.2rem; letter-spacing: 0.32em;
    font-weight: 700; line-height: 1.05; text-transform: uppercase;
    text-shadow: 0 10px 24px rgba(0,0,0,0.40); margin: -10px 0 0 0;
}
.sub-title {
    font-family: var(--font-sans); font-size: 1.1rem; letter-spacing: 0.38em;
    opacity: 0.95; text-shadow: 0 10px 24px rgba(0,0,0,0.40); margin-top: -2px;
}
.hero-tagline { display: none !important; }

/* =========================================
   Home: News Section
   ========================================= */
.news-section {
    background-color: var(--color-accent-news); color: #fff;
    padding: 100px 20px; text-align: center; margin-bottom: 0px;
    backdrop-filter: blur(2px); position: relative; z-index: 1;
}
.section-title {
    text-align: center; font-size: 1.8rem; letter-spacing: 0.2em;
    margin-bottom: 60px; font-weight: 700; font-family: var(--font-sans);
}
.section-title::after { content: ""; display: block; width: 90px; height: 2px; background: #333; margin: 18px auto 0; }
.news-title { font-size: 1.8rem; letter-spacing: 0.2em; margin-bottom: 60px; font-weight: 700; font-family: var(--font-sans); }
.news-title::after { content: ""; display: block; width: 60px; height: 2px; background: #fff; margin: 15px auto 0; border-radius: 2px; }
.news-container { max-width: 600px; margin: 0 auto; text-align: left; }
.news-item { margin-bottom: 50px; }
/* News Stagger Animation handled in JS/CSS */
.news-item.fade-up { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; will-change: opacity, transform; }
.news-item.fade-up.is-visible { opacity: 1; transform: translateY(0); }

.news-date { font-size: 1.5rem; font-weight: 700; font-family: var(--font-sans); margin-bottom: 15px; display: block; }
.news-text { font-size: 0.95rem; line-height: 2.0; opacity: 0.9; }
.news-text a { text-decoration: underline; color: #fff; }

/* =========================================
   Home: Archive Section
   ========================================= */
.archive-section {
    position: relative; padding: 100px 0 120px;
    background-image: url('../images/image.png'); /* Note: User to provide/check this */
    background-size: cover; background-position: center; background-attachment: fixed;
    color: #fff;
}
.archive-section::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.archive-content { position: relative; z-index: 2; }
.archive-title { color: #fff; }
.archive-title::after { background: #fff; }

.archive-swiper .swiper-slide { height: auto; width: 300px; padding: 0; background: transparent; flex-direction: column; align-items: flex-start; }
.archive-card {
    background: #fff; padding: 0; width: 100%; height: 484px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5); transition: transform 0.3s;
    display: flex; flex-direction: column; overflow: hidden;
}
.archive-card img { width: 100%; height: 424px; display: block; object-fit: cover; }
.archive-info {
    background: #fff; padding: 5px 15px; width: 100%; color: #111; height: 60px;
    display: flex; flex-direction: column; justify-content: center;
}
.archive-date { font-family: var(--font-sans); font-size: 0.75rem; color: #666; margin: 0; }
.archive-name { font-size: 0.9rem; font-weight: bold; line-height: 1.3; margin: 2px 0 0; }

/* =========================================
   Home: Voice Section
   ========================================= */
.voice-section { padding: 80px 0 100px; width: 100%; overflow: hidden; position: relative; z-index: 1; }
.swiper-container { width: 100%; padding-bottom: 50px; }
.voice-slide {
    background: #fff; width: 85%; max-width: 380px; height: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); display: flex; flex-direction: column;
    justify-content: flex-start; padding: 0; overflow: hidden;
}
.voice-img-box {
    width: 100%; height: 300px; flex-shrink: 0; margin-bottom: 0;
    display: flex; justify-content: center; align-items: center; background: #fff; overflow: hidden;
}
.voice-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.voice-logo-placeholder { width: 50%; height: auto; opacity: 0.8; object-fit: contain; }

.voice-content { width: 100%; text-align: left; padding: 20px 30px 30px; flex-grow: 1; }
.voice-date-text {
    font-family: var(--font-sans); font-size: 1.6rem; letter-spacing: 0.1em;
    margin: 0 0 8px 0; padding-bottom: 8px; border-bottom: 2px solid #111;
    display: inline-block; width: 100%;
}
.voice-body { font-size: 0.95rem; line-height: 1.8; color: #111; text-align: left; margin-top: 0; }
.swiper-button-next, .swiper-button-prev {
    color: #333 !important; background: rgba(255,255,255,0.9);
    width: 50px; height: 50px; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* =========================================
   Home: Profile Section
   ========================================= */
.profile-section { background: var(--color-accent-profile); padding: 80px 20px 90px; }
.profile-card { max-width: 820px; margin: 0 auto; }
.profile-names { margin-bottom: 22px; text-align: center; }
.profile-name-ja { font-size: 48px; letter-spacing: 0.08em; font-weight: 600; }
.profile-name-en { font-family: var(--font-sans); font-size: 22px; letter-spacing: 0.22em; font-weight: 700; }
.profile-role { text-align: center; font-size: 16px; letter-spacing: 0.08em; margin: 18px 0 0; }
.profile-text {
    max-width: 760px; margin: 28px auto 0; font-size: 16px; line-height: 2.1;
    letter-spacing: 0.02em; text-align: left;
}
.profile-anim-wrap { width: min(520px, 88vw); margin: 18px auto 26px; position: relative; }
.profile-anim-wrap img { width: 100%; height: auto; display: block; }
.profile-anim-wrap .notes-frame { position: absolute; inset: 0; pointer-events: none; }

/* =========================================
   Home: Contact Preview
   ========================================= */


/* Subscribe Preview Section (between PROFILE and CONTACT) */
.subscribe-preview-section{
  padding: 140px 20px;
  text-align: center;
  background-color:  transparent;
}
.subscribe-link-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background-color: var(--color-accent-profile);
  color: #111;
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--font-sans);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.subscribe-link-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}
.subscribe-link-btn:active{
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,.10);
}
.subscribe-link-btn .arrow{
  font-size: 18px;
  line-height: 1;
}
.subscribe-link-btn:hover{
  transform: translateY(-1px);
  background-color: rgba(255,255,255,1);
}
.subscribe-arrow{
  display: inline-block;
  transform: translateY(1px);
}

.contact-preview-section { background-color: #fff; padding: 140px 20px; text-align: center; color: #111; }
.contact-link-btn {
    display: inline-flex; align-items: center; justify-content: space-between;
    width: min(400px, 90vw); padding: 25px 30px; margin-top: 50px;
    border: 1px solid #111; font-family: var(--font-sans); font-weight: 700;
    letter-spacing: 0.15em; color: #111; transition: all 0.4s ease;
}
.contact-link-btn:hover { background-color: #111; color: #fff; letter-spacing: 0.25em; }
.contact-arrow { font-size: 1.5rem; }

/* =========================================
   Contact Page Content
   ========================================= */
.contact-main-content {
    flex: 1; padding: 160px 20px 100px; max-width: 800px;
    margin: 0 auto; width: 100%; text-align: center;
}
.page-title {
    font-family: var(--font-sans); font-size: 2.4rem; letter-spacing: 0.25em;
    margin-bottom: 80px; font-weight: 700;
}
.contact-body { text-align: left; display: inline-block; max-width: 650px; }
.intro-text { font-size: 1.1rem; font-weight: bold; margin-bottom: 40px; line-height: 1.8; }
.note-list { margin-bottom: 60px; font-size: 0.9rem; line-height: 2.0; color: #444; }
.note-item { display: flex; align-items: flex-start; margin-bottom: 10px; }
.note-mark { margin-right: 0.5em; display: inline-block; }
.email-link {
    display: inline-block; font-family: var(--font-sans); font-size: 1.4rem;
    font-weight: 700; color: #111; border-bottom: 2px solid #111;
    padding-bottom: 5px; transition: opacity 0.3s; letter-spacing: 0.05em;
}
.email-link:hover { opacity: 0.6; }

/* =========================================
   Footer & Misc
   ========================================= */
footer {
    background-color: var(--color-footer); color: var(--color-text-light);
    text-align: center; padding: 50px 20px; font-size: 0.7rem;
    font-family: var(--font-sans); letter-spacing: 0.1em;
}
.skip-link {
    position: absolute; left: -9999px; top: 10px;
    background: #fff; color: #111; border: 2px solid #111;
    padding: 10px 14px; z-index: 20000; font-family: var(--font-sans);
    letter-spacing: 0.08em;
}
.skip-link:focus { left: 10px; }

/* Media Queries */
@media (max-width: 480px) {
    header.hero-header { background-size: 118%; background-position: 62% center; padding: 82px 16px 68px; }
    .profile-image { width: 300px; }
    .english-name { font-size: 2.9rem; letter-spacing: 0.24em; }
    .sub-title { font-size: 1.0rem; letter-spacing: 0.34em; }
    .hero-inner { transform: translateY(-80px); }
    /* Contact Page Mobile */
    .page-title { font-size: 2.0rem; margin-bottom: 60px; }
    .intro-text { font-size: 1.0rem; }
    .email-link { font-size: 1.1rem; }
    .contact-body { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Touch Polish */
.fixed-menu-btn, .lang-btn, .menu-link { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.fixed-menu-btn { user-select: none; }
.fixed-menu-btn.is-pressing { transform: scale(0.98); }
.menu-link { padding: 14px 10px; }
.menu-link:active { opacity: 0.75; }

/* =========================================
   Header Brand (Normalized SVGs) – SINGLE FINAL (Phoenix up / Face down)
   ========================================= */

.brand-left{
    display:flex;
    align-items:center;
    gap:12px;
}

/* Name (heder_name_logo.svg) */
.brand-name-logo{
    height:30px;
    width:auto;
    display:block;
}

/* Phoenix (phoenix_logo.svg) */
.brand-logo{
    height:23px; /* +40% from 16px (final) */
    width:auto;
    display:block;
}

/* Face (hosei_face_cap_red.svg) */
.brand-face{
    height:18px; /* -25% from 24px */
    width:auto;
    display:block;
}

/* Home (hero) emphasis */
body.home .brand-name-logo{ height:34px; }
body.home .brand-face{ height:21px; }  /* -25% from 28px */
body.home .brand-logo{ height:23px; }  /* +25% from 16px */

/* Mobile */
@media (max-width:480px){
    .brand-left{ gap:10px; }
    .brand-name-logo{ height:26px; }
    .brand-face{ height:16px; }  /* ~-25% from 22px */
    .brand-logo{ height:21px; }  /* ~+40% from 14px (final) */
}


/* Cordyceps divider */
.cordyceps-divider {
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0 20px;
}
.cordyceps-divider img {
  max-width: 420px;
  width: 70%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .cordyceps-divider img {
    max-width: 300px;
    width: 80%;
  }
}

/* ===================================================
   Language icon (SVG with "Languages" text inside)
   (Mobile 40px + shift toward hamburger)
   =================================================== */
.lang-btn{
  width: auto;              /* allow horizontal expansion */
  min-width: 50px;
  padding: 0 10px;
  gap: 0;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.lang-btn img{
  height: 40px;             /* desktop size */
  width: auto;
  display: block;
}

@media (max-width: 480px){
  .lang-btn{
    margin-right: -10px;     /* shift toward hamburger */
    padding-right: 4px;     /* keep tap area */
  }
  .lang-btn img{
    height: 40px;           /* mobile size */
  }
}
