/*
Theme Name: CANBE Original
Theme URI: https://blog.e-canbe.com
Author: CANBE
Description: CANBE (TO JOURNEY) の世界観に合わせたフルスクラッチのオリジナルWordPressテーマ。
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: canbe
*/

:root {
  --teal: #20B2AA;
  --teal-deep: #178077;
  --aqua: #B7E1E4;
  --aqua-soft: #EAF6F6;
  --ink: #2B2B2B;
  --body-text: #5C5C5C;
  --bg: #F7F9F8;
  --card-bg: #FFFFFF;
  --font-display: 'Meiryo', 'Noto Sans JP', sans-serif;
  --font-body: 'Meiryo', 'Noto Sans JP', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--body-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; }
strong, b, .reason-title { font-weight: 500; }

.wave-divider { display: block; width: 100%; height: 20px; }
.wave-divider path { fill: none; stroke: var(--teal); stroke-width: 1.4; }

/* ヘッダー */
.site-header { background: var(--teal); padding: 0 32px; position: relative; }
.nav-row {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-display); font-size: 20px; color: #fff;
  letter-spacing: 0.06em; font-weight: 400; line-height: 1.3;
}
.logo span {
  display: block; font-family: var(--font-body); font-size: 10px;
  letter-spacing: 0.25em; font-weight: 300; color: var(--aqua-soft); margin-top: 2px;
}
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  color: #fff; font-size: 13px; letter-spacing: 0.1em; font-weight: 500;
  position: relative; padding-bottom: 4px; display: inline-block;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0%;
  height: 1px; background: #fff; transition: width 0.3s ease;
}
.main-nav a:hover::after { width: 100%; }

/* ハンバーガーボタン（スマホのみ表示） */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; background: transparent; border: none;
  cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: #fff; transition: 0.25s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ヒーロー（front-page.php専用） */
.hero {
  position: relative; min-height: 420px;
  background: linear-gradient(155deg, #cdeceb 0%, #a9d9d6 45%, #7fc3bf 100%);
  /* 実写真を使う場合は background-image を追加し、上のグラデーションと差し替えてください */
  display: flex; align-items: flex-end;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,50,48,0.55) 0%, rgba(20,50,48,0.05) 55%);
}
.hero-inner { position: relative; max-width: 1080px; margin: 0 auto; padding: 40px 32px 48px; width: 100%; }
.eyebrow { color: #fff; font-size: 12px; letter-spacing: 0.3em; font-weight: 500; margin-bottom: 16px; }
.hero-title {
  font-family: var(--font-display); color: #fff; font-size: 38px; line-height: 1.6;
  font-weight: 400; margin-bottom: 16px; max-width: 560px;
}
.hero-sub { color: #fff; font-size: 14px; letter-spacing: 0.05em; opacity: 0.92; }

/* 記事一覧セクション */
.column, .not-found, .static-page { padding: 64px 32px; }
.section-head { max-width: 1080px; margin: 0 auto 36px; }
.section-head .eyebrow-dark { font-size: 12px; letter-spacing: 0.3em; color: var(--teal-deep); font-weight: 500; margin-bottom: 6px; }
.section-head h2 { font-family: var(--font-display); font-size: 24px; color: var(--ink); font-weight: 400; }

.card-grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.card { display: flex; flex-direction: column; }
.thumb-link { display: block; }
.thumb {
  aspect-ratio: 3 / 4; border-radius: 2px; overflow: hidden; margin-bottom: 16px;
  background: linear-gradient(155deg, #dff2f1 0%, #b9e2df 55%, #f1ede4 100%);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.08em; color: var(--teal-deep);
  border: 1px solid var(--aqua); padding: 3px 10px; border-radius: 20px;
  margin-bottom: 10px; width: fit-content;
}
.card h3, .card-grid h3 {
  font-family: var(--font-display); font-size: 18px; line-height: 1.6;
  color: var(--ink); font-weight: 400; margin-bottom: 10px;
}
.meta { font-size: 12px; color: #9a9a9a; margin-bottom: 12px; letter-spacing: 0.03em; }
.meta .updated { color: var(--teal-deep); margin-left: 4px; }
.read-more { font-size: 12px; letter-spacing: 0.08em; color: var(--teal-deep); font-weight: 500; }

/* ページネーション */
.pagination { max-width: 1080px; margin: 48px auto 0; text-align: center; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; margin: 0 4px; border: 1px solid var(--aqua);
  border-radius: 50%; font-size: 13px; color: var(--teal-deep);
}
.pagination .page-numbers.current { background: var(--teal); color: #fff; border-color: var(--teal); }

/* 記事詳細ページ */
.single-post { padding: 56px 32px 72px; }
.single-inner { max-width: 760px; margin: 0 auto; }
.single-title {
  font-family: var(--font-display); font-size: 30px; line-height: 1.6;
  color: var(--ink); font-weight: 400; margin: 12px 0 12px;
}
.single-thumb { margin: 24px 0; border-radius: 2px; overflow: hidden; }
.single-thumb img { width: 100%; height: auto; }
.single-content { font-size: 15px; line-height: 2; }
.single-content p { margin-bottom: 1.6em; }
.single-content h2 { font-family: var(--font-display); font-size: 22px; color: var(--ink); font-weight: 400; margin: 2em 0 0.8em; }
.single-content h3 { font-family: var(--font-display); font-size: 18px; color: var(--ink); font-weight: 400; margin: 1.8em 0 0.6em; }
.single-content a { color: var(--teal-deep); border-bottom: 1px solid var(--aqua); }
.post-nav {
  display: flex; justify-content: space-between; gap: 20px; margin-top: 48px;
  padding-top: 24px; border-top: 1px solid var(--aqua);
  font-size: 13px; color: var(--teal-deep);
}

/* 固定ページ */
.static-inner { max-width: 760px; margin: 0 auto; }
.page-title { font-family: var(--font-display); font-size: 28px; color: var(--ink); font-weight: 400; margin-bottom: 24px; }
.page-content { font-size: 15px; line-height: 2; }
.page-content p { margin-bottom: 1.6em; }

/* 会社概要ページ */
.feature-strip { margin: 8px 0 28px; }
.feature-strip li {
  display: flex; align-items: center; gap: 12px; font-size: 15px;
  color: var(--ink); padding: 14px 4px; border-bottom: 1px solid var(--aqua);
}
.feature-strip li:first-child { border-top: 1px solid var(--aqua); }
.feature-icon { font-size: 20px; line-height: 1; }
.shop-cta {
  display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 40px;
  padding: 12px 28px; background: var(--teal); color: #fff; border-radius: 30px;
  font-size: 14px; letter-spacing: 0.05em; font-weight: 500;
}
.shop-cta:hover { background: var(--teal-deep); }
.company-table { width: 100%; border-collapse: collapse; margin-top: 40px; }
.company-table th, .company-table td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--aqua); font-size: 14px; vertical-align: top; }
.company-table th { width: 140px; color: var(--teal-deep); font-weight: 500; white-space: nowrap; }
.company-table td { color: var(--body-text); }
.company-table a { color: var(--teal-deep); border-bottom: 1px solid var(--aqua); }
.about-subhead { font-family: var(--font-display); font-size: 18px; color: var(--ink); font-weight: 400; margin: 8px 0 16px; }
.reason-list { margin: 4px 0 40px; }
.reason-list li { position: relative; padding-left: 22px; margin-bottom: 20px; }
.reason-list li::before { content: "◆"; position: absolute; left: 0; top: 3px; color: var(--teal); font-size: 10px; }
.reason-title { display: block; font-size: 14px; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.reason-desc { font-size: 13px; color: var(--body-text); line-height: 1.8; margin: 0; }
.about-more-link { margin-top: 24px; font-size: 14px; color: var(--body-text); }
.about-more-link a { color: var(--teal-deep); border-bottom: 1px solid var(--aqua); }

/* 404 */
.not-found { max-width: 760px; margin: 0 auto; text-align: center; }
.not-found h1 { font-family: var(--font-display); font-size: 48px; color: var(--teal); font-weight: 400; margin-bottom: 16px; }
.not-found p { margin-bottom: 24px; }
.cta-link { color: var(--teal-deep); border-bottom: 1px solid var(--aqua); font-size: 14px; }

/* フッター */
.site-footer { background: var(--aqua); }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 56px 32px 36px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px;
}
.footer-brand .logo-f { font-family: var(--font-display); font-size: 19px; color: var(--ink); font-weight: 400; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: #3d5a58; line-height: 2; max-width: 280px; }
.footer-brand .philosophy { font-family: var(--font-display); font-style: italic; font-size: 14px; color: var(--teal-deep); margin-top: 14px; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.12em; color: var(--teal-deep); margin-bottom: 16px; font-weight: 500; }
.footer-col li { margin-bottom: 10px; font-size: 13px; color: #3d5a58; }
.sns-row { display: flex; gap: 12px; margin-top: 4px; }
.sns-row a {
  width: 32px; height: 32px; border: 1px solid #3d5a58; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: #3d5a58;
}
.bottom-bar {
  border-top: 1px solid rgba(61,90,88,0.25); padding: 18px 32px; text-align: center;
  font-size: 11px; letter-spacing: 0.06em; color: #4d6c6a;
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    padding: 8px 32px 16px;
    border-top: 1px solid var(--aqua);
    box-sizing: border-box;
    z-index: 20;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--aqua-soft); }
  .main-nav a { color: var(--teal-deep); display: block; padding: 14px 0; font-size: 14px; }
  .main-nav a::after { display: none; }

  .hero-title { font-size: 28px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
