/* /Applications/MAMP/htdocs/forindexcss/homestyles.css */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&display=swap');



html {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}


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

body {
  line-height: 1.5;
  color: #333;
  background-color: #00538A;
  overscroll-behavior-y: none;
}

header {
  background-color: #734e30;
  color: white;
  text-align: center;
  padding: 0rem 1rem;
  border-radius: 0 0 2rem 2rem;
  margin: 0 auto;
  top: 0;
  overscroll-behavior-y: none;

  border-bottom: 10px solid #FFA500;
}


header h1 {
  font-weight: 900;
  color: #FFA500;

  white-space: nowrap;
  display: inline-block;
}


header p {
  font-size: 2rem;
}

main {
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem;
  overflow-x: hidden;
}

.policy-section,
.privacy-section {
  background-color: white;
  padding: 1rem;
  margin-bottom: 0rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

h3 {
  color: #34495e;
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

ul,
ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}


footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ca8300;
  color: white;
  text-align: center;
  padding: 0.5rem;
  border-radius: 2rem 2rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

}

footer p {
  margin: 0;
  line-height: 1;
  font-size: 2vh;
}



.language-tile img {
  width: 100px;
  height: auto;
  margin-bottom: 10px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.208);
}

.tile-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 10px 0px;
}

.language-tile {
  display: flex;
  align-items: center;
  gap: 0px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: calc(33.33% - 20px);
  padding: 5px;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s;
}

.lang-column .tile-container.single-column .language-tile {
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 0px;
}

.policy-section .tile-container .language-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0px;
}

.language-tile:hover {
  transform: scale(1.05);
}

.language-tile img {
  width: 100px;
  height: auto;
}

.language-tile h3 {
  margin: 0;
}

.language-tile p {
  color: #666;
}

.tile-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.main-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 15px;
  row-gap: 20px;
  align-items: start;
  box-sizing: border-box;
}

.side-column {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.policy-section {
  grid-column: 2;

}

.intro-section {
  grid-column: 3;

  background-color: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.privacy-section {
  grid-column: 3;
  grid-row: 1;
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.intro-section h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #2c3e50;
}

.intro-section p {
  color: #555;
  line-height: 1.5;
}

.intro-section .member-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}



.intro-section .member-card {
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  flex: 1;
  text-align: center;
}

.intro-section .member-card .member-icon {
  width: 10vw;
  height: 10vw;
  border-radius: 20%;
  object-fit: cover;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.intro-section .member-card h3 {
  margin: 0.5rem 0;
  font-size: 1.3rem;
  color: #2c3e50;
}

.intro-section .member-card ul {
  margin: 0.5rem 0 0 1rem;
  list-style: disc inside;
  text-align: left;
}

.intro-section .member-card a {
  color: #734e30;
  text-decoration: none;
}

header h1 img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 850px) {

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

  .policy-section {
    order: 1;
    width: 100%;
  }

  .blog-column {
    order: 2;
    width: 100%;
  }

  .side-column {
    order: 3;
    width: 100%;
  }

  .side-column {
    width: 100%;
  }

  .intro-section .member-card .member-icon {
    width: 20vw;
    height: 20vw;
  }
}



@media (max-width: 450px) {

  main {
    padding: 0.5rem;
  }

  .policy-section .tile-container .language-tile {
    flex-direction: row !important;
    align-items: center;
    text-align: left;
    width: 100%;
    gap: 0px;
    padding: 0px;
  }

  .policy-section .tile-container .language-tile img {
    width: 80px;
    margin: 0 15px 0 0;
    height: auto;
  }

  .tile-content {
    flex: 1;
  }


  header {
    border-radius: 0 0 1rem 1rem;
  }

  header p {
    font-size: 1rem;
  }

  .policy-section,
  .privacy-section {
    padding: 0.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }


  .language-tile h3 {
    font-size: 1.1rem;
    margin: 0;
  }

  .tile-content {
    flex: 1;
  }


  .intro-section {
    margin-top: 1rem;
  }
}


.policy-section img,
.blog-content img {
  max-width: 95%;
  height: auto;
}

.uline-orange {
  text-decoration: underline;
  text-decoration-color: #ff8800;
}

.box-note {
  border: 2px solid #734e30;
  padding: 1rem;
  border-radius: .5rem;
  background: #fff8f0;
}

.blog-column {
  grid-column: 1;
}

.blog-box {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
  margin-bottom: 1.5rem;
}

.blog-box h3 {
  margin: .2rem 0 .6rem;
  font-size: 1.1rem;
  color: #734e30;
}

.blog-box ul {
  margin-left: 1.2rem;
}

.btn-list {
  display: inline-block;
  margin-top: .5rem;
  padding: .2rem .6rem;
  border: 1px solid #734e30;
  border-radius: 4px;
  font-size: .8rem;
  color: #734e30;
  text-decoration: none;
}

.blog-box h3 {
  margin-top: 1rem;
  margin-bottom: .5rem;
  font-size: 1.1rem;
  color: #734e30;
}

.tile-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-tile {
  display: block;
  width: calc(33.333% - 10px);
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.blog-tile img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.blog-tile p {
  margin: .5rem 0 0;
  font-size: .9rem;
  line-height: 1.2;
}

@media (max-width: 600px) {
  .blog-tile {
    width: calc(50% - 10px);
  }
}


.blog-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-card {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  text-decoration: none;
  color: inherit;
  padding: 8px;
  transition: transform .15s, box-shadow .15s;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}

.blog-card-img {
  width: 110px;
  height: 75px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 auto;
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.blog-card-body h4 {
  margin: 0 0 .25rem;
  font-size: 1rem;
  line-height: 1.25;
}

.blog-card-body time {
  font-size: .8rem;
  color: #666;
}

.blog-card-body p {
  margin: .25rem 0 0;
  font-size: .85rem;
  color: #444;
  line-height: 1.3;
}

@media (max-width:600px) {
  .blog-card-img {
    width: 90px;
    height: 60px;
  }
}


.lang-column {
  grid-column: 3;
}

.single-column .language-tile {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
}

.single-column .language-tile img {
  width: 80px;
  margin-right: 15px;
}


.article-list h1 {
  margin-bottom: 1rem;
}


.lang-column {
  grid-column: 3;
  background-color: white;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}



.breadcrumb {
  font-size: .85rem;
  margin-bottom: 1rem;
  color: #555;
}

.breadcrumb a {
  color: #734e30;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .sep {
  margin: 0 .4rem;
  color: #999;
}


.article-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-search input[type=text] {
  padding: .3rem .5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.article-search button {
  padding: .35rem .8rem;
  border: none;
  background: #734e30;
  color: #fff;
  border-radius: 4px;
}

.calendar-column {
  grid-column: 1;
}

.calendar-filter {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.calendar-filter input[type=date] {
  padding: .25rem .4rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.calendar-filter button,
.calendar-filter .btn-clear {
  padding: .3rem .7rem;
  font-size: .8rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.calendar-filter button {
  background: #734e30;
  color: #fff;
}

.calendar-filter .btn-clear {
  background: #ddd;
  color: #333;
  text-decoration: none;
  text-align: center;
}


@media (max-width:850px) {
  .calendar-column {
    order: 1;
    width: 100%;
  }

  .policy-section.article-list {
    order: 2;
    width: 100%;
  }

  .blog-column {
    order: 3;
    width: 100%;
  }

  .lang-column {
    order: 3;
    width: 100%;
  }
}