/*
Theme Name: 市川フラワーオークションジャパン
*/

/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  font-size: 62.5%;
}

body {
  margin: 0;
  font-size: 1.6rem;
  background-color: #fcfcfc;
}

main {
  display: block;
}

h1 {
  font-size: 3rem;
  margin: 0.67em 0;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

pre {
  font-family: monospace, monospace;
  font-size: 1.2rem;
}

a {
  background-color: transparent;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  border-style: none;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details {
  display: block;
}

summary {
  display: list-item;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

/*--------------------------------------------------------------
# Box Sizing
--------------------------------------------------------------*/
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
:root {
  --color-primary: #145FA9;
  --color-primary-dark: #125292;
  --color-gray-bg: #f0f2f1;
  --color-white: #ffffff;
  --color-black: #333333;
  --color-text: #333333;
  --color-gray: #666666;
  --color-light-gray: #f8f8f8;
  --color-border: #eeeeee;
  --font-main: "noto sans jp", "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.3s ease;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.6;
}

/* メニュー開いている時にスクロールを無効化 */
body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  clear: both;
  margin-top: 0;
  margin-bottom: 20px; /* 見出しの下部マージンを統一 */
  line-height: 1.2; /* 行間を統一 */
}

p {
  margin-bottom: 8px;
  margin-top: 0;
  font-size: 16px;
  line-height: 1.6; /* 行間を統一 */
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  height: auto;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
  background-color: var(--color-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-branding img {
  max-height: 40px;
  width: auto;
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  width: 100%;
}

.menu-container {
  display: none;
  width: 100%;
  flex-direction: column;
}

.main-navigation.toggled .menu-container {
  display: flex;
}

.main-navigation ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding-left: 0;
  width: 100%;
}

.main-navigation ul li {
  position: relative;
}

.main-navigation ul li a {
  display: flex;
  align-items: center;
  padding: 0.8em 1em;
  text-decoration: none;
  color: var(--color-text);
}

.main-navigation ul li a:hover {
  color: var(--color-primary);
}

.menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  width: 24px;
  height: 24px;
}

.menu-icon img {
  width: 100%;
  height: auto;
  max-height: 24px;
  vertical-align: middle;
}

.menu-text {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
}

/* Contact Button */
.contact-button {
  background: linear-gradient(38deg, #145FA9 4.03%, #1B8DFD 49.16%, #145FA9 93.21%);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.3s;
}

.contact-button:hover {
  background: linear-gradient(38deg, #0F4A85 4.03%, #1579E0 49.16%, #0F4A85 93.21%);
  color: var(--color-white);
  text-decoration: none;
}

/* Mobile Menu Toggle - モダンデザイン */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-left: auto;
  position: relative;
  z-index: 2; /* メニューオーバーレイより上に表示 */
}

.menu-toggle-bar {
  display: block;
  width: 100%;
  height: 2px; /* より細く */
  background: linear-gradient(38deg, #145FA9 4.03%, #1B8DFD 49.16%, #145FA9 93.21%);
  border-radius: 2px; /* 角丸 */
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6); /* スムーズなアニメーション */
}

.main-navigation.toggled .menu-toggle-bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  width: 100%;
}

.main-navigation.toggled .menu-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.main-navigation.toggled .menu-toggle-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  width: 100%;
}

@media screen and (max-width: 767px) {
  h1, h2, h3, h4, h5, h6 {
    margin-bottom: 16px;
    line-height: 1.4; /* モバイル用に行間を広げる */
  }

  p {
    line-height: 1.6; /* 行間を統一 */
  }
}

/* Responsive Styles - モダンなオーバーレイメニュー */
@media screen and (max-width: 767px) {
  .header-container {
    padding: 10px 15px;
  }

  .menu-container {
    position: fixed;
    top: 54px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 40px 20px;
  }

  .main-navigation.toggled .menu-container {
    opacity: 1;
    visibility: visible;
  }

  .main-navigation ul {
    text-align: center;
    margin-bottom: 30px;
  }

  .main-navigation ul li {
    margin: 0;
    padding: 15px 0;
    border-bottom: none;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    transition-delay: calc(0.1s * var(--item-index, 0));
  }

  .main-navigation.toggled ul li {
    transform: translateY(0);
    opacity: 1;
  }

  .main-navigation ul li:nth-child(1) {
    --item-index: 1;
  }

  .main-navigation ul li:nth-child(2) {
    --item-index: 2;
  }

  .main-navigation ul li:nth-child(3) {
    --item-index: 3;
  }

  .main-navigation ul li a {
    font-size: 1.2rem;
    justify-content: center;
    padding: 10px 20px;
  }

  .menu-icon {
    margin-right: 15px;
    width: 28px;
    height: 28px;
  }

  .menu-text {
    font-size: 2rem;
    font-weight: 600;
  }

  .header-buttons {
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    transition-delay: 0.4s;
  }

  .main-navigation.toggled .header-buttons {
    transform: translateY(0);
    opacity: 1;
  }

  .contact-button {
    display: block;
    text-align: center;
    width: 100%;
    padding: 15px 20px;
    border-radius: 30px;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 138, 50, 0.2);
  }
}

@media screen and (min-width: 768px) {
  .header-container {
    flex-wrap: nowrap;
  }

  .site-branding {
    flex: 0 0 auto;
    margin-right: 2rem;
  }

  .site-branding img {
    max-height: 60px;
  }

  .main-navigation {
    width: auto;
    flex: 1;
    justify-content: flex-end;
  }

  .menu-toggle {
    display: none;
  }

  .menu-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: auto;
  }

  .main-navigation ul {
    flex-direction: row;
    align-items: center;
    width: auto;
    margin-right: 1rem;
  }

  .menu-text {
    font-size: 1.6rem;
  }
}

/*--------------------------------------------------------------
# Front Page
--------------------------------------------------------------*/

/* Hero Section */
/* Hero Section - 動画比率対応（1920 × 768px = 2.5:1） */
.hero-section {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 40%; /* 2.5:1の比率 (100% ÷ 2.5 = 40%) */
  min-height: 400px;
  overflow: hidden;
  margin-bottom: 60px;
}

/* 動画とフォールバック画像 */
.hero-video,
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* 動画が正常に読み込まれた場合、フォールバック画像を非表示 */
.hero-video:not([src=""]) + .hero-img {
  display: none;
}

/* ヒーローコンテンツ */
.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--color-white);
  z-index: 2;
}

.hero-title {
  font-size: 42px;
  margin-left: 30px;
  font-weight: 500;
  max-width: 640px;
  font-family: "Noto Serif JP", serif;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
  .hero-section {
    padding-bottom: 45%; /* タブレットでは少し高く */
    min-height: 350px;
  }
  
  .hero-title {
    font-size: 36px;
    margin-left: 25px;
  }
}

@media screen and (max-width: 767px) {
  .hero-section {
    padding-bottom: 56.25%; /* スマホでは16:9比率 (9÷16×100) */
    min-height: 300px;
    margin-bottom: 40px;
  }

  .hero-title {
    font-size: 24px;
    margin-left: 20px;
    max-width: 90%;
    line-height: 1.4;
  }

  .hero-content {
    background-color: rgba(0, 0, 0, 0.4);
  }
}

@media screen and (max-width: 480px) {
  .hero-section {
    padding-bottom: 60%; /* 小さなスマホではさらに調整 */
    min-height: 250px;
  }

  .hero-title {
    font-size: 20px;
    margin-left: 15px;
  }
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--color-white);
}

.hero-title {
  font-size: 42px;
  margin-left: 30px;
  font-weight: 500;
  max-width: 640px;
  font-family: "Noto Serif JP", serif;
}

.hero-description {
  font-size: 1.6rem;
  max-width: 600px;
}

/* Section Styles */
h2,
h2.section-title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  position: relative;
  font-size: 3.6rem;
  margin-bottom: 50px;
  line-height: 1;
}
@media screen and (max-width: 768px) {
  h2,
  h2.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }
}
h2:before,
h2.section-title::before {
  content: url("./images/line.svg");
  display: inline-block;
  bottom: 8px;
  position: relative;
  margin-right: 30px;
}
@media screen and (max-width: 768px) {
  h2:before,
  h2.section-title::before {
    content: url("././images/line_sp.svg");
    margin-right: 20px;
  }
}
h2:after,
h2.section-title::after {
  content: url("./images/line.svg");
  -webkit-transform: scale(-1, 1);
  transform: scale(-1, 1);
  display: inline-block;
  bottom: 8px;
  position: relative;
  margin-left: 30px;
}
@media screen and (max-width: 768px) {
  h2:after,
  h2.section-title::after {
    content: url("./images/line_sp.svg");
    margin-left: 20px;
  }
}

.business-section,
.company-section,
.access-section {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
}

/* Business Section */
.business-section {
  padding: 80px 0;
}

.about {
  padding: 0;
}

.business-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.business-image {
  flex: 0 0 45%;
}

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

.business-text {
  flex: 1;
}

.business-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.business-text p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.btn-details {
  display: flex;
  align-items: center;
  gap: 20px;
  width: fit-content;
  margin: 36px auto;
  padding: 10px 25px;
  color: var(--color-primary);
  text-decoration: none;
  border: 1px solid var(--color-primary);
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.about .btn-details {
  margin: 80px auto 0;
}

/* Responsive styles */
@media (max-width: 768px) {
  .business-content {
    flex-direction: column;
    gap: 30px;
  }
  .about .btn-details {
    margin: 36px auto 0;
  }

  .business-image {
    flex: 0 0 100%;
    order: -1; /* Move image to top on mobile */
  }

  .business-text h2 {
    font-size: 24px;
    text-align: center;
  }

  .business-text {
    text-align: center;
  }
}

/* Company Section */
.company-section {
  padding: 0;
}

/* Access Section */
.access-section {
  padding: 5rem 0;
}

.access-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.access-text {
  text-align: center;
}
.access-text p {
  text-align: left;
  margin-bottom: 6px;
}

.access-map {
  width: 100%;
  height: 450px;
}

.access-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media screen and (max-width: 767px) {

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

  .hero-description {
    font-size: 1rem;
  }
  .business-section,
  .company-section {
    padding-bottom: 0;
  }
  .business-section,
  .company-section,
  .access-section {
  }
}

/*--------------------------------------------------------------
# Contact Page
--------------------------------------------------------------*/
.contact-hero {
  position: relative;
  width: 100%;
  height: 180px;
  background-image: url("https://ichikawa2.faj.co.jp//wp-content/uploads/sites/3/2025/05/title_back.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5rem;
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.contact-hero .page-title {
  position: relative;
  font-size: 2.8rem;
  color: var(--color-white);
  text-align: center;
  margin: 0;
  z-index: 1;
}

.contact-intro {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.contact-methods {
  display: flex;
  margin-bottom: 50px;
  border: 3px solid #c8d3da;
}

.contact-method-box {
  flex: 1;
  padding: 25px;
}
.contact-method-box:first-child {
  border-right: 3px solid #c8d3da;
}

.contact-method-box b {
  display: block;
  font-size: 16px;
  margin-bottom: 15px;
}
.contact-method-box p {
  font-size: 14px;
}

.contact-method-box ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 15px;
}
.contact-method-box ul.ul-text {
  list-style-type: disc;
  margin-left: 14px;
}

.contact-info-list {
  display: flex;
  gap: 40px;
}

.contact-info-list li {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 400;
}

.contact-info-list li span {
  font-size: 20px;
  font-weight: 700;
  margin-right: 12px;
}

.contact-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.contact-content {
  margin-bottom: 40px;
}

@media screen and (max-width: 767px) {
  .contact-methods,
  .contact-method-box ul {
    flex-direction: column;
  }
  .contact-info-list {
    gap: 6px;
  }
  .contact-method-box:first-child {
    border-right: 0;
    border-bottom: 1px solid #f3f3f3;
  }

  .contact-hero .page-title {
    font-size: 2rem;
  }
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.contact-info-item {
  padding: 20px;
  background-color: var(--color-gray-bg);
  border-radius: 5px;
}

.contact-info-item h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.contact-tel {
  font-size: 1.3rem;
  font-weight: 700;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto 60px;
}

.contact-form-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 15px;
}

.contact-form-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(38deg, #145FA9 4.03%, #1B8DFD 49.16%, #145FA9 93.21%);
}

.contact-form-wrapper {
  margin-bottom: 30px;
}

/* Contact Form 7 Styles */
.wpcf7 {
  max-width: 100%;
}

/* フォームの行スタイル */
.wpcf7 .wpcf7-form p {
  margin-bottom: 20px;
}

/* PCでの見出しと入力フィールドのレイアウト */
@media screen and (min-width: 768px) {
  .wpcf7 .wpcf7-form p:not(.form-label):not(.submit-button-wrapper) {
    display: flex;
    flex-direction: row;
  }
  .contact-input-set.privacy p {
    display: block !important;
  }
  .wpcf7 label {
    width: 30%;
    padding-right: 20px;
    display: flex;
    align-items: center;
  }

  .wpcf7-form-control-wrap {
    width: 70%;
  }
}

/* プライバシーポリシー部分のスタイル */
.contact-input-set.privacy {
  margin: 30px 0;
  text-align: center;
  padding: 24px 16px;
  background-color: #fff;
}

.contact-input-set.privacy a {
  text-decoration: underline;
}

.contact-input-set.privacy .wpcf7-list-item {
  display: flex;
  align-items: center;
  margin: 0;
}

.contact-input-set.privacy .wpcf7-list-item-label {
  margin-left: 8px;
}

/* スマートフォンでの改行制御 */
@media screen and (max-width: 767px) {
  .spNone {
    display: none;
  }
}

/* 必須マーク */
.wpcf7 .required {
  width: 56px;
  height: 24px;
  flex-shrink: 0;
  background-color: #e70111;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  border-radius: 20px;
}

.wpcf7 label {
  display: flex;
  align-items: center;
  font-weight: 600;
}

.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 10px;
  border: 1px solid #8a97a1;
  border-radius: 4px;
  background-color: #fff;
}

/* セレクトボックスの矢印アイコン */
.wpcf7 select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='6' fill='%23666'><path d='M0 0l6 6 6-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 30px;
}

.wpcf7 textarea {
  height: 150px;
}

/* 送信ボタン */
.wpcf7 .wpcf7-submit {
  background: linear-gradient(38deg, #145FA9 4.03%, #1B8DFD 49.16%, #145FA9 93.21%);
  color: var(--color-white);
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
  align-items: center;
  margin: 0 auto;
  position: relative;
  font-family: FontAwesome, "Helvetica Neue", Arial, sans-serif;
}
p.submit-button-wrapper {
  display: block !important;
  text-align: center;
}

/* 送信ボタンのアイコン */
.wpcf7 .submit-button-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.wpcf7 .wpcf7-submit:hover {
  background: linear-gradient(38deg, #0F4A85 4.03%, #1579E0 49.16%, #0F4A85 93.21%);
}

.wpcf7 .ajax-loader {
  display: block;
  margin: 10px auto 0;
}

.wpcf7 .wpcf7-not-valid-tip {
  color: #dc3232;
  font-size: 0.9em;
  margin-top: 5px;
}

.wpcf7 .wpcf7-response-output {
  margin: 20px 0;
  padding: 15px;
  border-radius: 4px;
}

.contact-notes {
  font-size: 0.9rem;
  color: #666;
}

.contact-input-set.privacy p {
  display: block;
}

/* プライバシーポリシーのチェックボックス修正 */
.contact-input-set.privacy .wpcf7-list-item {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  margin: 0 !important;
}

.contact-input-set.privacy .wpcf7-list-item-label {
  margin-left: 8px !important;
  display: inline-block !important;
  white-space: nowrap !important;
}

.contact-input-set.privacy .wpcf7-list-item input[type="checkbox"] {
  margin-right: 5px !important;
}

.contact-input-set.privacy .label-Required {
  width: 56px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
  background-color: #e70111 !important;
  color: #fff !important;
  font-family: "Noto Sans" !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: normal !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 10px !important;
  border-radius: 20px;
}

/* チェックボックスの親要素を修正 */
.contact-input-set.privacy .form-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-bottom: 0;
}

/* 同意するの場合のみ、必須を左側に表示 */
.contact-input-set.privacy .label-Required {
  order: -1 !important; /* 左側に配置 */
  margin-right: 10px !important;
  margin-left: 0 !important;
}

.contact-input-set.privacy .wpcf7-checkbox {
  display: inline-flex !important;
  align-items: center !important;
}

/* 縦並びを強制的に解除 */
.contact-input-set.privacy span.wpcf7-form-control-wrap {
  display: inline-block !important;
  width: auto !important;
}

.contact-input-set.privacy .wpcf7-form-control {
  display: inline-flex !important;
  flex-direction: row !important;
}

/* Thanks Page */
.thanks-content {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

.thanks-message {
  margin-bottom: 40px;
  line-height: 1.8;
}

.thanks-back-link .button {
  display: inline-block;
  background: linear-gradient(38deg, #145FA9 4.03%, #1B8DFD 49.16%, #145FA9 93.21%);
  color: var(--color-white);
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.thanks-back-link .button:hover {
  background: linear-gradient(38deg, #0F4A85 4.03%, #1579E0 49.16%, #0F4A85 93.21%);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
  margin-top: 90px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 40px 15px 40px;
  background-color: #f0f2f1;
  color: #6A6A6A;
}
.footer-info {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  align-items: center;
}

.footer-logo {
  max-width: 180px;
}
.footer-logo img {
  max-height: 120px;
  width: auto;
}

.footer-logo .site-title {
  margin: 0;
  font-size: 1.5rem;
}

.footer-logo .site-title a {
  color: var(--color-white);
  text-decoration: none;
}

.footer-nav {
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
}

.footer-nav li {
  position: relative;
  padding: 0 15px;
}

.footer-nav li:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #145FA9;
}

.footer-nav a {
  color: #145FA9;
  text-decoration: none;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--color-primary);
}

.footer-jfl-logo {
  display: flex;
  justify-content: center;
  margin: 30px auto 0;
  max-width: 100px;
}

.footer-jfl-logo img {
  width: 100%;
  height: auto;
}

#footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

#footer-menu li {
  margin: 0 20px 10px 0;
}

#footer-menu a {
  color: var(--color-white);
  text-decoration: none;
  transition: var(--transition);
}

#footer-menu a:hover {
  text-decoration: underline;
}

.footer-contact {
  border-top: 1px solid #145FA9;
  text-align: center;
  display: flex;
  padding: 50px 0 45px;
  justify-content: center;
  align-items: center;
}
.footer-contact p {
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  margin-right: 48px;
  margin-bottom: 0;
}

.footer-contact .btn {
  line-height: 1;
  background: linear-gradient(38deg, #145FA9 4.03%, #1B8DFD 49.16%, #145FA9 93.21%);
  color: #fff;
  font-size: 1.8rem;
  padding: 16px 32px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.copyright {
  background: #145FA9;
  padding: 15px 0;
  text-align: center;
  color: #fff;
}
.copyright .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8px;
  display: flex;
  justify-content: space-between;
}
.copyright .container ul {
  display: flex;
  gap: 12px;
}
.copyright .container ul a {
  color: #fff;
  font-size: 12px;
}

.copyright p {
  margin: 0;
  font-size: 12px;
}

@media screen and (max-width: 767px) {
  .footer-contact {
    flex-direction: column;
  }
  .footer-contact p {
    margin: 0 auto 12px;
    font-size: 16px;
  }
  .footer-nav {
    flex-direction: column;
  }
  .footer-nav li {
    padding: 6px 15px;
  }
  .footer-nav li:not(:last-child)::after {
    content: none;
  }
  .copyright .container {
    justify-content: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .wpcf7 label {
    margin: 26px 0 8px;
  }
  .contact-input-set.privacy .wpcf7-list-item label {
    margin: 0 !important;
  }
  .contact-intro p {
    font-size: 14px;
  }
  .footer-info {
    flex-direction: column;
  }
}

/*--------------------------------------------------------------
# Tables
--------------------------------------------------------------*/
.outline-list-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  border-top: 1px solid #f0f2f1;
  border-bottom: 1px solid #f0f2f1;
  box-sizing: border-box;
  max-width: 960px;
  margin: auto;
}

.outline-list-table th,
.outline-list-table td {
  padding: 16px;
  text-align: left;
}

.outline-list-table th {
  width: 25%;
  font-weight: 400;
}
tr:nth-child(even) {
  background: #f0f2f1;
}

@media screen and (max-width: 767px) {
  .outline-list-table,
  .outline-list-table tbody,
  .outline-list-table tr,
  .outline-list-table th,
  .outline-list-table td {
    display: block;
    width: 100%;
  }

  .outline-list-table th {
    border-bottom: none;
    padding-bottom: 5px;
  }

  .outline-list-table td {
    padding-top: 5px;
  }
}

.note {
  font-size: 12px;
  margin-top: 12px;
  text-align: right;
}
/* ====== 主要取引銀行 ─ 銀行名と支店名（全デバイス共通） ====== */
.outline-list-table .banks ul{
  margin:0;
  padding:0;
  list-style:none;
}

/* 横並び２列レイアウト */
.outline-list-table .banks li{
  display:flex;
  gap:.45em;           /* 銀行名と支店名のすき間 */
  flex-wrap:wrap;      /* 行が長ければ支店名だけ折り返す */
}

/* ─ 銀行名列 ───────────────────────── */
.outline-list-table .banks .bank{
  /* 「8em 固定幅」で全行合わせる  
     8em ≒ 和文４文字＋余白程度。  
     もっと長い銀行名(りそな etc.)がある場合は 9em､10em に広げる。 */
  flex:0 0 8em;        
  min-width:8em;
  max-width:8em;
  text-align:left;
  white-space:nowrap;  /* 長い場合は切らずに支店名だけ下へ回す */
}

/* ─ 支店名列 ───────────────────────── */
.outline-list-table .banks .branch{
  flex:1 1 auto;       /* 残り幅すべて支店名に割り当て */
  text-align:left;
  word-break:keep-all; /* 日本語は自動改行、英数のみ単語内改行防止 */
}


/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.wpcf7-spinner {
  display: block;
  margin: 14px auto;
}

.company-hero {
  background-image: url("https://ichikawa2.faj.co.jp//wp-content/uploads/sites/3/2025/05/title_back.jpg");
  flex-direction: column;
}
.company-hero p {
  color: #fff;
  z-index: 1;
  margin-bottom: 0;
}

.company-section h3,
.access-section h3 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 1.875rem;
}

/*--------------------------------------------------------------
# Business Page Styles
--------------------------------------------------------------*/
.business-hero {
  background-image: url("https://ichikawa2.faj.co.jp//wp-content/uploads/sites/3/2025/05/title_back.jpg");
  flex-direction: column;
}
.business-hero p {
  color: #fff;
  z-index: 1;
  margin-bottom: 0;
}

.business-overview-content {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
  line-height: 1.8;
}

/*--------------------------------------------------------------
# Business Products Section
--------------------------------------------------------------*/

.business-area h3 {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 1.6rem;
}
.business-area > p {
  white-space: pre-line;   /* 改行コードをそのまま表示 */
  max-width: 720px;
  margin: 0 auto 1.5rem;
  line-height: 1.8;
}

.business-products {
  margin: 2.5rem 0;
}

.products-container {
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #F0F2F1;
  padding: 50px 130px 80px;
  margin:0 auto 70px;
  max-width: 960px;
}

/* ELFバケットセクション用スタイル */
.elf-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
}

.elf-button {
  display: inline-block;
  width: 50%;
  padding: 15px 30px;
  border: 1px solid var(--color-primary);
  border-radius: 3px;
  color: var(--color-primary);
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.elf-button:hover {
  background: linear-gradient(38deg, #145FA9 4.03%, #1B8DFD 49.16%, #145FA9 93.21%);
  color: white;
}

.elf-description {
  margin: 30px 0;
}

.elf-description p {
  margin-bottom: 10px;
  line-height: 1.8;
}

@media screen and (max-width: 767px) {
  .elf-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .elf-button {
    width: 100%;
  }
}

.products-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 1.6rem;
  font-weight: 600;
}

.products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.product-item {
  flex: 0 0 calc(50% - 30px);
}

.product-item-full {
  flex: 0 0 100%;
}

.product-item-full .product-description {
  margin-top: 2.5rem;
}
.product-item-full .product-description p {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.product-title {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 400;
}

.product-image {
  width: 100%;
  position: relative;
  background-color: #f8f8f8;
}

@media screen and (max-width: 767px) {
	.contact-hero{
		margin-bottom: 3rem;
	}
  .products-container {
    padding: 1.25rem;
  }
	.business-area h3 {
    font-size: 20px;
    margin-bottom: 1.875rem;
	}
  .products-title {
    font-size: 20px;
    margin-bottom: 1.875rem;
  }

  .products-grid {
    flex-direction: column;
    gap: 20px;
  }

  .product-item {
    flex: 0 0 100%;
  }

  .product-title {
    font-size: 16px;
    margin-bottom: 10px;
  }
}

.sns-section {
  margin-top: 90px;
  text-align: center;
  padding-top: 70px;
  border-top: 1px solid #D0D0D0;
}

.sns-section a {
  margin-top: 30px;
  display: inline-block;
}

