@charset "UTF-8";

/* =================================
   Reset & Base Styles
   ================================= */
html {
  scroll-behavior: smooth;  /* スムーズスクロール */
  scroll-padding-top: 70px; /* 固定ヘッダー分の調整 */
}

body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
  line-height: 1.6;
}

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

/* =================================
   Animation Styles
   ================================= */

/* 1. フェードイン設定 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* 遅延表示 */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* 2. ローディング画面設定 */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff; /* 最初は真っ白 */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  /* 背景色の透明化アニメーション設定 */
  transition: background-color 1.0s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* 完了時に操作を邪魔しないようにする */
#loader.is-complete {
  pointer-events: none;
}

/* ロゴのスタイル */
.loader-logo {
  /* ヘッダーのロゴサイズ(50px)に合わせる */
  height: 50px; 
  width: auto;
  max-height: 50px; 
  
  animation: flip 2.0s infinite ease-in-out;
  transition: transform 1.0s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.3s ease;
  transform-origin: center center;
  position: relative;
  z-index: 10000;
  will-change: transform, opacity;
}

/* 移動モード（回転を強制停止） */
.loader-logo.is-moving {
  animation: none !important;
}

/* 移動完了後にフェードアウトさせるクラス */
.loader-logo.is-fadeout {
  opacity: 0;
}

/* 回転キーフレーム */
@keyframes flip {
  0% { transform: perspective(400px) rotateY(0deg); }
  50% { transform: perspective(400px) rotateY(180deg); }
  100% { transform: perspective(400px) rotateY(360deg); }
}

/* =================================
   Header Styles
   ================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
}

.header__logo {
  display: flex;
  align-items: center;
}

/* ロゴ画像のスタイル調整 */
.header__logo img {
  display: block;
  height: auto;
  max-height: 50px;
  /* 最初は透明にしておく（ローダーからの移動アニメーションのため） */
  opacity: 0;
  transition: opacity 0.3s;
}

/* アニメーション完了後に付与するクラス */
.header__logo img.is-visible {
  opacity: 1;
}

/* PC用メニュー */
.header__list {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.header__link {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s;
}

.header__link:hover {
  color: #007bff;
}

.header__link--contact {
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
}

.header__link--contact:hover {
  background-color: #555;
  color: #fff;
}

.header__hamburger {
  display: none;
}

/* スマホ対応 (768px以下) */
@media screen and (max-width: 768px) {
  .header__hamburger {
    display: block;
    position: relative;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }

  .header__hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 0;
    transition: all 0.3s;
  }

  .header__hamburger-line:nth-child(1) { top: 0; }
  .header__hamburger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
  .header__hamburger-line:nth-child(3) { bottom: 0; }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    transition: right 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .header__list {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .header__nav.is-active {
    right: 0;
  }

  .header__hamburger.is-active .header__hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }
  .header__hamburger.is-active .header__hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .header__hamburger.is-active .header__hamburger-line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
  }
}

/* =================================
   Hero Styles
   ================================= */
.hero {
  position: relative;
  margin-top: 70px;
  height: calc(100vh - 70px);
  min-height: 500px;
  background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

.hero__title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.hero__subtitle {
  font-size: 18px;
  margin-bottom: 40px;
  line-height: 1.8;
  font-weight: 400;
}

.hero__btn {
  display: inline-block;
  padding: 15px 40px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}

.hero__btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

@media screen and (max-width: 768px) {
  .hero__title { font-size: 32px; }
  .hero__subtitle { font-size: 15px; }
}

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

/* =================================
   Common Section Styles
   ================================= */
.section { padding: 80px 0; }
.inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-title {
  font-size: 32px;
  text-align: center;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  color: #333;
}
.section-subtitle {
  text-align: center;
  font-size: 14px;
  color: #007bff;
  margin-bottom: 60px;
  font-weight: bold;
}

/* =================================
   Company Section
   ================================= */
.company { background-color: #f9f9f9; }
.company__list { border-top: 1px solid #ddd; }
.company__row {
  display: flex;
  border-bottom: 1px solid #ddd;
}
.company__term {
  width: 30%;
  padding: 20px;
  background-color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
}
.company__desc {
  width: 70%;
  padding: 20px;
  margin: 0;
  line-height: 1.8;
}

@media screen and (max-width: 768px) {
  .company__row { display: block; }
  .company__term {
    width: 100%;
    background-color: #eee;
    padding: 10px 15px;
  }
  .company__desc { width: 100%; padding: 15px; }
}

/* =================================
   Service Section
   ================================= */
.service { background-color: #ffffff; }
.service__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.service__card {
  width: calc(33.333% - 20px);
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.service__img-wrapper {
  margin: 0;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.service__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.service__card:hover .service__img { transform: scale(1.1); }
.service__body { padding: 20px; }
.service__card-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
  border-bottom: 2px solid #007bff;
  display: inline-block;
  padding-bottom: 5px;
}
.service__text {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}
@media screen and (max-width: 768px) {
  .service__card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* =================================
   Access Section
   ================================= */
.access { background-color: #f9f9f9; }
.access__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.access__map {
  width: 55%;
  height: 100%;
}
.access__map iframe {
  width: 100%;
  height: 350px;
  border-radius: 4px;
  background-color: #eee;
}
.access__info {
  width: 40%;
  padding-left: 20px;
}
.access__list { margin-bottom: 30px; }
.access__row {
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}
.access__row:last-child { border-bottom: none; }
.access__row dt {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
  color: #333;
  display: flex;
  align-items: center;
}
.access__row dt::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #007bff;
  border-radius: 50%;
  margin-right: 10px;
}
.access__row dd {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  margin-left: 16px;
}
.access__station-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.access__station-list li { margin-bottom: 5px; }
.access__btn {
  display: inline-block;
  background-color: #fff;
  color: #007bff;
  border: 1px solid #007bff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.access__btn:hover {
  background-color: #007bff;
  color: #fff;
}
@media screen and (max-width: 768px) {
  .access__container {
    padding: 20px;
    flex-direction: column-reverse;
  }
  .access__map {
    width: 100%;
    margin-top: 30px;
  }
  .access__map iframe { height: 250px; }
  .access__info { width: 100%; padding-left: 0; }
}

/* =================================
   Contact Section
   ================================= */

.contact {
  background-color: #f0f8ff;
  text-align: center;
}
.contact__box {
  background-color: #fff;
  padding: 60px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  max-width: 800px;
  margin: 0 auto;
}
.contact__text {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* flexを削除し、下の余白のみに */
.contact__actions {
  margin-bottom: 20px;
}

/* メールボタン専用のスタイルに整理 */
.contact__mail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto; /* ★中央寄せ */
  padding: 15px;
  box-sizing: border-box;
  border-radius: 50px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s;
  background-color: #007bff;
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.contact__mail:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.contact__mail-icon {
  margin-right: 10px;
  font-size: 20px;
}

.contact__note {
  font-size: 13px;
  color: #888;
  margin-top: 20px;
}

/* スマホ表示の調整（ボタンの縦並び設定を削除） */
@media screen and (max-width: 768px) {
  .pc-only { display: none; }
}

/* =================================
   Footer
   ================================= */
.footer {
  background-color: #333;
  color: #fff;
  padding: 40px 0 20px;
  text-align: center;
}
.footer__logo {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}
.footer__list {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}
.footer__list a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.footer__list a:hover { color: #fff; }
.footer__copyright {
  border-top: 1px solid #555;
  padding-top: 20px;
  font-size: 12px;
  color: #aaa;
}
/* 個人情報保護方針リンクのスタイル */
.footer__policy {
  margin-bottom: 20px; /* コピーライトとの余白 */
}

.footer__policy a {
  color: #aaa; /* メニューより少し控えめなグレー */
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
  border-bottom: 1px solid transparent; /* ホバー時の下線用 */
  transition: all 0.3s;
}

.footer__policy a:hover {
  color: #fff;
  border-bottom-color: #fff; /* ホバー時に下線を引く */
}
@media screen and (max-width: 768px) {
  .footer__list {
    flex-direction: column;
    gap: 15px;
  }
}