/* ============================================
   ニュースレター株式会社 コーポレートサイト
   パレット・共通部品・マーキー・管理画面
   ============================================ */

:root {
  --cream: #f6eee1;
  --cream-deep: #f0e5d2;
  --gold: #b98d3e;
  --gold-light: #d9c08a;
  --gold-pale: #ecdfc2;
  --deep-red: #922d40;
  --deep-red-dark: #741f30;
  --ink: #251716;
  --ink-soft: #55503f;
  --dark: #1e1a16;
  --white: #ffffff;
  --header-h: 100px;
  --font-sans: "游ゴシック体", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-serif), "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.9;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 共通見出し（字間広めの明朝） ---------- */
.sec-heading {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-align: center;
  color: var(--ink);
}

.sec-heading--left {
  text-align: left;
}

/* ---------- ボタン ---------- */
.btn-primary {
  display: inline-block;
  background: var(--deep-red);
  color: var(--white);
  padding: 15px 42px;
  font-size: 15px;
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
  transition: background 0.25s;
}

.btn-primary:hover {
  background: var(--deep-red-dark);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.14em;
}

.link-arrow::after {
  content: "→";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--deep-red);
  color: var(--white);
  font-size: 12px;
  transition: background 0.25s;
}

.link-arrow:hover::after {
  background: var(--deep-red-dark);
}

/* ============================================
   ヘッダー（FVの上では透明、スクロールで生成りに）
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s, box-shadow 0.3s, height 0.3s;
}

.header.is-solid {
  background: rgba(250, 245, 236, 0.96);
  box-shadow: 0 1px 14px rgba(43, 38, 32, 0.08);
  height: 76px;
}

.header__inner {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.header__logo-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.header__logo-org {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.header__logo-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
  font-family: var(--font-sans);
  min-width: 0;
}

.header__nav a {
  font-size: 15px;
  letter-spacing: 0.04em;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--deep-red);
}

.header__contact {
  flex: none;
  background: var(--deep-red);
  color: var(--white) !important;
  padding: 13px 26px;
  font-size: 15px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background 0.25s;
}

.header__contact:hover {
  background: var(--deep-red-dark);
}

.header__burger {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  position: relative;
}

.header__burger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}

.header__burger span:nth-child(1) { top: 13px; }
.header__burger span:nth-child(2) { top: 20px; }
.header__burger span:nth-child(3) { top: 27px; }

.header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* SPメニュー */
.header__drawer {
  display: none;
}

/* ナビ5項目＋ボタンは約1080px必要。それ未満はハンバーガーに切り替える
   （切替が遅いとお問い合わせボタンが押し潰れる） */
@media (max-width: 1080px) {
  .header__nav {
    display: none;
  }

  .header__burger {
    display: block;
  }

  .header__drawer {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 12px 28px 28px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .header__drawer.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header__drawer a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 14px;
    letter-spacing: 0.1em;
  }

  .header__drawer .header__contact {
    margin-top: 16px;
    text-align: center;
    border-bottom: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }
}

/* ============================================
   FV（ファーストビュー）
   ============================================ */
.fv {
  position: relative;
  padding-top: var(--header-h);
  background-color: var(--cream);
  background-image: url("/fv-bg.svg");
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}

.fv__inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 96px 28px 0;
}

.fv__catch {
  /* 参考サイト実測: 40px / letter-spacing 0.17em / weight 500 / #251716 */
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1;
  color: var(--ink);
  position: relative;
  padding-left: 20px;
}

.fv__catch::before {
  /* 参考サイトの見出し横の水平線（左端から途切れて届く線） */
  content: "";
  position: absolute;
  left: -160px;
  top: 50%;
  width: 130px;
  height: 1px;
  background: var(--ink);
}

.fv__sub {
  margin-top: 34px;
  font-size: 16px;
  letter-spacing: 0.12em;
  line-height: 1.8;
  padding-left: 22px;
}

.fv__marquee-area {
  margin-top: 64px;
  padding-bottom: 100px;
}

/* ---------- マーキー（見開きが左へ流れる） ---------- */
.marquee {
  overflow: hidden;
  width: 100%;
}

.marquee__track {
  display: flex;
  align-items: flex-start;
  width: max-content;
  animation: marquee-scroll var(--marquee-duration, 60s) linear infinite;
  will-change: transform;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    /* トラックは同一セットを2回並べているため -50% でシームレスに一周する */
    transform: translateX(-50%);
  }
}

.marquee__set {
  display: flex;
  align-items: flex-start;
  flex: none;
}

.marquee__item {
  flex: none;
  /* サーバ側で計算した寸法。SPは --m-scale で丸ごと縮小する */
  width: calc(var(--iw) * var(--m-scale, 1));
  height: calc(var(--ih) * var(--m-scale, 1));
  margin-top: calc(var(--ioff) * var(--m-scale, 1));
  margin-right: calc(23px * var(--m-scale, 1));
}

.marquee__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* 参考サイトの書影はほぼ影なしのフラット配置 */
  box-shadow: 0 3px 10px rgba(43, 38, 32, 0.1);
  background: var(--white);
}

@media (max-width: 900px) {
  .marquee {
    --m-scale: 0.62;
  }
}

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

/* ---------- 新着情報 ---------- */
.news__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.news__more {
  align-self: flex-end;
}

.news__list {
  margin-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.news__row {
  display: flex;
  gap: 34px;
  padding: 20px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 14.5px;
}

.news__date {
  color: #9a917f;
  flex: none;
  letter-spacing: 0.06em;
}

/* ---------- 問いかけ（暗背景） ---------- */
.invite {
  position: relative;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(201, 168, 106, 0.22), transparent 52%),
    radial-gradient(ellipse at 12% 90%, rgba(146, 45, 64, 0.16), transparent 55%),
    linear-gradient(118deg, #262019 0%, #383025 48%, #1c1712 100%);
  color: var(--white);
  padding: 108px 0;
}

.invite::after {
  /* 細い金のアクセントライン */
  content: "";
  position: absolute;
  right: 0;
  bottom: 46px;
  width: 38%;
  height: 1px;
  background: linear-gradient(to left, rgba(201, 168, 106, 0.65), transparent);
}

.invite__heading {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.22em;
  position: relative;
  padding-left: 130px;
  margin-bottom: 36px;
}

.invite__heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 110px;
  height: 1px;
  background: var(--white);
}

.invite__paras {
  max-width: 760px;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 2.3;
  display: grid;
  gap: 22px;
}

/* ---------- 事業紹介 3カード ---------- */
.whatis__mark {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
}

.whatis__cards {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.whatis-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.whatis-card__visual {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, var(--gold-pale), var(--cream-deep) 45%, var(--gold-light));
  position: relative;
  overflow: hidden;
}

.whatis-card__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.whatis-card:hover .whatis-card__visual img {
  transform: scale(1.04);
}

.whatis-card__body {
  padding: 0 22px 26px;
  margin-top: -28px;
  position: relative;
}

.whatis-card__title {
  background: var(--white);
  padding: 16px 18px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.whatis-card__title::after {
  content: "→";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--deep-red);
  color: var(--white);
  font-size: 12px;
  transition: background 0.25s;
}

.whatis-card:hover .whatis-card__title::after {
  background: var(--deep-red-dark);
}

.whatis-card__desc {
  margin-top: 16px;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  line-height: 2.1;
  color: var(--ink-soft);
}

/* ---------- 理念 ---------- */
.philosophy {
  background:
    linear-gradient(rgba(253, 248, 239, 0.92), rgba(253, 248, 239, 0.92)),
    url("/paper-texture.svg");
  background-size: auto, 380px;
  padding: 96px 0;
}

.philosophy__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 60px;
  align-items: center;
}

.philosophy__heading {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 2;
}

.philosophy__paras {
  display: grid;
  gap: 16px;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  line-height: 2.2;
  color: var(--ink-soft);
}

/* ---------- 実績ギャラリー ---------- */
.gallery__grid {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.gallery__grid img {
  height: 190px;
  width: auto;
  box-shadow: 0 8px 22px rgba(43, 38, 32, 0.16);
  background: var(--white);
}

.gallery__more {
  text-align: center;
  margin-top: 44px;
}

.gallery__empty {
  text-align: center;
  color: #9a917f;
  font-size: 14px;
  padding: 30px 0;
}

/* ---------- バナー2枚 ---------- */
.banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.banner {
  position: relative;
  color: var(--white);
  padding: 44px 36px;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(185, 141, 62, 0.28), transparent 60%),
    linear-gradient(115deg, #2c2620, #1e1a16 70%);
  transition: opacity 0.25s;
}

.banner:hover {
  opacity: 0.88;
}

.banner__title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.8;
  white-space: pre-line;
}

.banner__desc {
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 2;
  align-self: flex-end;
  max-width: 320px;
}

/* ---------- フッター ---------- */
.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 64px 0 28px;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.footer__addr {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  line-height: 2;
}

.footer__links a {
  display: block;
  padding: 7px 0;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--deep-red);
}

.footer__copy {
  margin-top: 52px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: #9a917f;
}

/* ---------- 会社概要テーブル ---------- */
.profile-table {
  margin-top: 56px;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.profile-table__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.profile-table__row dt {
  padding: 22px 18px;
  background: var(--cream);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.profile-table__row dd {
  padding: 22px 24px;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  line-height: 2;
}

@media (max-width: 640px) {
  .profile-table__row {
    grid-template-columns: 108px 1fr;
  }

  .profile-table__row dt {
    padding: 18px 12px;
    font-size: 13px;
  }

  .profile-table__row dd {
    padding: 18px 14px;
    font-size: 13.5px;
  }
}

/* ============================================
   レスポンシブ
   ============================================ */
@media (max-width: 900px) {
  .section {
    padding: 60px 0;
  }

  .sec-heading {
    font-size: 22px;
  }

  .fv__inner {
    padding-top: 48px;
  }

  .fv__catch::before {
    display: none;
  }

  .fv__catch {
    padding-left: 0;
  }

  .fv__sub {
    padding-left: 2px;
  }

  .fv__marquee-area {
    margin-top: 40px;
    padding-bottom: 60px;
  }

  .invite__heading {
    padding-left: 0;
    font-size: 21px;
  }

  .invite__heading::before {
    display: none;
  }

  .whatis__cards {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .philosophy__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gallery__grid img {
    height: 120px;
  }

  .banners {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .banner__desc {
    align-self: flex-start;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ============================================
   管理画面・ログイン
   ============================================ */
.admin-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

.admin-panel {
  background: #fff;
  border: 1px solid #e6dfd2;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 6px 24px rgba(43, 38, 32, 0.06);
}

.admin-upload {
  border: 2px dashed #d8cfbc;
  border-radius: 8px;
  padding: 20px;
  background: #fbf8f1;
}

.admin-btn {
  background: var(--deep-red);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 13.5px;
}

.admin-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.admin-btn--ghost {
  background: #efe9dc;
  color: var(--ink);
}

.admin-btn--danger {
  background: #fff;
  color: #b0323c;
  border: 1px solid #e3b6ba;
}

.admin-input {
  border: 1px solid #d8cfbc;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
}

.admin-savebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fdf3e2;
  border: 1px solid #ecd9b4;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 14px 0;
  font-size: 13.5px;
}

.admin-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.admin-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #eee7d8;
  border-radius: 8px;
  padding: 10px 14px;
}

.admin-item__no {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #efe9dc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
}

.admin-item__thumb {
  width: 150px;
  height: 84px;
  object-fit: contain;
  background: #f4f0e7;
  border-radius: 4px;
  flex: none;
}

.admin-item__meta {
  flex: 1;
  font-size: 13px;
  min-width: 0;
}

.admin-item__actions {
  display: flex;
  gap: 6px;
  flex: none;
}

@media (max-width: 640px) {
  .admin-item {
    flex-wrap: wrap;
  }

  .admin-item__thumb {
    width: 110px;
    height: 62px;
  }
}

/* ============================================
   文言編集（/edit）: 左フォーム + 右ライブプレビュー
   ============================================ */
.edit-layout {
  display: grid;
  grid-template-columns: minmax(380px, 520px) 1fr;
  height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.7;
  background: #f2ede3;
}

.edit-pane {
  overflow-y: auto;
  padding: 22px 26px 60px;
  background: #fff;
  border-right: 1px solid #e6dfd2;
}

.edit-pane__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.edit-status {
  font-size: 12.5px;
  color: #6d8a5a;
  white-space: nowrap;
}

.edit-status--pending,
.edit-status--saving {
  color: #a3823c;
}

.edit-status--error {
  color: #b0323c;
}

.edit-group {
  border: 1px solid #eee7d8;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 0 14px;
  background: #fffdf8;
}

.edit-group > summary {
  cursor: pointer;
  padding: 12px 2px;
  font-weight: 600;
  font-size: 14px;
  user-select: none;
}

.edit-group[open] {
  padding-bottom: 14px;
}

.edit-subgroup {
  border-top: 1px dashed #e6dfd2;
  margin-top: 12px;
  padding-top: 10px;
}

.edit-field {
  display: block;
  margin-bottom: 12px;
}

.edit-field__label {
  display: block;
  font-size: 12.5px;
  color: #6d675c;
  margin-bottom: 4px;
}

.edit-field__label small {
  color: #a39b8c;
  font-weight: 400;
}

.edit-field__input {
  width: 100%;
  font-family: inherit;
  resize: vertical;
}

.edit-news-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.edit-preview {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.edit-preview__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  font-size: 12.5px;
  color: #6d675c;
  background: #faf7f0;
  border-bottom: 1px solid #e6dfd2;
}

.edit-preview__frame {
  flex: 1;
  border: none;
  width: 100%;
  background: #fff;
}

@media (max-width: 900px) {
  .edit-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .edit-preview {
    height: 70vh;
    border-top: 2px solid #e6dfd2;
  }
}

/* ============================================
   お問い合わせフォーム（/contact）
   ============================================ */
.cform {
  margin-top: 48px;
  display: grid;
  gap: 26px;
}

.cform__row {
  display: grid;
  gap: 9px;
}

.cform__label {
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cform__req {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--deep-red);
  padding: 2px 8px;
  border-radius: 2px;
}

.cform__input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--gold-pale);
  border-radius: 2px;
  padding: 12px 14px;
  transition: border-color 0.2s;
}

.cform__input:focus {
  outline: none;
  border-color: var(--gold);
}

.cform__input:disabled {
  background: #f7f4ee;
}

.cform__textarea {
  resize: vertical;
  min-height: 190px;
}

.cform__count {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink-soft);
  text-align: right;
}

/* ハニーポット。表示もフォーカスもさせないが、自動投稿には見える形で残す */
.cform__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cform__err {
  color: #b0323c;
  font-size: 14px;
  line-height: 1.9;
  background: #fdf1f2;
  border: 1px solid #e9c4c8;
  border-radius: 2px;
  padding: 12px 14px;
}

.cform__note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.9;
  text-align: center;
}

.cform__submit {
  justify-self: center;
  min-width: 260px;
  border: none;
  cursor: pointer;
}

.cform__submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.cform__done {
  margin-top: 48px;
  padding: 44px 28px;
  background: var(--cream);
  text-align: center;
  line-height: 2.2;
  letter-spacing: 0.06em;
}

.cform__done-title {
  font-size: 19px;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

.cform__again {
  margin-top: 22px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  background: none;
  border-bottom: 1px solid var(--gold-light);
  padding-bottom: 2px;
  cursor: pointer;
}

/* ---------- お問い合わせ一覧（/admin/inquiries） ---------- */
.inq-list {
  display: grid;
  gap: 10px;
}

.inq-item {
  border: 1px solid #eee7d8;
  border-radius: 8px;
  overflow: hidden;
}

.inq-item__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #fbf8f1;
  border: none;
  text-align: left;
  font-size: 13.5px;
  cursor: pointer;
}

.inq-item__date {
  flex: none;
  color: #8a8378;
  font-size: 12.5px;
}

.inq-item__who {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}

.inq-item__company {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: #8a8378;
}

.inq-item__topic {
  flex: none;
  font-size: 12px;
  color: #7a6a45;
  background: #f1e9d8;
  border-radius: 999px;
  padding: 3px 12px;
}

.inq-item__caret {
  flex: none;
  color: #8a8378;
  font-size: 11px;
}

.inq-item__body {
  padding: 16px 16px 18px;
  border-top: 1px solid #eee7d8;
}

.inq-meta {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 4px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

.inq-meta dt {
  color: #8a8378;
}

.inq-meta a {
  color: #7a6a45;
}

/* 送信された本文。改行をそのまま見せ、長い語も折り返す */
.inq-item__message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.9;
  background: #fff;
  border: 1px solid #eee7d8;
  border-radius: 6px;
  padding: 14px;
}

@media (max-width: 640px) {
  .inq-item__head {
    flex-wrap: wrap;
    gap: 8px;
  }
}
