/*
Theme Name: Astra ISE
Theme URI: https://ise-log.com/
Description: 株式会社ISE コーポレートサイト用 Astra 子テーマ。卸売・物販を通じて流通の信頼を支える。
Author: 株式会社ISE
Author URI: https://ise-log.com/
Template: astra
Version: 1.0.0
Text Domain: astra-ise
*/

/* =========================================================
   Custom properties (color tokens / sizing)
   ========================================================= */
:root {
  --navy-900: #0b2545;
  --navy-700: #13315c;
  --navy-500: #1c4279;
  --gray-900: #1a1f2c;
  --gray-700: #4a5568;
  --gray-500: #718096;
  --gray-300: #cbd5e0;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --accent: #c9a14a;
  --maxw: 1200px;
  --header-h: 80px;
}

/* =========================================================
   Reset / base overrides on top of Astra
   ========================================================= */
body.ise-corporate * { box-sizing: border-box; }
body.ise-corporate {
  font-family: "Noto Sans JP", "Inter", system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
body.ise-corporate a { color: inherit; text-decoration: none; }
body.ise-corporate img { max-width: 100%; display: block; }

/* Hide Astra default header/footer when our custom one is in use */
body.ise-corporate .site-header,
body.ise-corporate .site-footer { display: none; }

/* =========================================================
   Header
   ========================================================= */
.ise-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 100;
  display: flex;
  align-items: center;
}
.ise-header__inner {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ise-logo {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--navy-900);
}
.ise-logo__sub {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.1em;
  margin-left: 8px;
}
.ise-nav { display: flex; gap: 36px; align-items: center; }
.ise-nav ul { list-style: none; display: flex; gap: 36px; align-items: center; margin: 0; padding: 0; }
.ise-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
  transition: color 0.2s;
  position: relative;
}
.ise-nav a::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 50%;
  width: 0; height: 2px;
  background: var(--navy-900);
  transition: all 0.3s;
}
.ise-nav a:hover::after { width: 100%; left: 0; }
.ise-nav__cta a,
.ise-nav a.ise-nav__cta {
  background: var(--navy-900);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 2px;
  transition: background 0.2s;
}
.ise-nav__cta a:hover,
.ise-nav a.ise-nav__cta:hover { background: var(--navy-700); }
.ise-nav__cta a::after,
.ise-nav a.ise-nav__cta::after { display: none; }

/* =========================================================
   Hero
   ========================================================= */
.ise-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.ise-hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(11, 37, 69, 0.85) 0%, rgba(19, 49, 92, 0.7) 100%),
    url("https://images.unsplash.com/photo-1553413077-190dd305871c?auto=format&fit=crop&w=2000&q=80")
      center/cover no-repeat;
  z-index: -1;
}
.ise-hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  padding-top: var(--header-h);
}
.ise-hero__eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0.95;
}
.ise-hero__title {
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  color: var(--white);
}
.ise-hero__subtitle {
  font-family: "Inter", sans-serif;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 400;
  letter-spacing: 0.15em;
  margin-bottom: 32px;
  opacity: 0.85;
}
.ise-hero__lead {
  max-width: 540px;
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 48px;
  opacity: 0.9;
}
.ise-hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

.ise-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: all 0.25s;
  border: 1px solid transparent;
  cursor: pointer;
}
.ise-btn--primary { background: var(--white); color: var(--navy-900); }
.ise-btn--primary:hover { background: var(--accent); color: var(--white); }
.ise-btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.ise-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}
.ise-btn--dark { background: var(--navy-900); color: var(--white); }
.ise-btn--dark:hover { background: var(--navy-700); }

.ise-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--white);
  opacity: 0.7;
  writing-mode: vertical-rl;
}
.ise-hero__scroll::after {
  content: "";
  display: block;
  width: 1px; height: 60px;
  background: var(--white);
  margin: 12px auto 0;
  animation: iseScrollLine 2s ease-in-out infinite;
}
@keyframes iseScrollLine {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.3); transform-origin: top; }
}

/* =========================================================
   Section base
   ========================================================= */
.ise-section { padding: 120px 32px; }
.ise-section__inner { max-width: var(--maxw); margin: 0 auto; }
.ise-section__eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.ise-section__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.ise-section__lead {
  font-size: 16px;
  color: var(--gray-700);
  max-width: 720px;
  margin-bottom: 56px;
}

/* =========================================================
   News
   ========================================================= */
.ise-news { background: var(--gray-50); }
.ise-news__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--gray-200);
  list-style: none;
  margin: 0;
  padding: 0;
}
.ise-news__item {
  display: grid;
  grid-template-columns: 130px 120px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.2s;
}
.ise-news__item a {
  display: contents;
  color: inherit;
}
.ise-news__item:hover { background: var(--white); padding-left: 12px; padding-right: 12px; }
.ise-news__date {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--gray-500);
  letter-spacing: 0.05em;
}
.ise-news__cat {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--navy-700);
  border-radius: 2px;
  text-align: center;
  width: fit-content;
}
.ise-news__title { font-size: 15px; color: var(--gray-900); }
.ise-news__arrow { color: var(--gray-500); font-size: 18px; }
.ise-news__more { margin-top: 40px; text-align: right; }
.ise-link-arrow {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.ise-link-arrow:hover { color: var(--accent); }
.ise-link-arrow::after { content: " →"; }

/* =========================================================
   About
   ========================================================= */
.ise-about { background: var(--white); }
.ise-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.ise-about__image {
  aspect-ratio: 4 / 5;
  background: url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1200&q=80")
    center/cover no-repeat;
  border-radius: 4px;
}
.ise-about__body p { font-size: 16px; color: var(--gray-700); margin-bottom: 20px; }

/* =========================================================
   Services
   ========================================================= */
.ise-services { background: var(--gray-50); }
.ise-services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.ise-service-card {
  background: var(--white);
  padding: 48px 40px;
  border-radius: 4px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.ise-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(11, 37, 69, 0.15);
}
.ise-service-card__num {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}
.ise-service-card__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 16px;
}
.ise-service-card__desc {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* =========================================================
   Strengths
   ========================================================= */
.ise-strengths { background: var(--navy-900); color: var(--white); }
.ise-strengths .ise-section__title { color: var(--white); }
.ise-strengths .ise-section__lead { color: rgba(255, 255, 255, 0.7); }
.ise-strengths__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.ise-strength {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.ise-strength__num {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
}
.ise-strength__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.5;
}
.ise-strength__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.9;
}

/* =========================================================
   Company
   ========================================================= */
.ise-company { background: var(--white); }
.ise-company__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.ise-company__image {
  aspect-ratio: 16 / 11;
  background: url("https://images.unsplash.com/photo-1568992687947-868a62a9f521?auto=format&fit=crop&w=1600&q=80")
    center/cover no-repeat;
  border-radius: 4px;
}
.ise-company__table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
}
.ise-company__table th, .ise-company__table td {
  text-align: left;
  padding: 16px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-200);
}
.ise-company__table th {
  width: 32%;
  color: var(--gray-500);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.ise-company__table td { color: var(--gray-900); }

/* =========================================================
   Contact CTA
   ========================================================= */
.ise-cta {
  background:
    linear-gradient(135deg, rgba(11, 37, 69, 0.92) 0%, rgba(19, 49, 92, 0.85) 100%),
    url("https://images.unsplash.com/photo-1581090700227-1e37b190418e?auto=format&fit=crop&w=2000&q=80")
      center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 100px 32px;
}
.ise-cta__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  color: var(--white);
}
.ise-cta__lead {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* =========================================================
   Footer
   ========================================================= */
.ise-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 80px 32px 32px;
}
.ise-footer__inner { max-width: var(--maxw); margin: 0 auto; }
.ise-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ise-footer__logo {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.ise-footer__about {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.9;
  max-width: 320px;
}
.ise-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.ise-footer__col h4 {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--white);
  margin-bottom: 16px;
}
.ise-footer__col ul { list-style: none; margin: 0; padding: 0; }
.ise-footer__col li { margin-bottom: 10px; }
.ise-footer__col a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}
.ise-footer__col a:hover { color: var(--white); }
.ise-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.ise-footer__bottom-links { display: flex; gap: 24px; }
.ise-footer__bottom-links a:hover { color: var(--white); }

/* =========================================================
   Page header (sub pages)
   ========================================================= */
.ise-page-header {
  background: var(--navy-900);
  color: var(--white);
  padding: calc(var(--header-h) + 80px) 32px 80px;
  text-align: center;
}
.ise-page-header__eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 12px;
}
.ise-page-header__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
}

/* =========================================================
   Contact form (CF7 styles)
   ========================================================= */
.ise-form { max-width: 720px; margin: 0 auto; }
.ise-form .wpcf7-form p { margin-bottom: 24px; }
.ise-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.ise-form input[type="text"],
.ise-form input[type="email"],
.ise-form input[type="tel"],
.ise-form select,
.ise-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid var(--gray-300);
  border-radius: 2px;
  background: var(--white);
  font-family: inherit;
  transition: border-color 0.2s;
}
.ise-form input:focus,
.ise-form select:focus,
.ise-form textarea:focus {
  outline: none;
  border-color: var(--navy-900);
}
.ise-form textarea { min-height: 180px; resize: vertical; }
.ise-form .wpcf7-submit {
  background: var(--navy-900);
  color: var(--white);
  padding: 16px 48px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}
.ise-form .wpcf7-submit:hover { background: var(--navy-700); }

/* =========================================================
   Astra 親テーマからの上書き対策（!important で強制）
   - ボタン・リンクが Astra のデフォルトスタイルに負けるのを防ぐ
   ========================================================= */
body.ise-corporate .ise-btn,
body.ise-corporate a.ise-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 16px 32px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-decoration: none !important;
  border-radius: 2px !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  transition: all 0.25s !important;
  line-height: 1.4 !important;
}

body.ise-corporate .ise-btn--primary,
body.ise-corporate a.ise-btn.ise-btn--primary {
  background-color: var(--white) !important;
  color: var(--navy-900) !important;
  border-color: var(--white) !important;
}
body.ise-corporate .ise-btn--primary:hover,
body.ise-corporate a.ise-btn.ise-btn--primary:hover {
  background-color: var(--accent) !important;
  color: var(--white) !important;
  border-color: var(--accent) !important;
}

body.ise-corporate .ise-btn--ghost,
body.ise-corporate a.ise-btn.ise-btn--ghost {
  background-color: transparent !important;
  color: var(--white) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}
body.ise-corporate .ise-btn--ghost:hover,
body.ise-corporate a.ise-btn.ise-btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--white) !important;
}

body.ise-corporate .ise-btn--dark,
body.ise-corporate a.ise-btn.ise-btn--dark {
  background-color: var(--navy-900) !important;
  color: var(--white) !important;
  border-color: var(--navy-900) !important;
}
body.ise-corporate .ise-btn--dark:hover,
body.ise-corporate a.ise-btn.ise-btn--dark:hover {
  background-color: var(--navy-700) !important;
  border-color: var(--navy-700) !important;
}

/* link-arrow を常時下線付きで視認性UP */
body.ise-corporate .ise-link-arrow,
body.ise-corporate a.ise-link-arrow {
  display: inline-block !important;
  color: var(--navy-900) !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--navy-900) !important;
  padding-bottom: 2px !important;
  font-weight: 600 !important;
}
body.ise-corporate .ise-link-arrow:hover,
body.ise-corporate a.ise-link-arrow:hover {
  color: var(--accent) !important;
  border-bottom-color: var(--accent) !important;
}

/* サービスカード内のリンクを少し目立たせる */
body.ise-corporate .ise-service-card .ise-link-arrow {
  margin-top: 8px;
  border-bottom-color: var(--gray-300) !important;
}
body.ise-corporate .ise-service-card .ise-link-arrow:hover {
  border-bottom-color: var(--accent) !important;
}

/* CTA セクションのボタンが背景に埋もれないよう影を追加 */
body.ise-corporate .ise-cta .ise-btn--primary {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Hero のボタンも視認性UPで影 */
body.ise-corporate .ise-hero .ise-btn {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

/* Astra が a タグに追加する装飾を抑制 */
body.ise-corporate .ise-btn:focus,
body.ise-corporate .ise-link-arrow:focus {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px !important;
}

/* =========================================================
   Responsive (≤768px)
   ========================================================= */
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .ise-nav { display: none; }
  .ise-header__inner { padding: 0 20px; }
  .ise-section { padding: 80px 20px; }
  .ise-news__item {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    gap: 8px 16px;
  }
  .ise-news__title { grid-column: 1 / -1; }
  .ise-news__arrow { display: none; }
  .ise-about__grid, .ise-company__grid { grid-template-columns: 1fr; gap: 40px; }
  .ise-services__grid { grid-template-columns: 1fr; }
  .ise-strengths__grid { grid-template-columns: 1fr; gap: 40px; }
  .ise-footer__top { grid-template-columns: 1fr; gap: 40px; }
  .ise-footer__nav { grid-template-columns: repeat(2, 1fr); }
  .ise-footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .ise-hero__scroll { display: none; }
}
