@charset "UTF-8";

/* ==================================================
   Variables
================================================== */
:root {
  --color-main: #00366d;
  --color-text: #333333;
  --color-bg: #ffffff;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
  --width-inner: 1100px;
}

/* ==================================================
   Base & Reset & Utility
================================================== */
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin: 0;
  overflow-x: hidden; 
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: opacity 0.3s; }
a:hover { opacity: 0.7; }

.l-container { max-width: var(--width-inner); margin: 0 auto; padding: 0 4%; }
.u-text-center { text-align: center; }
.u-hidden-pc { display: none !important; }
.u-mt-40 { margin-top: 40px !important; }

@media screen and (max-width: 768px) {
  .u-hidden-sp { display: none !important; }
  .u-hidden-pc { display: block !important; }
  table, .c-table-wrap { box-sizing: border-box; word-break: break-all; max-width: 100%; overflow-x: auto; }
}

/* ==================================================
   UIパーツ (Buttons & Cards)
================================================== */
.c-btn-action {
  box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 260px; height: 54px; padding: 0 30px; border-radius: 27px;
  font-size: 15px; font-weight: 700; color: #fff !important;
  background-color: var(--color-main); text-decoration: none;
  transition: all 0.3s ease; position: relative; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.c-btn-action span { position: relative; display: inline-flex; align-items: center; }
.c-btn-action::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%) rotate(45deg); width: 6px; height: 6px;
  border-top: 2px solid #fff; border-right: 2px solid #fff; transition: all 0.3s ease;
}
.c-btn-action:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0, 54, 109, 0.25); opacity: 1; }
.c-btn-action:hover::after { right: 15px; }
@media screen and (max-width: 768px) {
  .c-btn-action { width: 100%; min-width: auto; }
}

.c-card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 3px 12px rgba(0,0,0,0.06); }
.c-card-hover:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12); }

/* ==================================================
   見出しスタイル (Layered Header)
================================================== */
.c-layer-header { position: relative; text-align: center; padding: 30px 0; margin-bottom: 25px; }
.c-layer-header--left { text-align: left; padding: 10px 0; }
.c-layer-header__en { font-family: var(--font-serif); font-size: 72px; font-weight: 300; color: #f0f3f5; letter-spacing: 0.08em; display: block; line-height: 1; text-transform: uppercase; user-select: none; }
.c-layer-header__ja { font-family: var(--font-serif); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 32px; font-weight: 400; color: var(--color-main); margin: 0; white-space: nowrap; letter-spacing: 0.05em; }
.c-layer-header--left .c-layer-header__ja { position: static; transform: none; margin-top: -35px; margin-left: 5px; }

@media screen and (max-width: 768px) {
  .c-layer-header { padding: 25px 0 20px; overflow: hidden; text-align: center; }
  .c-layer-header__en { font-size: clamp(48px, 13vw, 62px); }
  .c-layer-header__ja { font-size: 28px; }
  .c-layer-header--left { text-align: center; padding: 25px 0 20px; }
  .c-layer-header--left .c-layer-header__ja {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); margin: 0;
  }
}

/* ==================================================
   Header (全ページ共通のスクロール＆メニュー開閉制御)
================================================== */
.l-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.l-header__inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 80px; padding: 0 4%;
}
.l-header__navList { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.l-header__navList a {
  font-weight: bold; text-decoration: none; color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5); transition: color 0.4s ease, text-shadow 0.4s ease;
}
.l-header__navList a:hover { color: var(--color-main); }
.l-header__logo img { height: 40px; width: 250px; object-fit: contain; object-position: left center; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); transition: filter 0.4s ease; }

.l-header.is-scrolled,
.l-header.is-open { background: rgba(255, 255, 255, 0.95); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.l-header.is-scrolled .l-header__navList a,
.l-header.is-open .l-header__navList a { color: var(--color-text); text-shadow: none; }
.l-header.is-scrolled .l-header__logo img,
.l-header.is-open .l-header__logo img { content: url('/demo2/assets/img/common/logo_b.svg'); filter: none; }

.c-hamburger { background: none; border: none; cursor: pointer; width: 30px; height: 24px; position: relative; z-index: 101; }
.c-hamburger span {
  display: block; width: 100%; height: 2px; position: absolute; left: 0; transition: all 0.3s ease;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.l-header.is-scrolled .c-hamburger span,
.l-header.is-open .c-hamburger span { background: var(--color-main); box-shadow: none; }
.c-hamburger span:nth-child(1) { top: 0; }
.c-hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.c-hamburger span:nth-child(3) { bottom: 0; }
.c-hamburger.is-active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.c-hamburger.is-active span:nth-child(2) { opacity: 0; }
.c-hamburger.is-active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ==================================================
   SP Navigation Inner
================================================== */
.l-header__spNav {
  opacity: 0; visibility: hidden; 
  position: fixed; top: 80px; left: 0; width: 100%; height: calc(100vh - 80px);
  background-color: rgba(255, 255, 255, 0.96); overflow-y: auto; 
  transform: translateX(100%); 
  transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease; 
  z-index: 99;
}
.l-header__spNav.is-active { opacity: 1; visibility: visible; transform: translateX(0); }
.l-header__spNavInner { padding: 20px 4% 80px; }
.c-spNavList { list-style: none; padding: 0; margin: 0 0 30px 0; }
.c-spNavList__item { border-bottom: 1px solid #eee; }
.c-spNavList__parent { display: flex; justify-content: space-between; align-items: center; }
.c-spNavList__parent a { display: block; flex: 1; padding: 15px 0; font-weight: bold; color: var(--color-main); }

.js-accordion-toggle { background: none; border: none; width: 40px; height: 40px; position: relative; cursor: pointer; }
.js-accordion-toggle::before, .js-accordion-toggle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; background-color: var(--color-main); transform: translate(-50%, -50%); transition: transform 0.3s; }
.js-accordion-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.js-accordion-toggle.is-open::after { transform: translate(-50%, -50%) rotate(0deg); }

.c-spNavList__sub { list-style: none; padding: 0 0 0 15px; margin: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.c-spNavList__sub li { border-top: 1px dashed #eee; }
.c-spNavList__sub a { display: block; padding: 12px 0; font-size: 0.9em; color: var(--color-text); position: relative; }
.c-spNavList__sub a::before { content: "＞"; font-size: 10px; margin-right: 5px; color: var(--color-main); }
.c-spNavBtnBox { display: flex; gap: 15px; margin-top: 20px; }

/* ==================================================
   Page Header (下層ページ共通ヘッダー)
================================================== */
.c-pageHeader {
  width: 100%;
  height: 210px; /* ★高さを340pxから半減 */
  padding-top: 80px;
  background: url('/demo2/assets/img/common/h1_bg_01.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
.c-pageHeader__title {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--color-main);
  font-weight: 400;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 5px rgba(255, 255, 255, 0.8);
}
@media screen and (max-width: 768px) {
  .c-pageHeader { height: 170px; } /* ★高さを260pxから半減 */
  .c-pageHeader__title { font-size: 24px; }
}

/* ==================================================
   Breadcrumb (パンくずリスト)
================================================== */
.c-breadcrumb { margin-bottom: 20px; }
.c-breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; list-style: none; padding: 0; margin: 0; font-size: 13px; color: #666; }
.c-breadcrumb__list li { display: inline-flex; align-items: center; }
.c-breadcrumb__list a { text-decoration: underline; color: #666; }
.c-breadcrumb__list a:hover { text-decoration: none; color: var(--color-main); }
@media screen and (max-width: 768px) {
  .c-breadcrumb__list { font-size: 12px; gap: 8px; }
}

/* ==================================================
   Floating Buttons, Bottom Nav, Contact, Footer
================================================== */
.l-float-pc { position: fixed; top: 50%; right: 0; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.l-float-pc__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 15px 10px; background-color: var(--color-main); color: #fff; border-radius: 10px 0 0 10px; transition: all 0.3s ease; box-shadow: -2px 2px 5px rgba(0,0,0,0.1); text-decoration: none; }
.l-float-pc__btn:hover { transform: translateX(-8px); opacity: 1; }
.l-float-pc__btn--entry { background-color: #F2A65A; }
.l-float-pc__btn .text { writing-mode: vertical-rl; letter-spacing: 2px; font-weight: bold; }
.l-float-sp { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 90; }
.l-float-sp__btns { display: flex; }
.l-float-sp__btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; color: #fff; font-size: 14px; font-weight: bold; padding: 15px 5px; background-color: var(--color-main); border-right: 1px solid rgba(255, 255, 255, 0.4); }
.l-float-sp__btn:last-child { border-right: none; }
.l-float-sp__btn--entry { background-color: #F2A65A; }

.l-bottomNav { padding: 60px 0; background-color: var(--color-bg); }
.c-gridNav { display: flex; justify-content: center; gap: 20px; list-style: none; padding: 0; margin: 0 auto; }
.c-gridNav li { width: calc(100% / 6); text-align: center; }
.c-gridNav a { display: flex; flex-direction: column; align-items: center; padding: 10px; font-weight: bold; }
.c-gridNav__icon { width: 50px; margin-bottom: 15px; transition: transform 0.3s ease; }
.c-gridNav a:hover .c-gridNav__icon { transform: translateY(-5px); }
.c-gridNav__text { position: relative; padding-bottom: 5px; }
.c-gridNav__text::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background-color: var(--color-main); transform: scaleX(0); transition: transform 0.3s ease; }
.c-gridNav a:hover .c-gridNav__text::after { transform: scaleX(1); }
@media screen and (max-width: 768px) { .c-gridNav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 10px; } .c-gridNav li { width: 100%; font-size: 13px; } }

.l-contact { position: relative; }
.l-contact__bg { background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/demo2/assets/img/common/contact_bg_01.jpg'); background-size: cover; background-position: center; background-attachment: fixed; padding: 80px 0; }
.l-contact__inner { display: flex; flex-direction: column; gap: 60px; }
.p-contact-btns { display: flex; border: 1px solid #fff; border-radius: 6px; overflow: hidden; margin-bottom: 30px; }
.c-btn-ghost { flex: 1; display: flex; align-items: center; justify-content: center; color: #fff; padding: 18px 10px; font-weight: bold; border-right: 1px solid #fff; transition: all 0.3s; }
.c-btn-ghost:last-child { border-right: none; }
.c-btn-ghost:hover { background-color: #fff; color: var(--color-main); }
.p-contact-tel { text-align: center; color: #fff; }
.p-contact-tel__number { font-size: 40px; font-weight: bold; font-family: Arial, sans-serif; display: flex; align-items: center; justify-content: center; gap: 15px; }
@media screen and (max-width: 768px) {
  .p-contact-btns { flex-direction: column; }
  .c-btn-ghost { border-right: none; border-bottom: 1px solid #fff; }
  .c-btn-ghost:last-child { border-bottom: none; }
  .p-contact-tel__number { font-size: 30px; }
}

.l-footer { background: #333; color: #fff; padding: 70px 0 20px; font-size: 13px; }
.p-footer-inner { display: flex; justify-content: space-between; gap: 80px; margin-bottom: 50px; }
.p-footer-logo img { height: 45px; width: 280px; object-fit: contain; object-position: left center; margin-bottom: 20px; }
.p-footer-sitemap { list-style: none; padding: 0; margin: 0 0 50px 0; }
.p-footer-sitemap li { display: flex; align-items: flex-start; margin-bottom: 15px; line-height: 1.6; }
.p-footer-sitemap .head { width: 130px; flex-shrink: 0; font-weight: bold; }
.p-footer-sitemap .sep { margin: 0 15px; color: #666; }
.p-footer-sitemap .links { flex: 1; color: #aaa; }
.p-footer-sitemap a { color: #fff; transition: color 0.3s; }
.p-footer-sitemap a:hover { color: var(--color-main); }
.p-footer-sitemap .links a { color: #ccc; }
.p-footer-links { list-style: none; padding: 0; }
.p-footer-links li { margin-bottom: 12px; }
.p-footer-links a { color: #ccc; transition: color 0.3s; display: block; }
.p-footer-links a:hover { color: var(--color-main); }
.p-footer-banners { display: flex; gap: 20px; margin-top: 30px; }
.p-footer-banners a { flex: 1; transition: opacity 0.3s; }
.p-footer-banners a:hover { opacity: 0.8; }
.p-footer-copyright { text-align: center; border-top: 1px solid #444; padding-top: 20px; color: #aaa; font-size: 12px; }
@media screen and (max-width: 768px) {
  .p-footer-inner { flex-direction: column; gap: 40px; }
  .p-footer-sitemap li { flex-direction: column; margin-bottom: 25px; }
  .p-footer-sitemap .sep { display: none; }
  .p-footer-sitemap .head { width: 100%; margin-bottom: 8px; border-bottom: 1px solid #555; padding-bottom: 5px; }
}

.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }