body {
  background: #fffae9;
}

main {
  margin-top: 120px;
  font-family: 'Yu Gothic', '游ゴシック', 'YuGothic', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  background: #fffde9;
  min-height: 60vh;
}

/* --- 注文3ボックス --- */
.order-list {
  display: flex;
  gap: 16px;
  margin: 40px auto 60px auto;
  max-width: 1100px;
  justify-content: center;
}
.order-item {
  background: #fff;
  border: 2.5px solid #222;
  border-radius: 20px;
  text-align: center;
  padding: 32px 0 30px 0;
  flex: 1 1 0%;
  min-width: 200px;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: none;
  justify-content: space-between;
}
.order-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 2px;
  letter-spacing: 0.1em;
  color: #222;
}
.item-img-bg {
  border-radius: 1px;
  margin-bottom: 5px;
  width: 100%;
  min-height: 130px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  padding: 0;
}
.order-item img, .item-img-bg img {
  width: 100%;
  max-width: none;
  max-height: 170px;
  object-fit: contain;
  border-radius: 1px;
  display: block;
  margin: 0;
}
.order-btn {
  background: #ffae2e;
  color: #fff;
  border: none;
  padding: 9px 32px;
  border-radius: 999px;
  margin-top: 5px;
  font-size: 1.04rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: none;
  transition: background .18s;
  letter-spacing: 0.23em;
}
.order-btn:hover {
  background: #e9a100;
}

/* --- ヒーロータイトル --- */
.hero {
  text-align: center;
  padding: 12px 0;
}
.hero-title {
  font-size: 2.1rem;
  letter-spacing: 0.05em;
  font-weight: bold;
  margin-bottom: 8px;
  color: #222;
  word-break: keep-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 98vw;
  transition: font-size 0.2s;
}
.hero-sub {
  font-size: 1.13rem;
  color: #888;
  letter-spacing: 0.13em;
}

/* --- 詳細セクション --- */
.section-detail {
  max-width: 1080px;
  margin: 0 auto 44px auto;
  padding: 0 10px;
}
.section-block {
  padding: 24px 6px 18px 6px;
  background: none;
  border: none;
  margin: 0;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1.14rem;
  font-weight: bold;
}
.section-title {
  color: #222 !important;
  font-size: 1.12rem !important;
  font-weight: bold !important;
  padding: 4px 5px !important;
  margin-right: 18px !important;
  border: 1px solid #222 !important;
  background: #fff964 !important;
  border-radius: 11px !important;
  display: inline-block !important;
  letter-spacing: 0.04em !important;
  line-height: 1.3 !important;
}


.section-sub {
  color: #888;
  font-size: 0.99rem;
  font-weight: normal;
}
.section-body {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-start;
}
.section-imgs {
  flex: 3;
 /* flex: 0 0 440px; 
  max-width: 440px;
  min-width: 180px;
  width: 440px;*/
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  height: 270px;
}
.section-imgs img {
  width: 100%;
  max-width: 100%;
  max-height: 260px;
  border-radius: 7px;
  background: none;
  transition: opacity 0.7s;
  opacity: 1;
  position: relative;
  top: 0; left: 0;
  object-fit: contain;
}
.section-desc {
  flex: 2;
/*  flex: 1 1 0; */
  font-size: 1.01rem;
  color: #222;
  line-height: 1.7;
  margin-left: 0;
  min-width: 180px;
  max-width: 60%;
}

/* --- 仕切り線 --- */
.section-divider {
  border-bottom: 1.5px solid #bbb;
  margin: 38px 0 18px 0;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* --- スキャン/リバース用特殊 --- */
.order-title .title-second {
  display: inline;
}
/* ボックス全体をクリック可能に（文字装飾は出さない） */
.order-item { position: relative; }
.order-item .order-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
  color: inherit;
}
/* 見積りボタンは上に（クリック可） */
.order-item .order-btn {
  position: relative;
  z-index: 2;
}
/* 念のため：ボックス内のリンク装飾を無効化 */
.order-item a { text-decoration: none; color: inherit; }

/* ページ内リンクのスクロール時、ヘッダーかぶりを回避 */
.section-head { scroll-margin-top: 80px; }  /* ヘッダーの高さに合わせて調整 */

section.faq{
  max-width: 1100px;          /* 幅を上限1100pxに収める */
  margin: 0 auto;             /* 画面中央に配置 */
  padding: 0 24px;            /* PCの左右余白 */
  box-sizing: border-box;
}

/* ===== 質問と回答の間隔・回答の1字下げ・各質問の間隔 ===== */
section.faq details{ 
  margin-bottom: 16px;        /* 次の質問との間隔 */
}
section.faq details > div{
  margin-top: 8px;        /* 質問と回答の隙間 */
  padding-left: 1em;      /* 2行目以降も1文字下げ */
  text-indent: 0;         /* 先頭行だけ2重に下がらないように */
  line-height: 1.8;
}
/* リード文の余白・幅 */
.page-lead{
  max-width:1100px;
  margin:16px auto 24px;
  padding:0 16px;
  line-height:1.9;
}
/* page-lead内リンク：黒＋下線を維持 */
.page-lead a,
.page-lead a:visited{
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;  /* 下線を少し離す（任意） */
}

/* ホバー/フォーカス時（任意） */
.page-lead a:hover,
.page-lead a:focus{
  text-decoration-thickness: 2px; /* 少し太くして可視化 */
}

/* --- SP 640px以下 ---------------------------------------------+- */
@media (max-width: 640px) {

main {
    margin-top: 70px;
  }
 
  .hero {
   text-align: center;
   padding: 3px 0;
  } 
  .hero-title {
    font-size: 1.17rem;
    white-space: normal;
    word-break: break-word;
    max-width: 97vw;
    line-height: 1.25;
    padding: 0 6px;
  }

  .order-title .title-second {
  display: inline;
  }

  .order-title {
    text-align: center;
    line-height: 1.4;
  }
  .order-title .title-first::after {
    content: "";
    display: block;
  }
  .order-title .title-second {
    display: block;
  }



  .order-list {
    flex-direction: column;
    gap: 18px;
    max-width: 98vw;
    margin: 10px 3px 15px 3px;
  }
  .order-item {
    min-width: 0;
    min-height: 440px;
    padding: 12px 0vw;
  }
  .item-img-bg {
    width: 100%;
    min-height: 160px;
    height: 160px;
    margin-bottom: 2px;
    padding: 0 !important;
  }
  .order-item img, .item-img-bg img {
    max-width: 100vw;
    width: 100%;
    height: auto;
    object-fit: cover;
    min-width: 0;
    max-height: 190px;
    margin: 0;
    padding: 0;
  }
  .section-detail { padding: 0 2vw; }
  .section-body {
    flex-direction: column !important;
    align-items: stretch;
    gap: 10px;
  }
  .section-imgs {
    width: 80vw;
    min-width: 0;
    max-width: 80vw;
    margin: 0 auto 10px auto;
    height: auto;
    max-height: 240px;
  }
  .section-imgs img {
    width: 80vw;
    max-width: 80vw;
    max-height: 240px;
    position: static;
    margin: 0 auto;
    height: auto;
  }
  .section-desc {
    margin-left: 0;
    min-width: 0;
    max-width: 100vw;
  }
 .order-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 96vw;
    margin: 22px auto 38px auto;
  }

  .order-item {
    min-width: 0;
    min-height: 300px;
    padding: 8px 0vw;
  }
  section.faq { 
    padding-left: 16px !important;
    display: block;
  }
  section.faq{ padding: 0 16px; }  /* SPの左右余白 */
}
.page-lead{ margin:12px auto 16px; padding:0 12px; }
}