@charset "UTF-8";

/* ================================================================
   Design Tokens
   ----------------------------------------------------------------
   ブレークポイント（@media では変数が使えないため値を直接記述）:
     SP           : max-width 767px
     Tablet       : max-width 991px
     Nav 縮小     : max-width 1023px

   命名ルール:
     l-*  レイアウト（ヘッダー・フッター・ラッパー）
     c-*  複数ページで使う部品
     p-*  特定ページ・特定ブロック専用
     is-* 状態（JSで付け外し）
     js-* JSのフック専用（スタイルは当てない）
   ================================================================ */
:root {
  --color-main: #242424;   /* テキスト・ボタン・フッター背景 */
  --color-white: #fff;
  --color-accent: #1391e6; /* フォーカス・送信ボタン */
}

/* ================================================================
   1. Reset
   ================================================================ */
* {
  box-sizing: border-box;
}

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
dl,
li,
dt,
dd,
p,
div,
span,
img,
a,
table,
tr,
th,
td {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: normal;
  font-size: 100%;
  vertical-align: baseline;
}

header,
footer,
nav,
section,
article,
aside,
figure,
figcaption {
  display: block;
}

ol,
ul {
  list-style: none;
}

/* ================================================================
   2. Base
   ================================================================ */
body {
  font-family: Roboto, "M PLUS 1p", sans-serif;
  color: var(--color-main);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all .2s;
}

/* 見出しは太字でメリハリをつける（個別に weight 指定があるものはそちらが優先） */
h1,
h2,
h3 {
  font-weight: 700;
}

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

/* ================================================================
   3. Layout - 全ページ共通
   ================================================================ */

/* フッターを常に画面下端へ押し下げるためのラッパー */
.l-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.l-wrapper__body {
  flex: 1;
}

.l-inner {
  position: relative;
  width: 100%;
  max-width: 1180px;
  padding: 0 20px;
  margin: 0 auto;
}

.l-main {
  overflow: hidden;
  position: relative;
  margin-top: 100px;
}

.l-content {
  margin-bottom: 100px;
}

.l-footer {
  position: relative;
}

@media screen and (max-width: 767px) {
  .l-inner {
    padding: 0 15px;
  }

  .l-main {
    margin-top: 80px;
  }

  .l-content {
    margin-bottom: 50px;
  }
}

/* ================================================================
   4. Header & Navigation - 全ページ共通
   ================================================================ */

/* --- Header --- */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 1;
  transition: opacity 0.3s;
  z-index: 100;
  background: var(--color-white);
}

/* 下スクロール中は隠す（allpage.js） */
.l-header.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.l-header__logo {
  margin-right: 30px;
}

.l-header__logo a {
  display: flex;
  align-items: center;
  line-height: 1;
  overflow: hidden;
  word-wrap: break-word;
}

.l-header__logo img {
  width: 165px;
}

.l-header__nav {
  background: var(--color-white);
}

@media screen and (max-width: 1023px) {
  .l-header__logo img {
    width: 130px;
  }
}

@media screen and (max-width: 767px) {
  .l-header__inner {
    height: 80px;
  }

  .l-header__nav {
    display: none;
  }
}

/* --- PC Navigation --- */
.p-global-nav {
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 60px;
  text-align: center;
}

.p-global-nav li {
  position: relative;
}

.p-global-nav>li {
  margin-left: 20px;
}

.p-global-nav a {
  display: block;
  padding: 10px;
  font-size: 14px;
}

/* 現在ページの下線（常時表示）とホバー時の下線アニメーション */
.p-global-nav>li>a::after {
  content: "";
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-main);
}

.p-global-nav>li:not(.is-current)>a::after {
  transform: scale(0, 1);
  transform-origin: right top;
  transition: transform 0.3s;
}

/* 末尾の「お問い合わせ」はボタン表示 */
.p-global-nav>li:last-of-type>a {
  background: var(--color-main);
  color: var(--color-white);
  font-weight: 500;
  padding: 0 10px;
  border-radius: 5px;
  transition: all 0.2s ease;
}

@media (hover: hover) {
  .p-global-nav>li:not(.is-current)>a:hover::after {
    transform: scale(1, 1);
    transform-origin: left top;
  }

  .p-global-nav>li:last-of-type>a:hover {
    opacity: 0.8;
  }
}

/* --- PC Sub Menu --- */
.p-global-nav__sub {
  line-height: 1.2;
  text-align: left;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  transition: 0.2s;
  visibility: hidden;
  z-index: 2;
  box-shadow: 0 2px 6px rgb(51 51 51 / 20%);
}

.p-global-nav__sub a {
  padding: 17px 39px 17px 25px;
  width: 240px;
  transition: padding-left 0.2s ease;
  background: var(--color-white);
  color: var(--color-main);
}

@media (hover: hover) {
  .p-global-nav__item--has-sub:hover>.p-global-nav__sub {
    opacity: 1;
    visibility: visible;
  }

  .p-global-nav__sub a:hover {
    padding: 17px 5px 17px 33px;
    background: #f6f6f6;
  }
}

/* --- Hamburger (SP) --- */
.p-hamburger {
  display: none;
  position: fixed;
  right: 10px;
  width: 60px;
  height: 60px;
  border: none;
  background-color: transparent;
  z-index: 10;
}

.p-hamburger__line {
  display: block;
  height: 2px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  background-color: #172e59;
  transition: 0.4s;
}

.p-hamburger__line::before,
.p-hamburger__line::after {
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  width: 100%;
  background-color: #172e59;
  transition: inherit;
}

.p-hamburger__line::before {
  top: -6px;
}

.p-hamburger__line::after {
  top: 6px;
}

/* 開いているときは「×」 */
.p-hamburger.is-active .p-hamburger__line {
  background-color: transparent;
}

.p-hamburger.is-active .p-hamburger__line::before {
  top: 0;
  transform: rotate(45deg);
}

.p-hamburger.is-active .p-hamburger__line::after {
  top: 0;
  transform: rotate(-45deg);
}

@media screen and (max-width: 767px) {
  .p-hamburger {
    display: block;
  }
}

/* --- SP Drawer Menu --- */
.p-drawer {
  display: none;
}

@media screen and (max-width: 767px) {
  .p-drawer {
    display: block;
    position: fixed;
    top: 0;
    left: -100%;
    z-index: 9;
    height: 100vh;
    width: 300px;
    visibility: hidden;
    padding-top: 20px;
    background-color: #f7f7f7;
    transition: 0.4s;
    overflow-y: scroll;
  }
}

.p-drawer.is-active {
  left: 0;
  visibility: visible;
}

.p-drawer__nav {
  padding: 10px 25px;
}

.p-drawer__list>li {
  padding-bottom: 15px;
  border-bottom: 1px solid #c1c1c1;
}

.p-drawer__list>li+li {
  margin-top: 20px;
}

.p-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-main);
  font-weight: 900;
  transition: color 0.4s;
  font-size: 16px;
}

/* アコーディオンの開閉ボタン（右端の「＋ / −」） */
.p-drawer__link--accordion {
  position: relative;
  background: none;
  border: none;
  appearance: none;
  width: 100%;
  padding: 0;
}

.p-drawer__link--accordion::after {
  content: '';
  display: block;
  height: 12px;
  position: absolute;
  top: 50%;
  right: 5px;
  width: 2px;
  background-color: var(--color-main);
  transform: translateY(-50%);
  transition: transform 0.4s;
}

.p-drawer__link--accordion::before {
  content: '';
  display: block;
  height: 2px;
  position: absolute;
  top: 50%;
  right: 0;
  width: 12px;
  background-color: var(--color-main);
  transform: translateY(-50%);
}

.p-drawer__link.is-active::after {
  transform: translateY(-50%) rotate(-90deg);
}

.p-drawer__accordion {
  height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: 0.4s;
}

.p-drawer__accordion.is-active {
  height: auto;
  padding-top: 20px;
  visibility: visible;
}

.p-drawer__sub-list li {
  font-size: 14px;
}

.p-drawer__sub-list li+li {
  margin-top: 21px;
}

.p-drawer__sub-link {
  color: var(--color-main);
}

/* ================================================================
   5. Footer - 全ページ共通
   ================================================================ */

/* --- CTA（お問い合わせ / 会社資料DL） --- */
.p-cta {
  padding: 50px 0;
  background: #efefef;
}

.p-cta__inner {
  display: flex;
  gap: 100px;
}

.p-cta__item {
  width: 50%;
  line-height: 1.5;
}

/* 準備中のボタンはグレーで押せない */
.p-cta__item--disabled .c-button {
  background: #707070;
  border: 1px solid #707070;
  pointer-events: none;
}

.p-cta__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
}

.p-cta__text {
  font-size: 16px;
  margin-bottom: 22px;
}

@media screen and (max-width: 767px) {
  .p-cta__inner {
    gap: 50px;
    flex-direction: column;
  }

  .p-cta__item {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .p-cta__title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .p-cta__text {
    margin-bottom: 10px;
  }
}

/* --- Footer Navigation / Copyright --- */
.l-footer__nav {
  display: flex;
  justify-content: center;
  color: var(--color-white);
  background: var(--color-main);
  font-size: 12px;
  padding: 20px 0 0;
}

@media (hover: hover) {
  .l-footer__nav a:hover {
    opacity: .8;
  }
}

.l-footer__copyright {
  text-align: center;
  color: var(--color-white);
  background: var(--color-main);
  font-size: 12px;
  padding: 15px 0;
}

/* ================================================================
   6. 共通コンポーネント - 複数ページで使用
   ================================================================ */

/* --- Breadcrumb --- */
.c-breadcrumb {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.c-breadcrumb__item {
  display: inline;
  font-size: 11px;
}

.c-breadcrumb__item+.c-breadcrumb__item::before {
  content: "\203A";
  margin-left: 12px;
  margin-right: 12px;
  font-size: 10px;
}

@media (hover: hover) {
  .c-breadcrumb__item a:hover {
    color: #666;
  }
}

@media screen and (max-width: 767px) {
  .c-breadcrumb__item {
    font-size: 10px;
  }

  .c-breadcrumb__item+.c-breadcrumb__item::before {
    margin-left: 5px;
    margin-right: 5px;
    vertical-align: -1px;
  }
}

/* --- Page Header（下層ページの大見出し） --- */
.c-page-header {
  height: 200px;
}

/* パンくずのないページ（contact / thanks / 404）用 */
.c-page-header--no-breadcrumb {
  margin-top: 24px;
}

.c-page-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.c-page-header__title {
  font-size: 40px;
}

.c-page-header__subtitle {
  font-size: 16px;
}

@media screen and (max-width: 767px) {
  .c-page-header {
    height: 150px;
  }

  .c-page-header__title {
    font-size: 28px;
  }

  .c-page-header__subtitle {
    font-size: 14px;
  }
}

/* --- Button（ホバーで白背景が左から伸びる） --- */
.c-button-wrap {
  text-align: center;
}

.c-button {
  position: relative;
  display: inline-block;
  overflow: hidden;
  outline: 0;
  background-color: var(--color-main);
  font-size: 19px;
  font-weight: 700;
  line-height: 2;
  border: 1px solid var(--color-main);
  min-width: 200px;
  padding: 0.6em 0.8em 0.5em;
  text-align: center;
  transition: ease 0.2s;
}

.c-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: var(--color-white);
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.8, 0, 0.2, 1) 0s;
  transform-origin: right top;
  transform: scale(0, 1);
}

.c-button span {
  position: relative;
  z-index: 3;
  color: var(--color-white);
}

@media (hover: hover) {
  .c-button:hover span {
    color: var(--color-main);
  }

  .c-button:hover::before {
    transform-origin: left top;
    transform: scale(1, 1);
  }
}

@media screen and (max-width: 767px) {
  .c-button {
    font-size: 15px;
  }
}

/* --- Category Tag（実績のカテゴリラベル） --- */
.c-category-tag {
  text-align: center;
  display: inline-block;
  background: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  margin-right: 3px;
  margin-bottom: 3px;
  border: 1px solid var(--color-main);
  border-radius: 3px;
}

@media (hover: hover) {
  .c-category-tag:hover {
    background: var(--color-main);
    color: var(--color-white);
  }
}

/* --- Content（下層ページの本文エリア） --- */
.c-content {
  margin: 0 auto 40px;
  max-width: 800px;
  font-size: 16px;
}

/* contact / thanks / 404 用の狭い本文 */
.c-content--narrow {
  max-width: 720px;
}

@media (hover: hover) {
  .c-content a:hover {
    text-decoration: underline;
  }

  .c-content .c-button:hover {
    text-decoration: none;
  }
}

.c-content p {
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.05em;
  margin-bottom: 25px;
}

.c-content h2,
.c-content h3 {
  line-height: 1.4;
  margin-bottom: 7px;
}

.c-content h2 {
  font-size: 30px;
}

.c-content h3 {
  font-size: 130%;
}

.c-content table {
  margin: 0 0 24px 0;
  border-collapse: collapse;
}

.c-content td,
.c-content th {
  border: 1px solid #ddd;
  padding: 10px 15px 7px;
  line-height: 2.2;
  font-size: 14px;
}

.c-content th {
  background: #fafafa;
  font-weight: 400;
}

/* 本文中で下線を常に出すリンク */
.c-content .c-text-link {
  text-decoration: underline;
}

@media screen and (max-width: 767px) {
  .c-content {
    margin-bottom: 23px;
    font-size: 14px;
  }

  .c-content--narrow {
    max-width: 500px;
  }

  .c-content p {
    font-size: 15px;
    margin-bottom: 17px;
  }

  .c-content h2 {
    font-size: 24px;
  }
}

/* --- Section（サービス・会社案内の本文ブロック） --- */
.c-section {
  background-color: var(--color-white);
}

.c-content .c-section__heading,
.c-content .c-section__catch {
  margin: 0;
}

/* --- Back Link（thanks / 404 の「トップページへ戻る」） --- */
.c-back-link {
  margin-top: 40px;
  text-align: center;
}

.c-back-link a {
  display: inline-block;
  padding: 15px 40px;
  background: var(--color-main);
  color: var(--color-white);
  font-size: 1.6rem;
  transition: opacity 0.3s;
}

/* --- Form Input --- */
textarea,
[type="email"],
[type="tel"],
[type="text"] {
  background: var(--color-white);
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1em;
  padding: 13px 16px;
  width: 100%;
}

[type="email"]:focus,
[type="tel"]:focus,
[type="text"]:focus,
textarea:focus {
  border-color: var(--color-accent);
}

[type="submit"] {
  background-color: var(--color-accent);
  border: none;
  border-radius: 0;
  color: var(--color-white);
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  margin: 0;
  padding: 0.6em 2em;
  transition: opacity 0.3s ease 0s;
  width: auto;
}

/* ================================================================
   7. トップページ (index.html)
   ================================================================ */

/* --- Hero（メインビジュアル） --- */
/* 他のブロックと同じく最大1180pxで中央寄せ（vw指定の値も1180px時点で頭打ち） */
.p-hero__inner {
  display: flex;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.p-hero__body {
  width: 50%;
  padding: 100px 20px 100px 0;
}

.p-hero__text {
  margin-bottom: min(3.4722222222vw, 41px);
}

.p-hero__button {
  max-width: min(26.3888888889vw, 311px);
}

.p-hero__button a {
  display: inline-block;
  transition: opacity 0.2s;
}

@media (hover: hover) {
  .p-hero__button a:hover {
    opacity: 0.7;
  }
}

.p-hero__image {
  width: 50%;
  background: url(../img/mvImg.webp) center / cover no-repeat;
}

@media screen and (max-width: 767px) {
  .p-hero__inner {
    display: block;
    padding: 0;
  }

  .p-hero__body {
    width: 100%;
    padding: 13.3333333333vw 5.3333333333vw;
  }

  .p-hero__text {
    margin-bottom: 8.8vw;
  }

  .p-hero__button {
    max-width: 73.3333333333vw;
  }

  .p-hero__image {
    width: 100%;
    height: 83vw;
  }
}

/* --- 実績セクション --- */
.p-top-works {
  padding: 100px 0;
}

/* ================================================================
   8. 実績一覧 (works/index.html・トップページ)
   ================================================================ */

/* --- カテゴリ絞り込み --- */
.p-works-filter__label {
  font-size: 14px;
  margin-bottom: 10px;
}

.p-works-filter {
  display: flex;
  overflow-x: scroll;
  margin-bottom: 50px;
}

.p-works-filter a {
  flex-shrink: 0;
}

.p-works-note {
  margin-bottom: 50px;
  line-height: 1.3;
  color: #333;
  font-size: 14px;
}

@media screen and (max-width: 767px) {
  .p-works-filter {
    margin-bottom: 30px;
  }
}

/* --- 実績カード --- */
.p-works-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 30px;
  row-gap: 50px;
}

.p-works-card {
  display: flex;
  flex-direction: column;
  width: calc(33.33% - 30px * 2 / 3);
}

.p-works-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 3px;
}

.p-works-card__link {
  transition: all 0.2s ease;
}

@media (hover: hover) {
  .p-works-card__link:hover {
    opacity: 0.7;
  }
}

/* カード画像の共通装飾（実績カード・カテゴリカード） */
.p-works-card__link img,
.p-category-card__img img {
  box-shadow: 3px 3px 5px #acacac;
  border-radius: 8px;
}

.p-works-card__link img {
  margin-bottom: 10px;
}

@media screen and (max-width: 991px) {
  .p-works-card {
    width: calc(50% - 30px * 1 / 2);
  }
}

@media screen and (max-width: 767px) {
  .p-works-card {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .p-works-card__title {
    font-size: 16px;
  }
}

/* ================================================================
   9. 実績カテゴリ一覧 (works/category/*)
   ================================================================ */
.p-category-list {
  max-width: 800px;
  margin: 0 auto 50px;
}

.p-category-list__items {
  display: flex;
  flex-wrap: wrap;
  padding: 0 15px;
}

.p-category-list__back {
  text-align: center;
  margin-top: 70px;
}

.p-category-card {
  margin: 0 15px 70px;
  width: calc((100% - 60px) / 2);
  transition: opacity 0.2s;
}

@media (hover: hover) {
  .p-category-card:hover {
    opacity: 0.7;
  }
}

.p-category-card__title {
  font-size: 18px;
  line-height: 1.6;
  transition: color 0.2s ease;
  padding-top: 13px;
}

@media screen and (max-width: 991px) {
  .p-category-list {
    background: var(--color-white);
    margin-bottom: 0;
  }

  .p-category-list__items {
    padding: 0;
  }
}

@media screen and (max-width: 767px) {
  .p-category-card {
    width: 100%;
    margin: 0 0 70px;
  }

  .p-category-card__title {
    font-size: 16px;
  }
}

/* ================================================================
   10. 実績詳細 (works/*)
   ================================================================ */
.p-works-detail {
  max-width: 800px;
  margin: 50px auto;
}

.p-works-detail__header {
  margin-bottom: 40px;
  border-bottom: 3px solid var(--color-main);
}

.p-works-detail__categories {
  margin-bottom: 14px;
}

.p-works-detail__title {
  font-size: 32px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.p-works-detail__block {
  margin-bottom: 50px;
}

.p-works-detail .p-works-detail__heading {
  font-size: 20px;
  font-weight: 500;
}

@media screen and (max-width: 767px) {
  .p-works-detail {
    margin-top: 30px;
  }

  .p-works-detail__header {
    margin-bottom: 23px;
  }

  .p-works-detail__categories {
    margin-bottom: 10px;
  }

  .p-works-detail__title {
    font-size: 20px;
    margin-bottom: 12px;
  }
}

/* ================================================================
   11. リンクカード（会社案内・サービス一覧）
   ================================================================ */
.p-link-cards {
  display: flex;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.p-link-card {
  margin-bottom: 30px;
  width: calc(50% - 30px * 1 / 2);
  margin-right: 30px;
  border: 1px solid #d6d6d6;
  transition:
    border 0.2s ease,
    opacity 0.2s ease;
}

.p-link-card:nth-child(2n) {
  margin-right: 0;
}

.p-link-card a {
  display: flex;
}

.p-link-card__content {
  padding: 40px;
  width: 100%;
  background: var(--color-white);
}

.p-link-card__title {
  font-size: 24px;
  margin-bottom: 12px;
}

.p-link-card__desc {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* 「詳しくみる >」 */
.p-link-card__more {
  font-size: 14px;
  font-weight: 700;
  position: relative;
}

.p-link-card__more::after {
  content: ">";
  font-size: 14px;
  width: 14px;
  height: 14px;
  margin-left: 3px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 70px;
}

@media (hover: hover) {
  .p-link-card:hover {
    border: 1px solid #7b7b7b;
    opacity: 0.8;
  }

  .p-link-card__content:hover .p-link-card__more::after {
    animation: link-card-arrow 0.2s;
  }
}

@keyframes link-card-arrow {
  50% {
    left: 73px;
  }

  100% {
    left: 70px;
  }
}

@media screen and (max-width: 991px) {
  .p-link-card__content {
    padding: 30px;
  }

  .p-link-card__title {
    font-size: 20px;
  }

  .p-link-card__desc {
    font-size: 16px;
  }
}

@media screen and (max-width: 767px) {
  .p-link-card {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px;
  }

  .p-link-card:nth-child(2n) {
    margin-right: auto;
  }

  .p-link-card a {
    display: block;
  }
}

/* ================================================================
   12. サービス詳細 (service/*)
   ================================================================ */
.page-service-detail .c-section {
  margin-bottom: 100px;
}

.page-service-detail .c-section> :first-child {
  margin-bottom: 30px;
}

.page-service-detail .c-section> :nth-child(3) {
  margin-bottom: 20px;
}

.page-service-detail .c-section__heading {
  font-size: 30px;
}

/* 受講生の口コミ（横スクロール） */
.p-review-list {
  display: flex;
  overflow-x: scroll;
  margin-bottom: 30px;
}

.p-review-list a {
  width: 300px;
  margin-right: 25px;
  flex-shrink: 0;
}

.p-review-list__note {
  display: block;
}

@media screen and (max-width: 767px) {
  .page-service-detail .c-section> :first-child {
    margin-bottom: 20px;
  }

  .page-service-detail .c-section> :nth-child(3) {
    margin-bottom: 10px;
  }

  .page-service-detail .c-section__heading {
    font-size: 24px;
  }
}

/* ================================================================
   13. 会社案内 (company/*)
   ================================================================ */

/* --- 代表挨拶 / 企業理念 --- */
.page-company-detail .c-section {
  margin-bottom: 100px;
}

.page-company-detail .c-section__image {
  margin-bottom: 50px;
}

.page-company-detail .c-section__heading {
  margin-bottom: 15px;
}

.page-company-detail .c-section__catch,
.page-company-detail .c-section__catch+.c-section__body {
  margin-bottom: 30px;
}

.page-company-detail .c-section__heading,
.page-company-detail .c-section__catch {
  font-size: 24px;
}

/* 企業理念の「ミッション」等: 下のキャッチコピー(h3)より控えめなラベル見出し */
.page-company-detail .c-section__heading--label {
  font-size: 16px;
  color: #707070;
  letter-spacing: 0.1em;
}

@media screen and (max-width: 767px) {
  .page-company-detail .c-section__heading,
  .page-company-detail .c-section__catch {
    font-size: 20px;
  }

  .page-company-detail .c-section__heading--label {
    font-size: 14px;
  }
}

/* --- ミッション / ビジョン / バリュー --- */
.page-philosophy-detail .c-section {
  margin-bottom: 50px;
}

.page-philosophy-detail .c-section:last-child {
  margin-bottom: 100px;
}

.page-philosophy-detail .c-section> :first-child {
  margin-bottom: 10px;
}

.page-philosophy-detail .c-section__heading {
  font-size: 20px;
}

.page-philosophy-detail .c-section__catch {
  font-size: 24px;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .page-philosophy-detail .c-section__catch {
    font-size: 20px;
  }
}

/* --- 会社概要 --- */
.page-company-profile .c-section {
  margin-bottom: 50px;
}

.p-company-table {
  border-spacing: 0;
  width: 100%;
}

.p-company-table th,
.p-company-table td {
  line-height: 2.2;
  padding: 8px 15px;
  vertical-align: middle;
}

.p-company-table th {
  background: #f9f9f9;
  text-align: center;
  width: 18%;
}

.p-company-table td> :last-child {
  margin-bottom: 0;
}

.p-company-map {
  max-width: 800px;
  border: 0;
  aspect-ratio: 2 / 1;
}

@media screen and (max-width: 767px) {
  .p-company-table th,
  .p-company-table td {
    line-height: 1.8;
    padding: 10px;
  }

  .p-company-table th {
    width: 25%;
  }
}

@media screen and (max-width: 540px) {
  .p-company-table th {
    width: 33%;
  }
}

@media screen and (max-width: 320px) {
  .p-company-table th {
    width: 30%;
  }
}

/* ================================================================
   14. お問い合わせフォーム (contact/index.html)
   ================================================================ */
.p-contact-form__inner {
  margin: 0 auto;
  max-width: 100%;
  padding: 50px;
  width: 1040px;
}

.p-contact-form__rows {
  margin: auto;
  max-width: 728px;
}

.p-contact-form__row {
  align-items: center;
  display: flex;
}

.p-contact-form__label {
  align-items: center;
  display: flex;
  flex: 0 0 200px;
  flex-wrap: wrap;
  padding: 39px 0 40px;
}

.p-contact-form__required {
  background: #cd172d;
  border-radius: 4px;
  color: var(--color-white);
  font-size: 12px;
  line-height: 1;
  margin-left: 10px;
  padding: 6px;
}

.p-contact-form__field {
  flex: 0 1 auto;
  padding: 20px 0;
  width: 100%;
}

.p-contact-form__checkbox {
  margin-bottom: 10px;
}

.p-contact-form__checkbox:last-child {
  margin-bottom: 0;
}

.p-contact-form__checkboxes label,
.p-contact-form__checkbox-label {
  display: flex;
  align-items: center;
  height: 20px;
  line-height: 20px;
}

.p-contact-form__submit {
  margin-top: 60px;
}

.p-contact-form__button {
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-main);
  border-radius: 6px;
  color: var(--color-main);
  display: flex;
  font-size: 18px;
  font-weight: 700;
  height: 56px;
  justify-content: center;
  letter-spacing: 0.08em;
  line-height: 1;
  margin: auto;
  max-width: 360px;
  transition: 0.3s ease;
  width: 100%;
}

@media (hover: hover) {
  .p-contact-form__button:hover {
    background: var(--color-main);
    color: var(--color-white);
  }
}

@media screen and (max-width: 767px) {
  .p-contact-form__inner {
    padding: 35px 20px;
  }

  .p-contact-form__row {
    display: block;
  }

  .p-contact-form__label {
    padding: 0;
    padding-top: 27px;
  }

  .p-contact-form__required {
    font-size: 11px;
    margin-left: 12px;
    padding: 6px 8px;
  }

  .p-contact-form__field {
    margin-top: 12px;
    padding: 0;
    padding-bottom: 20px;
  }

  .p-contact-form__submit {
    margin-top: 30px;
  }

  .p-contact-form__button {
    font-size: 14px;
    height: 38px;
    width: 273px;
  }
}
