@charset "UTF-8";
/*
  AD CRAFT 21 corporate site
  素の CSS（ビルド不要）。目次:
    1. Tokens / Base
    2. Layout（container, section, article）
    3. Site header / Navigation drawer
    4. Hero（トップ）
    5. Components（button, list, card, works, table, breadcrumbs, form）
    6. Modal（実績拡大）
    7. Footer
    8. Utilities / Motion
*/

/* ==========================================================================
   1. Tokens / Base
   ========================================================================== */
:root {
  --color-primary: #fb8c00;
  --color-primary-dark: #af6100;
  --color-text: #212121;
  --color-muted: #757575;
  --color-border: #e0e0e0;
  --color-gray-100: #f5f5f5;
  --color-gray-400: #bdbdbd;
  --color-gray-800: #424242;
  --color-blue: #25506e;
  --color-navy: #193447;
  --color-danger: #dc3545;
  --font-sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic",
    YuGothic, Verdana, Meiryo, sans-serif;
  --font-serif: "Sawarabi Mincho", "Yu Mincho", YuMincho, serif;
  --spacer: 1rem;
  --header-height: 96px;
}

/* Windows の Yu Gothic が細く表示される問題への対処 */
@font-face {
  font-family: "Yu Gothic";
  src: local("Yu Gothic Medium");
  font-weight: 100 400;
}
@font-face {
  font-family: "Yu Gothic";
  src: local("Yu Gothic Bold");
  font-weight: 700;
}

*,
::before,
::after {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  overflow-y: scroll;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  background-color: #fff;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

h1,
h2 {
  font-size: 2rem;
}

p,
ul,
ol,
dl {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul,
ol {
  padding-left: 1.2em;
}

small {
  font-size: 80%;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

img,
video {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-style: none;
}

figure {
  margin: 0 0 1rem;
}

address {
  font-style: normal;
}

table {
  border-collapse: collapse;
}

th {
  text-align: left;
}

button,
input,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  cursor: pointer;
}

label {
  display: inline-block;
  margin-bottom: 0.5rem;
}

textarea {
  overflow: auto;
  resize: vertical;
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   2. Layout
   ========================================================================== */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

.section {
  margin: 0 0 5rem;
}

.section--gray {
  padding: 5rem 0;
  margin-bottom: 0;
  background-color: var(--color-gray-100);
}

.section--blue {
  padding: 5rem 0;
  color: #fff;
  background-color: var(--color-blue);
}

.section__title {
  margin-bottom: 1.5rem;
}

/* 中央寄せ見出し（下線が左右に伸びる） */
.section__title--center {
  position: relative;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  text-align: center;
}

.section__title--center small {
  font-size: 50%;
}

.section__title--center::before,
.section__title--center::after {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 2px;
  content: "";
  background-color: var(--color-gray-400);
  transition: width 1s 0.4s;
}

.section__title--center::before { left: 50%; }
.section__title--center::after { right: 50%; }

.section__title--center.is-visible::before,
.section__title--center.is-visible::after {
  width: 20%;
}

.section__more {
  margin-top: 1.5rem;
  text-align: center;
}

.section__lead {
  text-align: center;
}

/* 下層ページの見出し帯 */
.article__header {
  padding: 1rem 0;
  background-color: var(--color-gray-100);
}

.article__title {
  margin: 0;
  font-size: 2rem;
}

.article__title small {
  padding-left: 0.25rem;
  font-size: 1rem;
  color: var(--color-muted);
}

.article__content {
  padding-top: 3rem;
}

/* 2カラム（画像＋テキスト） */
.media-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.media-row__figure {
  margin: 0;
  text-align: center;
}

@media (min-width: 992px) {
  .media-row {
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
  }
}

/* ==========================================================================
   3. Site header / Navigation drawer
   ========================================================================== */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 0.5rem 1rem;
  color: #fff;
  background: #000;
  transform: translateY(-100%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: relative;
  z-index: 1;
  background-color: #fff;
}

.site-header__inner {
  display: flex;
  height: var(--header-height);
  align-items: center;
}

.site-header__logo {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background-color: #000;
}

.site-header__logo img {
  width: auto;
  height: 20px;
}

.site-header__name {
  display: none;
  margin: 0 0 0 1rem;
}

@media (min-width: 576px) {
  .site-header__name { display: block; }
}

.nav-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 120;
  display: flex;
  width: 64px;
  height: 64px;
  padding: 0;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  background-color: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.26);
}

@media (min-width: 576px) {
  .nav-toggle { right: 32px; }
}

.nav-toggle__caption {
  font-size: 12px;
  line-height: 1.2;
}

/* ハンバーガー → × */
.nav-toggle__icon {
  position: relative;
  display: block;
  width: 28px;
  height: 24px;
}

.nav-toggle__icon span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  background: #757575;
  border-radius: 2px;
  transition: 0.25s ease-in-out;
}

.nav-toggle__icon span:nth-child(1) { top: 0; }
.nav-toggle__icon span:nth-child(2),
.nav-toggle__icon span:nth-child(3) { top: 8px; }
.nav-toggle__icon span:nth-child(4) { top: 16px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1),
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(4) {
  top: 8px;
  left: 50%;
  width: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) { transform: rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.6s, visibility 0.6s;
}

.global-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 110;
  width: 100%;
  max-width: 24rem;
  height: 100vh;
  height: 100dvh;
  padding-top: 96px;
  overflow: auto;
  visibility: hidden;
  background-color: var(--color-gray-800);
  box-shadow: -4px 0 4px -1px rgba(0, 0, 0, 0.13);
  opacity: 0;
  transform: translateX(24rem);
  transition: opacity 0.6s, visibility 0.6s, transform 0.4s ease-out;
}

.global-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.global-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
}

.global-nav a {
  display: block;
  padding: 1rem;
  color: #fff;
  transition: background-color 0.3s;
}

.global-nav a:hover,
.global-nav a:focus-visible {
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.1);
}

.global-nav a[aria-current="page"] {
  color: var(--color-primary);
}

body.is-nav-open .nav-overlay {
  visibility: visible;
  opacity: 1;
}

body.is-nav-open .global-nav {
  visibility: visible;
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   4. Hero（トップ）
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  margin-bottom: 3rem;
  overflow: hidden;
  place-items: center;
  color: #fff;
  background-color: var(--color-navy);
  box-shadow: inset 0 -12px 24px -12px rgba(0, 0, 0, 0.75);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__box {
  position: relative;
  width: 80%;
  max-width: 480px;
  padding: 2rem;
  text-align: center;
  border: 2px solid #fff;
}

.hero__title {
  display: flex;
  width: 80%;
  margin: 0 auto;
  padding: 1.25rem 12%;
  background-color: rgba(0, 0, 0, 0.35);
}

.hero__logo {
  max-width: 100%;
}

.hero__company {
  margin: 0.5rem 0 1rem;
}

.hero__tagline {
  margin: 0;
  font-size: 1.5rem;
}

@media (max-width: 767.98px) {
  .hero__tagline { font-size: 1.25rem; }
}

/* ==========================================================================
   5. Components
   ========================================================================== */

/* ---- Button ---- */
.btn {
  display: inline-block;
  min-width: min(20rem, 100%);
  max-width: 100%;
  padding: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 3rem;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.btn:hover,
.btn:focus-visible {
  color: #fff;
  text-decoration: none;
  background-color: #d57700;
  border-color: #c87000;
}

.btn--more::after {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-left: 0.5rem;
  vertical-align: -0.25em;
  content: "";
  background-color: currentColor;
  -webkit-mask: var(--icon-chevron) center / contain no-repeat;
  mask: var(--icon-chevron) center / contain no-repeat;
}

/* Material Icons（Apache 2.0）をインライン化。外部フォント読み込み不要 */
:root {
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z'/%3E%3C/svg%3E");
  --icon-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
  --icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
}

/* ---- Home: lead text ---- */
.lead-text {
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  line-height: 2.5rem;
  color: var(--color-navy);
  text-align: center;
  letter-spacing: 0.05em;
}

.lead-text + .lead-text {
  margin-top: 20px;
}

@media (max-width: 767.98px) {
  .lead-text {
    font-size: 1rem;
    line-height: 1.5rem;
    letter-spacing: 0;
  }
}

/* ---- Lists ---- */
.list-archives {
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.list-archives li {
  margin: 0 0 0.5rem;
  padding: 0.5rem;
  border-bottom: 1px dotted var(--color-border);
}

.list-archives time {
  display: inline-block;
  min-width: 8.5em;
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* ---- Card（事業紹介） ---- */
.card-list {
  display: grid;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 992px) {
  .card-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 30px;
  }
}

.card {
  height: 100%;
  padding: 30px 20px;
  text-align: center;
  background: #fffef8;
  border: 2px solid #ccc;
  border-radius: 8px;
}

.card__title {
  margin-top: 1em;
  font-size: 1.25rem;
  color: #e0b667;
}

.card__text {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: #333;
  text-align: left;
}

/* ---- Works ---- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); }
}

.works-item {
  margin-bottom: 2rem;
  text-align: center;
}

.works-item__link {
  display: block;
}

.works-item img {
  border-radius: 0.25rem;
}

.works-item__title {
  margin: 0.5rem 0;
  font-size: 1.25rem;
}

.works-item__text {
  margin-bottom: 0;
}

/* トップの実績サムネイル（3列固定） */
.works-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.works-preview img {
  width: 100%;
  border-radius: 0.25rem;
}

/* ---- Contact block ---- */
.contact-tel {
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-tel__number {
  margin: 0;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
}

.contact-tel__number small {
  font-size: 80%;
}

.contact-tel__number a {
  color: inherit;
}

.contact-tel__hours {
  margin: 0.5rem 0 0;
  font-size: 1.25rem;
}

@media (min-width: 576px) {
  .contact-tel__number { font-size: 2.5rem; }
}

/* ---- Table（会社概要） ---- */
.table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.table th,
.table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid var(--color-border);
}

.table th {
  width: 20%;
}

.table ol {
  margin-bottom: 0;
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  padding: 1rem 0;
}

.breadcrumbs ol {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumbs li + li::before {
  padding: 0 0.5rem;
  content: "\203A";
}

.breadcrumbs__home {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: -0.25em;
  background-color: currentColor;
  -webkit-mask: var(--icon-home) center / contain no-repeat;
  mask: var(--icon-home) center / contain no-repeat;
}

/* ---- Privacy policy ---- */
.privacy h2 {
  margin-top: 2em;
  font-size: 1.5rem;
}

.privacy > p:first-child {
  margin-bottom: 0;
}

/* ---- Form（見た目のみ。送信処理は未実装） ---- */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  gap: 0 10px;
}

@media (min-width: 768px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group {
  margin-bottom: 1rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  color: #616161;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid var(--color-gray-400);
  border-radius: 0.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
  border-color: #ffc57c;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(251, 140, 0, 0.25);
}

.badge {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.badge--required {
  color: #fff;
  background-color: var(--color-danger);
}

.contact-form__privacy,
.contact-form__submit {
  margin-top: 1.5rem;
  text-align: center;
}

.contact-form__privacy a::after {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.3em;
  content: "";
  background-color: currentColor;
  -webkit-mask: var(--icon-chevron) center / contain no-repeat;
  mask: var(--icon-chevron) center / contain no-repeat;
}

/* ==========================================================================
   6. Modal（実績拡大）
   ========================================================================== */
.modal {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
}

.modal::backdrop {
  background-color: rgba(0, 0, 0, 0.8);
}

.modal__close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #fff;
  background-color: transparent;
  border: 0;
  filter: drop-shadow(0 0 4px #000);
}

.modal__close::before {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background-color: currentColor;
  -webkit-mask: var(--icon-close) center / contain no-repeat;
  mask: var(--icon-close) center / contain no-repeat;
}

.modal__scroll {
  width: 100%;
  height: 100%;
  padding: 64px 0;
  overflow: auto;
}

.modal__figure {
  margin: 0 0 1rem;
  text-align: center;
}

.modal__figure img {
  border-radius: 0.25rem;
}

.modal__figure figcaption {
  margin-top: 0.5rem;
}

.modal__text {
  text-align: left;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer__logo {
  display: flex;
  height: 240px;
  align-items: center;
  justify-content: center;
  background: url("../assets/img/bg_footer.png") repeat-x;
}

.site-footer__bar {
  padding: 5px 0;
  color: #fff;
  text-align: center;
  background-color: #333;
}

.site-footer__bar p {
  margin: 0;
}

.site-footer__bar a {
  color: #fff;
  text-decoration: underline;
}

.site-footer__bar a:hover {
  color: var(--color-gray-400);
}

/* ==========================================================================
   8. Utilities / Motion
   ========================================================================== */
.font-serif { font-family: var(--font-serif); }

.nowrap {
  display: inline-block;
}

/* 幅が広いときだけ1行ずつ改行（スマホでは文節単位で自然に折り返し） */
@media (min-width: 768px) {
  .lines > .nowrap { display: block; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* スクロール表示アニメーション（JS 有効時のみ初期非表示） */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 576px) {
  .reveal-stagger > :nth-child(2) { transition-delay: 0.2s !important; }
  .reveal-stagger > :nth-child(3) { transition-delay: 0.4s !important; }
  .reveal-stagger > :nth-child(4) { transition-delay: 0.6s !important; }
  .reveal-stagger > :nth-child(5) { transition-delay: 0.8s !important; }
  .reveal-stagger > :nth-child(6) { transition-delay: 1s !important; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .section__title--center::before,
  .section__title--center::after {
    width: 20%;
    transition: none;
  }

  .global-nav,
  .nav-overlay,
  .nav-toggle__icon span {
    transition: none;
  }
}
