/* =====================
※ functions.php で読み込み例：
wp_enqueue_style('acero-order', get_theme_file_uri('assets/css/order.css'), [], '1.0');
===================== */


:root {
  --order-ink: #28332e;
  --order-dim: #7a857f;
  --order-bg: #D8DAD2;
}

.order {
  color: var(--order-ink)
}

.order p {
  font-size: 14px;
  line-height: 1.9;
}


/* =============== ORDER-HERO =============== */
.order-hero {
  background: var(--order-bg);
  margin: 5vw 10vw;
}
.order-hero__header {
  max-width: 1200px;
  display: flex;          /* ★ここで横並びにする */
  align-items: center;    /* 縦位置をそろえる */
  gap: 24px;              /* 線と文字のあいだ */
}
.order-hero__title {
  max-width: 1200px;
  margin: 0 ;
  font-size: clamp(22px, 3.8vw, 36px);
  letter-spacing: .1em;
}
.order-hero__lead {
  max-width: 1200px;
  line-height: 1.9;
  color: #1F1B13;
  font-size: 13px;
}
.order-service {
  display: block;
  margin-top: 40px;
  text-decoration: none;  
  margin: 2vw 0;
}

.order-service__bg {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.order-service__overlay {
  position: absolute;
  inset: 0;
  background: rgba(35, 25, 10, 0.55);  /* ちょい暗めのブラウン系 */
}

.order-service__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f5f0e8;
}

.order-service__title {
  letter-spacing: .25em;
  font-size: 35px;
  margin-bottom: 8px;
}

.order-service__text {
  font-size: 12px;
}

/* =============== 一覧 =============== */
.order-list {
  margin: 2vw 10vw 5vw 10vw;
  padding: 0;
  display: grid;
}

.order-card {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 22px;
  align-items: stretch;
  padding-top: 24px
}

.order-card__body {
  border-top: 1px solid #7F7667;    /* 上の線 */
  border-bottom: 1px solid #7F7667; /* 下の線 */
  padding: 20px 0;                              /* 線とテキストの余白 */
  box-sizing: border-box;
  height: 100%;                              /* 線とテキストの余白 */
}
/* コード #001 など */
.od-code {
  font-size: 20px;
  color: #1F1B13;
  letter-spacing: .14em;
  margin: 0 0 8px
}

/* タイトル（品名） */
.od-title {
  font-size: clamp(20px, 3.2vw, 28px);
  letter-spacing: .22em;
  margin: 0 0 16px
}

/* リード文（抜粋） */
.od-lead {
  font-size: 13px;
  line-height: 1.9;
  color: #1F1B13;
}
/* 仕様DL（製作日 / SIZE / 素材） */
.od-spec {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 3vw;
  font-size: 12px;
  color: var(--order-dim);
  max-width: 820px
}
.od-spec dt {
  font-weight: 600
}

.od-spec dd {
  margin: 2px 0 0
}
.order-card__media {
  width: 100%;
  max-width: 850px;        /* ここで「PCの理想サイズ」 */
  aspect-ratio: 17 / 7;    /* 850 : 350 の比率 */
  overflow: hidden;
  background: #d8d8d3;
  border-radius: 2px;
  margin-block-end: 0;
}

.order-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.order-card__media .ph {
  display: grid;
  place-items: center;
  height: 100%;
  color: #666
}

.order-card__title {
  font-size: 16px;
  letter-spacing: .22em;
  margin: 0 0 10px
}

.order-card__title a {
  text-decoration: none;
  color: inherit
}


/* =============== もっと見るボタン =============== */
.order-more {
  text-align: center;
  margin: 40px 0 80px;
}

.order-more__btn {
  display: inline-block;
  padding: 10px 140px;
  border: 1px solid black;
  font-size: 14px;
  letter-spacing: .16em;
  text-decoration: none;
  color: var(--order-ink);
  border-radius: 4px;
}

.order-more__btn:hover {
  background: var(--order-ink);
  color: #fff;
}

/* ==========================
   768px 以下：ORDER KITCHEN 一覧
   ========================== */
@media screen and (max-width: 768px) {

  /* ヒーローまわり */
  .order-hero {
    margin: 10vw 6vw 20px;
  }

  .order-hero__header {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .order-hero__title {
    font-size: 28px;
    letter-spacing: 0;
    margin: 0;
    white-space: nowrap;          /* ORDER KITCHEN を1行に */
  }

  .order-hero__header .title-line {
    width: 80px;                  /* 右のラインを短めに */
    height: 1px;
    margin: 0;
  }

  .order-hero__lead {
    font-size: 12px;
    line-height: 1.9;
    margin: 40px 0 40px;
  }
  .order-service__title {
    display: inline-block;   /* 幅指定を効かせる */
    width: 7em;              /* ここがミソ：ORDER 1語ぶん＋少し余裕 */
    letter-spacing: 0.06em;  /* 文字間を狭く */
    line-height: 1.2;
    text-align: center;      
  }
  .order-service__text{
    font-size: 12px !important;
    margin-block-start: 0;
    margin-bottom: 10vw;
  }
  /* 一覧全体の余白 */
  .order-list {
    margin: 24px 6vw 40px;
    row-gap: 40px;
  }

  /* カード：画像 → テキストの縦並び */
  .order-card {
    display: grid;
    grid-template-columns: 1fr;   /* 1カラム */
    gap: 16px;
    align-items: flex-start;
  }

  .order-card__media {
    height: auto;
  }

  .order-card__media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  .order-card__body {
    padding: 18px 0 20px;
    border-top: none;
    border-bottom: none;
    box-sizing: border-box;
  }

  /* カード内のテキスト（#001 / タイトル / リード） */
  .od-head {
    margin: 0;
  }

  .od-code {
    font-size: 13px;
    letter-spacing: .16em;
    margin: 0 0 4px;
  }

  .od-title {
    font-size: 16px !important;
    letter-spacing: .22em;
    margin: 0 0 10px;
  }

  .od-lead {
    font-size: 12px;
    line-height: 1.4 !important;
    margin: 0 0 12px;
  }

  /* 仕様（DATE / SIZE）は1列縦並び */
  .od-spec {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 10px;
  }

  .od-spec dt {
    font-weight: normal;          /* スマホでは太字をやめる */
  }

  .od-badge {
    margin-top: 12px;
    font-size: 12px;
    padding: 6px 14px;
  }

  /* 「もっと見る」ボタンを横幅いっぱいに */
  .order-more {
    margin: 32px 6vw 64px;
    text-align: center;
  }

  .order-more__btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 0;
  }

  /* CONTACT セクション（下部の緑ボックス） */
  .order-contact {
    margin: 0 0 40px;
    padding: 32px 6vw 36px;
  }

  .order-contact__inner {
    grid-template-columns: 1fr;
    text-align: center;
    row-gap: 16px;
  }

  .order-contact__title {
    font-size: 18px;
    letter-spacing: .22em;
  }

  .order-contact__lead {
    font-size: 12px;
  }

  /* FIRST ORDER / ORDER FLOW のCTA */
  .order-cta {
    grid-template-columns: 1fr;
  }

  .order-cta__item {
    min-height: 220px;
  }

  .order-cta__label {
    font-size: 18px;
    letter-spacing: .26em;
  }

  .order-cta__sub {
    font-size: 11px;
  }
}

