@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700;900&family=Noto+Sans+JP:wght@400;500;700&display=swap");

:root {
  --color-main: #fb7a00;    /* オレンジ */
  --color-green: #a7c9b1;   /* 薄い緑 */
  --color-blue: #0091F0;    /* 青 */
  --color-text: #333333;    /* テキスト色 */
  --color-bg-light: #f9f9f9;
  --font-en: 'Montserrat', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
}

/* Reset & Base */
html {
  font-size: 62.5%;
}

body {
  font-family: var(--font-jp);
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--color-text);
  margin: 0;
  background-color: #fff;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

a:hover {
  opacity: 0.7;
}

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}


/* Common Components */
.inner {
  width: 100%;
  max-width: 1200px; /* 少し広げた */
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 15px 50px;
  background: var(--color-main);
  color: #fff;
  border-radius: 50px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(251, 122, 0, 0.3);
  border: 2px solid var(--color-main);
}

.btn:hover {
  background: #fff;
  color: var(--color-main);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(251, 122, 0, 0.4);
  opacity: 1; /* opacityリセット */
}

.cta_btn2, .cta_btn3 {
  text-align: center;
  margin-top: 40px;
}

.line_btn {
  background: #06c755; /* LINEカラー */
  border-color: #06c755;
  box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
}
.line_btn:hover {
  color: #06c755;
}

/* Footer */
#footer {
  background: #f6f6f6;
  padding: 80px 0 30px;
  text-align: center;
}

#f_logo img {
  width: 180px;
  margin-bottom: 30px;
  filter: grayscale(100%);
  opacity: 0.6;
}

.footer02 .menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.footer02 .menu li a {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.4rem;
  color: #888;
}

.copyright {
  color: #ccc;
  font-size: 1.2rem;
  font-family: var(--font-en);
}

/* Responsive */
@media screen and (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  .cta_btn2, .cta_btn3 {
    text-align: center;
  }
}

/* =========================================
   Header & Navigation (修正版)
   ========================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  height: 70px;
}

.logo img {
  height: 40px;
  width: auto;
}

.menu-icon {
  display: none;
  font-size: 2.4rem;
  cursor: pointer;
}

/* 親メニューの基準位置 */
.nav-links ul li {
  position: relative;
}

/* -----------------------------------------
   PC Layout (Hover Dropdown)
   ----------------------------------------- */
@media screen and (min-width: 769px) {
  .nav-links {
    display: block !important;
    position: static;
    height: auto;
    background: transparent;
    overflow: visible;
  }

  /* 【修正】直下のulのみを横並びにする */
  .nav-links > ul {
    display: flex;
    gap: 30px;
  }

  .nav-links > ul > li > a {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
    padding: 10px 0;
  }

  /* スマホ用のトグルボタンは隠す */
  .menu-toggle {
    display: none;
  }

  /* サブメニュー設定 */
  .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 220px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 15px 0;
    
    /* 【修正】確実に縦並び・初期非表示にする */
    display: block; 
    opacity: 0;
    visibility: hidden;
    
    transition: all 0.3s ease;
    z-index: 9999;
  }

  /* ホバー時に表示 */
  .has-child:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .sub-menu li {
    width: 100%;
    margin: 0;
    border-bottom: none; /* 線のリセット */
  }
  
  .sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 1.4rem;
    color: #333;
    text-align: center;
    /* PCサブメニューの文字スタイル */
    font-weight: normal;
  }
  .sub-menu li a:hover {
    background: #f5f5f5;
    color: var(--color-main);
  }
}

/* -----------------------------------------
   SP Layout (Accordion & Scrollable)
   ----------------------------------------- */
@media screen and (max-width: 768px) {
  header {
    padding: 10px 20px;
  }

  .menu-icon {
    display: block;
  }
  .logo img {
  height: 20px;
  width: auto;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    overflow-y: auto;
    background: #fff;
    padding: 20px 0 80px;
    box-shadow: inset 0 5px 10px rgba(0,0,0,0.05);
  }

  .nav-links.active {
    display: block;
  }

  /* 【修正】スマホメニューのリスト設定 */
  .nav-links ul {
    display: block; /* 縦並び */
  }

  .nav-links ul li {
    width: 100%;
    border-bottom: 1px solid #eee;
    padding: 10px;
  }
  
  .nav-links > ul > li > a {
    display: block;
    padding: 20px 20px;
    font-size: 1.6rem;
    font-weight: 700;
    width: 100%;
  }

  /* トグルボタン（＋マーク） */
  .menu-toggle {
    display: block;
    position: absolute;
    top: 15px;
    right: 0;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 10;
    /* タップエリア確認用（必要ならコメントアウト解除） */
    /* background: rgba(0,0,0,0.05); */
  }

  .menu-toggle::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 16px;
    background: #333;
    transition: transform 0.3s;
  }
  
  .menu-toggle::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 2px;
    background: #333;
    transition: transform 0.3s;
  }

  /* 開いた状態（＋が－になる） */
  .has-child.active .menu-toggle::before {
    transform: translate(-50%, -50%) rotate(90deg);
  }
  
  /* 【修正】サブメニュー（初期は完全に非表示） */
  .nav-links .sub-menu {
    display: none; 
    background: #f9f9f9;
    padding: 0;
    border-top: 1px solid #eee;
    
    /* PC用のスタイルをリセット */
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
  }
  
  /* activeがついたら表示 */
  .has-child.active .sub-menu {
    display: block;
    animation: spFadeIn 0.3s ease;
  }

  .sub-menu li {
    border-bottom: 1px dashed #ddd;
  }
  .sub-menu li:last-child {
    border-bottom: none;
  }

  .sub-menu li a {
    padding: 15px 20px 15px 40px; /* インデント */
    font-size: 1.4rem;
    color: #666;
    font-weight: normal;
  }
}

@keyframes spFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   Anchor Link Adjustment (ヘッダー被り対策)
   ========================================= */
/* id属性がついているすべての要素に対して */
*[id] {
  /* ヘッダーの高さ(70px) + 余白(30px) = 100px 分ずらして表示 */
  scroll-margin-top: 100px;
}