/* ------------ CSS Custom Properties (Variables) ------------ */
:root {
  --nav-height: 66px;
  --primary-color: #0066cc;
  --secondary-color: #ff6600;
  --text-color-dark: #333;
  --text-color-light: #bbb;            /* For footer text */
  --white: #fff;
  --background-body: #f7f7f7;
  --background-header: var(--white);
  --background-section-even: #f0f4f8;
  --background-footer: #222;
  --border-color-light: #ddd;
  --shadow-color-light: rgba(0, 0, 0, 0.06);
  --shadow-color-medium: rgba(0, 0, 0, 0.08);
  --overlay-color: rgba(0, 0, 0, 0.45); /* For hero overlay */
  --font-family-base: "Noto Sans JP", sans-serif;
  --container-max-width: 1100px;
  --cta-banner-contact-text-color: #cfe9ff; /* Text color for contact info on CTA banner */
}

/* ------------ Base Reset & Global ------------ */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-family-base);
  color: var(--text-color-dark);
  line-height: 1.7;
  background: var(--background-body);
  padding-top: var(--nav-height);       /* Offset for fixed nav */
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ------------ Global Navigation ------------ */
.hlist-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--background-header);
  z-index: 1000;
  box-shadow: 0 2px 4px var(--shadow-color-light);
}

.hlist-nav .menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
}

.hlist-nav .menu li { margin: 0; }

.hlist-nav .menu li a {
  display: block;
  padding: 1rem 1.1rem;
  line-height: calc(var(--nav-height) - 2rem);
  font-weight: 700;
  color: var(--text-color-dark);
  font-size: 0.95rem;
  transition: background 0.25s, color 0.25s;
}

.hlist-nav .menu li a:hover,
.hlist-nav .menu li.current-menu-item a {
  background: var(--primary-color);
  color: var(--white);
}

/* ------------ Hero ------------ */
.hero {
  background: url("images/LPheder3.png") center/cover no-repeat;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: var(--white);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-color);
}

.hero .content { position: relative; z-index: 1; }

.hero h1 {
  font-size: 2rem;
  margin: 0 0 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.cta-btn {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  text-align: center;
  transition: opacity 0.3s;
}

.cta-btn:hover { opacity: 0.85; }

/* ------------ Sections ------------ */
section { padding: 4rem 0; background: var(--white); }

/* Apply different background to even sections, excluding the .cta-banner */
section:nth-of-type(even):not(.cta-banner) {
  background: var(--background-section-even);
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1.6rem;
  font-weight: 700;
  text-align: center;
}

h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.feature-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 6px var(--shadow-color-medium);
  padding: 1.5rem;
  text-align: center;
}

.feature-card span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: block;
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Flow */
.flow { display: flex; flex-direction: column; gap: 1.5rem; }

.flow-step { display: flex; gap: 1rem; align-items: flex-start; }

.flow-step .num {
  flex-shrink: 0;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Case Study - Blockquote Styling */
#case figure {
  margin: 2rem auto;
  padding: 1rem;
  background-color: var(--background-section-even);
  border-left: 5px solid var(--primary-color);
}

#case blockquote { margin: 0; padding: 0; font-style: italic; }

#case blockquote p { margin-bottom: 0.5rem; }

#case figcaption {
  text-align: right;
  font-size: 0.9rem;
  color: var(--text-color-dark);
  opacity: 0.8;
}

/* Pricing & Work List Tables */
.pricing-table, .work-list {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.pricing-table th, .pricing-table td,
.work-list th, .work-list td {
  border: 1px solid var(--border-color-light);
  padding: 0.8rem;
  text-align: left;
}

.pricing-table th,
.work-list thead th {
  background: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  text-align: center;
}

.work-list th[scope="row"] {
  background-color: var(--background-section-even);
  font-weight: 700;
  text-align: left;
}

.work-list td, .pricing-table td { text-align: center; }

.work-list tbody th[scope="row"],
.work-list tbody td:first-child { text-align: left; }

.work-list tfoot th, .work-list tfoot td {
  font-weight: 700;
  background-color: var(--background-section-even);
}

.work-list tfoot tr:last-child th,
.work-list tfoot tr:last-child td {
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 1.1rem;
}

.scope h3 small {
  font-size: 0.8em;
  font-weight: normal;
  color: var(--text-color-dark);
}

/* FAQ */
.faq-item { margin-bottom: 1.5rem; }
.faq-item dt { font-weight: 700; margin-bottom: 0.3rem; }
.faq-item dd { margin-left: 0; }

/* ------------ CTA Banner ------------ */
.cta-banner {
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 2.5rem 1rem;
}

.cta-banner h2 {
  font-size: 1.8rem;
  margin-bottom: .6rem;
  color: var(--white);
}

.cta-banner .contact-info,
.cta-banner .contact-info a {
  color: var(--cta-banner-contact-text-color);
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-banner .contact-info a { text-decoration: underline; }

/* Footer */
footer {
  background: var(--background-footer);
  color: var(--text-color-light);
  padding: 1.5rem 0;
  text-align: center;
}
/* ======== Global Nav v2  ======== */
.g-nav{
  position: fixed;               /* 画面を覆うドロワー */
  top: 0; left: 0; width: 100%; height: 100vh;
  background: rgba(0,0,0,.85);   /* 半透明の黒 */
  display: flex; align-items: center; justify-content: center;
  transform: translateX(-100%);  /* 初期は画面外 */
  transition: transform .3s ease;
  z-index: 9999;
}
.g-nav__list{
  list-style: none; margin: 0; padding: 0;
  text-align: center;
}
.g-nav__list li{ margin: .8rem 0; }
.g-nav__list a{
  color:#fff; font-weight:700; font-size:1.2rem;
}
.g-nav__toggle{
  position: fixed; top: 12px; left: 12px;
  width: 40px; height: 40px;
  background: transparent; border: none; padding: 0;
  z-index: 10000;               /* ボタンが常に最前面 */
}
.g-nav__bar, .g-nav__bar::before, .g-nav__bar::after{
  content:''; display:block; width:24px; height:3px; background:#0066cc;
  position:absolute; left:8px; transition:all .3s ease;
}
.g-nav__bar{ top:19px; }
.g-nav__bar::before{ top:-8px; }
.g-nav__bar::after{ top:8px; }

/*  ===== 開いた状態 =====  */
body.g-nav-open{ overflow:hidden; }          /* 背景スクロール固定 */
body.g-nav-open .g-nav{ transform:translateX(0); }
body.g-nav-open #g-nav-toggle .g-nav__bar{
  background:transparent;
}
body.g-nav-open #g-nav-toggle .g-nav__bar::before{
  transform:rotate(45deg) translate(5px,5px);
}
body.g-nav-open #g-nav-toggle .g-nav__bar::after{
  transform:rotate(-45deg) translate(5px,-5px);
}

/*  ===== PC ブレークポイント以上では従来の横並び =====  */
@media(min-width:768px){
  .g-nav{ 
    position: fixed; top:0; left:0; height:66px; transform:none;
    background:#fff; box-shadow:0 2px 4px rgba(0,0,0,.06);
  }
  .g-nav__list{ display:flex; gap:.4rem; }
  .g-nav__list li{ margin:0; }
  .g-nav__list a{
    display:block; padding:1rem 1.1rem; color:#333; font-size:.95rem;
  }
  .g-nav__toggle{ display:none; }            /* ハンバーガー非表示 */
}

/* ---- 既存 body 余白調整 ---- */
body{ padding-top:66px; }  /* PC 用 (既存値維持) */


/* ------------ Responsive ------------ */
@media (min-width: 768px) {
  .hero h1  { font-size: 2.6rem; }
  h2        { font-size: 2rem;   }
  .scope h3 { font-size: 1.5rem; }
}
