/* ========================================
   Reset & Base
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #3B4043;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

/* ========================================
   Layout
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}


/* ========================================
   Header
   ======================================== */
.lp-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  width: 110px;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #333;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  border-radius: 4px;
}

.logo-text {
  color: #333;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.global-nav a {
  transition: color 0.3s ease;
}

.global-nav a:hover {
  color: #6cb4d4;
  opacity: 1;
}

.global-nav .btn-small {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: #6cb4d4;
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
}

.global-nav .btn-small:hover {
  background: #5a9dbf;
  color: #fff;
  opacity: 1;
}

.global-nav .btn-small .mail-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .global-nav {
    gap: 16px;
    font-size: 12px;
  }
}

/* ========================================
   Hero
   ======================================== */
.hero {
  background: #ffffff;
  text-align: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Hero Logo Animation */
.fv-logo {
  display: block;
  width: 200px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInLogo 1.5s ease-out 0.5s forwards;
}

.fv-logo.hide {
  animation: fadeOutLogo 1s ease-out forwards;
}

.fv-logo img {
  width: 100%;
  height: auto;
}

/* Hero Title Animation */
.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #3B4043;
  opacity: 0;
  text-align: center;
  margin-top: -100px;
}

.hero-title.show {
  animation: fadeInTitle 5s ease-out forwards;
}

/* Keyframe Animations */
@keyframes fadeInLogo {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutLogo {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes fadeInTitle {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 0 60px;
    min-height: 50vh;
  }
  .hero-title {
    font-size: 32px;
  }
  .fv-logo {
    width: 150px;
  }
}

/* ========================================
   Section Title
   ======================================== */
.section.service{
  padding: 80px 0 0;
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 60px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 48px;
  color: #3B4043;
}

.section-title span {
  display: block;
  font-size: 28px;
  font-weight: 600;
  color: #3B4043;
  margin-top: 12px;
  letter-spacing: 0.05em;
  font-family: 'Noto Sans JP', sans-serif;
}

/* ========================================
   SERVICE Section
   ======================================== */
.service {
  background: #fff;
}

.service .section-title {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.service .section-title span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

.service .section-title span::before {
  content: '';
  width: 60px;
  height: 3px;
  background: #666;
}

.tabs {
  display: flex;
  justify-content: flex-start;
  gap: 30px;
  margin-bottom: 0;
  border: none;
}

.tab {
  flex: 1;
  padding: 20px 40px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #3B4043;
  background: #B4B4B4;
  border: none;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.tab:hover {
  opacity: 0.8;
}

.tab.is-active {
  background: #B0DBED;
  color: #3B4043;
  font-weight: 500;
}

.tab[data-tab="01"].is-active {
  background: #B0DBED;
}

.tab[data-tab="02"].is-active {
  background: #F5F2EA;
}

.tab-panels {
  position: relative;
}

.tab-panel {
  opacity: 1;
  transition: opacity 0.4s ease;
  padding: 60px 80px;
}

.tab-panel:not(.is-active) {
  display: none;
  opacity: 0;
}

.tab-panel[aria-labelledby="tab-01"] {
  background: #B0DBED;
}

.tab-panel[aria-labelledby="tab-02"] {
  background: #F5F2EA;
}

.service-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.service-image-wrapper {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.service-image {
  width: 100%;
  height: auto;
  
}

.service-description {
  max-width: 800px;
  text-align: left;
  display: flex;
  flex-direction: column;
  margin-right: 200px;
}

.service-subtitle {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #3B4043;
}

.service-tagline {
  font-size: 16px;
  color: #3B4043;
  margin-bottom: 24px;
  font-weight: 400;
}

.service-text {
  font-size: 15px;
  line-height: 1.9;
  color: #3B4043;
  margin-bottom: 32px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #3B4043;
  text-decoration: none;
  transition: opacity 0.3s ease;
  align-self: center;
}

.service-link:hover {
  opacity: 0.7;
}

.link-arrow-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .tab-panel {
    padding: 40px 24px;
  }
  .service-content {
    gap: 24px;
  }
  .service-subtitle {
    font-size: 24px;
  }
  .service-text br.pc-only {
    display: none;
  }
}

/* ========================================
   VISITORS Section
   ======================================== */
.visitors {
  background: #fff;
  position: relative;
}

.visitors::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/for_visitor_bg.png');
  background-size: cover;
  background-position: center;
  border-radius: 0 250px 0 250px;
  z-index: 0;
}

.visitors .container {
  position: relative;
  z-index: 1;
}

.visitors .section-title {
  text-align: left;
  font-size: 45px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 60px;
  padding-left: 150px;
}

.visitors .section-title span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  margin-top: 16px;
}

.visitors .section-title span::before {
  content: '';
  width: 40px;
  height: 3px;
  background: #3B4043;
}

.visitors-content {
  max-width: 800px;
  margin: 0 auto;
  padding-left: 200px;
}

.visitors-content p {
  font-size: 15px;
  line-height: 2;
  color: #3B4043;
  margin-bottom: 32px;
  text-align: left;
}

.visitors-content .signature {
  text-align: right;
  margin-top: 48px;
  margin-bottom: 0;
}

.visitors-content .signature img {
  width: 160px;
  height: auto;
  margin-left: auto;
  display: block;
}

@media (max-width: 768px) {
  .visitors .section-title {
    font-size: 36px;
  }
  
  .visitors-content {
    padding: 0 16px;
  }
}

/* ========================================
   STORIES Section
   ======================================== */
.stories {
  background: #fff;
}

.stories .section-title {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.stories .section-title span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

.stories .section-title span::before {
  content: '';
  width: 60px;
  height: 3px;
  background: #3B4043;
}

.stories-intro {
  max-width: 800px;
  margin: 0 auto 60px;
  font-size: 14px;
  line-height: 2;
  color: #3B4043;
  text-align: left;
}

.stories-slider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 60px;
  padding: 0 60px;
}

.slider-wrapper {
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 24px;
  transition: transform 0.3s ease;
}

.story-card {
  flex: 0 0 calc(33.333% - 16px);
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 1;
}

.story-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-text {
  padding: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: #3B4043;
  min-height: 80px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 24px;
  color: #3B4043;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.slider-btn:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-btn.prev {
  /* Center of button aligns with content edge: padding (60px) - half button (20px) */
  left: calc(60px - 20px);
}

.slider-btn.next {
  /* Center of button aligns with content edge */
  right: calc(60px - 20px);
}

.stories-button {
  text-align: center;
}

.btn-stories {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 40px;
  color: #3B4043;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.btn-stories:hover {
  opacity: 0.7;
}

.btn-stories .btn-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .stories-slider {
    padding: 0 50px;
  }
  
  .story-card {
    flex: 0 0 100%;
  }
  
  .slider-btn {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
  /* Mobile padding is 50px, half of 32px is 16px */
  .slider-btn.prev { left: calc(50px - 16px); }
  .slider-btn.next { right: calc(50px - 16px); }
}

@media (max-width: 768px) {
  .stories-intro br {
    display: none;
  }
}

/* ========================================
   NEWS Section
   ======================================== */
.news {
  background: #F5F2EA;
}

.news .section-title {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.news .section-title span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

.news .section-title span::before {
  content: '';
  width: 60px;
  height: 3px;
  background: #3B4043;
}

.news-list {
  max-width: 800px;
  margin: 0 auto 32px;
}

.news-list li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
  align-items: center;
}

.news-list time {
  font-size: 14px;
  color: #888;
  font-weight: 500;
  white-space: nowrap;
}

.news-category {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #3B4043;
  border: 1px solid #3B4043;
  border-radius: 16px;
  white-space: nowrap;
}

.news-category.category-media {
  color: #666;
  border-color: #999;
}

.news-list a {
  font-size: 15px;
  color: #333;
  flex: 1;
}

.news-list a:hover {
  color: #6cb4d4;
  opacity: 1;
}

.news-button {
  text-align: center;
  margin-top: 40px;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #3B4043;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.news-link:hover {
  opacity: 0.7;
}

.news-link .link-arrow-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .news-list li {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* ========================================
   COMPANY Section
   ======================================== */
.company {
  background: #fff;
}

.company .section-title {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.company .section-title span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

.company .section-title span::before {
  content: '';
  width: 60px;
  height: 3px;
  background: #3B4043;
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.company-table {
  font-size: 15px;
}

.company-table > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.company-table > div:first-child {
  border-top: 1px solid #e0e0e0;
}

.company-table > div + div {
  border-top: none;
}

.company-table dt {
  font-weight: 500;
  color: #3B4043;
  background: #B0DBED;
  padding: 16px 10px;
  display: flex;
  align-items: center;
}

.company-table dd {
  color: #555;
  padding: 16px 20px;
  display: flex;
  align-items: center;
}

.map {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}

.map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  .company-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .company-table > div {
    grid-template-columns: 100px 1fr;
    gap: 16px;
  }
}

/* ========================================
   CONTACT Section
   ======================================== */
.contact {
  background: #fff;
  padding: 80px 0 100px;
}

.contact .container {
  background: #F5F2EA;
  padding: 80px 70px 100px;
  border-radius: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact .section-title {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact .section-title span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

.contact .section-title span::before {
  content: '';
  width: 60px;
  height: 3px;
  background: #3B4043;
}

.contact-intro {
  text-align: center;
  font-size: 14px;
  color: #3B4043;
  margin-bottom: 48px;
  line-height: 1.8;
}

.contact-intro .required-note {
  color: #E74C3C;
  font-size: 13px;
  display: inline-block;
  margin-top: 8px;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 48px 60px;
  border-radius: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  margin-bottom: 32px;
  align-items: start;
}

.form-row.full {
  grid-template-columns: 200px 1fr;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: #3B4043;
  padding-top: 12px;
}

.form-label .required {
  color: #E74C3C;
  margin-left: 4px;
}

.form-input {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-input input[type="text"],
.form-input input[type="email"],
.form-input input[type="tel"],
.form-input textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.3s ease;
}

.form-input input:focus,
.form-input textarea:focus {
  outline: none;
  border-color: #6cb4d4;
}

.form-input textarea {
  resize: vertical;
  min-height: 150px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #3B4043;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-consent {
  text-align: center;
  margin: 32px 0;
  font-size: 13px;
}

.form-consent label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.form-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.form-consent .privacy-link {
  color: #6cb4d4;
  text-decoration: underline;
}

.form-consent .privacy-link:hover {
  opacity: 0.8;
}

.form-actions {
  text-align: center;
  margin-top: 40px;
}

.btn-submit {
  display: inline-block;
  padding: 14px 80px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: #6cb4d4;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background: #5a9dbf;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .contact-form {
    padding: 32px 24px;
  }
  .form-row,
  .form-row.full {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-label {
    padding-top: 0;
  }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-block;
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: #6cb4d4;
  border-radius: 30px;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #5a9dbf;
  transform: translateY(-2px);
  opacity: 1;
}

.btn-ghost {
  display: inline-block;
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 500;
  color: #6cb4d4;
  background: transparent;
  border: 2px solid #6cb4d4;
  border-radius: 30px;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-ghost:hover {
  background: #6cb4d4;
  color: #fff;
  opacity: 1;
}

/* ========================================
   Footer
   ======================================== */
.lp-footer {
  background: #B0DBED;
  color: #3B4043;
  padding: 48px 0 32px;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 400;
  color: #3B4043;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  opacity: 0.7;
}

.footer-privacy {
  margin-bottom: 32px;
}

.footer-privacy a {
  font-size: 13px;
  color: #3B4043;
  transition: opacity 0.3s ease;
}

.footer-privacy a:hover {
  opacity: 0.7;
}

.footer-logo {
  margin-bottom: 24px;
}

.footer-logo a {
  display: inline-block;
  width: 120px;
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.footer-copyright {
  display: block;
  font-size: 12px;
  color: #3B4043;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 40px;
  }
  
  .section-title span {
    font-size: 20px;
  }
  
  .service-description {
    margin-right: 0;
  }
  .visitors .section-title{
    padding-left: 0px;;
  }
}

@media (max-width: 425px) {
  .section-title {
      font-size: 28px;
  }
  .section-title span {
    font-size: 18px;
    gap: 5px;
}
.contact .container{
  padding: 60px 0;
}
.tab {
  padding: 10px;
}
.visitors-content {
  padding: 0;
}
.visitors .section-title {
  font-size: 22px;
}
}

@media (max-width: 320px) {
  .tabs {
    gap: 0;
  }
}

@media (max-width: 768px) {
  .section-title span::before {
    width: 30px !important;
  }
}

@media (max-width: 425px) {
  .section-title span::before {
    width: 20px !important;
  }
}

/* ========================================
   ハンバーガーメニュー (1024px以下)
   ======================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #3B4043;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

.mobile-menu-overlay {
  display: none;
}

@media (max-width: 980px) {
  .hamburger {
    display: flex;
  }
  
  .global-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 24px;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }
  
  .global-nav.active {
    right: 0;
  }
  
  .global-nav a {
    font-size: 16px;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #E5E5E5;
  }
  
  .global-nav .btn-small {
    width: auto;
    justify-content: center;
    padding: 12px 24px;
    background: #6cb4d4;
    color: #fff;
    border-radius: 50px;
    font-size: 16px;
    border-bottom: none;
  }
}
