@charset "utf-8";
/*
Theme Name: PUBLICA original
Theme URL: テーマのサイトのURI
Description: PUBLICAオリジナルのテーマです。お客様によるテーマ改修による不具合は有償での対応となりますので、あらかじめご了承ください。また、機能追加などのご要望は、PUBLICA (090-8857-7524) までご連絡ください。
Author: T.Aratani
Version: 1.0.0
*/

/* ==========================================================================
   1. デザイン定数（:root）の定義
   ========================================================================== */
:root {
  /* Color Palette */
  --color-base: #ffffff;
  --color-base-sub: #fcfaf5;
  --color-main: #007947; /* 信頼の深い緑 */
  --color-accent: #e54919; /* 警告・行動の朱赤 */
  --color-text: #333333;

  /* Layout System */
  --inner-width: 1100px;
  --sp-side-padding: 20px;
  --section-space-sp: 60px;
  --section-space-pc: 100px;
}

/* ==========================================================================
   2. 基本タイポグラフィ（Noto Sans / Serif）
   ========================================================================== */
body {
  font-family: "Noto Sans JP", sans-serif; /*[cite: 9] の指定を更新 */
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-base);
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
.serif-text {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-main); /* 見出しにメインカラーを適用 */
}

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

a:hover {
  opacity: 0.7;
}

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

/* ==========================================================================
   3. レイアウト構造
   ========================================================================== */
/* コンテンツ幅制限コンテナ */
.container {
  width: 100%;
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 0 var(--sp-side-padding);
  box-sizing: border-box;
}

/* セクション基本余白 */
section {
  padding: var(--section-space-sp) 0;
}

/* 背景サブカラー用クラス */
.bg-sub {
  background-color: var(--color-base-sub);
}

/* デスクトップ用調整（1025px以上） */
@media (min-width: 1025px) {
  section {
    padding: var(--section-space-pc) 0;
  }
}

/* ==========================================================================
   4. ヘルパークラス（アクセント等）
   ========================================================================== */
.btn-accent {
  background-color: var(--color-accent);
  color: #fff;
  padding: 15px 30px;
  display: inline-block;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
}

/* ==========================================================================
   Header Styles (統合版：スクロール検知対応)
   ========================================================================== */
.site-header {
  width: 100%;
  height: 60px; /* SPサイズ初期値 */
  background-color: rgba(255, 255, 255, 0.85); /* 白の85%透明度 */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;

  /* スクロール時のアニメーション設定 */
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.3s;
  will-change: transform;
}

/* JSで付与する制御クラス：下スクロールで隠す */
.site-header.is-hide {
  transform: translateY(-100%);
}

/* JSで付与する制御クラス：上スクロールで表示（影を少し強めて視認性アップ） */
.site-header.is-show {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-container {
  width: 100%;
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 0 var(--sp-side-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo img {
  height: 40px;
  width: auto;
  display: block;
}

@media (max-width: 520px) {
  .header-logo img {
    height: 30px;
    width: auto;
    display: block;
  }
}

@media (max-width: 430px) {
  .header-logo img {
    height: 25px;
    width: auto;
    display: block;
  }
}

/* --- Navigation (PC) --- */
.header-nav-pc {
  display: none;
}

.header-nav-pc ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.header-nav-pc a {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-main);
  text-decoration: none;
  transition: color 0.3s;
}

.header-nav-pc a:hover {
  color: #117744; /* PONPONグリーンをアクセントに */
}

/* --- Hamburger UI (SP) --- */
.hamburger {
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-main);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger span:nth-child(1) {
  top: 0;
}
.hamburger span:nth-child(2) {
  top: 10px;
}
.hamburger span:nth-child(3) {
  bottom: 0;
}

/* active時：×マークに変形 */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background-color: #fff;
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
  background-color: #fff;
}

/* ドロワーメニュー */
.header-nav-sp {
  display: none;
}

.header-nav-sp.active {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.header-nav-sp ul {
  list-style: none;
  text-align: center;
}

.header-nav-sp ul li {
  margin-bottom: 40px;
}

.header-nav-sp ul li a {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.1em;
}

/* 閉じるボタン */
.nav-sp-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* PC：ハンバーガー非表示 */
@media (min-width: 1025px) {
  .hamburger {
    display: none !important;
  }
  .header-nav-sp {
    display: none !important;
  }
}

/* PC用メニュー */
.header-nav-pc {
  display: none; /* SP時は非表示 */
}

@media (min-width: 1025px) {
  .header-nav-pc {
    display: block; /* PC時は表示 */
  }
}

/* ==========================================================================
   Footer Styles (Dark Gray Edition)
   ========================================================================== */
.site-footer {
  background-color: #1a1a1a; /* 濃い灰色 */
  color: #ffffff;
  padding: 80px 0 80px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 40px;
}

@media (max-width: 520px) {
  .footer-logo img {
    height: 30px;
    width: auto;
    display: block;
  }
}

@media (max-width: 430px) {
  .footer-logo img {
    height: 25px;
    width: auto;
    display: block;
  }
}

/* 住所エリア全体 */
.footer-address {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 各拠点のラップ */
.address-item {
  margin: 0;
  padding: 0;
}

/* 拠点名：記号とテキストを中央で揃える */
.office-name {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 4px;
  font-size: 1rem;
  line-height: 1.4;

  display: flex; /* 記号と文字を並べる */
  align-items: center; /* 垂直方向の真ん中に揃える */
}

/* 記号の調整 */
.office-name::before {
  content: "▶";
  font-size: 0.5em; /* 0.5emに縮小 */
  margin-right: 0.8em; /* 文字との間隔を調整 */
  color: #ffffff;
  flex-shrink: 0; /* 記号が潰れないように固定 */

  /* 微調整：フォントによって中心がズレて見える場合の補正 */
  position: relative;
  top: 1px;
}

/* 住所詳細：記号が小さくなった分、字下げ幅も微調整 */
.address-details {
  padding-left: 1.1em;
}

.zip,
.address {
  font-size: 0.9rem;
  color: #cccccc; /* 住所はトーンを落としたグレー */
  margin: 0;
  line-height: 1.6;
}

/* 電話番号セクション */
.footer-contact {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact .tel {
  font-size: 1.1rem;
  font-weight: 900;
  color: #ffffff;
}

.footer-contact .tel a {
  color: #ffffff;
  text-decoration: none;
}

/* フッターナビゲーション */
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  list-style: none;
  padding: 0;
}

.footer-nav a {
  font-size: 0.9rem;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding-bottom: 3px;
  transition: all 0.3s ease;
}

.footer-nav a:hover {
  color: #117744;
  border-color: #117744;
}

/* PCサイズ調整（1025px以上） */
@media (min-width: 1025px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-nav ul {
    flex-direction: row;
    gap: 30px;
  }

  .footer-nav a {
    border-bottom: none;
  }
}

.copyright {
  margin-top: 0px;
  text-align: center;
  /* ボーダーを削除 */
  border-top: none;
  padding-top: 0px;
  font-size: 0.75rem;
  /* 文字色を#333に、背景を透明に設定 */
  color: #fff;
  background-color: #262626;
  /* 必要に応じて透過度をリセット */
  opacity: 1;
}

/* PCサイズ調整（1025px以上） */
@media (min-width: 1025px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-nav ul {
    flex-direction: row;
    gap: 30px;
  }

  .footer-nav a {
    border-bottom: none;
  }

  .footer-nav a:hover {
    text-decoration: underline; /* PCではアンダーラインで反応を出す */
  }
}

/* ==========================================================================
   SP フローティングメニュー
   ========================================================================== */
.sp-float-menu {
  display: none;
}

@media (max-width: 1024px) {
  .sp-float-menu {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  }

  .sp-float-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.05em;
    gap: 4px;
  }

  .sp-float-tel {
    background-color: #117744;
    color: #fff;
  }

  .sp-float-contact {
    background-color: #333;
    color: #fff;
  }

  .sp-float-icon {
    font-size: 1.3rem;
  }

  .sp-float-label {
    font-size: 0.75rem;
  }

  body {
    padding-bottom: 70px;
  }
}

/* ==========================================================================
   ページトップボタン
   ========================================================================== */
.page-top {
  position: fixed;
  bottom: 90px; /* SPフローティングメニューの上 */
  right: 20px;
  width: 48px;
  height: 48px;
  background-color: #117744;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 9000;
}

/* 表示状態 */
.page-top.is-show {
  opacity: 1;
  visibility: visible;
}

/* PC時はSPフローティングメニューがないので位置調整 */
@media (min-width: 1025px) {
  .page-top {
    bottom: 30px;
  }
}
