/* Tokurabo Takeout Menu Styles */
body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  color: #4A4E69;
  line-height: 1.8;
  background-color: #FDFBF7;
  margin: 0;
  box-sizing: border-box;
  /* 日本語を文節で折り返す（対応していないブラウザーではふだんどおり） */
  word-break: auto-phrase;
}

/* 最後の行に1〜2文字だけ残らないようにする */
p,
figcaption,
h2,
h3 {
  text-wrap: pretty;
}

/* 真ん中寄せの短い文は、行の長さをそろえる */
.layout-item p,
.screenshot-caption {
  text-wrap: balance;
}

*, *:before, *:after {
  box-sizing: border-box;
}

header.lp-header {
  background-color: #5C6D8C;
  color: white;
  padding: 2.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
  max-width: 750px;
  margin: 0 auto;
}

header.lp-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

@media (min-width: 600px) {
  header.lp-header h1 {
    font-size: 1.75rem;
  }
  header.lp-header {
    padding: 3rem 1.5rem;
  }
}

.tagline {
  font-size: 0.95rem;
  color: #F7E5D5;
  margin-bottom: 1.25rem;
}

@media (min-width: 600px) {
  .tagline {
    font-size: 1rem;
  }
}

main {
  padding: 1.5rem 1rem;
  max-width: 750px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-top: -1.5rem;
  position: relative;
  z-index: 10;
  margin-bottom: 3rem;
}

@media (min-width: 600px) {
  main {
    padding: 2rem 1.5rem;
    margin-top: -2rem;
  }
}

section {
  margin-bottom: 2.5rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #4A4E69;
  text-align: center;
  line-height: 1.3;
}

/* 見出しの上の小さなラベル（Features・Setup など） */
.section-label {
  margin: 0 0 4px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5C6D8C;
}

.section-label + h2 {
  margin-top: 0;
}

/* 見出しの下の短い線（ヒーローの見出しには付けない） */
section > h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 2px;
  background-color: #5C6D8C;
}

@media (min-width: 600px) {
  h2 {
    font-size: 1.375rem;
  }
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #4A4E69;
  line-height: 1.3;
}

p {
  font-size: 1rem;
  font-weight: 400;
  color: #4A4E69;
  line-height: 1.8;
  margin-top: 0;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.hero-image {
  width: 100%;
}

@media (min-width: 600px) {
  .hero {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
  }
  .hero-content {
    flex: 1;
  }
  .hero-image {
    flex: 1;
  }
}

.hero-content h2 {
  text-align: left;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 600px) {
  .hero-content h2 {
    font-size: 1.75rem;
  }
}

.hero-content p {
  color: #4A4E69;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* PC 表示ではボタンを縦に並べ、長いほうの幅にそろえる */
@media (min-width: 600px) {
  .hero-cta {
    display: inline-flex;
    flex-direction: column;
  }
}

.btn-primary {
  background-color: #5C6D8C;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background-color: #4A4E69;
}

.btn-secondary {
  background-color: #F7E5D5;
  color: #4A4E69;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #5C6D8C;
  transition: all 0.15s ease;
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  background-color: #D5E8D4;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: #FDFBF7;
  border: 1px solid rgba(92, 109, 140, 0.2);
  padding: 20px;
  border-radius: 8px;
  /* アイコンとタイトルを横に並べ、本文・写真はその下に全幅で置く */
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: center;
  align-content: start;
}

.feature-card > *:not(.feature-icon):not(h3) {
  grid-column: 1 / -1;
}

.feature-icon {
  width: 1.5em;
  height: 1.5em;
  stroke: #5C6D8C;
  stroke-width: 2;
  display: block;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  color: #4A4E69;
}

.feature-card p {
  color: #4A4E69;
  font-size: 0.95rem;
  margin: 8px 0 0;
}

/* Layout Showcase Section */
.layout-showcase-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.layout-item {
  border: 1px solid rgba(92, 109, 140, 0.2);
  padding: 1.5rem 1rem;
  border-radius: 8px;
  background: #FDFBF7;
  text-align: center;
}

@media (min-width: 600px) {
  .layout-item {
    padding: 2rem 1.5rem;
  }
}

.layout-item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.layout-caption {
  font-size: 0.95rem;
  color: #4A4E69;
  margin-bottom: 1.25rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Layout Specific Images */
.layout-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

/* Card型: 本来の比率（コンパクトな縦型）を守るため横幅を絞る */
.screenshot-img--card {
  width: 100%;
  max-width: 320px;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  margin: 0 auto;
}

/* Wide型 & List型: 横長のプロポーション */
.screenshot-img--wide,
.screenshot-img--list {
  width: 100%;
  max-width: 560px;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  margin: 0 auto;
}

/* General Images */
img {
  max-width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid rgba(92, 109, 140, 0.2);
}

/* スマホで見たメニューのページ。スマホの形に見えるよう幅を絞り、上の部分だけ見せる */
.hero-image img {
  width: 100%;
  max-width: 240px;
  height: 420px;
  max-height: none;
  object-fit: cover;
  object-position: top;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: block;
  margin: 0 auto;
}

.action-required img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: top;
  display: block;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .action-required img {
    max-height: 980px;
  }
}

/* 管理画面の写真とスマホの写真を並べる（スマホ表示では縦に並ぶ） */
.shot-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  background-color: #FDFBF7;
  border: 1px solid rgba(92, 109, 140, 0.2);
  border-radius: 8px;
}

@media (min-width: 600px) {
  .shot-pair {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

.shot-pair__item {
  margin: 0;
  text-align: center;
}

.shot-pair__item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0 auto;
}

/* スマホの写真は、スマホ表示のときに大きくなりすぎないよう幅を絞る */
.shot-pair__item--phone img {
  max-width: 240px;
  border-radius: 12px;
}

.shot-pair__item .screenshot-caption {
  margin: 8px 0 0;
}

/* 1枚だけのとき。カードの中で枠が重ならないよう箱はなくし、写真に枠を1本だけ付ける。
   縦長の写真が大きくなりすぎないよう幅を絞る */
.shot-pair.shot-pair--single {
  padding: 0;
  background-color: transparent;
  border: none;
}

.shot-pair--single .shot-pair__item img {
  max-width: 600px;
  border: 1px solid rgba(92, 109, 140, 0.2);
  border-radius: 8px;
}

@media (min-width: 600px) {
  .shot-pair--single {
    grid-template-columns: 1fr;
  }
}

/* 縦に長い1枚を上と下に分けて2列に並べる（どの幅でも2列）。
   元の写真は 973×3851。ちょうど半分（1925.5px）で分ける */
.shot-pair.shot-pair--split {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.shot-split__part {
  overflow: hidden;
  border: 1px solid rgba(92, 109, 140, 0.2);
  aspect-ratio: 973 / 1925.5;
}

.shot-split__part img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
}

/* 1925.5 ÷ 973 ＝ 幅の 197.89% ぶん上へずらす */
.shot-split__part--bottom img {
  margin-top: -197.89%;
}


/* 2枚を矢印でつなぐ（左から右へ。スマホ表示では上から下へ） */
.shot-pair--flow {
  align-items: center;
}

.shot-pair__arrow {
  width: 32px;
  height: 32px;
  margin: 0 auto;
  color: #5C6D8C;
  transform: rotate(90deg);
}

@media (min-width: 600px) {
  .shot-pair--flow {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .shot-pair__arrow {
    transform: none;
  }
}

/* Steps */
.steps-list {
  list-style: none;
  padding-left: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps-list > li {
  background: #FDFBF7;
  border: 1px solid rgba(92, 109, 140, 0.2);
  border-radius: 8px;
  padding: 20px 16px;
}

@media (min-width: 600px) {
  .steps-list > li {
    padding: 24px;
  }
}

/* 手順の中の小さな手順（番号つき）。外側の箱は付けず、間をあける */
.steps-list ol {
  margin: 12px 0 0;
}

.steps-list ol > li + li {
  margin-top: 16px;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
}

/* 丸の中の数字 */
.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #5C6D8C;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}

.steps-list p {
  color: #4A4E69;
  margin: 0;
}

/* 各ステップの画面写真 */
.steps-list .step-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 16px auto 0;
  border: 1px solid rgba(92, 109, 140, 0.2);
  border-radius: 8px;
}

/* 縦長の写真（プラグインの検索）は幅を絞って、ほかの写真と大きさをそろえる */
.steps-list .step-img--tall {
  max-width: 400px;
}

.action-required {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #FDFBF7;
  border: 1px solid rgba(92, 109, 140, 0.2);
  border-radius: 8px;
  max-width: 100%;
}

/* FAQ */
.faq-item {
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(92, 109, 140, 0.1);
  padding-bottom: 1rem;
}

.faq-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #4A4E69;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: #4A4E69;
  margin: 0;
}

/* Lang Switcher */
.lang-switcher {
  margin-top: 1rem;
}

.lang-switcher a {
  display: inline-block;
  text-decoration: none;
  padding: 8px 16px;
  background-color: #5C6D8C;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  margin-right: 8px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.lang-switcher a:hover {
  background-color: #4A4E69;
}

.lang-switcher a.is-active {
  background-color: #F7E5D5;
  color: #4A4E69;
  border-color: #F7E5D5;
}

footer {
  text-align: center;
  padding: 1.5rem;
  color: #4A4E69;
  font-size: 0.875rem;
}

/* WordPress.org と同じアイコン・バナー */
.header-icon {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  border-radius: 12px;
}

.lp-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 24px;
}

/* ===== ガイド（guide/）だけで使うもの ===== */
.guide-toc {
  margin: 0 0 40px;
  padding: 16px 20px;
  border: 1px solid #E3E0DA;
  border-radius: 8px;
  background-color: #FDFBF7;
}

.guide-toc p {
  margin: 0 0 8px;
  font-weight: 600;
}

.guide-toc ol {
  margin: 0;
  padding-left: 1.5em;
}

.guide-toc a {
  color: #5C6D8C;
}

.guide-section h3 {
  margin-top: 32px;
}

/* 手順でない小見出し：左に太い線（手順の見出しは丸い数字があるので付けない） */
.guide-section > h3 {
  margin-top: 40px;
  padding: 4px 0 4px 12px;
  border-left: 4px solid #5C6D8C;
  line-height: 1.5;
}

/* メモの箱：小見出しの左の線とかぶらないよう、線でなく薄い緑の箱にする */
.guide-note {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  padding: 12px 16px;
  border: 1px solid #C9DEC7;
  border-radius: 8px;
  background-color: #F2F8F1;
}

.guide-note svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: #5E8A5D;
}

/* 注意（トークンなど）：薄いピーチの箱 */
.guide-note--warn {
  border-color: #EBCDB2;
  background-color: #FBF1E8;
}

.guide-note--warn svg {
  color: #B5703A;
}

.guide-note p {
  margin: 0;
}

.guide-section code,
.guide-section pre {
  font-family: Consolas, Menlo, monospace;
  font-size: 1rem;
  background-color: #F1F3F7;
  border-radius: 4px;
}

.guide-section code {
  padding: 0 4px;
}

.guide-section pre {
  padding: 12px 16px;
  overflow-x: auto;
  line-height: 1.6;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.guide-table th,
.guide-table td {
  padding: 8px;
  border-bottom: 1px solid #E3E0DA;
  text-align: left;
  vertical-align: top;
}

/* 手順の中の小さな写真（Square のスマホくらいの幅の画面） */
.steps-list .step-img--small {
  max-width: 480px;
  margin-top: 8px;
  margin-bottom: 16px;
}

/* ページの最後の WordPress.org へのボタン（LP・ガイド） */
.download-cta {
  margin: 48px 0 8px;
  padding: 32px 16px;
  text-align: center;
  background-color: #F7E5D5;
  border-radius: 8px;
}

.download-cta p {
  margin: 0 0 24px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-download svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.download-cta .download-cta__note {
  margin: 12px 0 0;
}

/* はじめて来た人向けの紹介（LP の Features の上・ガイドの Step by step の上） */
.intro-need {
  margin-top: 24px;
  padding: 16px;
  background-color: #D5E8D4;
  border-radius: 8px;
}

.intro-need .intro-need__title {
  margin: 0 0 8px;
  font-weight: 600;
}

.intro-need ul {
  margin: 0;
  padding-left: 1.5em;
}

/* LP の最後の上位プラグインの紹介 */
.addon-section {
  margin-top: 48px;
}

.addon-cards {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 600px) {
  .addon-cards--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.addon-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid #E3E0DA;
  border-radius: 8px;
  background-color: #FFFFFF;
}

.addon-card h3 {
  margin: 0 0 8px;
}

.addon-card__price {
  display: inline-block;
  margin-left: 4px;
  padding: 0 8px;
  border-radius: 4px;
  background-color: #D5E8D4;
  font-size: 1rem;
  font-weight: 600;
  vertical-align: middle;
}

.addon-card p {
  flex: 1;
  margin: 0 0 12px;
}

.addon-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.addon-card__link svg {
  width: 20px;
  height: 20px;
}
