/*
ThemeName: originaltheme
Description: 初めて作るオリジナルテーマです。
Version: 1.0
*/
* {
  box-sizing: border-box;
}
/*
Paddingやborderも併せてboxのサイズとして定義する
*/

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: sans-serif;
  line-height: 1.8;
  color: #222;
  background: #fff;
}

a{
  color: inherit;
  text-decoration: none;
}

img{
  max-width: 100%;
}

.site-header {
  height: 65px;
  display: flex;
  align-items: center;
  background: #fff;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 20px;
  flex-shrink: 0;
}

.header-logo a {
  display: block;
  flex-shrink: 0;
}

.header-logo img {
  width: 76px;
  display: block;
}

.site-title {
  margin: 0;
  font-size: 11px;
  font-weight: normal;
  line-height: 1.2;
  color: #333;
  white-space: nowrap;
}

.header-nav-area {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  padding: 0 16px;
}

.global-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.main-menu,.sub-menu {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-menu {
  gap: 17px;
  line-height: 1;
}

.sub-menu {
  gap: 12px;
  line-height: 1;
  margin-top: 6px;
}

.main-menu a {
  font-size: 13px;
  font-weight: bold;
  line-height: 1;
}

.sub-menu a {
  font-size: 10px;
  font-weight: normal;
  line-height: 1;
  color: #333;
}

.sub-menu li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sub-menu li::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 5px solid #ccc;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

.main-menu a:hover,
.sub-menu a:hover {
  opacity: 0.7;
}

.header-button {
  width: 116px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  line-height: 1;
  white-space: nowrap;
}

.header-button:hover {
  opacity: 0.85;
}

.first-view {
  width: 100%;
  background: #333;
}

.first-view-inner {
  max-width: 1080px;
  height: 400px;
  margin: 0 auto;
  overflow: hidden;
}

.first-view-inner img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.site-footer {
  padding: 24px;
  background: #222;
  color: #fff;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer small {
  font-size: 12px;
}

.opening-section {
  padding: 40px 0;
  background: #fff;
  text-align: center;
}

.section-inner {
  max-width: 1080px;
  width: calc(100% - 40px);
  margin: 0 auto;
}

.section-label {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: bold;
  color: #777;
  letter-spacing: 0.12em;
}

.opening-section h2 {
  margin: 0 0 20px;
  font-size: 36px;
  line-height: 1.5;
}

.section-lead {
  max-width: 720px;
  margin: 0 auto 38px;
  font-size: 16px;
  line-height:2;
}

.opening-section ul {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align:left;
}

.opening-section li {
  flex: 1;
  padding: 32px;
  background: #f7f7f7;
  border-radius: 20px;
}

.opening-section li img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin: 0 0 20px;
  border-radius: 14px;
}

.opening-section li h3 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.5;
}

.opening-section li p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
}

.body-section {
  padding: 80px 0;
  background: #f7f7f7;
}

.body-section .section-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

.body-section .section-inner > img {
  width: 50%;
  height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.body-section .section-inner > div {
  flex: 1;
}

.body-section .section-label {
  margin: 0 0 14px;
}

.body-section h2 {
  margin: 0 0 24px;
  font-size: 36px;
  line-height: 1.5;
}

.body-section .section-inner > div >p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 2;
}

.body-section .section-inner > div > p:last-child {
  margin: 0;
}

.service-section {
  padding: 80px 0;
  background:#fff;
  text-align: center;
}

.service-section h2 {
  margin: 0 0 20px;
  font-size: 36px;
  line-height: 1.5;
}

.service-section .section-lead {
  max-width: 780px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 2;
}

.service-section dl {
  display: grid;
  grid-template-columns: 240px 1fr;
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
  border-top: 1px solid #dddddd;
  border-left: 1px solid #dddddd;
  border-radius: 20px;
  overflow: hidden;
}

.service-section dt,
.service-section dd {
  margin: 0;
  padding: 24px 28px;
  border-right: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;
}

.service-section dt {
  font-weight: bold;
  background: #eeeeee;
}

.service-section dd {
  background: #f7f7f7;
  line-height: 2;
}

.works-section {
  padding: 80px 0;
  background: #f7f7f7;
  text-align: center;
}

.works-section h2 {
  margin: 0 0 20px;
  font-size: 36px;
  line-height: 1.5;
}

.works-section .section-lead {
  max-width: 780px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 2;
}

.works-section ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.works-section li {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
}

.works-section li img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.works-section li h3 {
  margin: 24px 24px 12px;
  font-size: 20px;
  line-height: 1.5;
}

.works-section li p {
  margin: 0 24px 28px;
  font-size: 15px;
  line-height: 1.9;
}

.flow-section {
  padding: 80px 0;
  background: #ffffff;
  text-align: center;
}

.flow-section h2 {
  margin: 0 0 20px;
  font-size: 36px;
  line-height: 1.5;
}

.flow-section .section-lead {
  max-width: 780px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 2;
}

.flow-section ol {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow-number;
  text-align: left;
}

.flow-section li {
  position: relative;
  padding: 32px 24px 28px;
  background: #f7f7f7;
  border-radius: 20px;
  counter-increment: flow-number;
}

.flow-section li::before {
  content: counter(flow-number, decimal-leading-zero);
  display: block;
  margin: 0 0 20px;
  font-size: 32px;
  font-weight: bold;
  line-height: 1;
  color: #cccccc;
}

.flow-section li h3 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.5;
}

.flow-section li p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
}

.price-section {
  padding: 80px 0;
  background: #f7f7f7;
  text-align: center;
}

.price-section h2 {
  margin: 0 0 20px;
  font-size: 36px;
  line-height: 1.5;
}

.price-section .section-lead {
  max-width: 780px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 2;
}

.price-section ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.price-section li {
  padding: 36px 28px;
  background: #ffffff;
  border-radius: 20px;
}

.price-section li h3 {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}

.price-section .price {
  margin: 0 0 10px;
  text-align: center;
  line-height: 1.2;
}

.price-section .price strong {
  font-size: 30px;
  line-height: 1;
}

.price-section .price span {
  font-size: 14px;
  font-weight: bold;
}

.price-section li small {
  display: block;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
  color: #666666;
}

.price-section li p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.9;
}

.price-section li p:last-child {
  margin-bottom: 0;
}

.price-section .section-inner > p:last-child {
  margin: 0;
}

.price-section .section-inner > p:last-child small {
  font-size: 12px;
  line-height: 1.8;
  color: #666666;
}

.cta-section {
  padding: 80px 0;
  background: #222222;
  color: #ffffff;
  text-align: center;
}

.cta-section .section-label {
  color: #cccccc;
}

.cta-section h2 {
  margin: 0 0 20px;
  font-size: 36px;
  line-height: 1.5;
}

.cta-section .section-lead {
  max-width: 780px;
  margin: 0 auto 36px;
  font-size: 16px;
  line-height: 2;
}

.cta-section a {
  display: inline-block;
  min-width: 260px;
  padding: 18px 36px;
  color: #222222;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  background: #ffffff;
  border-radius: 999px;
}

.cta-section a:hover {
  opacity: 0.8;
}

.cta-section small {
  display: block;
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: #cccccc;
}

/* ===== 第12章：トップページ全体の仕上げ ===== */

.opening-section,
.body-section,
.service-section,
.works-section,
.flow-section,
.price-section,
.cta-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.opening-section h2,
.body-section h2,
.service-section h2,
.works-section h2,
.flow-section h2,
.price-section h2,
.cta-section h2 {
  margin: 0 0 20px;
  font-size: 36px;
  line-height: 1.5;
}

.opening-section li,
.works-section li,
.flow-section li,
.price-section li {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* ===== 第13章：レスポンシブ対応 ===== */

@media (max-width: 768px) {

  .section-inner {
    width: calc(100% - 32px);
    max-width: none;
    margin: 0 auto;
  }

  .opening-section,
  .service-section,
  .works-section,
  .flow-section,
  .price-section,
  .cta-section,
  .body-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .opening-section h2,
  .service-section h2,
  .works-section h2,
  .flow-section h2,
  .price-section h2,
  .cta-section h2,
  .body-section h2 {
    font-size: 28px;
    line-height: 1.5;
  }

  .section-lead {
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.9;
  }

  /* FV：スマホではスマホ用画像を比率のまま表示 */
  .first-view {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .first-view-inner {
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .first-view-inner picture {
    display: block;
    width: 100%;
  }

  .first-view-inner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;
    display: block;
  }

  /* Header */
  .site-header {
    height: auto;
    padding: 14px 0;
  }

  .site-header .section-inner {
    display: block;
  }

  .site-title {
    margin: 0 0 10px;
    text-align: center;
  }

  .site-title img {
    max-height: 36px;
  }

  .site-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 0;
    padding: 0;
  }

  .site-nav a {
    font-size: 11px;
  }

  /* Opening：スマホでは必ず1列 */
  .opening-section ul {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .opening-section li {
    width: 100%;
    margin: 0 0 20px;
    padding: 24px;
  }

  .opening-section li:last-child {
    margin-bottom: 0;
  }

  .opening-section li img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 0 0 20px;
  }

  .opening-section li h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.5;
  }

  .opening-section li p {
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
  }

  /* Body */
  .body-section .section-inner {
    display: block;
  }

  .body-section .section-inner > img {
    width: 100%;
    height: 260px;
    margin-bottom: 28px;
  }

  .body-section .section-inner > div > p {
    font-size: 15px;
    line-height: 1.9;
  }

  /* Service */
  .service-section .section-inner {
    padding-left: 0;
    padding-right: 0;
  }

  .service-section dl {
    display: block;
    width: 100%;
  }

  .service-section dt,
  .service-section dd {
    width: 100%;
    margin: 0;
    padding: 18px 20px;
    border-right: 1px solid #dddddd;
  }

  /* Works */
  .works-section ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .works-section li img {
    height: 220px;
  }

  /* Flow */
  .flow-section ol {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .flow-section li {
    padding: 28px 24px;
  }

  /* Price */
  .price-section ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
  }

  .price-section li {
    padding: 32px 24px;
  }

  /* CTA */
  .cta-section a {
    width: 100%;
    min-width: 0;
    padding: 18px 24px;
  }

}

/* ========================================
第14章：スマホ用ハンバーガーメニュー
======================================== */

/* PCではハンバーガーボタンを非表示 */
.menu-toggle {
  display: none;
}

/* PC用：header-nav-areaの中でナビとボタンを横並びにする */
.header-nav-area {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding: 0;
}

.header-nav-area .global-nav {
  margin-right: 30px;
}

.header-nav-area .header-button {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* スマホ表示 */
@media (max-width: 768px) {

  .site-header {
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  .header-logo a {
    display: block;
    line-height: 1;
  }

  .header-logo img {
    width: 70px;
    height: auto;
    display: block;
  }

  .site-title {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #cccccc;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: #333333;
  }

  .header-nav-area {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    padding: 0 16px 20px;
    box-sizing: border-box;
    background: #f7f7f7;
    z-index: 1001;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  .header-nav-area.is-open {
    display: block;
  }

  .header-nav-area .global-nav {
    margin-right: 0;
  }

  .main-menu,
  .sub-menu {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .main-menu li,
  .sub-menu li {
    display: block;
    border-bottom: 1px solid #e3e3e3;
  }

  .main-menu a,
  .sub-menu a {
    display: block;
    padding: 22px 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
  }

  .sub-menu {
    margin-top: 0;
  }

  .sub-menu li {
    gap: 0;
  }

  .sub-menu li::before {
    display: none;
  }

  .header-nav-area .header-button {
    width: 100%;
    max-width: none;
    height: 56px;
    margin-top: 20px;
    font-size: 14px;
  }

}

/* 固定ページ */
.page-main {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  margin-bottom: 32px;
  font-size: 32px;
  line-height: 1.5;
  text-align: center;
}

.page-body {
  font-size: 16px;
  line-height: 1.9;
}

.page-body h2 {
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  font-size: 24px;
  line-height: 1.5;
  border-bottom: 1px solid #ddd;
}

.page-body h3 {
  margin-top: 36px;
  margin-bottom: 16px;
  font-size: 20px;
  line-height: 1.5;
}

.page-body p {
  margin-bottom: 20px;
}

.page-body ul,
.page-body ol {
  margin-bottom: 24px;
  padding-left: 1.5em;
}

.page-body li {
  margin-bottom: 8px;
}

.page-body table {
  width: 100%;
  margin-top: 24px;
  margin-bottom: 24px;
  border-collapse: collapse;
}

.page-body th,
.page-body td {
  padding: 14px 16px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

.page-body th {
  width: 30%;
  background: #F7F7F7;
  font-weight: 700;
}

@media screen and (max-width: 768px) {

  .page-main {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-content {
    max-width: 100%;
  }

  .page-title {
    margin-bottom: 24px;
    font-size: 26px;
  }

  .page-body {
    font-size: 15px;
  }

  .page-body h2 {
    margin-top: 40px;
    font-size: 22px;
  }

  .page-body h3 {
    margin-top: 32px;
    font-size: 18px;
  }

  .page-body table {
    font-size: 14px;
  }

  .page-body th,
  .page-body td {
    display: block;
    width: 100%;
  }

}

/* ブログ一覧 */
.blog-main,
.archive-main {
  padding-top: 60px;
  padding-bottom: 60px;
}

.blog-heading,
.archive-heading {
  margin-bottom: 40px;
  text-align: center;
}

.blog-title,
.archive-title {
  margin-bottom: 12px;
  font-size: 32px;
  line-height: 1.5;
}

.blog-lead {
  font-size: 16px;
  line-height: 1.8;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #ddd;
}

.blog-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.blog-card-image {
  aspect-ratio: 3 / 2;
  background: #F7F7F7;
}

.blog-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-date {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  color: #777;
}

.blog-card-title {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.5;
}

.blog-excerpt {
  font-size: 15px;
  line-height: 1.8;
}

.blog-pagination {
  margin-top: 40px;
  text-align: center;
}

.blog-pagination .page-numbers {
  display: inline-block;
  margin: 0 4px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-decoration: none;
}

.blog-pagination .current {
  background: #333;
  color: #fff;
}

/* 記事詳細 */
.single-main {
  padding-top: 60px;
  padding-bottom: 60px;
}

.single-content {
  max-width: 800px;
  margin: 0 auto;
}

.single-header {
  margin-bottom: 40px;
  text-align: center;
}

.single-date {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  color: #777;
}

.single-title {
  font-size: 32px;
  line-height: 1.5;
}

.single-eyecatch {
  margin-bottom: 40px;
}

.single-eyecatch img {
  display: block;
  width: 100%;
  height: auto;
}

.single-body {
  font-size: 16px;
  line-height: 1.9;
}

.single-body h2 {
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  font-size: 24px;
  line-height: 1.5;
  border-bottom: 1px solid #ddd;
}

.single-body h3 {
  margin-top: 36px;
  margin-bottom: 16px;
  font-size: 20px;
  line-height: 1.5;
}

.single-body p {
  margin-bottom: 20px;
}

.single-body ul,
.single-body ol {
  margin-bottom: 24px;
  padding-left: 1.5em;
}

.single-body li {
  margin-bottom: 8px;
}

.single-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
}

.single-nav a,
.back-to-blog a {
  text-decoration: underline;
}

.back-to-blog {
  margin-top: 32px;
  text-align: center;
}

@media screen and (max-width: 768px) {

  .blog-main,
  .archive-main,
  .single-main {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .blog-heading,
  .archive-heading {
    margin-bottom: 32px;
  }

  .blog-title,
  .archive-title,
  .single-title {
    font-size: 26px;
  }

  .blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card-body {
    padding: 20px;
  }

  .single-header {
    margin-bottom: 32px;
  }

  .single-eyecatch {
    margin-bottom: 32px;
  }

  .single-body {
    font-size: 15px;
  }

  .single-body h2 {
    margin-top: 40px;
    font-size: 22px;
  }

  .single-body h3 {
    margin-top: 32px;
    font-size: 18px;
  }

  .single-nav {
    display: block;
  }

  .single-nav-prev,
  .single-nav-next {
    margin-bottom: 16px;
  }

}

/* お問い合わせフォーム */
.page-body .wpcf7-form {
  max-width: 640px;
  margin: 0 auto;
}

.page-body .wpcf7-form p {
  margin-bottom: 20px;
}

.page-body .wpcf7-form label {
  display: block;
  font-weight: 700;
}

.page-body .wpcf7-form input[type="text"],
.page-body .wpcf7-form input[type="email"],
.page-body .wpcf7-form input[type="tel"],
.page-body .wpcf7-form select,
.page-body .wpcf7-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #ccc;
  font-size: 16px;
  line-height: 1.6;
}

.page-body .wpcf7-form textarea {
  min-height: 180px;
}

.page-body .wpcf7-form input[type="submit"] {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border: none;
  background: #333;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.page-body .wpcf7-form input[type="submit"]:hover {
  opacity: 0.8;
}

.page-body .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 14px;
  color: #c00;
}

.page-body .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 16px;
}