/* ========== 共通レイアウト ========== */
body {
    margin: 0;
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }

header {
    position: sticky;
    height: 90px;
    top: 0;              /* ページ最上部に配置 */
    z-index: 1000;       /* 他の要素より前面に出す */
    background-color: #1c2d3f;
    color: white;
    padding: 1rem;
    text-align: center;
}

header h1 {
    font-size: 2.2rem;
    margin: 0.175rem 0;
}

nav a {
    margin: 0 12px;
    color: white;
    text-decoration: none;
}

section {
    padding: 2rem;
    background-color: white;
    margin: 1rem auto;
    max-width: 1120px;
    border-radius: 8px;
}

footer {
    height: 210px;
    text-align: center;
    padding: 0.2rem;
    background-color: #1c2d3f;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between; /* 左右に分散 */
    gap: auto; /* カラム間の余白 */
    max-width: 1120px;
    margin: 0 auto;
    text-align: left;
}

.footer-column {
    flex: 1; /* カラム幅均等 */
    margin:0 1rem;
}


/* ========== Heroセクション ========== */
.hero {
    position: relative;              /* オーバーレイやテキスト配置の基準 */
    height: 375px;                  /* 画面全体の高さ*/
    background-image: url('./img/hero-bg.png'); /* ここに背景画像のパス */
    background-size: cover;          /* 画像をセクション全体に合わせる */
    background-position: center;     /* 画像の中心を表示 */
    background-repeat: no-repeat;    /* 繰り返しなし */
    display: flex;                   /* テキストを中央に配置 */
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;                    /* 文字色 */
    padding: 0 20px;                 /* 画面端との余白 */
    box-sizing: border-box;
}

/* オーバーレイ（文字を見やすくする） */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.65); /* 半透明黒 */
    z-index: 1;
}

/* テキストをオーバーレイより前に表示 */
.hero-text {
    position: relative;
    z-index: 2;
    max-width: 100%; 
}

/* .hero {
    position: relative;
    text-align: center;
    color: white;
    padding: 4rem 1rem;
    background: url('./images/hero-bg.jpg') center/cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(28, 45, 63, 0.6);
    z-index: 0;
}

.hero-text {
    position: relative;
    z-index: 1;
} */

.btn, .btn-outline {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn {
    background-color: #f39c12;
    color: white;
}

.btn:hover {
    transform: scale(1.05);
    background-color: #e67e22;
}

.btn-outline {
    border: 2px solid #f39c12;
    color: #f39c12;
    background: transparent;
}

.btn-outline:hover {
    transform: scale(1.05);
    background-color: #f39c12;
    color: white;
}

/* ========== Feature / Categories / Listings ========== */
.features {
    display: flex;
    /* justify-content: center; */
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem auto;
    flex-wrap: wrap;
}


.feature-card {
    flex: 1;
    min-width: 250px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
		text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.feature-card h3 {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: #1c2d3f;
}

.feature-card p {
    font-size: 0.9rem;
    color: #555;
}

.feature-card-solo {
    margin: 0 auto 0 auto;
		max-width: 400px;
    min-width: 300px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.feature-card-solo:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.feature-card-solo h3 {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: #1c2d3f;
}

.feature-card-solo p {
    font-size: 0.9rem;
    color: #555;
}

/* Listingsページ専用 */
.listings.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.listings .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.listings .card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}

.listings .card:hover {
    transform: translateY(-5px);
}

.listings .card img {
    width: 100%;
    height: auto;
    display: block;
}

.listings .card-content {
    padding: 10px;
}

.listings .card h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.listings .card p {
    font-size: 0.9rem;
    color: #555;
}

/* form */
.contact-form {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(15,15,15,0.06);
}

/* grid layout for rows */
.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

/* two-column on wider screens */
@media (min-width: 720px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* row types */
.form-row {
  display: flex;
  flex-direction: column;
}

/* make .full span two columns on large screens */
.form-row.full {
  grid-column: 1 / -1;
}

/* half rows keep single column (default) — no extra rules needed */

/* labels */
.form-row label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

/* inputs & textarea */
.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  transition: border-color .12s ease, box-shadow .12s ease;
  outline: none;
}

/* focus state */
.form-row input:focus,
.form-row textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
}

/* textarea resizing */
.form-row textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.4;
}

/* actions */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
}

/* submit button */
.form-actions button[type="submit"] {
  background: #111827;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(17,24,39,0.12);
}

.form-actions button[type="submit"]:hover {
  transform: translateY(-1px);
}

/* select (dropdown) */
.form-row select {
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #fff;
  appearance: none; /* OS標準の矢印を隠す */
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color .12s ease, box-shadow .12s ease;
  outline: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='none' stroke='%23666' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px auto;
}

/* focus state for select */
.form-row select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
}

/* disable placeholder color for select default option */
.form-row select:invalid {
  color: #6b7280;
}

/* note */
.note {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

.g-recaptcha {
    margin-top: 20px;
}


/* ========== Testimonials 吹き出し ========== */
.testimonials .feature-card {
    background-color: #fff9f1;
    border-left: 5px solid #f39c12;
    padding: 1rem 1.5rem;
    position: relative;
}

.testimonials .feature-card::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 20px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent #fff9f1 transparent transparent;
}

/* ========== 画像関連: 拡大率エフェクト, リンクエフェクト ========== */
.zoom-1-25,
.zoom-1-75 {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.zoom-1-25:hover {
    transform: scale(1.25);
}

.zoom-1-75:hover {
    transform: scale(1.75);
}

.image-row {
    display: flex;
    gap: 10px;            /* 画像の間隔 */
}

.image-row img {
    width: autos;         /* 横幅を統一 */
    height: 50px;        /* 高さを統一 */
    object-fit: cover;    /* 枠いっぱいに収める（切り抜きあり） */
    border-radius: 8px;   /* お好みで角丸 */
}

.img-link img {
transition: 0.3s;
    cursor: pointer;  /* カーソルをポインタにする */
}

.img-link img:hover {
    opacity: 0.8;     /* 半透明にして分かりやすく */
    transform: scale(1.02); /* 少し拡大 */
}

/* ========== メディアクエリ ========== */
@media (min-width: 1600px) {
    body { font-size: 18px; }
    .listings .grid { gap: 30px; }
}

@media (max-width: 991px) {
    body { font-size: 16px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
}

@media (max-width: 600px) {
    body { font-size: 14px; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }

    .listings.container { padding: 0.5rem; }
    .features { flex-direction: column; }
}

