/* ====== ベース ====== */
:root{
  --brown-900: #1b1410;  /* かなり深いブラウン */
  --brown-800: #241a14;  /* 背景の主役 */
  --brown-700: #2f221a;  /* セクション差 */
  --gold-500:  #b79a63;  /* 右上ボタン系 */
  --text:      #f5efe6;  /* 白より少し暖かい */
  --ink:       #120e0b;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: var(--brown-800);   /* ←ベースは高級ブラウン */
  color: var(--text);
  font-family: "Noto Serif JP", serif;
  color: #f5f2ee;
}

a { color: inherit; text-decoration: none; }

/* 横幅 */
.container{
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

/* ====== ヘッダー ====== */
.header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: rgba(27, 20, 16, 0.55); /* 透ける黒茶 */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(183,154,99,0.25);
  left: 0;
  right: 0;
  width: 100%;
}



.header__inner{
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
padding: 0 24px; /* ← 見た目が一番きれい */
  width: 100%;
  padding: 0 24px;
}

.logo{
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-right: auto; /* ← 左に固定 */
  font-weight: 600;
}

.nav{
  display: flex;
  gap: 22px;
  font-size: 14px;
  opacity: 0.95;
}

.nav a{
  padding: 8px 6px;
  border-radius: 10px;
}
.nav a:hover{
  background: rgba(183,154,99,0.12);
}

.cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--gold-500);
  color: var(--ink);
  font-weight: 700;
}

/* ====== ヒーロー ====== */
.hero{
  position: relative;
  height: 92vh;
  min-height: 640px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding-top: 72px; /* fixed header分 */
}

.hero__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(0.95) contrast(1.05);
}

/* 画像の上に茶色い膜を乗せて“高級感＋読みやすさ” */
.hero__overlay{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 35%, rgba(255,255,255,0.10), rgba(0,0,0,0) 55%),
    linear-gradient(180deg, rgba(27,20,16,0.35), rgba(27,20,16,0.70));
}

.hero__content{
  position: relative;
  text-align: center;
  padding: 0 10px;
}

.hero__title{
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.hero__lead{
  margin: 0 0 10px;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.18em;
  opacity: 0.95;
}

.hero__sub{
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.20em;
  opacity: 0.82;
}

/* ====== 下のセクション（仮） ====== */
.section{
  padding: 88px 0;
  background: var(--brown-800);
  border-top: 1px solid rgba(183,154,99,0.12);
}

.section--light{
  background: var(--brown-700);
}

.section__title{
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: 0.08em;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  letter-spacing: 0.14em;
}


.section__text{
  margin: 0;
  opacity: 0.9;
  line-height: 1.9;
}

/* 事業カード */
.cards{
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(183,154,99,0.20);
  border-radius: 18px;
  padding: 18px;
}
.card h3{
  margin: 0 0 10px;
  letter-spacing: 0.08em;
}
.card p{
  margin: 0;
  opacity: 0.88;
  line-height: 1.8;
}

/* スマホ */
@media (max-width: 840px){
  .nav{ display: none; }     /* まずは簡単に。後でハンバーガー追加できます */
  .cards{ grid-template-columns: 1fr; }
  .hero{ min-height: 560px; }
}
/* 会社説明を中央寄せ */
#about {
  text-align: center;
}

#about .section__text {
  margin: 0 auto;
  max-width: 720px;   /* 横に広がりすぎないよう制限 */
}

/* 会社説明の文字サイズを大きく */
#about .section__text {
  font-size: 18px;     /* ←ここを大きく */
  line-height: 2.0;   /* 行間も一緒に広げる（重要） */
  max-width: 720px;
  margin: 0 auto;
}
/* 事業カードを大きく・存在感アップ */
#services .cards {
  gap: 32px; /* カード同士の間隔を広げる */
}

#services .card {
  max-width: 380px;      /* ← 横幅を大きく */
  padding: 40px 30px;    /* ← 内側の余白を増やす */
  text-align: center;
}

/* 事業名（h3）を大きく */
#services .card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

/* 説明文も少し大きく */
#services .card p {
  font-size: 16px;
  line-height: 1.9;
}
/* 事業内容（中央寄せ） */
#services {
  text-align: center;
}

/* カード全体を中央基準に */
#services .cards {
  justify-items: center;
}

/* カード内の文字 */
#services .card {
  text-align: center;
}

/* カードの幅を少し上品に制限 */
#services .card {
  max-width: 320px;
}
/* ===== Service セクション（スクショ風） ===== */
/* ===== Service セクション（高級ブラウン） ===== */
.service-section{
  padding: 110px 0;
  background: #2a1f18;   /* ← 深みのあるブラウン */
  color: #f4efe9;        /* 白すぎない上品な文字色 */
}


.service-head{
  text-align: center;
}

.service-title{
  margin: 0;
  font-size: 34px;
  letter-spacing: .12em;
}

.service-sub{
  margin: 10px 0 0;
  font-size: 16px;
  letter-spacing: .18em;
  opacity: .75;
}

.service-lead{
  margin: 28px auto 0;
  max-width: 760px;
  font-size: 16px;
  line-height: 2.2;
  letter-spacing: .06em;
  color: rgba(0,0,0,.72);
}

.service-list{
  margin-top: 56px;
  display: grid;
  gap: 56px;
}

/* 画像＋重ねるカードの“土台” */
.service-item{
  position: relative;
  min-height: 420px;
}

/* 画像（横長でドン） */
.service-media img{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;  /* ここは好みで 4/3 でもOK */
  object-fit: cover;
  display: block;
}

.service-media img{
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* 右側に重ねる白パネル */
.service-panel{
  position:absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: min(520px, 92%);
  background: rgba(245, 247, 248, .95);
  border: 1px solid rgba(0,0,0,.08);
  padding: 34px 34px 30px;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
}

/* 左に重ねたい時（2つ目みたいに） */


.panel-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #2a1f18;          /* ブラウン寄りで存在感 */
  text-align: center;     /* 中央揃え */
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}


.panel-line{
  margin: 18px 0 18px;
  height: 1px;
  width: 100%;
  background: rgba(0,0,0,.18);
}

.panel-text{
  margin: 0;
  font-size: 15px;
  line-height: 2.0;
  color: rgba(0,0,0,.72);
  font-family: "Noto Serif JP", serif;
  font-size: 15px;
  line-height: 2;
}

/* スマホ：重ねずに下へ */
@media (max-width: 840px){
  .service-item{ min-height: auto; }
  .service-media img{ height: 52vw; min-height: 260px; }
 .service-panel{
  background: rgba(250, 248, 245, 0.88); /* ← 半透明 */
  backdrop-filter: blur(6px);            /* ← ガラス感 */
  -webkit-backdrop-filter: blur(6px);
  color: #1b1410;
}

}

/* サービス画像に高級感のある膜を追加 */
.service-media {
  position: relative;
}

.service-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(30, 20, 14, 0.35),
    rgba(30, 20, 14, 0.15)
  );
  z-index: 1;
}
/* ヘッダーだけ左右の余白をなくす */
.header .container {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
html, body {
  margin: 0;
  padding: 0;
}
/* 白いパネル内をすべて左詰めにする */
.service-panel {
  text-align: left;
}

/* タイトルも確実に左揃え */
.service-panel .panel-title {
  text-align: left;
  letter-spacing: 0.12em; /* 高級感キープ */
}

/* 横線も左基準に */
.service-panel .panel-line {
  margin-left: 0;
  margin-right: auto;
}

/* 本文 */
.service-panel .panel-text {
  text-align: left;
}
/* サービス：デフォルト（左 → 右） */

/* ===== サービス白パネルの左右制御（最終上書き） ===== */

/* 通常：右に出す */
.service-panel {
  position: absolute;
  top: 50%;
  right: 0;
  left: auto;
  transform: translateY(-50%);
}

.service-item {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-direction: row;
}

.service-item.service-item--reverse {
  flex-direction: row-reverse;
}
/* 白い箱：デフォは左に置く（1番目・3番目） */
.service-panel{
  left: 0;
  right: auto;
}

/* reverse のときだけ右に置く（2番目） */
.service-item--reverse .service-panel{
  left: auto;
  right: 0;
}
/* お問い合わせ：中央揃え */
.contact-section {
  text-align: center;
}

/* 見出し */
.contact-title {
  margin-bottom: 16px;
}

/* 説明文 */
.contact-text {
  margin: 0 auto;
  max-width: 600px; /* 横に広がりすぎ防止（高級感UP） */
  line-height: 1.8;
}
#contact .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* Instagram アイコン */
.instagram-icon {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 12px;
  color: var(--gold-500);
  transition: opacity 0.3s;
}
.instagram-icon:hover {
  opacity: 0.6;
}

/* お問い合わせセクションの文字を白に */
#contact .section__title,
#contact .section__text {
  color: #ffffff !important;
}
#contact .instagram-icon {
  color: var(--gold-500);
}
/* メールリンク */
.mail-link {
  color: #ffffff;
  text-decoration: underline;
  transition: opacity 0.3s;
}
.mail-link:hover {
  opacity: 0.7;
}
/* 右上お問い合わせボタンを白ベースに */
.cta {
  background: #ffffff;
  color: var(--ink);
}
.cta:hover {
  background: rgba(255, 255, 255, 0.85);
}
/* Instagram（アイコン＋テキストを縦並び） */
.instagram-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 32px;
  color: #ffffff;
  transition: opacity 0.3s;
}
.instagram-link:hover {
  opacity: 0.6;
}
.instagram-text {
  font-size: 15px;
  letter-spacing: 0.08em;
}
.mail-link {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s;
}
/* メールアドレス部分だけ下線 */
.mail-address {
  text-decoration: underline;
}
/* スマホ表示の修正：カードの重なりを解除 */
@media (max-width: 840px){
  .service-item,
  .service-item--reverse{
    display: block;          /* 横並びをやめる */
    min-height: auto;
  }

  .service-panel{
    position: static;        /* 浮かせて重ねるのをやめる */
    transform: none;
    width: 100%;
    left: auto;
    right: auto;
   margin-top: 0;      /* 画像に少しだけ重ねて上品に見せる */
    background: rgba(250, 248, 245, 0.96);
  }

  .service-media img{
    height: auto;            /* 画像の高さを自然に */
    aspect-ratio: 16 / 9;
  }
}