
:root{
  --bg:#ffffff; --card:#ffffff; --muted:#4b5563; --text:#111827;
  --brand:#228B22; --accent:#2E8B57; --ring:#32CD32;
  --line: rgba(0,0,0,.10);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "游ゴシック体", Meiryo, sans-serif;
  color:var(--text); background:var(--bg);
}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px; margin:0 auto; padding:24px}

/* Header */
header{
  position:sticky; top:0; z-index:50; backdrop-filter:saturate(180%) blur(10px);
  background:var(--brand); border-bottom:2px solid var(--accent); color:#fff;
}
.nav{display:flex; align-items:center; justify-content:space-between; gap:12px;}
.brand{display:flex; align-items:center; gap:12px}
.logo {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logo img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}
.brand h1{font-size:18px; margin:0; color:#fff}
.menu{display:flex; gap:10px; flex-wrap:wrap}
.menu a{padding:10px 14px; border-radius:10px; background:#f3f4f6; color:#111827; border:1px solid var(--line)}
.menu a[aria-current="page"]{
  outline:2px solid var(--ring); outline-offset:2px;
  box-shadow:0 10px 20px rgba(34,139,34,.20), inset 0 0 0 1px rgba(34,139,34,.45);
  border-color:transparent; background:linear-gradient(180deg, #e8f5e9, #c8e6c9);
}

/* Hero */
.hero{padding:48px 0 12px}
.hero h2{font-size:28px; margin:0 0 10px; color:var(--brand)}
.hero p{color:var(--muted); margin:0}

/* Cards & grids */
.grid{display:grid; grid-template-columns:repeat(12,1fr); gap:12px}
.col-4{grid-column:span 4}
.col-6{grid-column:span 6}
.col-12{grid-column:span 12}
@media (max-width:900px){.col-4,.col-6{grid-column:span 12}}

.card{
  background:var(--card); border:1px solid var(--line); border-radius:16px; padding:16px;
  box-shadow:0 2px 10px rgba(0,0,0,.03);
}
.card h3{margin:0 0 6px; color:var(--brand)}
.muted{color:var(--muted)}
.badge{display:inline-block; padding:2px 8px; border-radius:999px; background:rgba(46,139,87,.12);
  border:1px solid rgba(46,139,87,.35); color:var(--accent); font-size:12px}

/* Lists */
ul.news{list-style:none; padding-left:0; margin:0}
.news li{padding:12px 8px; border-bottom:1px dashed var(--line)}
.news a{font-weight:600}

/* Table */
table{width:100%; border-collapse:collapse}
th,td{padding:10px 8px; border-bottom:1px solid var(--line)}
th{color:var(--brand); text-align:left}

/* Form */
form{display:grid; gap:12px}
label{display:grid; gap:6px}
input, textarea, select{padding:10px 12px; border-radius:12px; border:1px solid rgba(0,0,0,.20); background:#fff; color:var(--text)}
input:focus, textarea:focus, select:focus{outline:2px solid var(--ring); outline-offset:2px}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media (max-width:700px){.form-row{grid-template-columns:1fr}}

.btn{padding:10px 14px; border-radius:999px; border:1px solid rgba(0,0,0,.2); background:var(--accent); color:#fff}
.btn:hover{background:var(--ring)}

footer{margin-top:40px; padding:24px 0; color:var(--muted); border-top:1px solid var(--line);}


/* Page hero images */
.page-hero{margin:16px 0 8px}
.page-hero img{width:100%; height:260px; object-fit:cover; border-radius:12px; border:1px solid var(--line); display:block}
@media (min-width:1100px){
  .page-hero img{height:320px}
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}


/* === Full-bleed image (edge-to-edge) === */
.hero-image.fullbleed {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}
.hero-image.fullbleed img {
  width: 100%;
  height: auto;
  display: block;
}



/* soil analysis photo gallery */
.photo {
  margin: 0;
}
.photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.photo figcaption {
  font-size: 0.85rem;
  margin-top: 4px;
  color: #555;
}

/* 3-column layout for soil photos if col-4 not defined */
.col-4 {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}
@media (max-width: 768px) {
  .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 12px;
  }
}


/* 土壌分析写真ギャラリー */
.soil-photo img{
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:8px;
  display:block;
}
.soil-photo figcaption{
  font-size:0.85rem;
  margin-top:4px;
  color:#555;
}

/* 土壌分析写真（全体表示） */
.soil-photo img{
  width:100%;
  height:auto;
  border-radius:8px;
  display:block;
}

/* enlarge soil photos */
.grid{gap:8px;}

/* define col-5 for soil photos */
.col-5{ grid-column: span 5; }
@media(max-width:900px){
  .col-5{ grid-column: span 12; }
}

/* full width hero image */
.fullwidth-hero{
  width:100%;
  height:auto;
  display:block;
  margin:0;
  padding:0;
  border-radius:0;
}


/* --- お問い合わせページ 2カラムレイアウト --- */
.contact-flex {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.contact-left,
.contact-right {
  flex: 1;
  min-width: 320px;
}

/* PCで左右バランス調整（右を広めに） */
.contact-left {
  flex: 0 0 35%;
}

.contact-right {
  flex: 0 0 60%;
}

/* スマホでは縦並びにする */
@media (max-width: 768px) {
  .contact-left,
  .contact-right {
    flex: 0 0 100%;
  }
}


/* 土壌分析写真レイアウト調整：3枚1行＆大きめ表示 */
.soil-photo-row{
  display:flex;
  flex-wrap:nowrap;            /* 常に1行で表示 */
  gap:8px;                     /* 写真間の余白を少なく */
  margin-top:16px;
}

.soil-photo-row .soil-photo{
  margin:0;
  flex:1 1 0;
}

.soil-photo-row .soil-photo img{
  width:100%;
  height:240px;                /* 企業情報ページより少し大きめでもOK：必要なら数値調整 */
  object-fit:cover;            /* 上下をトリミングしてバランスよく表示 */
  border-radius:8px;
  display:block;
}
