/* ==========================================================================
   箕建（みのけん）コーポレートサイト
   スタイルシート（共通）
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. CSS変数（カラーパレット・共通設定）
   -------------------------------------------------------------------------- */
:root {
  --color-bg-base: #FBF8F3;        /* ベース背景（オフホワイト） */
  --color-bg-soft: #F5EBD9;        /* やわらかいベージュ */
  --color-bg-warm: #EDD9B8;        /* 温かみのあるベージュ */
  --color-text-main: #4A3826;      /* メイン文字色（焦げ茶） */
  --color-text-sub: #7A6346;       /* サブ文字色 */
  --color-accent: #C97B4A;         /* アクセント色（テラコッタ） */
  --color-accent-deep: #8B6F47;    /* 深めのアクセント */
  --color-border: #E8DFD0;         /* 枠線色 */
  --color-footer-bg: #4A3826;      /* フッター背景 */
  --color-footer-text: #EDD9B8;    /* フッター文字 */

  --font-serif: "Noto Serif JP", "Yu Mincho", "游明朝", serif;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --max-width: 1100px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-soft: 0 4px 20px rgba(74, 56, 38, 0.08);
}


/* --------------------------------------------------------------------------
   2. ベース・リセット
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg-base);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-text-main);
  line-height: 1.4;
}


/* --------------------------------------------------------------------------
   2-b. ユーティリティ（PC/SP表示切替）
   -------------------------------------------------------------------------- */
.sp-only { display: inline; }
.pc-only { display: none; }
@media (min-width: 768px) {
  .sp-only { display: none; }
  .pc-only { display: inline; }
}


/* --------------------------------------------------------------------------
   3. 共通レイアウト
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
}

.section-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .section {
    padding: 120px 0;
  }
  .section-title {
    font-size: 36px;
  }
}


/* --------------------------------------------------------------------------
   4. ヘッダー（全ページ共通）
   -------------------------------------------------------------------------- */
.site-header {
  background-color: var(--color-bg-base);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  padding: 0 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text-main);
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-accent-deep);
  color: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
}

.logo-name-en {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-text-sub);
}

/* ナビゲーション（PC） */
.nav {
  display: none;
}

.nav-list {
  display: flex;
  gap: 24px;
}

@media (min-width: 1024px) {
  .nav-list {
    gap: 32px;
  }
}

.nav-list a {
  color: var(--color-text-main);
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}

.nav-list a:hover {
  color: var(--color-accent);
  opacity: 1;
}

@media (min-width: 768px) {
  .nav {
    display: block;
  }
}

/* ハンバーガーメニュー（スマホ） */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-main);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

/* スマホメニュー（開いたとき） */
.mobile-nav {
  display: none;
  background-color: var(--color-bg-base);
  border-top: 1px solid var(--color-border);
  padding: 16px 24px 24px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  display: block;
  padding: 14px 8px;
  color: var(--color-text-main);
  font-size: 16px;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }
}


/* --------------------------------------------------------------------------
   5. ヒーローセクション（トップページ）
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--color-bg-soft) 0%, var(--color-bg-warm) 100%);
  padding: 80px 0 100px;
  text-align: center;
}

.hero-eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-title {
  font-size: 28px;
  line-height: 1.5;
  margin-bottom: 24px;
  color: var(--color-text-main);
}

.hero-subtitle {
  font-size: 15px;
  color: var(--color-text-sub);
  margin-bottom: 40px;
  line-height: 1.9;
}

@media (min-width: 768px) {
  .hero {
    padding: 140px 0 160px;
  }
  .hero-title {
    font-size: 44px;
  }
  .hero-subtitle {
    font-size: 17px;
  }
}


/* --------------------------------------------------------------------------
   6. ボタン
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 16px 36px;
  background-color: var(--color-accent);
  color: #fff;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--color-accent-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  opacity: 1;
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: #fff;
}


/* --------------------------------------------------------------------------
   7. 職人について（ABOUT）
   -------------------------------------------------------------------------- */
.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.about-card {
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.about-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--color-bg-soft);
  color: var(--color-accent-deep);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
}

.about-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 15px;
  color: var(--color-text-sub);
  line-height: 1.9;
}

@media (min-width: 768px) {
  .about-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}


/* 「奈良仕込みの宮大工」カードの強調（ABOUT 中央カード） */
.about-card.card-emphasis {
  border-color: var(--color-accent);
  position: relative;
}
.about-card.card-emphasis::before {
  content: "おすすめ";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-accent);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 4px 12px;
  border-radius: 999px;
}
.about-card.card-emphasis .about-icon {
  background-color: var(--color-accent);
  color: #fff;
}


/* --------------------------------------------------------------------------
   7-b. 親方について（MASTER）
   -------------------------------------------------------------------------- */
.master {
  background-color: var(--color-bg-base);
}

.master-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.master-photo {
  text-align: center;
}

.master-photo-circle {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-bg-soft) 0%, var(--color-bg-warm) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 8px solid #fff;
  box-shadow: var(--shadow-soft);
  color: var(--color-text-sub);
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  /* <img> に同クラスを付けても丸く切り抜けるように */
  object-fit: cover;
}

img.master-photo-circle {
  display: block;
}

.master-photo-text {
  display: block;
}

.master-name {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--color-text-main);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.master-name-sub {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-text-sub);
}

.master-text p {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text-main);
  margin-bottom: 16px;
}

.master-text p:last-child {
  margin-bottom: 0;
}

.master-text strong {
  color: var(--color-accent-deep);
  font-weight: 700;
  background: linear-gradient(transparent 65%, rgba(201, 123, 74, 0.15) 65%);
  padding: 0 2px;
}

.master-quote {
  font-family: var(--font-serif) !important;
  font-size: 22px !important;
  color: var(--color-accent-deep) !important;
  line-height: 1.7 !important;
  border-left: 4px solid var(--color-accent);
  padding-left: 20px;
  margin-bottom: 28px !important;
  font-weight: 500;
}

@media (min-width: 768px) {
  .master-grid {
    grid-template-columns: 280px 1fr;
    gap: 64px;
  }
  .master-photo-circle {
    width: 280px;
    height: 280px;
    font-size: 16px;
  }
  .master-name {
    font-size: 20px;
  }
  .master-text p {
    font-size: 16px;
  }
  .master-quote {
    font-size: 26px !important;
  }
}


/* --------------------------------------------------------------------------
   8. 対応できる仕事（SERVICE）
   -------------------------------------------------------------------------- */
.service {
  background-color: var(--color-bg-soft);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-item {
  background-color: #fff;
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 28px 28px 28px 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-soft);
}

.service-item h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.service-item p {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.8;
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .service-item {
    padding: 36px 32px 36px 36px;
  }
  .service-item h3 {
    font-size: 22px;
  }
  .service-item p {
    font-size: 15px;
  }
}


/* --------------------------------------------------------------------------
   8-b. 宮大工の技（MIYADAIKU）
   -------------------------------------------------------------------------- */
.miyadaiku {
  background:
    linear-gradient(180deg, var(--color-bg-base) 0%, var(--color-bg-soft) 100%);
  position: relative;
}

.miyadaiku .section-title {
  line-height: 1.5;
}

.miyadaiku-lead {
  text-align: center;
  font-size: 15px;
  color: var(--color-text-sub);
  line-height: 2;
  margin-bottom: 56px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.miyadaiku-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.miyadaiku-item {
  background-color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.miyadaiku-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.miyadaiku-num {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.miyadaiku-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.miyadaiku-item p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-sub);
}

.miyadaiku-foot {
  text-align: center;
  margin-top: 56px;
  font-size: 15px;
  line-height: 2;
  color: var(--color-text-main);
  font-family: var(--font-serif);
}

@media (min-width: 768px) {
  .miyadaiku-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  .miyadaiku-lead {
    font-size: 17px;
  }
  .miyadaiku-item {
    padding: 40px 32px;
  }
  .miyadaiku-item h3 {
    font-size: 22px;
  }
  .miyadaiku-item p {
    font-size: 15px;
  }
  .miyadaiku-foot {
    font-size: 17px;
  }
}


/* --------------------------------------------------------------------------
   9. 施工事例（WORKS）
   -------------------------------------------------------------------------- */
.works-coming-soon {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 32px;
  border: 2px dashed var(--color-accent);
  background-color: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  text-align: center;
}

.works-coming-soon p {
  color: var(--color-text-sub);
  font-size: 15px;
  line-height: 2;
}

.works-coming-soon p strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--color-text-main);
  margin-bottom: 12px;
  font-weight: 500;
}

/*
   --- 施工事例 ギャラリー（写真追加時の土台） ---
   写真が用意できたら、下記のコメントアウトを外して使用してください。

.works-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.works-gallery-item img {
  width: 100%;
  border-radius: var(--radius-md);
}
@media (min-width: 768px) {
  .works-gallery { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
*/


/* --------------------------------------------------------------------------
   10. お問い合わせセクション（CONTACT）
   -------------------------------------------------------------------------- */
.contact {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
}

.contact .section-label {
  color: var(--color-bg-warm);
}

.contact .section-title {
  color: #fff;
}

.contact-lead {
  text-align: center;
  font-size: 15px;
  margin-bottom: 40px;
  color: var(--color-bg-warm);
  line-height: 2;
}

.contact-card {
  background-color: #fff;
  color: var(--color-text-main);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.contact-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-label {
  display: block;
  font-size: 12px;
  color: var(--color-text-sub);
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}

.contact-row a {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--color-text-main);
  font-weight: 500;
}

.contact-row a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.contact-hours {
  font-size: 15px;
  font-family: var(--font-serif);
}

@media (min-width: 768px) {
  .contact-card {
    padding: 48px 40px;
  }
  .contact-row a {
    font-size: 28px;
  }
}


/* --------------------------------------------------------------------------
   11. ページ用ヒーロー（works.html / contact.html）
   -------------------------------------------------------------------------- */
.page-hero {
  background-color: var(--color-bg-soft);
  padding: 60px 0 80px;
  text-align: center;
}

.page-hero h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--color-text-sub);
  font-size: 15px;
}

.page-hero .label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 80px 0 100px;
  }
  .page-hero h1 {
    font-size: 40px;
  }
}


/* --------------------------------------------------------------------------
   12. お問い合わせページ（contact.html 専用）
   -------------------------------------------------------------------------- */
.contact-page {
  padding: 80px 0;
}

.contact-page-card {
  max-width: 640px;
  margin: 0 auto;
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  box-shadow: var(--shadow-soft);
}

.contact-page-row {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.contact-page-row:last-child {
  border-bottom: none;
}

.contact-page-row .label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.contact-page-row a {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--color-text-main);
  font-weight: 500;
}

.contact-page-row a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.contact-page-row .text {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--color-text-main);
}

.contact-message {
  text-align: center;
  margin: 40px auto 0;
  max-width: 600px;
  color: var(--color-text-sub);
  font-size: 15px;
  line-height: 2;
}

@media (min-width: 768px) {
  .contact-page {
    padding: 100px 0 120px;
  }
  .contact-page-card {
    padding: 56px 48px;
  }
  .contact-page-row a {
    font-size: 30px;
  }
}


/* --------------------------------------------------------------------------
   13. 施工事例ページ（works.html 専用）
   -------------------------------------------------------------------------- */
.works-page {
  padding: 80px 0;
  text-align: center;
}

.works-page .works-coming-soon {
  margin-bottom: 48px;
}

/*
   --- 施工事例ページ用 ギャラリーの土台 ---
   写真が揃ったら、works-coming-soon を消して下記を使ってください。

.works-page-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .works-page-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}
.works-page-item {
  background-color: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.works-page-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.works-page-item .caption { padding: 16px; font-size: 14px; }
*/


/* --------------------------------------------------------------------------
   14. フッター（全ページ共通）
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 60px 0 30px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand .footer-name {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 8px;
  color: #fff;
}

.footer-brand .footer-name-en {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--color-bg-warm);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-bg-warm);
}

.footer-info dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px 16px;
  font-size: 14px;
}

.footer-info dt {
  color: var(--color-bg-warm);
  font-weight: 500;
}

.footer-info dd {
  color: #fff;
}

.footer-info a {
  color: #fff;
}

.footer-info a:hover {
  color: var(--color-bg-warm);
  opacity: 1;
}

.footer-copyright {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(237, 217, 184, 0.2);
  font-size: 12px;
  color: var(--color-bg-warm);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}


/* --------------------------------------------------------------------------
   15. 控えめなフェードイン（任意）
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
