@charset "UTF-8";
/* ============================================================
   apj-top-template.css : APJ広報サイト トップページ専用CSS（新規）
   - 既存共通CSS3本（header / theme / decoration）の後に読み込む
   - 既存class/idは上書きしない（新規classはすべて apj-top- 接頭辞）
   - important指定は不使用
   - 色はテーマ変数（--apj-*）を参照し、既存サイトと馴染ませる
   ============================================================ */

/* ------------------------------------------------------------
   1. ヒーロー画像
   画像は差し替えるだけで縦横比に合わせて自動トリミング表示
   （aspect-ratio + object-fit。固定高さは使わない）
   ------------------------------------------------------------ */
.apj-top-hero {
  max-width: 1280px;
  margin: 14px auto 0;
  padding: 0 12px;
}

.apj-top-hero-figure {
  position: relative;
  margin: 0;
  border-radius: var(--apj-radius, 22px);
  overflow: hidden;
  box-shadow: var(--apj-shadow, 0 14px 34px rgba(64, 42, 25, .10));
}

.apj-top-hero-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;   /* PC・タブレットでの見え方。数値変更で高さ調整可 */
  object-fit: cover;
  object-position: center;
}

.apj-top-hero-caption {
  position: absolute;
  left: 24px;
  bottom: 20px;
  max-width: calc(100% - 48px);
  padding: 12px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--apj-line, #e5d7c4);
}

.apj-top-hero-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--apj-wine-dark, #3f6825);
  line-height: 1.4;
}

.apj-top-hero-sub {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--apj-muted, #6d665f);
  font-weight: 700;
}

/* ------------------------------------------------------------
   2. 本文全体の入れ物・セクション共通
   ------------------------------------------------------------ */
.apj-top-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 22px 40px;
}

/* 角丸の枠（セクション共通） */
.apj-top-section {
  background: var(--apj-theme-frame-bg, #fff);
  border: 1px solid var(--apj-theme-frame-border, #e5d7c4);
  border-radius: var(--apj-radius, 22px);
  padding: 26px 28px;
  margin: 0 0 22px;
}

/* セクション見出し（緑のアクセントバー付き） */
.apj-top-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 900;
  color: var(--apj-text, #2e2a26);
}

.apj-top-heading::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 26px;
  border-radius: 4px;
  background: var(--apj-wine, #4f7f2f);
}

/* moreボタンの置き場所 */
.apj-top-more-wrap {
  margin: 18px 0 6px;
}

/* moreボタン本体
   色・影は既存共通CSS（apj-theme-button--blue）が装飾する。
   ここではレイアウト（形・大きさ）のみ定義する。 */
.apj-top-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 26px;
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
}

/* ------------------------------------------------------------
   3. section 2: American Pet Diner 簡易説明（左：文章 / 右：画像）
   ------------------------------------------------------------ */
.apj-top-about-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 26px;
  align-items: center;
}

.apj-top-about-text p {
  margin: 0 0 10px;
}

.apj-top-about-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px dashed var(--apj-line, #e5d7c4);
  border-radius: 14px;
  background: #fffdf8;
}

.apj-top-about-image {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ------------------------------------------------------------
   4. section 3: お知らせ（1行ずつ区切り線で区切る）
   ------------------------------------------------------------ */
.apj-top-news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.apj-top-news-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 4px;
  border-bottom: 1px dashed var(--apj-line, #e5d7c4);
  overflow-wrap: anywhere;
}

.apj-top-news-list li:last-child {
  border-bottom: 0;
}

.apj-top-news-list li::before {
  content: "・";
  flex: 0 0 auto;
  color: var(--apj-wine, #4f7f2f);
  font-weight: 900;
}

/* ------------------------------------------------------------
   5. section 4: 簡易ページ説明 3カラム
   PC: 3カラム → タブレット: 2カラム → スマホ: 1カラム
   ------------------------------------------------------------ */
.apj-top-pages {
  margin: 0 0 22px;
}

.apj-top-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.apj-top-card {
  display: flex;
  flex-direction: column;
  background: var(--apj-theme-frame-bg, #fff);
  border: 1px solid var(--apj-theme-frame-border, #e5d7c4);
  border-radius: var(--apj-radius, 22px);
  padding: 20px 20px 22px;
}

.apj-top-card-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--apj-line, #e5d7c4);
  background: #fffdf8;
}

.apj-top-card-title {
  margin: 14px 0 6px;
  font-size: 18px;
  font-weight: 900;
  color: var(--apj-wine-dark, #3f6825);
}

.apj-top-card-text {
  margin: 0;
  flex: 1 1 auto;
}

.apj-top-card .apj-top-more-wrap {
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   6. section 6: FAQ（faq.htmlと同じ details/summary 方式）
   スマホでも押しやすいようタップ領域を広めに取る
   ------------------------------------------------------------ */
.apj-top-faq-list {
  display: grid;
  gap: 10px;
}

.apj-top-faq details {
  border: 1px solid var(--apj-line, #e5d7c4);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.apj-top-faq summary {
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  padding: 14px 16px;
  color: var(--apj-navy, #172a45);
  font-weight: 900;
  display: grid;
  grid-template-columns: 34px 1fr 28px;
  align-items: center;
  gap: 10px;
}

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

/* 開閉マーク（＋／−） */
.apj-top-faq summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--apj-blue-bg, #eef5ff);
  color: var(--apj-blue, #3366cc);
  font-weight: 900;
}

.apj-top-faq details[open] summary::after {
  content: "−";
  background: var(--apj-red-bg, #fff0f0);
  color: var(--apj-red, #b84242);
}

/* Qマーク */
.apj-top-faq-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--apj-wine, #4f7f2f);
  color: #fff;
  font-weight: 900;
}

.apj-top-faq-answer {
  border-top: 1px solid var(--apj-line, #e5d7c4);
  padding: 14px 16px 16px 60px;
  color: var(--apj-text, #2e2a26);
  background: #fffdf8;
}

.apj-top-faq-answer p {
  margin: 0 0 10px;
}

.apj-top-faq-answer p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   7. section 7: お問い合わせ（PC: 2カラム / スマホ: 縦並び）
   ------------------------------------------------------------ */
.apj-top-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.apj-top-contact-block {
  border: 1px solid var(--apj-line, #e5d7c4);
  border-radius: 14px;
  background: #fffdf8;
  padding: 18px 20px;
}

.apj-top-contact-block-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
  color: var(--apj-wine-dark, #3f6825);
}

.apj-top-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.apj-top-contact-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  overflow-wrap: anywhere;
}

/* ●印 */
.apj-top-contact-list li::before {
  content: "●";
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--apj-wine, #4f7f2f);
}

/* ------------------------------------------------------------
   8. レスポンシブ
   タブレット（〜1024px）: 3カラム→2カラム
   スマホ（〜720px）: 1カラム中心・縦並び
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .apj-top-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .apj-top-hero {
    padding: 0 10px;
    margin-top: 10px;
  }

  .apj-top-hero-image {
    aspect-ratio: 4 / 3;   /* スマホでは少し縦長に見せる */
  }

  .apj-top-hero-caption {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 10px 14px;
  }

  .apj-top-hero-title {
    font-size: 17px;
  }

  .apj-top-hero-sub {
    font-size: 12px;
  }

  .apj-top-main {
    padding: 18px 14px 30px;
  }

  .apj-top-section {
    padding: 20px 16px;
    margin-bottom: 16px;
  }

  .apj-top-heading {
    font-size: 19px;
  }

  /* American Pet Diner 説明：縦並び（画像は下） */
  .apj-top-about-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 3カラム→1カラム */
  .apj-top-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* お問い合わせ2枠→縦並び */
  .apj-top-contact-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* moreボタンはスマホで押しやすく幅広に */
  .apj-top-more {
    width: 100%;
    min-height: 46px;
  }
}
