/*
Theme Name: My Original Theme
Author: segawa
Description: HTMLサイトをWordPress化したテーマ
Version: 1.0
*/

/* 固定ページ本文の余白調整 */
/*
.page-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;

    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);

}
    */

/* 特定商取引法ページ用スタイル */
.page-content {
  max-width: 800px;       /* 読みやすい幅 */
  margin: 40px auto;      /* 上下左右の余白 */
margin: 80px auto; 
  
  padding: 20px;          /* 内側余白 */
  line-height: 1.8;       /* 行間を少し広く */
  font-size: 16px;        /* 文字サイズ */
  color: #333;
  background-color: #fff; /* 背景色（必要に応じて） */

    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);


}

/* 見出しの余白調整 */
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
  /*margin-top: 1em;*/
  margin-top: 20px;
  margin-bottom: 1em;
  font-weight: bold;
  color: var(--primary-color);
}

.page-title {
  text-align: center;
    margin-top: 0;
}

@media (min-width: 1024px) {
    .page-title {
        font-size: 2.5rem;
    }

}

.page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* 段落の余白 */
.page-content p {
  margin-bottom: 1em;
}

/* リストの整形 */
.page-content ul,
.page-content ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.page-content li {
  margin-bottom: 0.5em;
}

/* 強調・注意書き */
.page-content strong {
  /*color: rgb(0, 0, 0); */
  color: var(--primary-color);
}

/* 表の整形 */
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;

}

.page-content table th,
.page-content table td {
  border: 1px solid #ddd;
  padding: 0.5em;
  text-align: left;
}

/* 引用や注意書き */
.page-content blockquote {
  margin: 1.5em 0;
  padding-left: 1em;
  border-left: 4px solid #ccc;
  color: #555;
  font-style: italic;
}

.page-content .separator {
  padding-bottom: 40px;
}

/*会社概要の署名*/
.signature {
  text-align: right;
}




.content-box {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 40px;
  background-color: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);


  max-width: 800px;       /* 読みやすい幅 */
  margin: 40px auto;      /* 上下左右の余白 */
  padding: 20px;          /* 内側余白 */
  line-height: 1.8;       /* 行間を少し広く */
  font-size: 16px;        /* 文字サイズ */
  color: #333;
  background-color: #fff; /* 背景色（必要に応じて） */

}

.content-box .box-title {
  font-size: 1.5rem;
  margin-bottom: 1em;
  text-align: center;
  color: var(--primary-color);
  position: relative;
}

.content-box .box-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 10px auto 0;
}

.company-info {
  display: grid;
  grid-template-columns: 150px 1fr;
  row-gap: 0.8em;
  column-gap: 1em;
}

.company-info dt {
  font-weight: bold;
  color: #444;
}

.company-info dd {
  margin: 0;
  line-height: 1.6;
}

.sign {
  margin-top: 2em;
  text-align: right;
  font-weight: bold;
}



/******ハンバーガーメニュー*********/

/* 基本のヘッダーレイアウト */
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* PC表示ではナビゲーションを表示 */
.global-nav {
  display: block;
}

.global-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.global-nav li {
  margin-right: 20px;
}

.global-nav a {
  text-decoration: none;
  /*color: #333;*/
}

/* ハンバーガーボタンはPC表示では非表示 */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* スマホ表示（768px以下） */
@media screen and (max-width: 768px) {
  





  /* ハンバーガーボタンを表示 */
  .nav-toggle {
    display: block !important;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 1001;
  }

  /* ハンバーガーボタンの3本線 */
  .nav-toggle span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
  }

  .nav-toggle span:nth-of-type(1) {
    top: 0;
  }

  .nav-toggle span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-toggle span:nth-of-type(3) {
    bottom: 0;
  }

  /* 通常のナビゲーションを非表示 */
  .global-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7); /* 半透明の背景 */
    z-index: 1000;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-50px); /* ← 上から少し下がってくる */
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  /* メニューが開いた状態 */
  .global-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* ← 位置を戻す */
  }
  
  /* メニューリストのスタイル */
  .global-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    flex-direction: column;
  }
  
  .global-nav li {
    margin: 20px 0;
  }
  
  .global-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.3s;
  }
  
  .global-nav a:hover {
    color: #ccc;
  }

  /* メニューが開いた時のボタン（×マーク） */
  .nav-toggle.is-active span {
    background-color: white;
  }
  
  .nav-toggle.is-active span:nth-of-type(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-of-type(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-of-type(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
  }
}

