/*
Theme Name: My Theme
Description: VSCode と ConoHa WING で作る初心者向けテーマ
Version: 1.0
Text Domain: my-theme
*/
:root {
  /* 背景 */
  --bg-base:        #F4F1EB;
  --bg-secondary:   #E8E2D8;
  /* アクセント */
  --accent:         #D3B9A7;
  /* マップ／カード背景 */
  --grey-box:       #BDB7AE;
  /* テキスト */
  --text-main:      #4A4A4A;
  --text-muted:     #9C918A;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
}

.section-secondary {
  background-color: var(--bg-secondary);
}

a.button, .cta-button {
  background-color: var(--accent);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  text-decoration: none;
}

.map-placeholder {
  background-color: var(--grey-box);
}

p, li, small {
  color: var(--text-muted);
}

/* ——————————————— */
/* リンク全般をアクセント色に */
/* ——————————————— */
a, a:link, a:visited {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.3s;
}
a:hover, a:focus {
  opacity: 0.8;
}

/* ——————————————— */
/* サイトタイトル（ヘッダー） */
/* ——————————————— */
.site-title a {
  color: var(--text-main);
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
}

/* ——————————————— */
/* 投稿タイトル（Hello world! 等） */
/* ——————————————— */
.entry-title a {
  color: var(--accent);
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
}
.entry-title a:hover {
  opacity: 0.8;
}

/* ——————————————— */
/* 本文テキストの色調整 */
/* ——————————————— */
p, li, .site-description {
  color: var(--text-muted);
}

/* ——————————————— */
/* 全体コンテンツを最大幅800pxで中央寄せに */
/* ——————————————— */
.wrapper, .site-content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ——————————————— */
/* コンテナ設定 */
/* ——————————————— */
/* ラッパーで中央寄せ＆最大幅 */
.wrapper {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ヘッダー全体 */
.site-header {
  background-color: var(--bg-secondary);
  /* スクロールしても常に見せたいなら fixed or sticky に */
  position: sticky;
  top: 0;
  z-index: 100;
}

/* wrapper をフレックスボックスに */
.site-header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

/* サイトタイトル */
.site-title a {
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  color: var(--text-main);
  text-decoration: none;
}

/* 説明文は非表示 or 小さく */
.site-description {
  display: none; /* いらなければ消す */
  /* もし使うなら… */
  /* font-size: 0.875rem;
     color: var(--text-muted); */
}

/* ナビゲーション */
/* ロゴエリア */
.site-logo img {
  max-height: 60px;  /* functions.php と合わせる */
  height: auto;
  width: auto;
}

/* ヘッダーフレックス調整 */
.site-header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* メニューとの余白調整 */
.site-nav {
  margin-left: auto;
}
.site-nav ul {
  display: flex;
  gap: 1.5rem;
}


.hero {
  /* 背景画像はお好きなものを /assets/images/hero.jpg など */
  background: url('assets/images/hero.jpg') center/cover no-repeat;
  position: relative;
  padding: 8rem 0;
  color: #fff;
  text-align: center;
}

/* 背景のオーバーレイ */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(244, 241, 235, 0.6); /* ベージュ系オーバーレイ */
}

/* テキストを前面に出す */
.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero .cta-button {
  background-color: var(--accent);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
}

/* ——————————————— */
/* サービスカードセクション */
/* ——————————————— */
.services {
  background-color: var(--bg-base);
  padding: 4rem 0;
}
.services .section-title {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 2rem;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 2rem;
}
.service-card {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  text-align: center;
  padding: 2rem 1rem;
}
.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.service-title {
  font-family: "Playfair Display", serif;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.service-text {
  color: var(--text-muted);
  line-height: 1.6;
}


.section-map {
  background-color: var(--bg-secondary);
  padding: 4rem 0;
}
.section-map .section-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 1.5rem;
}
.map-container {
  max-width: 800px;
  margin: 0 auto;
  border: 4px solid var(--grey-box);
  border-radius: 8px;
  overflow: hidden;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}
.service-item h4 {
  font-family: "Playfair Display", serif;
  color: var(--text-main);
  margin-bottom: .5rem;
}
.service-item p {
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-form {
  max-width: 600px;
  margin: 2rem auto;
}
.contact-form input,
.contact-form textarea,
.contact-form button {
  width: 100%;
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--grey-box);
  border-radius: 4px;
  font-size: 1rem;
}
.contact-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
}

/* コンセプト（サービス紹介）セクション：ベース背景色に */
.section-concept {
  background-color: var(--bg-base);
}
/* コンセプト用リスト */
.concept-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.concept-item h4 {
  font-family: "Playfair Display", serif;
  color: var(--text-main);
  margin-bottom: .5rem;
}
.concept-item p {
  color: var(--text-muted);
  line-height: 1.6;
}


/* お問い合わせセクション：セカンダリ背景色に */
.section-contact {
  background-color: var(--bg-secondary);
}
/* —————————————————————————————————————————————— */
/* お問い合わせフォーム：入力欄のフォーカス時スタイル */
/* —————————————————————————————————————————————— */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  border: 1px solid var(--grey-box);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* フォーカス時にアクセントカラー＋アウトライン */
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(211, 185, 167, 0.3);
  outline: none;
}

/* プレースホルダー文字色（薄く） */
.contact-form ::placeholder {
  color: var(--text-muted);
}

/* —————————————————————————————————————————————— */
/* お問い合わせフォーム：送信ボタンのホバー＆クリックエフェクト */
/* —————————————————————————————————————————————— */
.contact-form button[type="submit"] {
  background-color: var(--accent);
  color: #fff;
  border: none;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

/* —————————————————————————————————————————————— */
/* お問い合わせフォーム：送信ボタンのスタイル（button と input両対応） */
/* —————————————————————————————————————————————— */
/* 共通スタイル */
.contact-form button[type="submit"],
.contact-form input[type="submit"] {
  display: inline-block;         /* transform を効かせるため */
  background-color: var(--accent);
  color: #fff;
  border: none;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

/* ホバー時 */
.contact-form button[type="submit"]:hover,
.contact-form input[type="submit"]:hover {
  background-color: var(--text-main);
  transform: translateY(-2px);
}

/* クリック時 */
.contact-form button[type="submit"]:active,
.contact-form input[type="submit"]:active {
  transform: translateY(0);
}

/* ——————————————— */
/* ヘッダーをスクロール追従（sticky） */
/* ——————————————— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color .3s, box-shadow .3s;
}

/* スクロールしていない状態の背景 */
.site-header {
  background-color: var(--bg-secondary);
}

/* ——————————————— */
/* リンクのホバーエフェクト */
/* ——————————————— */
.site-nav a {
  transition: color .3s, opacity .3s;
}
.site-nav a:hover,
.site-nav a:focus {
  color: var(--accent);
  opacity: 0.8;
}

/* スクロール時に影と背景色を変化 */
.site-header.scrolled {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* —————————————————————— */
/* モバイル：1列 */
/* —————————————————————— */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* —————————————————————— */
/* タブレット以上（768px以上）：2～3列自動調整 */
/* —————————————————————— */
@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

/* —————————————————————— */
/* PC以上（1024px以上）：4列固定 */
/* —————————————————————— */
@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* 必要に応じて wrapper の幅も広げる */
  .wrapper {
    max-width: 1200px;
  }
}

/* --------------------------------------- */
/* 基本 wrapper 幅／パディング調整（モバイル） */
/* --------------------------------------- */
.wrapper {
  max-width: 100%;
  padding: 0 1rem;
}

/* --------------------------------------- */
/* ヒーローセクション：テキストサイズ調整 */
/* --------------------------------------- */
.hero-title {
  font-size: 2rem;
  line-height: 1.2;
}
.hero-sub {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* --------------------------------------- */
/* コンセプトセクション：1列表示（モバイル） */
/* --------------------------------------- */
.concept-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* --------------------------------------- */
/* お問い合わせフォーム：モバイル調整 */
/* --------------------------------------- */
.contact-form {
  padding: 0 0.5rem;
}
.contact-form input,
.contact-form textarea,
.contact-form input[type="submit"] {
  width: 100%;
  font-size: 0.9rem;
}

/* ================================================== */
/* PC以上（1024px～） */
/* ================================================== */
@media (min-width: 1024px) {
  /* wrapper 幅拡大 */
  .wrapper {
    max-width: 1000px;
  }

  /* ヒーロー：さらに大きく */
  .hero-title {
    font-size: 3rem;
  }
  .hero-sub {
    font-size: 1.25rem;
  }

  /* コンセプト：3～4列に拡張 */
  .concept-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  /* お問い合わせフォーム：フォーム幅を絞る */
  .contact-form {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* —————————————————————————————————————————— */
/* お問い合わせセクションのラッパー幅を調整 */
/* —————————————————————————————————————————— */
.section-contact .wrapper {
  /* サービス／コンセプトと同じ最大幅に */
  max-width: 800px;
  margin: 0 auto;
}

/* —————————————————————————————————————————— */
/* Contact Form コンテナにも幅制限を追加 */
/* —————————————————————————————————————————— */
.contact-form {
  max-width: 600px;   /* お好みで調整 */
  margin: 2rem auto;  /* 上下マージン＋中央寄せ */
}

/* —————————————————————————————————————————— */
/* 入力欄とボタンは幅100%のままOK */
/* —————————————————————————————————————————— */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form input[type="submit"] {
  width: 100%;
}

/* ———————————————————————————————————————— */
/* CONTACT セクション：Wrapper を他セクションと同じ幅・パディングに */
/* ———————————————————————————————————————— */
.section-contact {
  padding: 4rem 0;                     /* 上下の余白を他と揃える */
}
.section-contact .wrapper {
  max-width: 800px;                   /* 他と同じ最大幅 */
  margin: 0 auto;                     /* 中央寄せ */
  padding: 0 1rem;                    /* 左右パディング */
  box-sizing: border-box;             /* パディング込みで幅を制御 */
}



/* ———————————————————————————————————————— */
/* フォームコンテナも中央揃え */
/* ———————————————————————————————————————— */
.contact-form {
  max-width: 600px;                   /* 幅を制限 */
  margin: 0 auto;                     /* 中央寄せ */
}

/* ——————————————————————————————— */
/* モバイル（767px以下）で幅を100%に調整 */
/* ——————————————————————————————— */
@media (max-width: 767px) {
  /* wrapper は左右1remのパディングだけ */
  .section-contact .wrapper {
    max-width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
  }

  /* フォームそのものも左右余白なく */
  .contact-form {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  /* 入力欄とボタンは幅100%のまま */
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea,
  .contact-form input[type="submit"] {
    width: 100%;
    box-sizing: border-box; /* padding込みで幅を制御 */
  }
}

/* ─────────────────────────────── */
/* 全セクション見出しの統一スタイル */
/* ─────────────────────────────── */
.section-title {
  /* フォント */
  font-family: "Playfair Display", serif;
  font-weight: 700;

  /* サイズ＆行間 */
  font-size: 2rem;
  line-height: 1.3;

  /* 色 */
  color: var(--text-main);

  /* テキスト加工 */
  text-transform: uppercase;     /* 大文字揃え */
  letter-spacing: 0.05em;        /* 少しだけ文字間を広げる */

  /* 余白 */
  margin: 0 0 2rem;              /* 下にまとまった余白 */

  /* レイアウト */
  text-align: center;            /* 真ん中揃え */
}

/* ─────────────────────────────── */
/* Hero見出しにも同じフォント＆太さを適用 */
/* ─────────────────────────────── */
.hero-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  /* Heroのみサイズを少し大きく */
  font-size: 2.5rem;
  line-height: 1.2;
}

/* ─────────────────────────────── */
/* 各カード・アイテム見出し（h4）の統一 */
/* ─────────────────────────────── */
.service-title,
.concept-item h4 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

/* ───────────────────────── */
/* ページ全体のデフォルト余白リセット */
/* ───────────────────────── */
html, body {
  margin: 0;
  padding: 0;
}

/* ───────────────────────── */
/* ヘッダー上下の余白を消去 */
/* ───────────────────────── */
.site-header,
.site-header .wrapper {
  margin: 0;
  padding-top: 1rem;   /* お好みで上下パディングを調整 */
  padding-bottom: 1rem;
  box-sizing: border-box;
}

/* ———————————————————————— */
/* グローバルなlist-styleリセット */
/* ———————————————————————— */
.site-nav ul {
  list-style: none;      /* 箇条書きマーカーを消す */
  margin: 0;             /* ulの余白をリセット */
  padding: 0;            /* ulのパディングをリセット */
  display: flex;         /* 横並びに */
  align-items: center;   /* 縦中央揃え */
  gap: 2rem;             /* 項目間のスペース */
}

/* li・a要素の余計な余白リセット */
.site-nav li,
.site-nav a {
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* ───────────────────────── */
/* ヘッダー内のロゴを右に寄せる */
/* ───────────────────────── */
.site-logo {
  margin-left: 1.5rem;   /* ここでロゴの左余白を調整（数値はお好みで） */
}

/* ───────────────────────── */
/* メニューを右端に揃える */
/* ───────────────────────── */
.site-nav {
  margin-left: auto;     /* 自動的に余白を挿入して右寄せ */
}

/* ナビゲーションリストの左右余白をリセット */
.site-nav ul {
  margin: 0;
  padding: 0;
}

/* ================================= */
/* PC(1024px以上)のときだけ調整 */
/* ================================= */
@media (min-width: 1024px) {
  /* ヘッダーwrapperを両端に開く */
  .site-header .wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.75rem 2rem !important;  /* 上下0.75rem、左右2rem */
    box-sizing: border-box !important;
    margin: 0 auto !important;
  }

  /* ロゴをright方向にオフセット */
  .site-logo {
    margin: 0 2rem 0 0 !important;    /* 上右下左 */
  }

  /* ナビを右端にピタッと */
  .site-nav {
    margin: 0 !important;
  }
  .site-nav ul {
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* ────────────────────────────── */
/* SERVICEページ ヒーローエリア */
/* ────────────────────────────── */
.service-hero {
  background: var(--bg-secondary);
  padding: 4rem 0;
  text-align: center;
}
.page-hero__title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: .5rem;
}
.page-hero__sub {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* ────────────────────────────── */
/* SERVICE一覧グリッド */
/* ────────────────────────────── */
.service-list {
  padding: 4rem 0;
  background: var(--bg-base);
}
.service-list__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* タブレット以上で2列、PC以上で4列 */
@media(min-width:768px) {
  .service-list__grid {
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  }
}
@media(min-width:1024px) {
  .service-list__grid {
    grid-template-columns: repeat(4,1fr);
  }
}

.service-card {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 2rem 1rem;
  text-align: center;
}
.service-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.service-card__title {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: .5rem;
}
.service-card__text {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ——————————————————————————————— */
/* Our Process セクション */
/* ——————————————————————————————— */
.section-process {
  background-color: var(--bg-secondary);
  padding: 4rem 0;
}
.process-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
@media (min-width: 768px) {
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .process-list {
    grid-template-columns: repeat(4, 1fr);
  }
}
.process-item {
  text-align: center;
}
.process-step {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: .5rem;
}
.process-title {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: .5rem;
}
.process-text {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Case Studies */
.section-case-studies {
  background: var(--bg-base);
  padding: 4rem 0;
}
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
@media(min-width:768px){ .case-grid { grid-template-columns: repeat(2,1fr); } }
@media(min-width:1024px){ .case-grid { grid-template-columns: repeat(4,1fr); } }
.case-item { text-align:center; }
.case-thumb img { width:100%; height:auto; border-radius:4px; }
.case-title { margin:1rem 0 .5rem; font-family:"Playfair Display",serif; color:var(--text-main); }
.case-text { color:var(--text-muted); }

/* FAQ */
.section-faq { background: var(--bg-secondary); padding:4rem 0; }
.faq-list { max-width:600px; margin:2rem auto; }
.faq-item { margin-bottom:1rem; }
.faq-question {
  width:100%; text-align:left; background:#fff; border:1px solid var(--grey-box);
  padding:.75rem 1rem; font-weight:500; cursor:pointer;
}
.faq-answer { display:none; padding:1rem; border:1px solid var(--grey-box); border-top:none; background:#fff; }
.faq-question.active + .faq-answer { display:block; }

/* CTA */
.section-cta {
  background: var(--accent); color:#fff; padding:4rem 0; text-align:center;
}
.section-cta .section-title { color:#fff; margin-bottom:1rem; }
.section-cta .cta-text { font-size:1.125rem; margin-bottom:2rem; }
.section-cta .cta-button.large {
  background:#fff; color:var(--accent); padding:1rem 2rem; border-radius:4px;
  font-weight:700; text-decoration:none;
}

/* FAQの開閉スクリプト */
