/* styles.css */

/* ------------------------------
   Reset / Base
------------------------------ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.7;
  color: #333;
  background-color: #f5f7fa;
}

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

/* ------------------------------
   Layout
------------------------------ */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ------------------------------
   Header / Navigation
------------------------------ */

header {
  background-color: rgba(5, 27, 53, 0.96);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.site-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.site-title span {
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.8;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
}

nav a {
  padding: 6px 12px;
  border-radius: 999px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
  border: 1px solid transparent;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

nav a.active {
  background-color: #ffffff;
  color: #0b3c5d;
}

/* ------------------------------
   Buttons
------------------------------ */

.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid #fff;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.btn-primary {
  background-color: #ffffff;
  color: #0b3c5d;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background-color: #e3f2fd;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: #fff;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.16);
}

/* contact.php用送信ボタン */
.btn-submit {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 999px;
  border: none;
  background-color: #1e88e5;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.btn-submit:hover {
  background-color: #1565c0;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(21, 101, 192, 0.4);
}

/* ------------------------------
   index：Hero（滋賀の夕景）
------------------------------ */

.hero {
  position: relative;
  color: #fff;
  padding: 96px 0 110px;
  overflow: hidden;
}

/* ★ トリミングだけ変更：空多め（center 25%） */
.hero-home {
  background-image:
    linear-gradient(135deg, rgba(5, 20, 46, 0.9), rgba(0, 151, 167, 0.8)),
    url("5286C01E-E07C-4810-912E-1C9D2176F145.jpg");
  background-size: cover;
  background-position: center 25%; /* 空を多めに、草はカット気味 */
  background-repeat: no-repeat;
  background-blend-mode: soft-light, normal;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.09), transparent 55%),
    radial-gradient(circle at 80% 120%, rgba(255, 255, 255, 0.18), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 18px;
  letter-spacing: 0.03em;
}

.hero p {
  font-size: 1rem;
  opacity: 0.95;
  margin-bottom: 26px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ------------------------------
   サブページ Hero
   services / access / company
------------------------------ */

/* services / access：琵琶湖（IMG_1649.jpeg） */
.page-hero {
  position: relative;
  padding: 64px 0 52px;
  color: #fff;
  background-image:
    linear-gradient(135deg, rgba(5, 22, 50, 0.88), rgba(0, 121, 107, 0.75)),
    url("IMG_1649.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: soft-light, normal;
}

/* company：室内写真（R0320535.JPG）少し濃く */
.page-hero-light {
  position: relative;
  padding: 64px 0 52px;
  color: #263238;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.25), rgba(236,239,241,0.35)),
    url("R0320535.JPG");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: normal;
}

/* 斜めストライプは不要なので無効化 */
.page-hero-overlay {
  display: none !important;
}

.page-hero > .container,
.page-hero-light > .container {
  position: relative;
}

.page-hero-label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 8px;
}

.page-hero h1,
.page-hero-light h1 {
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.page-hero-lead {
  font-size: 0.96rem;
  opacity: 0.92;
}

/* ------------------------------
   Main / Sections
------------------------------ */

main {
  padding: 40px 0 64px;
}

.section {
  margin-bottom: 52px;
}

.section-narrow {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 16px;
  border-left: 4px solid #1e88e5;
  padding-left: 10px;
}

.section-lead {
  margin-bottom: 22px;
  color: #555;
  font-size: 0.98rem;
}

/* ------------------------------
   Grid / Card / List
------------------------------ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background-color: #fff;
  border-radius: 14px;
  padding: 20px 20px 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

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

.list {
  list-style: none;
  padding-left: 0;
}

.list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.list li::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.55rem;
  color: #1e88e5;
}

/* ------------------------------
   index：湖のスタジオ（IMG_1649）
------------------------------ */

.section-shiga {
  margin-bottom: 56px;
}

.shiga-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}

.shiga-panel {
  position: relative;
  min-height: 220px;
}

.shiga-panel-inner {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  background-image:
    linear-gradient(135deg, rgba(3, 30, 53, 0.7), rgba(0, 121, 107, 0.4)),
    url("IMG_1649.jpeg");
  background-size: cover;
  background-position: center;
  filter: grayscale(40%) saturate(0.8);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
}

/* ------------------------------
   index：デザインスタジオ（R0320536）
------------------------------ */

.section-studio {
  margin-bottom: 56px;
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  padding: 26px 26px 30px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.9), #0f172a);
  color: #e5e7eb;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.6);
}

.section-studio .section-title {
  border-left-color: rgba(148, 163, 184, 0.8);
  color: #f9fafb;
}

.section-studio .section-lead {
  color: #cbd5f5;
}

.studio-copy p {
  font-size: 0.95rem;
}

.studio-copy p + p {
  margin-top: 10px;
}

.studio-visual {
  position: relative;
  min-height: 260px;
}

.studio-visual-main {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.55), rgba(51, 65, 85, 0.55)),
    url("R0320536.JPG");
  background-size: cover;
  background-position: center;
  filter: grayscale(45%) saturate(0.9) contrast(1.05);
  mix-blend-mode: normal;
  opacity: 1;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.55);
}

.studio-visual-tag {
  position: absolute;
  left: 18px;
  right: 18px;
  padding: 6px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e5e7eb;
  backdrop-filter: blur(6px);
  background-color: rgba(15, 23, 42, 0.35);
}

.studio-visual-tag-top {
  top: 14px;
}

.studio-visual-tag-bottom {
  bottom: 14px;
  text-align: right;
}

/* ------------------------------
   Info box（services 用）
------------------------------ */

.info-box {
  background-color: #e3f2fd;
  border-left: 4px solid #1e88e5;
  padding: 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #29434e;
}

/* ------------------------------
   Company table
------------------------------ */

table.company-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.company-table th,
.company-table td {
  padding: 12px 16px;
  font-size: 0.95rem;
}

.company-table th {
  width: 28%;
  background-color: #e3f2fd;
  text-align: left;
  white-space: nowrap;
}

.company-table tr + tr td,
.company-table tr + tr th {
  border-top: 1px solid #e0e0e0;
}

/* ------------------------------
   Access（access.html）
------------------------------ */

.access-map {
  background-color: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  font-size: 0.95rem;
}

.access-map p {
  margin-bottom: 8px;
}

.map-frame {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

/* ------------------------------
   Contact form（contact.php）
------------------------------ */

.contact-form {
  background-color: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cfd8dc;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #fafbfc;
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #1e88e5;
  box-shadow: 0 0 0 1px rgba(30, 136, 229, 0.22);
}

.form-note {
  font-size: 0.83rem;
  color: #78909c;
  margin-bottom: 12px;
}

/* ------------------------------
   Footer
------------------------------ */

footer {
  background-color: #0b3c5d;
  color: #fff;
  padding: 16px 0;
  font-size: 0.85rem;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

/* ------------------------------
   Responsive
------------------------------ */

@media (max-width: 960px) {
  .shiga-layout,
  .studio-layout {
    grid-template-columns: 1fr;
  }

  .studio-visual {
    order: -1;
    margin-bottom: 16px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero {
    padding: 72px 0 80px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .shiga-panel,
  .studio-visual {
    min-height: 200px;
  }
}

/* ------------------------------
   Heroタイトルの改行制御
   PC：2行固定
   SP：3行（任意で折り返しOK）
------------------------------ */

/* 見出し全体の行間 */
.hero-title {
  line-height: 1.35;
}

/* 2行目全体（デザインとDXでビジネスをアップデート。）を
   PCでは1行に収める */
.hero-line {
  white-space: nowrap;
}

/* スマホ専用改行 <span class="sp-br"><br></span>
   → PCでは無効（改行しない） */
.sp-br {
  display: none;
}

/* スマホ（幅600px以下）では：
   - 2行目は普通に折り返しOK
   - sp-br の位置で強制改行 → 3行構成になる */
@media (max-width: 600px) {
  .hero-line {
    white-space: normal;
  }
  .sp-br {
    display: inline;
  }
}

