/* ==========================================================================
   株式会社田村倉庫 - サイト共通スタイル
   カラーやサイズはこの :root の変数を書き換えるだけで全体に反映されます
   ========================================================================== */

:root {
  --navy: #335771;
  --navy-dark: #27435a;
  --blue: #598db3;
  --blue-light: #e1e8f0;
  --cream: #f8f6ef;
  --ink: #2b3a45;
  --gray: #6b7a86;
  --line: #dfe5ea;
  --white: #fefefe;
  --accent: #cc0007;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(43, 58, 69, 0.1);
  --shadow-hover: 0 12px 32px rgba(43, 58, 69, 0.16);
  --header-h: 72px;
  --font-en: "Merriweather", serif;
}

/* --- リセット --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium",
    YuGothic, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

ul {
  list-style: none;
}

.inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* PC/SP 表示切り替え */
.sp-only { display: none; }
@media (max-width: 767px) {
  .sp-only { display: block; }
  .pc-only { display: none; }
}

/* --- ヘッダー --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(254, 254, 254, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 58, 69, 0.08);
}

.site-header .logo img {
  height: 40px;
  width: auto;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.global-nav a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s;
}

.global-nav a:hover::after,
.global-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.global-nav .nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background 0.2s;
}

.global-nav .nav-cta::after { display: none; }

.global-nav .nav-cta:hover {
  background: var(--blue);
  opacity: 1;
}

/* ハンバーガーメニュー */
.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 110;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.menu-button span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 920px) {
  .menu-button { display: flex; }

  /* backdrop-filter があると position: fixed の基準がヘッダーになり
     全画面メニューが表示できないため、モバイルでは無効化する */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(254, 254, 254, 0.98);
  }

  .global-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    background: rgba(51, 87, 113, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

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

  .global-nav a {
    color: #fff;
    font-size: 18px;
  }

  .global-nav .nav-cta {
    background: #fff;
    color: var(--navy);
  }
}

main {
  padding-top: var(--header-h);
}

/* --- トップページ ヒーロー --- */
.hero {
  position: relative;
  min-height: calc(92vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(39, 67, 90, 0.72) 0%,
    rgba(39, 67, 90, 0.35) 55%,
    rgba(39, 67, 90, 0.1) 100%
  );
}

.hero__content {
  padding: 80px 24px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  color: #fff;
}

.hero__eyebrow {
  font-family: var(--font-en);
  letter-spacing: 0.2em;
  font-size: 14px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.hero__title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.hero__lead {
  margin-top: 20px;
  font-size: clamp(14px, 2vw, 17px);
  max-width: 560px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* --- ボタン --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn::after {
  content: "→";
  font-family: var(--font-en);
  transition: transform 0.2s;
}

.btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn:hover::after {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--navy);
  color: #fff;
}

.btn--primary:hover { background: var(--blue); }

.btn--white {
  background: #fff;
  color: var(--navy);
}

.btn--ghost {
  border: 2px solid #fff;
  color: #fff;
}

/* --- セクション共通 --- */
.section {
  padding: 88px 0;
}

.section--cream {
  background: var(--cream);
}

.section--navy {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title__en {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section--navy .section-title__en { color: #b9d2e4; }

.section-title__ja {
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.section-lead {
  text-align: center;
  max-width: 720px;
  margin: -24px auto 48px;
}

@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .section-lead { text-align: left; }
}

/* --- 下層ページタイトル --- */
.page-title {
  position: relative;
  padding: 72px 20px;
  text-align: center;
  color: #fff;
  background: linear-gradient(120deg, var(--navy-dark), var(--blue));
  overflow: hidden;
}

.page-title__bg {
  position: absolute;
  inset: 0;
}

.page-title__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.page-title h1 {
  position: relative;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: 0.08em;
}

.page-title__en {
  position: relative;
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 8px;
  opacity: 0.85;
}

/* --- トップ: 事業内容 --- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.service-block + .service-block {
  margin-top: 48px;
}

.service-block:nth-child(even) .service-block__image {
  order: 2;
}

.service-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.service-block__body {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.service-block__number {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--blue);
}

.service-block__title {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  line-height: 1.5;
}

.service-block__more {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 767px) {
  .service-block {
    grid-template-columns: 1fr;
  }
  .service-block:nth-child(even) .service-block__image { order: 0; }
  .service-block__image img { min-height: 200px; }
  .service-block__body { padding: 28px 22px; }
}

/* --- お客様の声 --- */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.voice-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.voice-card__comment {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--navy);
}

.voice-card__comment::before {
  content: "“";
  font-family: var(--font-en);
  font-size: 40px;
  line-height: 1;
  display: block;
  color: var(--blue);
}

.voice-card__person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.voice-card__person img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--blue-light);
}

.voice-card__name {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

/* --- サービスカード（保管ページ）--- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-card__image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.service-card__body {
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.service-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
}

.service-card__detail {
  font-size: 14.5px;
}

.service-card__example {
  margin-top: auto;
  background: var(--cream);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
}

.service-card__example dt {
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 2px;
}

/* --- 理由カード（通販サポート）--- */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.reason-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  text-align: center;
}

.reason-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
}

.reason-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.reason-card p {
  font-size: 14px;
}

.reason-card .accent {
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-en);
  padding: 0 2px;
}

/* --- 強み（ZAICO）セクション --- */
.merit {
  text-align: center;
}

.merit__lead {
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 20px;
}

.merit__note {
  font-size: 12.5px;
  opacity: 0.75;
  margin-top: 10px;
}

.merit__buttons {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* --- 動画 --- */
.video-wrap {
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --- FAQ --- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.faq {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 4px 8px;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 18px 16px;
  font-weight: 700;
  font-size: 15.5px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before {
  content: "Q";
  font-family: var(--font-en);
  color: var(--blue);
  font-size: 20px;
  flex-shrink: 0;
}

.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 22px;
  color: var(--blue);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq[open] summary::after {
  transform: rotate(45deg);
}

.faq__a {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 0 16px 20px;
  font-size: 15px;
}

.faq__a::before {
  content: "A";
  font-family: var(--font-en);
  color: var(--accent);
  font-size: 20px;
  flex-shrink: 0;
}

/* --- インタビュー --- */
.interview-head {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin-bottom: 40px;
}

.interview-head img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--blue-light);
  flex-shrink: 0;
}

.interview-head__name {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 6px;
}

.interview-head__comment {
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.7;
}

@media (max-width: 600px) {
  .interview-head {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
}

.interview-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
}

.interview-body img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 767px) {
  .interview-body { grid-template-columns: 1fr; }
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.qa-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
}

.qa-card__q {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-light);
}

.qa-card__a {
  font-size: 14.5px;
}

/* --- 会社概要 --- */
.def-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.def-table th,
.def-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}

.def-table tr:last-child th,
.def-table tr:last-child td {
  border-bottom: 0;
}

.def-table th {
  width: 32%;
  background: var(--cream);
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .def-table th,
  .def-table td {
    display: block;
    width: 100%;
  }
  .def-table th {
    padding-bottom: 8px;
  }
  .def-table td {
    padding-top: 0;
    border-bottom: 1px solid var(--line);
  }
  .def-table th {
    border-bottom: 0;
    background: transparent;
    padding-left: 22px;
  }
  .def-table tr:last-child th { border-bottom: 0; }
}

.disc-list {
  list-style: disc;
  padding-left: 1.4em;
}

/* --- お知らせ --- */
.news-list {
  display: grid;
  gap: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news-item {
  display: flex;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.news-item:last-child { border-bottom: 0; }

.news-item__date {
  font-family: var(--font-en);
  color: var(--blue);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .news-item { flex-direction: column; gap: 4px; }
}

/* --- 倉庫紹介 --- */
.warehouse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.warehouse + .warehouse {
  margin-top: 56px;
}

.warehouse:nth-child(even) > figure {
  order: 2;
}

.warehouse figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.warehouse__title {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 18px;
}

.map-link {
  display: inline-block;
  margin-left: 10px;
  padding: 1px 12px;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}

@media (max-width: 767px) {
  .warehouse { grid-template-columns: 1fr; }
  .warehouse:nth-child(even) > figure { order: 0; }
}

/* --- お問い合わせ --- */
.tel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.tel-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
}

.tel-card__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray);
  margin-bottom: 8px;
}

.tel-card__number {
  font-family: var(--font-en);
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

a.tel-card__number:hover { color: var(--blue); }

.attention {
  max-width: 820px;
  margin: 40px auto 0;
  background: #fff;
  border: 2px solid var(--blue-light);
  border-radius: var(--radius);
  padding: 28px 30px;
}

.attention__title {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.attention__title::before {
  content: "⚠ ";
}

.attention .btn {
  margin-top: 16px;
}

.attention u,
.u-underline {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

/* Googleフォーム埋め込み */
.gform-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gform-wrap iframe {
  display: block;
  width: 100%;
  /* Googleフォーム全体がスクロールなしで収まる高さ（フォームの項目を
     増やしたときは、ここと下のモバイル用の値を増やすこと） */
  min-height: 1120px;
  border: 0;
}

@media (max-width: 600px) {
  .gform-wrap iframe {
    min-height: 1260px;
  }
}

.gform-fallback {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

/* --- CTA帯 --- */
.cta {
  background: linear-gradient(120deg, var(--navy-dark), var(--blue));
  color: #fff;
  padding: 72px 20px;
  text-align: center;
}

.cta__title {
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cta__text {
  margin-top: 12px;
  font-size: 14.5px;
  opacity: 0.9;
}

.cta__phone {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--font-en);
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.cta__phone small {
  display: block;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.cta__hours {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 4px;
}

.cta__actions {
  margin-top: 28px;
}

/* --- フッター --- */
.site-footer {
  background: var(--navy-dark);
  color: #fff;
  padding: 56px 20px 32px;
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-info img {
  height: 40px;
  width: auto;
  margin-bottom: 18px;
}

.footer-info address {
  font-style: normal;
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.9;
}

.footer-nav {
  display: grid;
  gap: 10px;
}

.footer-nav a {
  color: #fff;
  font-size: 14px;
  opacity: 0.85;
}

.footer-nav a:hover { opacity: 1; }

.copyright {
  text-align: center;
  font-size: 12.5px;
  opacity: 0.6;
  margin-top: 48px;
  font-family: var(--font-en);
}

/* --- スクロールで出現するアニメーション --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}
