/* ============================================================
   DESIGN SYSTEM — TCD BELIEVE inspired × 沖縄グリーン
   バイオテクノ小禄 ホームページ (Bootstrap 5 + Custom)
   ============================================================ */
:root {
   --primary: #2d6a4f;
   --primary-dark: #1b4332;
   --primary-light: #52b788;
   --accent: #40916c;
   --accent-warm: #d4a373;
   --accent-coral: #c44536;

   --bg-white: #ffffff;
   --bg-light: #f7f7f5;
   --bg-section: #f2f1ec;
   --bg-dark: #1a2e22;

   --text-dark: #1a1a1a;
   --text-body: #3d3d3d;
   --text-muted: #888888;
   --text-light: #ffffff;

   --border-subtle: rgba(0, 0, 0, 0.06);

   --font-heading: 'Noto Serif JP', 'Yu Mincho', serif;
   --font-body: 'Noto Sans JP', 'Hiragino Sans', sans-serif;

   --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Bootstrap Overrides ── */
body {
   font-family: var(--font-body);
   color: var(--text-body);
   line-height: 1.9;
}

.btn-primary {
   background-color: var(--primary);
   border-color: var(--primary);
}

.btn-primary:hover {
   background-color: var(--primary-dark);
   border-color: var(--primary-dark);
   transform: translateY(-2px);
   box-shadow: 0 8px 24px rgba(45, 106, 79, 0.25);
}

.btn-outline-primary {
   color: var(--primary);
   border-color: var(--primary);
}

.btn-outline-primary:hover {
   background-color: var(--primary);
   border-color: var(--primary);
}

.bg-primary {
   background-color: var(--primary) !important;
}

.bg-accent {
   background-color: var(--accent) !important;
}

.bg-primary-light {
   background-color: var(--primary-light) !important;
}

/* Custom spacing for sections */
.py-lg-6 {
   padding-top: 120px !important;
   padding-bottom: 120px !important;
}

@media (max-width: 991.98px) {
   .py-lg-6 {
      padding-top: 80px !important;
      padding-bottom: 80px !important;
   }
}

/* ── Typography ── */
.section-en {
   font-family: var(--font-heading);
   font-size: 0.75rem;
   font-weight: 400;
   color: var(--primary);
   letter-spacing: 0.2em;
   text-transform: uppercase;
   margin-bottom: 8px;
}

.section-heading {
   font-family: var(--font-heading);
   font-size: 2.2rem;
   font-weight: 700;
   color: var(--text-dark);
   line-height: 1.5;
   margin-bottom: 24px;
   letter-spacing: 0.04em;
}

.section-desc {
   font-size: 0.95rem;
   color: var(--text-muted);
   line-height: 2;
   max-width: 700px;
}

.section-desc.center {
   margin: 0 auto;
   text-align: center;
}

/* ── Fade Animation ── */
.fade-in {
   opacity: 0;
   transform: translateY(30px);
   transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
   opacity: 1;
   transform: translateY(0);
}

.fade-in-left {
   opacity: 0;
   transform: translateX(-40px);
   transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
   opacity: 1;
   transform: translateX(0);
}

.fade-in-right {
   opacity: 0;
   transform: translateX(40px);
   transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
   opacity: 1;
   transform: translateX(0);
}

/* ============================================================
   HEADER
   ============================================================ */
.header-top {
   background: var(--bg-white);
   border-bottom: 1px solid var(--border-subtle);
}

.logo-text {
   font-family: var(--font-heading);
   font-size: 1.1rem;
   font-weight: 700;
   color: var(--text-dark);
   letter-spacing: 0.08em;
}

.logo-sub {
   font-size: 0.65rem;
   font-weight: 400;
   color: var(--text-muted);
   letter-spacing: 0.1em;
}

.header-cta-item {
   display: flex;
   align-items: center;
   gap: 8px;
   padding: 12px 28px;
   text-decoration: none;
   font-size: 0.82rem;
   font-weight: 500;
   color: var(--text-body);
   border-left: 1px solid var(--border-subtle);
   transition: color var(--transition), background var(--transition);
}

.header-cta-item:hover {
   color: var(--primary);
   background: rgba(45, 106, 79, 0.04);
}

.header-nav {
   background: var(--primary-dark) !important;
   transition: box-shadow 0.3s;
}

.header-nav.scrolled {
   box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.header-nav .nav-link {
   color: rgba(255, 255, 255, 0.85) !important;
   font-size: 0.88rem;
   letter-spacing: 0.1em;
   padding: 14px 16px !important;
   position: relative;
   transition: color var(--transition);
}

.header-nav .nav-link:hover {
   color: #ffffff !important;
}

.header-nav .nav-link::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 50%;
   transform: translateX(-50%);
   width: 0;
   height: 2px;
   background: var(--primary-light);
   transition: width 0.3s;
}

.header-nav .nav-link:hover::after {
   width: 60%;
}

/* Mobile nav dropdown */
@media (max-width: 991.98px) {
   .header-nav .navbar-collapse {
      background: var(--primary-dark);
      padding: 8px 0;
   }

   .header-nav .nav-link {
      padding: 12px 20px !important;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      text-align: left;
   }

   .header-nav .nav-link::after {
      display: none;
   }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
   position: relative;
   height: 75vh;
   min-height: 500px;
   max-height: 800px;
   overflow: hidden;
}

.hero-bg {
   position: absolute;
   inset: 0;
}

.hero-bg img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.hero-overlay {
   position: absolute;
   inset: 0;
   background: linear-gradient(to right, rgba(27, 67, 50, 0.82) 0%, rgba(27, 67, 50, 0.55) 50%, rgba(27, 67, 50, 0.25) 100%);
}

.hero-content {
   position: relative;
   z-index: 2;
}

.hero-label {
   font-size: 0.82rem;
   font-weight: 500;
   color: rgba(255, 255, 255, 0.7);
   letter-spacing: 0.2em;
   margin-bottom: 20px;
}

.hero-title {
   font-family: var(--font-heading);
   font-size: 3.4rem;
   font-weight: 900;
   color: #ffffff;
   line-height: 1.55;
   margin-bottom: 28px;
   max-width: 600px;
}

.hero-title em {
   font-style: normal;
   color: var(--primary-light);
}

.hero-sub {
   font-size: 1rem;
   color: rgba(255, 255, 255, 0.85);
   line-height: 2;
   margin-bottom: 40px;
   max-width: 520px;
}

@media (max-width: 768px) {
   .hero {
      height: 65vh;
      min-height: 420px;
   }

   .hero-title {
      font-size: 2rem;
      line-height: 1.5;
   }

   .hero-sub {
      font-size: 0.9rem;
   }
}

@media (max-width: 480px) {
   .hero-title {
      font-size: 1.6rem;
   }
}

/* ── News Ticker ── */
.news-ticker {
   background: var(--bg-light);
   border-bottom: 1px solid var(--border-subtle);
   font-size: 0.85rem;
}

.ticker-icon {
   flex-shrink: 0;
   color: var(--primary);
   font-weight: 700;
   font-size: 0.78rem;
   letter-spacing: 0.05em;
}

.ticker-icon::before {
   content: '';
   display: inline-block;
   width: 6px;
   height: 6px;
   background: var(--primary);
   border-radius: 50%;
   margin-right: 6px;
   vertical-align: middle;
}

.ticker-date {
   flex-shrink: 0;
   color: var(--text-muted);
   font-size: 0.8rem;
}

.ticker-title a {
   color: var(--text-dark);
   text-decoration: none;
}

.ticker-title a:hover {
   color: var(--primary);
}

/* ============================================================
   PHILOSOPHY (ごあいさつ)
   ============================================================ */
.philosophy {
   background: var(--bg-white);
}

.philosophy-image {
   aspect-ratio: 4 / 5;
   object-fit: cover;
   border-radius: 0 60px 0 0;
}

.principle-num {
   width: 36px;
   height: 36px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: #fff;
   font-size: 0.8rem;
   font-weight: 700;
   flex-shrink: 0;
}

.principle-label {
   font-size: 1rem;
   font-weight: 700;
   color: var(--text-dark);
}

.philosophy-body {
   font-size: 0.95rem;
   color: var(--text-body);
   line-height: 2.2;
}

.philosophy-quote {
   padding: 24px 28px;
   border-left: 3px solid var(--primary);
   background: rgba(45, 106, 79, 0.04);
}

.philosophy-quote p {
   font-family: var(--font-heading);
   font-size: 1.05rem;
   font-weight: 600;
   color: var(--primary-dark);
   line-height: 1.9;
}

/* ============================================================
   SERVICES (事業内容)
   ============================================================ */
.services {
   background: var(--bg-section);
}

.service-card {
   overflow: hidden;
   background: var(--bg-white);
   transition: transform var(--transition), box-shadow var(--transition);
   border: none;
   border-radius: 2px;
}

.service-card:hover {
   transform: translateY(-8px);
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.service-card-img {
   position: relative;
   height: 320px;
   overflow: hidden;
}

.service-card-img img {
   transition: transform 0.6s ease;
}

.service-card:hover .service-card-img img {
   transform: scale(1.06);
}

.service-card-tag {
   position: absolute;
   bottom: 0;
   left: 0;
   padding: 6px 20px;
   font-size: 0.72rem;
   font-weight: 700;
   color: #fff;
   letter-spacing: 0.08em;
}

.tag-green {
   background: var(--primary);
}

.tag-teal {
   background: #0e8a7e;
}

.tag-blue {
   background: #4a90d9;
}

.service-card h3 {
   font-family: var(--font-heading);
   font-size: 1.25rem;
   font-weight: 700;
   color: var(--text-dark);
   margin-bottom: 12px;
   letter-spacing: 0.04em;
}

.service-card p {
   font-size: 0.88rem;
   color: var(--text-body);
   line-height: 1.9;
}

.service-card-link {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   margin-top: 16px;
   font-size: 0.85rem;
   font-weight: 500;
   color: var(--primary);
   text-decoration: none;
   transition: gap 0.3s;
}

.service-card-link:hover {
   gap: 12px;
}

@media (max-width: 768px) {
   .service-card-img {
      height: 240px;
   }
}

/* ============================================================
   FEATURES (選ばれる理由)
   ============================================================ */
.features {
   background: var(--bg-white);
}

.feature-circle {
   width: 160px;
   height: 160px;
   border-radius: 50%;
   overflow: hidden;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
   transition: transform var(--transition);
}

.feature-circle:hover {
   transform: scale(1.05);
}

.feature-circle img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.feature-title {
   font-family: var(--font-heading);
   font-size: 1.05rem;
   font-weight: 700;
   color: var(--text-dark);
   margin-bottom: 10px;
}

.feature-desc {
   font-size: 0.85rem;
   color: var(--text-muted);
   line-height: 1.8;
}

/* ============================================================
   NEWS (お知らせ)
   ============================================================ */
.news {
   background: var(--bg-section);
}

.news-tab {
   padding: 8px 24px;
   font-size: 0.82rem;
   font-weight: 500;
   color: var(--text-muted);
   background: transparent;
   border: none;
   cursor: pointer;
   border-radius: 4px;
   transition: all 0.3s;
   font-family: var(--font-body);
}

.news-tab.active,
.news-tab:hover {
   background: var(--primary);
   color: #fff;
}

.news-list {
   max-width: 880px;
   background: var(--bg-white);
   border-radius: 2px;
}

.news-item {
   display: flex;
   align-items: center;
   gap: 20px;
   padding: 22px 32px;
   border-bottom: 1px solid var(--border-subtle);
   transition: background 0.3s;
}

.news-item:hover {
   background: rgba(45, 106, 79, 0.02);
}

.news-item:last-child {
   border-bottom: none;
}

.news-date {
   flex-shrink: 0;
   font-size: 0.82rem;
   color: var(--text-muted);
   min-width: 90px;
}

.news-cat {
   flex-shrink: 0;
   display: inline-block;
   font-size: 0.7rem;
   font-weight: 700;
   padding: 4px 16px;
   border-radius: 3px;
   color: #fff;
   min-width: 72px;
   text-align: center;
}

.cat-product {
   background: #0e8a7e;
}

.cat-news {
   background: #4a90d9;
}

.cat-media {
   background: var(--accent-coral);
}

.cat-event {
   background: var(--accent-warm);
}

.news-title {
   flex: 1;
   font-size: 0.92rem;
   color: var(--text-dark);
}

.news-title a {
   text-decoration: none;
   color: inherit;
}

.news-title a:hover {
   color: var(--primary);
}

@media (max-width: 768px) {
   .news-item {
      flex-wrap: wrap;
      padding: 16px 20px;
      gap: 8px;
   }

   .news-title {
      flex-basis: 100%;
   }
}

/* ============================================================
   COMPANY (会社概要)
   ============================================================ */
.company {
   background: var(--bg-white);
}

.company-table {
   width: 100%;
   border-collapse: collapse;
}

.company-table tr {
   border-bottom: 1px solid var(--border-subtle);
}

.company-table th {
   text-align: left;
   padding: 18px 0;
   font-size: 0.88rem;
   font-weight: 700;
   color: var(--primary);
   width: 120px;
   vertical-align: top;
}

.company-table td {
   padding: 18px 0;
   font-size: 0.92rem;
   color: var(--text-body);
}

.company-table td a {
   color: var(--primary);
   text-decoration: none;
   font-weight: 700;
}

.company-map iframe {
   width: 100%;
   height: 420px;
   border: none;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
   background: linear-gradient(135deg, var(--primary-dark), var(--primary));
   color: #fff;
   position: relative;
   overflow: hidden;
}

.cta::before {
   content: '';
   position: absolute;
   top: -50%;
   right: -20%;
   width: 600px;
   height: 600px;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.03);
}

.cta::after {
   content: '';
   position: absolute;
   bottom: -30%;
   left: -10%;
   width: 400px;
   height: 400px;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.03);
}

.cta-heading {
   font-family: var(--font-heading);
   font-size: 2rem;
   font-weight: 700;
   margin-bottom: 16px;
   letter-spacing: 0.06em;
}

.cta-phone {
   font-family: var(--font-heading);
   font-size: 2.8rem;
   font-weight: 900;
   margin-bottom: 12px;
}

.cta-phone a {
   color: #fff;
   text-decoration: none;
}

.cta-phone-label {
   font-size: 0.8rem;
   opacity: 0.65;
   margin-bottom: 28px;
}

@media (max-width: 768px) {
   .cta-phone {
      font-size: 2rem;
   }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
   background: var(--bg-dark);
   color: rgba(255, 255, 255, 0.65);
   padding: 64px 0 0;
}

.footer-brand {
   font-family: var(--font-heading);
   font-size: 1.1rem;
   font-weight: 700;
   color: #ffffff;
   margin-bottom: 16px;
   letter-spacing: 0.06em;
}

.footer-info {
   font-size: 0.82rem;
   line-height: 2;
}

.footer-heading {
   font-size: 0.82rem;
   font-weight: 700;
   color: rgba(255, 255, 255, 0.85);
   margin-bottom: 20px;
   letter-spacing: 0.1em;
}

.footer-links {
   list-style: none;
   padding: 0;
}

.footer-links li {
   margin-bottom: 10px;
}

.footer-links a {
   color: rgba(255, 255, 255, 0.5);
   text-decoration: none;
   font-size: 0.85rem;
   transition: color 0.3s;
}

.footer-links a:hover {
   color: #fff;
}

.footer-bottom {
   text-align: center;
   padding: 24px 0;
   font-size: 0.75rem;
   color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
   .section-heading {
      font-size: 1.7rem;
   }
}

/* ============================================================
   PAGE HEADER (sub pages)
   ============================================================ */
.page-header {
   border-bottom: 1px solid var(--border-subtle);
}

.page-header .breadcrumb-item a {
   color: var(--primary);
   text-decoration: none;
}

.page-header .breadcrumb-item.active {
   color: var(--text-muted);
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
   color: var(--text-muted);
}