/*
Theme Name: FlowLabo Theme
Theme URI: https://flow-labo.jp
Author: FlowLabo
Author URI: https://flow-labo.jp
Description: Custom WordPress theme for FlowLabo
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flowlabo
*/


    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
      font-size: 14px;
      line-height: 1.8;
      color: #333;
      background: #fff;
      font-weight: 300;
      padding-top: 65px;
    }

/*-------------------------------------------
 Header 
 -------------------------------------------*/
 header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  opacity: 1;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-top {
  background: #f8f8f8;
  padding: 8px 40px;
  text-align: center;
  font-size: 13px;
  color: #666;
}

.header-main {
  padding: 0px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#header  a {
  color: #666;
  line-height: 2.5;
}
#header  a:hover {
  opacity: 0.7;
}
.icon {
  width: 20px;
  padding: 8px 0px;
}

.site-title img {
  width: 40%;
  padding-top: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #555;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

nav a:hover {
  color: #2c3e50;
}

.nav-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
  
  /* Search form */
  /* Visually hidden label for accessibility */
  .visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  
  /* wrapper */
  .search-form {
    width: 100%;
    max-width: 520px; /* Adjust as needed */
    
  }
  
  /* Container wrapping input and button (relative positioning) */
  .algolia-wrap {
    position: relative;
    display: block;
  }
  
  /* Input field body */
  .algolia-input__desktop {
    box-sizing: border-box;
    width: 100%;
    /* Reserve space on the right for the button using calc (button width + margin) */
    padding: calc(10px + 0px) 44px 10px 12px; /* top/right/bottom/left */
    line-height: 1.2;
    border: none;
    border-radius: 30px;
    background: #f3f3f3;
    color: #ddd;
    transition: border-color .16s ease, box-shadow .12s ease;
    -webkit-appearance: none;
    appearance: none;
  }
  
  /* Visual feedback on focus */
  .algolia-input__desktop:focus {
    outline: none;
    border-color: #888;
    box-shadow: 0 0 0 3px rgba(136,136,136,0.08);
  }
  
  /* Submit button (overlaid inside the input) */
  .algolia-btn {
    position: absolute;
    top: 63%;
    right: 55px; /* Distance from the right edge of the input */
    transform: translateY(-50%);
    height: 32px;
    min-width: 32px;
    padding: 6px;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666; /* Icon color (uses currentColor) */
    border-radius: 6px;
  }
  
  /* Button hover/focus */
  .algolia-btn:hover,
  .algolia-btn:focus {
    color: #111;
    background: rgba(0,0,0,0.04);
    outline: none;
  }
  
  /* Slightly reduce height on mobile */
  @media (max-width: 420px) {
    .algolia-input__desktop {
      padding-right: 40px;
      height: 40px;
      font-size: 15px;
    }
    .algolia-btn {
      right: 4px;
      height: 28px;
      min-width: 28px;
    }
  }
  
  /* Desktop-only display (can be adjusted to match class name) */
  @media (min-width: 1024px) {
    .algolia-input__desktop {
      max-width: 420px;
    }
  }

  .header-main{
    padding: 0px 20px;
  }

  .site-title img {
    width: 40%;
  }
  
  
  /*- Hamburger menu ---------------------------*/
  /* ===== Hamburger button ===== */
  .hamburger-btn {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1100;
  }
  
  /* Line */
  .hamburger-line {
    width: 24px;
    height: 2px;
    background: #222;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  /* ===== Menu (hidden state) ===== */
  .site-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 260px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 8px rgba(0,0,0,0.12);
    transition: left 0.3s ease;
    padding: 40px 20px;
    z-index: 90;
  }
  
  /* Menu list */
  .site-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
  }
  
  .site-nav__list li + li {
    margin-top: 16px;
  }
  
  .site-nav__list a {
    text-decoration: none;
    /* font-size: 1rem; */
    color: #222;
    transition: color 0.2s ease;
    font-weight: 300;
  }
  
  .site-nav__list a:hover {
    color: #555;
  }
  
  /* ===== When menu is open ===== */
  .site-nav.open {
    left: 0;
  }
  
  /* Transform hamburger icon into “X (close)” */
  .hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* ===== Hidden on PC display ===== */
  @media (min-width: 1191px) {
    .sp-top {
      display: none;
    }
  }
  /* ===== Hidden on mobile display ===== */
  @media (max-width: 1190px) {
    .pc-top {
      display: none;
    }
    
    #header {
      padding: 0px 10px
    }
  
    #header ul {
      padding-top: 30px;
    }
  
    #header li img.icon {
      width: 30px;
      padding-top: 0px;
    }
  
    .pc-top-list a {
      display: none;
    }
  }
  

/* Hero Slideshow */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    padding: 0 100px;
    display: flex;
    gap: 20px;
    align-items: center;
  }

  .slide-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    pointer-events: none;
  }

  .slide.active {
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
  }

  .slide.prev-visible {
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
    transform: translateX(calc(-100% - 20px));
  }

  .slide.next-visible {
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
    transform: translateX(calc(100% + 20px));
  }

  .slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
  }

  .slide-image {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    overflow: hidden;
    position: relative;
  }

  .slide-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
  }

  .slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .slide-content {
    position: absolute;
    bottom: 60px;
    left: 60px;
    color: #fff;
    z-index: 2;
    max-width: 600px;
  }

  .slide-label {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  .slide-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 1.5;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  }

  .slide-excerpt {
    font-size: 14px;
    color: #fff;
    line-height: 1.8;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    opacity: 0.95;
  }

  .slide-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
  }

  .slide-date {
    letter-spacing: 1px;
  }

  .slide-category {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 11px;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
  }

  /* Slide Navigation Buttons */
  .slide-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    padding: 0;
  }

  .slide-nav-btn:hover {
    opacity: 0.7;
  }

  .slide-nav-btn svg {
    width: 40px;
    height: 40px;
    stroke: #fff;
    stroke-width: 1.5;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  }

  .prev-btn {
    left: 70px;
  }

  .next-btn {
    right: 70px;
  }

  /* Slide Indicators */
  .slide-indicators {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
  }

  .indicator {
    width: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
  }

  .indicator:hover {
    background: rgba(255, 255, 255, 0.5);
  }

  .indicator.active {
    background: rgba(255, 255, 255, 0.6);
  }

  .indicator.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #fff;
    animation: progress 5s linear;
  }

  @keyframes progress {
    from { width: 0; }
    to { width: 100%; }
  }

  /* Responsive */
  @media (max-width: 1024px) {
    .slide-title {
      font-size: 28px;
    }
  }

  @media (max-width: 768px) {
    /* Mobile: display full width */
    .hero-slideshow {
      padding: 0;
      height: 70vh; /* Slightly adjust height */
    }

    .slide {
      width: 100%;
    }

    /* Hide previous and next slides */
    .slide.prev-visible,
    .slide.next-visible {
      opacity: 0;
      transform: none;
    }

    /* Adjust text content */
    .slide-content {
      bottom: 30px;
      left: 20px;
      right: 20px;
      max-width: none;
      width: calc(100% - 40px);
    }

    .slide-label {
      font-size: 10px;
      padding: 4px 12px;
      margin-bottom: 12px;
    }

    .slide-title {
      font-size: 20px;
      margin-bottom: 10px;
      line-height: 1.4;
    }

    .slide-excerpt {
      font-size: 12px;
      margin-bottom: 12px;
      line-height: 1.6;
    }

    .slide-meta {
      font-size: 11px;
      gap: 10px;
    }

    .slide-category {
      font-size: 10px;
      padding: 3px 8px;
    }

    /* Hide navigation buttons */
    .prev-btn,
    .next-btn {
      display: none;
    }

    /* Show indicators (adjusted smaller) */
    .slide-indicators {
      bottom: 15px;
      gap: 10px;
    }

    .indicator {
      width: 30px;
      height: 2px;
    }
  }

  /* Even smaller screens */
  @media (max-width: 480px) {
    .hero-slideshow {
      height: 60vh;
    }

    .slide-content {
      bottom: 20px;
      left: 15px;
      right: 15px;
      width: calc(100% - 30px);
    }

    .slide-title {
      font-size: 18px;
    }

    .slide-excerpt {
      font-size: 11px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .slide-indicators {
      bottom: 10px;
    }
  }

    

    /*===========================
     Magazine Grid 
     ===============================*/

     .section-title {
        text-align: center;
        font-size: 24px;
        font-weight: 200;
        margin-bottom: 50px;
        color: #2c3e50;
        letter-spacing: 2px;
      }
      
    .magazine-section {
      max-width: 1400px;
      margin: 0 auto;
      margin-top: 200px;
      padding: 0 40px 80px;
    }

    .magazine-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 50px 40px;
    }

    .magazine-item {
      text-decoration: none;
      color: inherit;
      display: block;
      transition: transform 0.3s ease;
    }

    .magazine-item:hover {
      transform: translateY(-8px);
    }

    .magazine-image {
      position: relative;
      width: 100%;
      aspect-ratio: 3/2;
      background: #f5f5f5;
      margin-bottom: 0;
      overflow: hidden;
      border-radius: 6px;
    }

    .magazine-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.6s ease;
    }

    .magazine-item:hover .magazine-image img {
      transform: scale(1.05);
    }

    .magazine-tag {
      position: absolute;
      top: 12px;
      right: 12px;
      padding: 4px 12px;
      background: rgba(44, 62, 80, 0.85);
      color: #fff;
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.5px;
      border-radius: 3px;
      backdrop-filter: blur(4px);
    }

    .magazine-info {
      padding: 14px 4px 0;
    }

    .magazine-title {
      font-size: 16px;
      font-weight: 500;
      margin-bottom: 8px;
      line-height: 1.6;
      color: #333;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .magazine-date {
      font-size: 12px;
      color: #999;
      letter-spacing: 0.5px;
    }

    .magazine-excerpt {
      font-size: 13px;
      color: #666;
      line-height: 1.8;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    /* Load More */
    .load-more-section {
      text-align: center;
      padding: 30px 20px;
    }

    .load-more-btn {
      padding: 15px 50px;
      background: #fff;
      color: #2c3e50;
      border: 1px solid #2c3e50;
      font-size: 13px;
      font-weight: 500;
      letter-spacing: 1px;
      cursor: pointer;
      transition: all 0.3s;
    }

    .load-more-btn:hover {
      background: #2c3e50;
      color: #fff;
    }

    /* Responsive - Magazine Grid */
    @media (max-width: 1024px) {
      .magazine-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      }
    }

    @media (max-width: 768px) {
      .magazine-section {
        padding: 0 20px 60px;
        margin-top: 40px;
      }

      .magazine-grid {
        grid-template-columns: 1fr;
        gap: 40px;
      }

      .magazine-image {
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
      }
    }

    /* Animations */
    .magazine-item {
      opacity: 0;
      animation: fadeInUp 0.8s ease-out forwards;
    }

    .magazine-item:nth-child(1) { animation-delay: 0.1s; }
    .magazine-item:nth-child(2) { animation-delay: 0.15s; }
    .magazine-item:nth-child(3) { animation-delay: 0.2s; }
    .magazine-item:nth-child(4) { animation-delay: 0.25s; }
    .magazine-item:nth-child(5) { animation-delay: 0.3s; }
    .magazine-item:nth-child(6) { animation-delay: 0.35s; }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }


 /*-------------------------------------------
 Footer 
 -------------------------------------------*/
 footer {
  /* background: linear-gradient(135deg, #f5f0e8 0%, #ede4d8 100%); */
  background: #fafafa;
  color: #4a4a4a;
  padding: 80px 0 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-top {
  display: grid;
  /* grid-template-columns: 2fr 1fr 1fr 1.5fr; */
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(74, 74, 74, 0.08);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #2c3e50;
}

.footer-logo img {
  width: 40%;
}

.footer-column-header {
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  cursor: pointer;
  padding: 10px 0;
}

.footer-column h4 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #6b5d4f;
  text-transform: uppercase;
}

.toggle-icon {
  /* width: 20px; */
  height: 28px;
  transition: transform 0.3s;
  padding-left: 5px;
}

.toggle-icon.active {
  transform: rotate(180deg);
}

.footer-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s, opacity 0.3s, margin-top 0.3s;
  opacity: 0;
}

.footer-content.active {
  max-height: 500px;
  opacity: 1;
  margin-top: 15px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #6b5d4f;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}

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

.newsletter-input {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(74, 74, 74, 0.15);
  margin-bottom: 10px;
  font-size: 13px;
}

.newsletter-submit {
  width: 100%;
  padding: 12px;
  background: #2c2c2c;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 1px;
  transition: background 0.3s;
}

.newsletter-submit:hover {
  background: #1a1a1a;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a img{
  width: 36px;
}

.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(74, 74, 74, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #6b5d4f;
  transition: all 0.3s;
}

.social-link:hover {
  background: white;
  border-color: #2c2c2c;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 12px;
  color: #8b7355;
}

@media (max-width: 768px) {
  .footer-top {
  grid-template-columns: 1fr;
}

.footer-logo img{
  width: 55%;
}
    }

.column-content ul,
.column-content ol {
  padding-left: 1.5em;
}

@media (max-width: 768px) {
  .column-single {padding: 30px 16px 50px;}
  .column-title {font-size: 20px;}
  .column-content h2, .column-content h3 {font-size: 18px;}
  .cta-card {flex-direction: column;}
  .cta-card-image {width: 100%; min-height: 160px;}
}