@charset "utf-8";

/* カラー設定 */
:root {
  --color-bg-base: #ffffff;
  --color-bg-light: #ffffff;
  --color-bg-mid: #f3f3f3;
  --color-bg-key: #20bc51;
  --color-bg-deep-key: #0069b3;
  --color-bg-dark: #002e5a;
  --color-bg-button: #0069b3;
  --color-bg-button-hover: #004b80;
  --color-bg-button2: #20bc51;
  --color-bg-button2-hover: #0a8130;

  --color-bg-icon: #ffffff;
  --color-icon: #0069b3;
  --color-icon-light: #ffffff;
  --color-icon-key: #20bc51;

  --color-font-light: #ffffff;
  --color-font-base: #000000;
  --color-font-dark: #002e5a;
}

/* リセットと基本設定 */
*, *::before, *::after {
  box-sizing: border-box;
}

/* =============================
   fade-inアニメーション 統合対応
   （.show / .visible 両対応）
============================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  will-change: opacity, transform;
}

/* show または visible が付いたら表示 */
.fade-in.show,
.fade-in.visible {
  opacity: 1;
  transform: translateY(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; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-family: YuGothic, 'Yu Gothic', sans-serif;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', 'Segoe UI', sans-serif;
  font-size: 16px;
  color: var(--color-font-base);
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

/* ヘッダー */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1em 2em;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  color: var(--color-font-light);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.logo img {
  width: 50px;
  height: auto;
}

.logo h1 {
  font-size: 1.2rem;
  margin: 0;
  color: var(--color-font-light);
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--color-bg-light);
  border-radius: 2px;
  transition: 0.4s ease;
}

/* アニメーション時 */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ナビゲーション */
.nav {
  display: flex;
  gap: 2em;
}

.nav a {
  color: var(--color-font-light);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--color-font-dark); 
}

@media (max-width: 850px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(0, 46, 90, 0.44);
    backdrop-filter: blur(6px);
    flex-direction: column;
    justify-content: center;
    padding: 4em 2em;
    gap: 1.5em;
    transition: right 0.4s ease;
    z-index: 100;
  }

  .nav.active {
    right: 0;
  }

  .nav a {
    color: var(--color-font-light);
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: bold;
  }

  .hamburger {
    display: flex;
  }
}

/* メインビジュアル */
#main-visual {
  width: 100%;
  padding: 5em 1em;
  background: 
    linear-gradient(to right, rgba(0, 105, 179, 0.5), rgba(116, 237, 116, 0.5)), 
    url('../img/photo_main.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  text-align: center;
}

#main-visual h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
  color:var(--color-font-light);
}

#main-visual p{
  color:var(--color-font-light);
}

/*メインビジュアルのテキストフェード＆ズーム*/
#main-visual .overlay {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 1s ease;
}

body.loaded #main-visual .overlay {
  opacity: 1;
  transform: scale(1);
}
/*ここまで*/

/* セクション共通 */
section {
  padding: 3em 1em;
  max-width: 100%;
  margin: auto;
}

h1, h2 {
  color: var(--color-font-dark);
  font-size: 26px;
  font-weight: 550;
  text-align: center;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  h1, h2 {
    font-size: 24px;
  }
}

/* ボタン共通 */
.button {
  display: inline-block;
  background: var(--color-bg-button);
  color: white;
  padding: 0.7em 1.5em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: background 0.3s ease, transform 0.2s;
}    

.button2 {
  display: inline-block;
  background: var(--color-bg-button2);
  color: white;
  padding: 0.7em 1.5em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: background 0.3s ease, transform 0.2s;
}

.button:hover {
  background: var(--color-bg-button-hover);
  transform: translateY(-2px);
}

.button2:hover {
  background: var(--color-bg-button2-hover);
  transform: translateY(-2px);
}

/* フッター */
footer {
  background-color: var(--color-bg-mid);
  text-align: center;
  padding: 1.5em;
  font-size: 0.9em;
}
@media (max-width: 600px) {
  footer {
    margin-bottom:55px;
  }
}

footer p {
  margin: 0;
}


@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background: var(--color-bg-button);
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    padding: 1em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
}

  nav.active {
    display: flex;
  }


/* お問い合わせ */
.section-contact .inner{
  text-align: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;

}

.section-contact .contact-buttons {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1em;
}

.contact-buttons .button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 1em 2em;
  border-radius: 5px;
}

#contact p{
  text-align: center;
}

/* 固定ボタン（スマホ用） */
.contact-fixed {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  background: var(--color-bg-button);
  color: white;
}

.contact-fixed .fixed-half {
  width: 50%;
  text-align: center;
  padding: 14px 5px;
  display: inline-block;
  color: white;
  text-decoration: none;
}

.contact-fixed .left {
  background: var(--color-bg-button);
}

.contact-fixed .right {
  background: var(--color-bg-key);
}

.contact-fixed i {
  margin-right: 0.5em;
}

@media (max-width: 600px) {
  .contact-fixed {
    display: flex;
  }
}

/* お問い合わせ：YouTube導線（LINEなし） */
.section-contact .contact-youtube{
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e6e6e6;
  text-align: center;
}

.section-contact .contact-youtube-lead{
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

/* YouTubeボタンは電話/フォームより“補助”なので少し小さめ */
.section-contact .youtube-button{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.85em 1.4em;
  border-radius: 5px;
  background: var(--color-bg-button); /* #0069b3 */
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: background 0.3s ease, transform 0.2s;
}

.section-contact .youtube-button:hover{
  background: var(--color-bg-button-hover);
  transform: translateY(-2px);
}

.section-contact .youtube-button .yt-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(255,255,255,0.18);
  font-size: 12px;
  line-height: 1;
}

/* SP微調整 */
@media (max-width: 600px){
  .section-contact .contact-youtube{
    margin-top: 18px;
    padding-top: 16px;
  }
  .section-contact .contact-youtube-lead{
    font-size: 13px;
  }
  .section-contact .youtube-button{
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}
