/* Global Settings */
:root {
  --max-width: 1100px;
  --accent: #2b6cb0;
  --muted: #6b7280;
  --card: #ffffff;
  --bg: #f7fafc;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Noto Sans JP", "游ゴシック体", 'Yu Gothic', "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #111;
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 10px auto;
  padding: 0 20px;
}

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand img {
  height: 44px;
  width: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.site-title {
  font-size: 1.15rem;
  font-weight: 700;
}

nav.muted {
  font-size: 0.9rem;
}

article.post {
  background: var(--card);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 6px 18px rgba(15,23,42,0.06);
}

.post .hero {
  width: 100%;
  height: 320px;
  background: #e6eef9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 18px;
}

.post h1 {
  font-size: 1.9rem;
  margin: 0 0 8px 0;
}

/* --- 記事内の画像がレイアウトを崩さないようにする --- */
.post img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px 0;
}

.meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.meta img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.lead {
  font-size: 1.05rem;
  color: #233;
  line-height: 1.8;
  margin-bottom: 18px;
}

/* article content formatting */
.post p {
  line-height: 1.9;
  margin: 16px 0;
}

.post h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
}

.post ul {
  padding-left: 1.1rem;
}

.post blockquote {
  border-left: 3px solid #d1e3ff;
  padding: 12px 16px;
  background: #f6fbff;
  border-radius: 6px;
  color: #16325c;
  margin-left: auto;
}

.figure {
  margin: 18px 0;
  border-radius: 8px;
  overflow: hidden;
}

.figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* Author Box */
.author-box {
  display: flex;
  gap: 14px;
  align-items: center;
  border-top: 1px solid #eef2f7;
  padding-top: 18px;
  margin-top: 22px;
}

.author-box .info {
  font-size: 0.95rem;
}

/* Sidebar */
aside.sidebar {
  position: relative;
}

.card {
  background: var(--card);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.04);
}

.related-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.related-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.related-item img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
}

.cta {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
}

footer.site-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #e6eef5;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .post .hero {
    height: 220px;
  }

  .related-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .post h1 {
    font-size: 1.5rem;
  }


  .related-list {
    grid-template-columns: 1fr;
  }

  .brand img {
    height: 36px;
    width: 36px;
  }
}

/* Specific Styling for one-column layout */
.related-list.one-column {
  grid-template-columns: 1fr !important;
}

/* ============================
   全デバイス共通：1カラム構成
============================ */
main.layout {
  display: block;
}

/* 記事とサイドバーの間に余白をつける */
aside.sidebar {
  margin-top: 32px;
}


/* === main（レイアウト全体） === */

/* --- スマホ対応 --- */
@media (max-width: 768px) {
  main.layout {
    grid-template-columns: 1fr; /* 1カラムに変更 */
  }

  .sidebar {
    margin-top: 32px;
  }

  .related-item {
    flex-direction: row; /* ←スマホでも横並びにしたい場合は row */
    align-items: center;
  }

  .related-item img {
    width: 80px;
    height: 60px;
  }
}

/* === SNSブロック全体 === */
.sns-block {
  text-align: center;
}

.sns-block h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/* SNSリンク一覧（常に縦並び） */
.sns-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* 各SNSボタン */
.sns-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 90%;
  max-width: 280px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  border-radius: 9999px;
  padding: 10px 16px;
  font-size: 14px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.sns-btn img {
  width: 22px;
  height: 22px;
}

/* === 各SNSのブランドカラー === */
.sns-btn.twitter {
  background-color: #000000; /* X（旧Twitter）は黒 */
}

.sns-btn.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.sns-btn.youtube {
  background-color: #ff0000;
}

.sns-btn.line {
  background-color: #06c755;
}

/* === ホバー効果 === */
.sns-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* === レスポンシブ === */
@media (max-width: 560px) {
  .sns-btn {
    width: 100%;
    font-size: 13px;
    padding: 10px 12px;
  }

  .sns-btn img {
    width: 20px;
    height: 20px;
  }
}

/* デフォルトでは両方非表示にしておくと安全 */
.pc-only,
.sp-only {
  display: none;
}

/* --- PC（769px以上）で表示 --- */
@media (min-width: 769px) {
  .pc-only {
    display: block; /* または flex/grid など状況に応じて */
  }
}

/* --- スマホ（768px以下）で表示 --- */
@media (max-width: 768px) {
  .sp-only {
    display: block;
  }
}



/* ============================
   ブログ記事型LP 専用スタイル追加
============================ */

/* ヘッダー */
.article-header {
  background: var(--gray-bg);
  padding: 5px 0 5px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.article-header .category {
  display: inline-block;
  background: #e0f3eb;
  color: #067f3e;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.article-header h1 {
  font-size: 1.8rem;
  margin: 0 0 10px;
  line-height: 1.4;
}

.article-header .date {
  color: #888;
  font-size: 0.9rem;
}

/* 記事本文 */
.article-main {
  background: #fff;
}

.article-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5px 20px 80px;
}

.article-content h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 16px;
  border-left: 4px solid var(--green);
  padding-left: 10px;
}

.article-content p {
  margin-bottom: 20px;
  color: var(--text);
}

.article-img {
  width: 100%;
  max-width: 700px;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
}

/* CTAボックス */
.cta-box {
  text-align: center;
  background: var(--gray-bg);
  padding: 32px 20px;
  margin: 40px 0;
  border-radius: 12px;
  border: 1px solid #eee;
}

.cta-box h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--green);
}

.cta-box p {
  margin-bottom: 20px;
  color: var(--muted);
}

/* ポイント枠 */
.point-box {
  background: #fff8e5;
  border-left: 5px solid #ffd65a;
  padding: 15px 5px;
  margin: 30px 0;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.7;
}
/* ===== PC表示のみ幅を調整 ===== */
@media (min-width: 769px) {
  .point-box {
    width: 70%;
    margin: 40px auto; /* 中央寄せ */
    max-width: 720px;  /* 広がりすぎ防止 */
  }
}

/* 関連記事 */
.related {
  padding: 20px 0;
  background: var(--gray-bg);
}

.related h2 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.related-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.2s;
}

.related-item:hover {
  transform: translateY(-4px);
}

.related-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.related-item div {
  padding: 12px;
  font-size: 0.95rem;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .article-header h1 {
    font-size: 1.1rem;
  }

  .cta-box {
    padding: 24px 16px;
  }

  .article-content h2 {
    font-size: 1.2rem;
  }
}

/* --- 記事内で特定画像を70%幅にしたいとき --- */
.article-img.narrow {
  width: 70%;
  max-width: 700px;
  display: block;
  margin: 24px auto;
  border-radius: 8px;
}

/* スマホでは自動的に全幅に戻す */
@media (max-width: 768px) {
  .article-img.narrow {
    width: 100%;
  }
}

/* 電話番号リンクを目立たせる */
.tel-link {
  font-size: 1.3rem;  /* ←ここで大きさ調整（例：1.3rem ≒ 21px） */
  font-weight: bold;
  color: var(--accent);  /* アクセントカラー（青など） */
  text-decoration: none;
}

.tel-link:hover {
  text-decoration: underline;
}

/* === フッター === */
.footer {
  background: #f9fafb;
  color: #555;
  font-size: 0.9rem;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #e6e6e6;
}

.footer nav {
  margin-top: 8px;
}

.footer nav a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 12px; /* ← ここでリンク間のスペースを設定 */
}

.footer nav a:hover {
  text-decoration: underline;
}

/* ============================
   PCのみ：SNSを2列表示
============================ */
@media (min-width: 769px) {
  .sns-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    justify-items: center;
  }

  .sns-btn {
    width: 100%;
    max-width: 240px;
  }
}

/* ============================
   ポップアップ画像
============================ */
#popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-box {
  background: #fffbe6;          /* 薄い黄色 */
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  text-align: center;
  max-width: 420px;
  width: 90%;
}

#popup-close {
  margin-top: 14px;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  opacity: 0.85;
  cursor: pointer;
}

#popup-close:hover {
  opacity: 1;
  text-decoration: underline;
}

.popup-cta {
  display: inline-block;
  margin-top: 20px;
  background: #06c755;          /* LINE公式グリーン */
  color: #fff;
  font-weight: bold;
  padding: 14px 26px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 6px 16px rgba(6,199,85,0.4);
  transition: all 0.25s ease;
}

.popup-cta:hover {
  background: #05b14a;
  transform: translateY(-2px);
}

.popup-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #2d2d2d;
}

.popup-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

.popup-box img {
  width: 100%;
  height: auto;
  display: block;
}

@media screen and (min-width: 768px) {
  .popup-box {
    width: 520px;      /* ← PCで大きく */
    max-width: 70%;    /* ← 画面に対して大きめ表示 */
    padding: 24px;
  }

  #popup-close {
    font-size: 16px;   /* 閉じる文字も少し大きく */
  }
}

#popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* === YouTube 埋め込みレスポンシブ対応 === */

/* 外側：幅制御用 */
.youtube-outer {
  width: 100%;
}

/* PCのみ 70%表示 */
@media (min-width: 769px) {
  .youtube-outer.narrow {
    width: 70%;
    margin: 32px auto;
  }
}

/* 内側：縦横比固定（16:9） */
.youtube-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.youtube-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}


/* === 画像：中央揃え＆PCのみ70%表示 === */
.img-outer {
  width: 100%;
  text-align: center; /* 念のため保険 */
}

.img-outer img {
  width: 100%;
  height: auto;      /* 縦横比を保持 */
  display: block;    /* imgの余白対策 */
  margin: 0 auto;    /* 画像自体も中央寄せ */
}

@media (min-width: 769px) {
  .img-outer.narrow {
    width: 70%;
    margin: 32px auto; /* ボックス自体を中央 */
  }
}

/* ===== フォーム全体 ===== */
.box {
  margin: 40px auto;
  background-color: #ffffff;
  border: 2px solid #e6e6e6;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* PCは横幅70％ */
@media (min-width: 769px) {
  .box {
    width: 70%;
    max-width: 780px;
  }
}

.aw_layout_header {
  text-align: center;
}

.aw_layout_header img {
  max-width: 100%;
  height: auto;
  margin-bottom: 16px;
}

.lead.accent {
  color: #ff6a00;
  font-size: 1.2rem;
  line-height: 1.7;
}

.awform {
  margin: 0 auto;
  width: 100%;
  max-width: 420px;
}

.awform th,
.awform td {
  display: block;
  width: 100%;
}

.awform th {
  margin-bottom: 6px;
  font-weight: bold;
}

.awform tr {
  margin-bottom: 16px;
  display: block;
}

.awform_data input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.g-recaptcha {
  margin: 20px auto 24px;
  transform: scale(0.9);
  transform-origin: center top;
}

.aw_layout_form_submit {
  text-align: center;
}

.aw_layout_form_submit input[type="image"] {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 520px;
  height: auto;
}

@media (max-width: 768px) {
  .box {
    padding: 22px 14px;
  }

  .lead {
    font-size: 1.05rem;
  }
}

/* ===== reCAPTCHA 安定中央寄せ ===== */
.recaptcha-wrap {
  display: flex;
  justify-content: center;
}

/* PC */
@media (min-width: 769px) {
  .g-recaptcha {
    transform: scale(0.9);
    transform-origin: center;
  }
}

/* スマホ */
@media (max-width: 768px) {
  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: center;
  }
}