/*
Theme Name: usui_template
Author: S
Version: 1.0
Description: ページスラッグごとにCSS自動読み込み対応。
*/
body {
    font-family: 'Zen Kaku Gothic New', sans-serif !important;
}

:root {
  --accent: #009688;
  --text: #000;
  --bg: #fff;
}
:root {
  --text-base: clamp(14px, 0.5rem + 0.703vw, 21px);
}
/* ===== ベース ===== */
body {
  font-family: 'Zen Kaku Gothic New', 'Inter', 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-weight: 400;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html, body {
  margin: 0;
  padding: 0;
}

h1, h2, h3 { 
  font-weight: 500;
}
h3 { 
  font-size: clamp(1.25rem, 1.12rem + 0.552vw, 1.5625rem);
  font-weight: 400;
}
.content-block { 
margin: 12% 0% 0% 0%;
line-height: 1.5;}
.about-block{ 
margin: 2% 0 0% 0;
}
body.nav-open {
  overflow: hidden;
  touch-action: none;
}
p {
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.8;
  font-size: clamp(0.875rem, 0.5rem + 0.703vw, 1.3125rem);
}
p .block {
  display: block;
}
.Introduction {
font-weight: 300;}
.anchor {
  position: relative;
  top: -20px;
  height: 0;
}

.pc-only {
  display: inline;
}
.sp-only {
  display: none; 
}
.tb-only {
  display: none; 
}
.symbol-only {
    display: none; 
}
@media (max-width: 1100px) {
.symbol-only {
  display: inline;
}
}
@media (max-width: 825px) {
  .pc-only {
    display: none; 
  }
.tb-only {
  display: inline;  
}
  .sp-only {
    display: inline; 
  }
  .symbol-only {
    display: none; 
}
}
@media (max-width: 576px) {
.tb-only {
  display: none; 
}
  .sp-only {
    display: inline; 
  }
  
}

/* アンカースクロール時ヘッダー考慮 */
div[id] {
  scroll-margin-top: 100px;
}

/* ===============================
   Layout（flex / grid）
   =============================== */

.c-card-group {
  display: flex;
    flex-direction: column;
}

.flex-container{
    display: flex;
    gap: 1.2rem;
    width: 100%;
}

.top{
padding-bottom: 2%;}
/* header */
.site-header {
background: #fff;
    color: #000;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #000;
   height: 88px; 
   display: grid;
}
.site-header .container {
max-width: none;
    margin: 0;
    display: flex;
    justify-content: space-between;
    padding: 0.2rem 1rem;
    align-items: center; 
}
.site-title {
 height: 100%;
  display: flex;
  align-items: center;
}
.site-title img{
  height: 60px; 
  width: auto;
  margin: 0;
  display: block;
}
.site-title-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 769px) {
  .site-header .container {
    align-items: flex-end;
  }
}
@media (max-width: 769px) {
.site-header {
    height: 70px;
}}
/* nav */
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4%;
}
.site-nav a {
  color: #000;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(1rem, 0.5rem + 2vw, 1.375rem);
}
.site-nav {
  margin: 0 2%;
}

/* hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #000;
  display: block;
}
.menu-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  line-height: 1;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  z-index: 100000;
  transition: opacity 0.3s ease;
}

/* メニュー表示中だけ有効 */
body.nav-open .menu-close {
  opacity: 1;
  pointer-events: auto;
}

/* ハンバーガーはメニュー中は触れなくする */
body.nav-open .menu-toggle {
  pointer-events: none;
}

/* ===== パンくず（simple_breadcrumb用） ===== */
#breadcrumbs {
  font-size: 0.875rem;
  color: #888;
  margin: 1rem 0 2rem;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

#breadcrumbs a {
  color: #555;
  text-decoration: none;
}

#breadcrumbs a:hover {
  text-decoration: underline;
  color: #333;
}

/* 区切り（ / ） */
#breadcrumbs a + a:before,
#breadcrumbs a + span:before,
#breadcrumbs span + a:before,
#breadcrumbs span + span:before {
  content: "/";
  margin: 0 0.5em;
  color: #bbb;
font-size: 0.75rem;
}

@media(max-width: 768px) {



.site-nav a {
  color: #fff;
}
}

@media (max-width: 600px) {
  #breadcrumbs {
    font-size: 0.75rem;
  }
}

/* main */
main {
  max-width: 1200px;
  margin: 0 auto;
  --side-padding: clamp(1rem, -0.75rem + 8.75vw, 6.25rem);
  padding: 0 var(--side-padding);
}

section {
    margin-bottom: clamp(4rem, 2rem + 3.5vw, 7rem);
margin-top: clamp(1.25rem, 0.75rem + 1.56vw, 2.5rem);
}

h2 {
  font-size: clamp(1rem, 1rem + 1.56vw, 2.2rem);
  margin: 2rem 0rem 0.5rem 0rem;
  text-align: center;
}

img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===============================
   Utility（共通制御）
   =============================== */

/* fade-in */
.fadein {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity .6s ease, transform .6s ease;
}
.fadein.visible {
  opacity: 1;
  transform: translateY(0);
}

/* footer */
footer {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  padding: 1rem;
}
.site-footer {
  background: #f3f3f3;
  color: #333;
  padding: 3rem 1rem 2rem;
  font-size: clamp(0.75rem, 0.65rem + 0.31vw, 0.9rem);
}

/* 内部コンテナ */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ロゴ */
.footer-logo img {
  width: clamp(120px, 4.5rem + 8.44vw, 180px);
  height: auto;
  display: block;
}

/* 会社情報 */
.footer-info {
  line-height: 1.8;
  text-align: justify;
}

.footer-info p {
  margin: 0.2rem 0;
  font-size: clamp(0.75rem, 0.646rem + 0.442vw, 1rem);
}

.footer-info .company-name {
  font-weight: 600;
  font-size: clamp(1.1rem, 0.75rem + 0.63vw, 1.3rem);
}
@media (max-width: 768px) {
/* フッター共通 */
  .footer-inner {
    flex-direction: column;
  }
  .footer-logo img {
    margin-bottom: 1.2rem;
  }
  .footer-info {
    flex: none;
  display: flex;
        flex-direction: column;
        align-items: flex-start; }

.footer-info .company-name {
    justify-content: center;
}
.footer-inner {

gap: 0rem;
}}


/* コピーライト */
.footer-copy {
  max-width: 1200px;
  margin: 0px;
  text-align: start;
  font-size: 0.85rem;
  color: #666;
}

/* トップへ戻る */
.to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.to-top {
  position: fixed;
  right: 2rem;
  bottom: 2.5rem;
  width: 48px;
  height: 48px;
  border: 2px solid #333;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.3s ease;
  z-index: 5;
}

.to-top .arrow-up {
  width: 22px;
  height: 22px;
  transform: translateY(2px);
  transition: transform 0.3s ease;
}

/* hover できる端末だけ */
@media (hover: hover) and (pointer: fine) {
  .to-top:hover {
    transform: translateY(-4px);
  }

  .to-top:hover .arrow-up {
    transform: translateY(-2px);
  }
}
@media (max-width: 768px) {

.site-nav {
        position: fixed; 
        top: 0px;
        left: 0;
        right: 0;
        background: #eb6300;
        text-align: center;
        padding: 1rem 0;
        display: none;
        flex-direction: column;
        height: 100svh;
        z-index: 10;
  }
  .site-nav.active { 
    display: flex; 
    margin: 0px;
  justify-content: center; }
  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .contact-form {
padding: 2rem 0;
}
  .section-header {
        display: flex;
        margin: 0px;
        justify-content: center;
  }  }
/* ===============================
   帯タイトル 安全版（絶対消えない）
   =============================== */

.page-hero {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;

  display: flex;
  align-items: flex-end; /* テキストを画像の下側に寄せる */
}

.page-hero-img {
  width: 100%;
  display: block;
}

/* テキスト部分を画像の上に重ねる */
.page-hero-inner {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
padding: 0 clamp(1rem, 0.5rem + 1.56vw, 2rem);

  text-align: left;
  transform: translateY(-40%); /* 文字を画像上に持ち上げる */
}

.page-title {
  color: #fff;
  font-size: clamp(1.8rem, 1rem + 2.5vw, 3rem);
  margin: 0;
}


/* ===============================
   パンくず（simple_breadcrumb 用）
   =============================== */

#breadcrumbs-wrapper {
  max-width: 1200px;
  margin: 0 auto;
padding: 1rem clamp(1rem, 0.5rem + 1.88vw, 2rem);
  text-align: left; 
}

#breadcrumbs {
 font-size: 0.875rem; 
  color: #888;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

#breadcrumbs a {
  color: #555;
  text-decoration: none;
}

#breadcrumbs a:hover {
  text-decoration: underline;
  color: #333;
}

/* 区切り: / */
#breadcrumbs a + a:before,
#breadcrumbs a + span:before,
#breadcrumbs span + a:before,
#breadcrumbs span + span:before {
  content: "/";
  margin: 0 0.5em;
  color: #bbb;
font-size: 0.75rem;
}

@media (max-width: 600px) {
  #breadcrumbs {
font-size: 0.75rem;
  }
}

/* 線を引く*/
.line {
  height: 1px;
  background: #000;
  width: calc(100% + var(--side-padding));
  margin-right: calc(var(--side-padding) * -1);
}
