/*
Theme Name: 株式会社エーディーピー
Description: 株式会社エーディーピー コーポレートサイトのクラシックテーマ。1ページ構成（ヒーロー／メッセージ／事業内容／会社概要・沿革／お問い合わせ）。
Author: timeair
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: adp
*/

/* ==========================================================
   配色・共通（デザインデータの値をそのまま変数化）
   ========================================================== */
:root {
  --navy: #1b3f94;        /* ブランドカラー：見出し・ボタン・帯背景 */
  --navy-dark: #122d6d;   /* リンクのホバー色 */
  --navy-btn-hover: #16367e;
  --navy-btn-active: #122c69;
  --navy-deep: #122c69;   /* ヒーロー背景の「ADP」文字（奥） */
  --ink: #17233d;         /* 基本の文字色 */
  --ink-soft: #3a4560;    /* 本文の文字色 */
  --muted: #8c9bbf;       /* 補足・ラベルの文字色 */
  --muted-on-navy: #a9bbe8;
  --line: #dde5f5;        /* 罫線・入力欄の枠 */
  --line-soft: #c9d6f2;
  --line-lighter: #e6ecf9;
  --bg-soft: #f4f7fd;     /* 薄い青の背景 */
  --required: #c2185b;    /* 必須マーク */
  --shadow: 0 6px 24px rgba(11, 33, 83, .16);
  --container: 1100px;
  --pad-x: clamp(20px, 4vw, 56px);       /* 左右の余白 */
  --pad-y: clamp(72px, 11vw, 148px);     /* セクションの上下余白 */
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-dark); }

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

.site { overflow-x: hidden; }

/* 幅 1100px の内側コンテナ */
.container { max-width: var(--container); margin: 0 auto; }

/* セクション見出しの上の小さなラベル（01 ─ MESSAGE など） */
.sec-label {
  font-size: 11.5px;
  letter-spacing: .24em;
  color: var(--muted);
  margin-bottom: 18px;
}
.sec-label--on-navy { color: var(--muted-on-navy); }

/* セクションの大見出し */
.sec-title {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.5;
  letter-spacing: .02em;
  text-wrap: pretty;
}
.sec-title--on-navy { color: #fff; }

/* ==========================================================
   ヘッダー（浮いた白いバー）
   ========================================================== */
.site-header {
  position: absolute;
  top: clamp(14px, 2vw, 22px);
  left: clamp(14px, 3vw, 40px);
  right: clamp(14px, 3vw, 40px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border-radius: clamp(12px, 1.6vw, 20px);
  box-shadow: var(--shadow);
  padding: 12px clamp(16px, 2.2vw, 28px);
  transition: background .3s ease, padding .3s ease;
}
.site-header__logo { display: flex; align-items: center; padding: 2px 4px; }
.site-header__logo img { display: block; height: clamp(28px, 3.2vw, 40px); width: auto; }

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.site-nav a { color: var(--navy); font-size: 16px; letter-spacing: .1em; }

/* ハンバーガーボタン（760px以下で表示） */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease;
}
.burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* スマホ用の全画面メニュー */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--navy);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 0 32px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  color: #fff;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: .08em;
  padding: 18px 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.mobile-nav__note {
  color: #fff;
  opacity: .6;
  font-size: 11.5px;
  letter-spacing: .22em;
  margin-top: 28px;
}

/* ==========================================================
   ヒーロー
   ========================================================== */
.hero {
  position: relative;
  min-height: clamp(420px, 68vh, 620px);
  background: var(--navy);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(96px, 11vh, 120px) var(--pad-x) clamp(120px, 14vh, 156px);
}
/* 背景の巨大な「ADP」文字 */
.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__bg-text {
  position: absolute;
  font-weight: 700;
  line-height: .78;
  letter-spacing: -.04em;
}
.hero__bg-text--back {
  right: -4%;
  top: -6%;
  font-size: clamp(360px, 50vw, 760px);
  color: var(--navy-deep);
}
.hero__body { position: relative; z-index: 1; animation: adpUp .9s ease .1s both; }
.hero__eyebrow {
  color: #fff;
  font-size: 12px;
  letter-spacing: .26em;
  margin-bottom: 22px;
  opacity: .9;
}
.hero__title {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: clamp(30px, 5.4vw, 66px);
  line-height: 1.38;
  letter-spacing: .02em;
  text-wrap: pretty;
}
.hero__lead {
  margin: 26px 0 0;
  color: #fff;
  font-size: clamp(14.5px, 1.5vw, 17px);
  line-height: 2;
  max-width: 30em;
  opacity: .92;
}
/* 下部の SCROLL 案内 */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3vh, 30px);
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  opacity: .9;
}
.hero__scroll:hover { color: #fff; opacity: 1; }
.hero__scroll-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  animation: adpScroll 1.8s ease-in-out infinite;
}

@keyframes adpScroll {
  0%   { transform: translateY(0);   opacity: 1; }
  55%  { transform: translateY(9px); opacity: .35; }
  100% { transform: translateY(0);   opacity: 1; }
}
@keyframes adpUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================
   01 メッセージ
   ========================================================== */
.philosophy { padding: var(--pad-y) var(--pad-x); background: #fff; }
.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.philosophy__title { line-height: 1.55; }
.philosophy__text {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: clamp(15px, 1.45vw, 16.5px);
  color: var(--ink-soft);
  line-height: 2.15;
  text-wrap: pretty;
}
.philosophy__text p { margin: 0; }

/* ==========================================================
   02 事業内容
   ========================================================== */
.business { background: var(--navy); padding: var(--pad-y) var(--pad-x); color: #fff; }
.business__title { margin-bottom: clamp(36px, 5vw, 64px); }

/* 白いカード（写真＋説明の2カラム） */
.biz-card {
  background: #fff;
  border-radius: clamp(14px, 2vw, 26px);
  overflow: hidden;
  color: var(--ink);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.biz-card + .biz-card { margin-top: clamp(24px, 3vw, 36px); }
.biz-card__photo { min-height: clamp(240px, 32vw, 420px); position: relative; }
.biz-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 2枚目は写真を右側に置く（スマホでは写真が上） */
.biz-card--reverse .biz-card__photo { order: 1; background: #f5f8ff; } /* 画像と同じ背景色で余白を埋める */
/* 午後のクレープの画像は左右を切らず全体を収める */
.biz-card--reverse .biz-card__photo img { object-fit: contain; }
.biz-card--reverse .biz-card__body { order: 2; }

.biz-card__body { padding: clamp(28px, 4vw, 56px); }
.biz-card__tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--navy);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 16px;
  line-height: 1.9;
}
.biz-card__title {
  margin: 0 0 18px;
  font-size: clamp(19px, 2.3vw, 27px);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.5;
}
.biz-card__title--tight { margin-bottom: 6px; }
.biz-card__sub {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .12em;
  margin-bottom: 18px;
}
.biz-card__text {
  margin: 0 0 26px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 2.1;
  text-wrap: pretty;
}

/* 番号付きの特長リスト */
.biz-points {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line-lighter);
  margin: 0;
  padding: 0;
  list-style: none;
}
.biz-points li {
  background: #fff;
  padding: 14px 2px;
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 14.5px;
}
.biz-points__num {
  font-size: 12px;
  color: var(--navy);
  letter-spacing: .14em;
  min-width: 2.4em;
}

/* 店舗情報の薄青ボックス */
.biz-info {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.biz-info__row { display: flex; gap: 16px; font-size: 14px; }
.biz-info__row dt { color: var(--muted); min-width: 4.5em; }
.biz-info__row dd { margin: 0; }
.biz-info__link { color: var(--navy); border-bottom: 1px solid var(--line-soft); }
.biz-info__link:hover { color: var(--navy-dark); border-bottom-color: var(--navy); }

/* ==========================================================
   03 会社概要・沿革
   ========================================================== */
.company { padding: var(--pad-y) var(--pad-x); background: var(--bg-soft); }
.company__title { margin-bottom: clamp(20px, 2.6vw, 34px); }
.company__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
/* 左右の高さを揃えるための、見えない見出し（デザインどおり） */
.company__spacer {
  margin: 0 0 26px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .1em;
  visibility: hidden;
}

/* 会社概要の表 */
.company-table { display: flex; flex-direction: column; margin: 0; }
.company-table__row {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.company-table__row:last-child { border-bottom: 1px solid var(--line); }
.company-table__row dt {
  font-size: 13.5px;
  color: var(--muted);
  min-width: 6.5em;
  letter-spacing: .08em;
}
.company-table__row dd { margin: 0; font-size: 15px; }

/* 沿革 */
.history__title {
  margin: 0 0 26px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--navy);
}
.history {
  --history-indent: clamp(20px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line-soft);
  padding-left: var(--history-indent);
  margin: 0;
  list-style: none;
}
.history li { position: relative; padding: 0 0 30px; }
.history li:last-child { padding-bottom: 0; }
/* 縦線上の丸い点 */
.history li::before {
  content: "";
  position: absolute;
  left: calc(-1px - var(--history-indent));
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--navy);
  transform: translateX(-3px);
}
.history__date {
  font-size: 13.5px;
  color: var(--navy);
  letter-spacing: .14em;
  font-weight: 700;
  margin-bottom: 6px;
}
.history__event { font-size: 15px; }

/* ==========================================================
   04 お問い合わせ（Contact Form 7）
   ========================================================== */
.contact { padding: var(--pad-y) var(--pad-x); background: #fff; }
.contact__title { margin-bottom: clamp(20px, 2.6vw, 34px); }
.contact__lead {
  margin: 0 0 clamp(32px, 4.5vw, 52px);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 2.1;
  max-width: 34em;
  text-wrap: pretty;
}

/* フォームの2カラム配置 */
.cf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(22px, 3vw, 40px);
  align-items: start;
  max-width: 820px;
}
.cf-field { display: flex; flex-direction: column; gap: 9px; }
.cf-field--full { grid-column: 1 / -1; }
.cf-label {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
/* 必須マーク */
.cf-req { font-size: 15px; font-weight: 700; line-height: 1; color: var(--required); }

/* 入力欄（CF7 が出力する input / textarea） */
.cf-field .wpcf7-form-control-wrap { display: block; }
.cf-field input[type="text"],
.cf-field input[type="email"],
.cf-field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
  width: 100%;
  box-sizing: border-box;
}
.cf-field textarea { line-height: 1.9; resize: vertical; }
.cf-field input:focus,
.cf-field textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  background: #fff;
}

/* 同意チェック＋送信ボタン */
.cf-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}
.cf-agree .wpcf7-form-control-wrap,
.cf-agree .wpcf7-acceptance,
.cf-agree .wpcf7-list-item { display: block; margin: 0; }
.cf-agree label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.9;
  cursor: pointer;
}
.cf-agree input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--navy);
  flex: none;
  cursor: pointer;
}
.cf-agree a { color: var(--navy); border-bottom: 1px solid var(--muted-on-navy); }
.cf-agree .cf-req { margin-left: 6px; }

.wpcf7-submit {
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #fff;
  background: var(--navy);
  border: none;
  border-radius: 999px;
  padding: 19px 52px;
  cursor: pointer;
  transition: background .2s ease;
}
.wpcf7-submit:hover { background: var(--navy-btn-hover); }
.wpcf7-submit:active { background: var(--navy-btn-active); }
/* 送信中のくるくる（CF7 標準）はボタンの右側に */
.wpcf7-spinner { margin: 0 0 0 12px; }

/* 送信結果のメッセージ（CF7 標準の枠線を消してデザインに合わせる） */
.wpcf7 form .wpcf7-response-output {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: .06em;
  min-height: 1.4em;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output { color: var(--required); }
/* 各項目の下に出るエラー文 */
.wpcf7-not-valid-tip { font-size: 13px; color: var(--required); margin-top: 6px; }

/* CF7 未設定のときの案内 */
.contact__notice {
  font-size: 14px;
  color: var(--muted);
  border: 1px dashed var(--line-soft);
  border-radius: 8px;
  padding: 16px 20px;
}

/* ==========================================================
   フッター
   ========================================================== */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: clamp(24px, 3.4vw, 34px) var(--pad-x);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.site-footer__logo {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 5px;
  padding: 6px 12px;
}
.site-footer__logo img { display: block; height: 30px; width: auto; }
.site-footer__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  line-height: 1.6;
}
.site-footer__name { font-size: 14px; font-weight: 500; letter-spacing: .06em; }
.site-footer__addr { font-size: 13.5px; opacity: .8; }
.site-footer__copy {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, .22);
  padding-top: 16px;
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: .1em;
  opacity: .6;
}

/* ==========================================================
   予備ページ（プライバシーポリシーなど、トップ以外）
   ========================================================== */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(120px, 16vw, 180px) var(--pad-x) var(--pad-y);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 2.1;
}
.page-content h1 {
  margin: 0 0 clamp(32px, 4vw, 48px);
  color: var(--navy);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.5;
  letter-spacing: .02em;
}
.page-content h2 {
  margin: 44px 0 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--navy);
  border-left: 3px solid var(--navy);
  padding-left: 12px;
  line-height: 1.6;
}
.page-content p { margin: 0 0 16px; }
.page-content ul { padding-left: 1.4em; margin: 0 0 16px; }
.page-content a { border-bottom: 1px solid var(--line-soft); }
.page-content a:hover { border-bottom-color: var(--navy); }

/* ==========================================================
   スマホ（760px以下）
   ========================================================== */
@media (max-width: 760px) {
  .site-nav { display: none; }
  .burger { display: flex; }
  /* ヘッダーは画面上部に固定し、スクロールで少し細くなる */
  .site-header {
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;
    padding: 10px 14px;
  }
  .site-header.is-scrolled {
    background: #fff;
    padding: 8px 14px;
    box-shadow: 0 4px 20px rgba(11, 33, 83, .18);
  }
  .hero { min-height: 0; padding: 124px 20px 112px; }
  .hero__title { font-size: 34px; }
  .site-footer__copy { width: 100%; text-align: center; margin-top: 4px; }
}
