
/* ---------------------------------------
   テーマ情報（WordPress用）
---------------------------------------- */
/*
Theme Name: isshin-ippo
Author: 株式会社 一針一歩
Description: このテーマは、株式会社一針一歩の法務・証明のための静的Webサイトを構築するために設計されています。お問い合わせ導線と最低限の情報のみを掲載し、哲学や思想は別ページに静かに残す構成です。
Version: 1.0
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: minimal, static, legal, contact-focused, quiet-design
Text Domain: onecoresystem
*/




/* ============================= */
/* リンクのリセットスタイル     */
/* ============================= */
a,
a:visited,
a:hover,
a:focus,
a:active {
  text-decoration: none;
  cursor: pointer;
  outline: none;
}

a:focus-visible {
  outline: 2px solid #ffffff; /* アクセシビリティ対応 */
}

/* ============================= */
/* 基本のリセット               */
/* ============================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  /* margin: 0;
  padding: 0; */
}
/* ============================= */
/* テキスト要素                 */
/* ============================= */
/* h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
  margin: 0;
} */

/* ============================= */
/* HTML5要素の初期化             */
/* ============================= */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;

  color: #ffffff;
  word-break: break-word;
}



/* ============================= */
/* メディア要素                 */
/* ============================= */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}



/* ============================= */
/* フォーム要素                 */
/* ============================= */
input,
button,
textarea,
select {
  font-size: var(--font-size-base);
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ============================= */
/* ボタン                       */
/* ============================= */
button {
  cursor: pointer;
  background: none;
  border: none;
}

/* ============================= */
/* 表                           */
/* ============================= */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ============================= */
/* iframeなど                   */
/* ============================= */
iframe {
  border: 0;
}

:root {
  /* 色 */
  --color-main: #333; /* 基本文字色 */
  --color-accent: #666; /* アクセント：中間グレー */
  --color-accent-light: #aaa; /* アクセント明るめ */
  --color-accent-dark: #111; /* アクセント濃いめ */
  --color-bg-hero: #1a1a1a; /* ヒーロー背景：黒 */
  --color-bg-btn-primary: #444; /* ボタン背景 */
  --color-bg-btn-primary-hover: #111; /* ボタンhover */
  --color-text-light: #fff; /* 明るい文字 */

  /* フォントサイズ */
  --font-size-base: 1rem;
  --font-size-xs: 0.8rem;
  --font-size-lg: 1.5rem;
  --font-size-xl: 2rem;
  --font-size-h2-small: 1.3rem;
  --font-size-p-small: 0.9rem;
  --font-size-card-title: 1.1rem;

  /* ラインハイト */
  --line-height-base: 1.6;
  --line-height-lg: 1.8;
  --line-height-xl: 2;

  /* 間隔 */
  --spacing-small: 0.8rem;
  --spacing-medium: 1.5rem;
  --spacing-large: 3rem;

  /* ボタン */
  --pd-btn: 0.8rem 1.6rem;
  --br-btn: 6px;

  --cta-button-padding: 0.8rem 1.6rem;
  --cta-button-border-radius: 6px;
  --cta-button-bg-color: var(--color-accent);
  --cta-button-hover-bg-color: var(--color-accent-dark);
  --cta-button-hover-transform: scale(1.05);
  --cta-button-hover-box-shadow: 0 4px 12px rgba(0,0,0,0.2);

  /* ===== カード色 ===== */
  --color-bg-card: #fff; /* 白 */
  --color-bg-card-hover: #f5f5f5; /* 薄グレー */

  --color-shadow: rgba(0,0,0,0.08);
  --color-shadow-hover: rgba(0,0,0,0.12);

  /* ===== ボーダー半径 ===== */
  --br-card: 16px;
  --br-btn: 8px;
  --br-btn-pill: 50px;
  --br-img-round: 50%;

  /* ===== シャドウ ===== */
  --shadow-card: 0 6px 25px var(--color-shadow);
  --shadow-card-hover: 0 12px 30px var(--color-shadow-hover);
}



/* ============================= */
/* ベーススタイル設定           */
/* ============================= */
body {
  font-family: var(--font-family-base);
  color: var(--color-text);

  line-height: var(--line-height-base);
  margin: 0;
  padding: 0;
}





/* ===================================== */
/* ヘッダー                              */
/* ===================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  padding: 0 40px;
  background-color: var(--color-accent);
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  z-index: 10000;
}

.site-header__inner {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-sm);
}

.site-header__left-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.site-header__logo img {
  height: 36px;
  user-select: none;
  vertical-align: middle;
  display: inline-block;
}

.site-header__company-name {
  display: inline-block;
  height: 58px;
  line-height: 58px;
  font-weight: 500;
  font-size: var(--font-size-base);
 color: white;
  user-select: none;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  transition: color 0.25s ease;
}

.site-header__company-name:hover,
.site-header__company-name:focus {
  color: var(--color-accent-light);
  outline: none;
}

/* ==============================
   ハンバーガーメニュー
============================== */
.site-header__hamburger {
  display: none;
  position: relative;        /* span を絶対位置に */
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;              /* ボタン周りの余白 */
  border-radius: 6px;        /* 優しい丸角 */
  z-index: 1100;
}

.site-header__hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color:  #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* span の初期位置 */
.site-header__hamburger span:nth-child(1) { top: 0; }
.site-header__hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.site-header__hamburger span:nth-child(3) { bottom: 0; }

/* ハンバーガー：開いた状態 */
.site-header__hamburger.active {
  background-color: rgba(0, 0, 0, 0.2); /* 薄めの背景で浮かせる */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ×マークの回転と色 */
.site-header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 50%;
  background-color: #ffffff;
}
.site-header__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.site-header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 50%;
  background-color: #ffffff;
}

/* ==============================
   ナビゲーション（モバイル用）
============================== */
.site-nav {
  display: none;
  position: fixed;
  top: 58px;
  right: 16px;
  background-color: var(--color-bg-btn-primary);
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  padding: 16px 24px;
  width: 210px;
  user-select: none;
  z-index: 1050;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.site-nav.active {
  display: flex;
    background-color: var(--color-accent);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  font-weight: 400;
  font-size: var(--font-size-base);
  color: white;
  line-height: normal;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 6px 12px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus {
  text-decoration: underline;
  outline: none;
  color: var(--color-accent-light);
  background-color: rgba(255, 255, 255, 0.1);
}

/* ==============================
   レスポンシブ：モバイル（〜768px）
============================== */
@media (max-width: 768px) {
  .site-header__hamburger {
    display: flex;
  }

  .site-nav {
    top: 56px;
    right: 12px;
    width: 200px;
    padding: 16px 24px;
  }
}

/* ==============================
   レスポンシブ：PC（769px〜）
============================== */
@media (min-width: 769px) {
  .site-nav {
    display: flex;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
    width: auto;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 2rem;
  }

  .site-nav a {
    font-weight: 500;
    font-size: var(--font-size-base);
    color: white;
    padding: 0;
    border-radius: 0;
  }

  .site-nav a:hover,
  .site-nav a:focus {
    color: var(--color-accent-light);
    background: none;
  }
}




/* ===================================== */
/* フッター全体スタイル                  */
/* ===================================== */
.footer {
  color: var(--color-text-light);
  padding: 40px 20px;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  border-top: 1px solid var(--color-line);
   background-color: var(--color-accent);
}

/* コンテナ（2カラム） */
.footer__container {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-lg);
  padding: 0 20px;
  flex-wrap: wrap;
}

/* 左右カラム共通 */
.footer__left,
.footer__right {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-sm);
  padding: 0 30px 0 10px;
}

/* フッター上部ナビ */
.footer__nav-top {
  max-width: 1024px;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.footer__nav-top ul {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center;
}

.footer__nav-top ul li {
  margin-right: 1rem;
}

.footer__nav-top ul li:last-child {
  margin-right: 0;
}

.footer__nav-top ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: color 0.25s ease;
}

.footer__nav-top ul li a:hover {
  color: var(--color-accent-light);
}

/* キャッチコピー・コピーライト */
.footer__catchcopy {
  font-weight: 600;
  font-size: var(--font-size-base);
   color: white;
}

.footer__copyright {
  font-size: 0.75rem;
  color: var(  --color-bg);
  margin: 0;
}

/* ===================================== */
/* SNSリンク                             */
/* ===================================== */
.footer__sns {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.footer__sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 20px;
  border-radius: 50%;
  color: #000;
  text-decoration: none;

  font-size: 1.1rem;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.footer__sns a svg {
  width: 24px;
  height: 24px;
  fill: white;
  transition: all 0.3s ease;
}

/* SNS個別色 */
.footer__sns a.sns-twitter         { background-color: #080909; }
.footer__sns a.sns-facebook  { background-color: #1877f2; }
.footer__sns a.sns-line      { background-color: #00c300; }
.footer__sns a.sns-instagram { background-color: #e1306c; }
.footer__sns a.sns-youtube   { background-color: #ff0000; }
.footer__sns a.sns-github    { background-color: #333; }
.footer__sns a.sns-note      { background-color: #4f4f4f; }

/* ===================================== */
/* スクロールボタン                      */
/* ===================================== */
.scroll-buttons-wrapper {
  position: fixed;
  right: 1rem;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.scroll-buttons-wrapper button {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 0.3rem 0.7rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.scroll-buttons-wrapper button:hover {
  background-color: #555;
  transform: scale(1.05);
}

/* ===================================== */
/* レスポンシブ対応                      */
/* ===================================== */
@media screen and (max-width: 1024px) {
  .footer__container {
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
    padding: 0 20px 40px;
  }

  .footer__left,
  .footer__right {
    width: 100%;
    max-width: 400px;
    padding: 0;
    text-align: center;
    align-items: center;
  }

  .footer__nav-top ul li {
    margin-right: var(--spacing-sm);
  }

  .footer__sns {
    gap: 0.875rem;
  }
}

@media screen and (max-width: 768px) {
  .footer__container {
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: 0 10px;
  }

  .footer__left,
  .footer__right {
    min-width: auto;
    width: 100%;
  }

  .footer__nav-top ul {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .footer__nav-top ul li {
    margin-right: 0;
    margin-bottom: 0.75rem;
  }

  .footer__nav-top ul li:last-child {
    margin-bottom: 0;
  }

  .footer__nav-top {
    margin-bottom: 1.5rem;
  }

  .scroll-buttons-wrapper {
    
    right: 1rem;
  }

  .scroll-buttons-wrapper button {
    font-size: 0.6rem;
  }
}

/* フッター上部ナビ */
.footer__nav-top ul {
  display: flex;
  flex-wrap: wrap;          /* 折り返し可能 */
  justify-content: center;  /* 中央揃え */
  gap: 1rem;                /* アイテム間隔 */
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer__nav-top ul li {
  margin: 0; /* 個別マージンを削除 */
}

.footer__nav-top ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: color 0.25s ease;
}

.footer__nav-top ul li a:hover {
  color: var(--color-accent-light);
}

/* レスポンシブ調整（タブレット～スマホ） */
@media screen and (max-width: 1024px) {
  .footer__nav-top ul {
    justify-content: space-around; /* 横幅が狭くなっても詰まらない */
    gap: 1rem;                     /* 安全な間隔 */
  }
}

@media screen and (max-width: 768px) {
  .footer__nav-top ul {
    flex-direction: column;   /* 縦並び */
    align-items: center;      /* 中央揃え */
    gap: 0.75rem;             /* アイテム間の間隔 */
  }
}
